query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Autogenerated method stub
public static void main(String[] args) { try { int[] a = new int[2000000000]; } catch(Error er) { System.out.println(er); } }
{ "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
The i18n property name of the unit/upgrade/building.
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\r\n\t\treturn LocalizedTextManager.getDefault().getProperty(name());\r\n\t}", "public String getName() {\n return I18nUtil.getBundle().getString(\"CTL_I18nAction\");\n }", "public String getLocalizedName() {\n\t\treturn this.name().toUpperCase();\n\t}", "public String getName() {\n return getProperty(Property.NAME);\n }", "abstract protected String getResourceBundlePropName();", "public String getLocalizedName() {\n return resourceMap.getString(getLocalizationKey());\n }", "public String getLocalizedName()\n {\n return StatCollector.translateToLocal(this.getUnlocalizedName() + \".\" + TreeOresLogs2.EnumType.DIAMOND.getUnlocalizedName() + \".name\");\n }", "public String getLocalizedName() {\n return LocalizationUtils.translateLocalWithColours(getUnlocalizedName(), getUnlocalizedName());\n }", "PropertyName getName();", "public String name() {\n return getString(FhirPropertyNames.PROPERTY_NAME);\n }", "public String getName() {\n\t\treturn getNonVisualProperties().getName();\n\t}", "public String getUnitName() {\n return unitName;\n }", "public String getUnitName() {\n return unitName;\n }", "public String getUnitName () {\n return unitName;\n }", "public com.commercetools.api.models.common.LocalizedString getName() {\n return this.name;\n }", "public String getUnitName() {\r\n return unitName;\r\n }", "public String getName() {\n return (String) mProperties.get(FIELD_NAME);\n }", "private String getPropertyLabel() {\n return itemPropertyDescriptor.getDisplayName(eObject);\n }", "@Override\n\t\t\tpublic <V> V get(ConfigurationProperty<V> property) {\n\t\t\t\treturn (V) \"Unit Test Dummy Name\";\n\t\t\t}", "public String getUnitName() throws Exception {\r\n return (String) getField(BaseAuditContestInterceptor.class, this, \"unitName\");\r\n }", "String getResourceBundleName() {\n return getPackageName() + \".\" + getShortName();\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(NAME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(NAME_PROP.get());\n }", "String getPropertyName();", "java.lang.String getProperty();", "static String getAntPropertyName( final String property ) {\n if ( property != null &&\n property.startsWith( \"${\" ) && // NOI18N\n property.endsWith( \"}\" ) ) { // NOI18N\n return property.substring( 2, property.length() - 1 );\n } \n return property;\n }", "public String getPropertyLabel() {\n \t\treturn propertyLabel;\n \t}", "private String getName(final String name) {\n\t\treturn bundleI18N.getString(name);\n\t}", "private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }", "@Override\r\n public String toString() {\r\n return unit.getName();\r\n }", "String getImplicitBundlePropertyName(int columnIndex);", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public String getUnlocalizedName() {\n return \"qa.journal.item.\" + key + \".name\";\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName();", "public String getName() {\r\n try {\r\n return PirolPlugInMessages.getString(this.getShortClassName());\r\n } catch (RuntimeException e) {\r\n return super.getName();\r\n }\r\n\r\n }", "BaseComponent getComponentName();", "public String asName() {\n return this.name().toLowerCase(Locale.getDefault());\n }", "String getUnlocalizedName();", "String getPluralisedName();", "public String getLanguageName() {\r\n return languageName;\r\n }", "public String getPropertyName();", "public String getName() {\n return mBundle.getString(KEY_NAME);\n }", "public String getName() {\n return this.name().toLowerCase(Locale.US);\n }", "private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }", "@VTID(7)\r\n java.lang.String name();", "String getProperty();", "String getProperty();", "String getProperty();", "@NonNull\n public String getName() {\n return mBundle.getString(NAME_FIELD, \"\");\n }", "public String getName() {\n return lutName;\n }", "public String getSysPropertyName() {\n return sysProperty;\n }", "@Updatable\n public String getUnit() {\n return unit;\n }", "public static String getProperty(String key) {\r\n\r\n\t\treturn getProperties(LanguageManagerUtil.getCurrentLanguage()).getString(key);\r\n\t}", "public String getName()\r\n \t{\n \t\treturn (explicit ? (module.length() > 0 ? module + \"`\" : \"\") : \"\")\r\n \t\t\t\t+ name + (old ? \"~\" : \"\"); // NB. No qualifier\r\n \t}", "String getDefaultPropertyName(ICompilerProject project);", "String getLocalization();", "protected String getPropertyStrings() {\n\t\treturn \"Active:\" + activeProperty().getValue() + \", FromDataset:\" + isFromDataset() + \", Modified:\" + isModified();\n\t}", "@Override\n public String getShortName() {\n return step.getShortName();\n }", "public String getUnitnm() {\r\n return unitnm;\r\n }", "@Override\n public String getDisplayName() {\n return \"Zanata Localization Sync\";\n }", "@VTID(17)\n java.lang.String getName();", "@Override\n public String getPluralName() {\n return pluralName;\n }", "public String getPropertyName()\n {\n return Integer.toString(getLowNbrParticipants());\n }", "public String getPropertyTypeName(Property property) {\r\n String propSimpleName = property.getClass().getSimpleName();\r\n return propSimpleName.substring(0, propSimpleName.length() - 8);\r\n }", "public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}", "public String unit() {\n return this.unit;\n }", "public String getName() {\n\t\treturn this.recordingProperties.name();\n\t}", "public String getProperty(final String iName) {\n return getProperty(iName, null);\n }", "public String getStringProperty(String propertyName) ;", "@Serialize//(getName = \"property\")\r\n\tpublic String getName()\r\n\t{\r\n\t\treturn _name; \r\n\t}", "public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }", "public String getLabel() {\n return name().toLowerCase().replace(\"_\", \"\");\n }", "@ApiModelProperty(value = \"The integration name is used internally to identify a specific integration.For example the name is used withinsearch fields and hence it should be distinct and descriptive.\")\n public String getName() {\n return name;\n }", "public String propertyName() {\n\t\t\treturn target != null ? target : name;\n\t\t}", "public String getName() {\n \treturn metricMetadata.getName();\n }", "public String getProperty(int property) {\n\t\treturn activity.getString(R.string.input);\n\t}", "public static String property(String name) {\n if (\"version\".equals(name)) {\n return \"1.0\";\n }\n\n if (\"conformance-level\".equals(name)) {\n // todo: read from config\n return \"basic\";\n }\n\n return null;\n }", "public String getI18Key() {\r\n\t\treturn i18Key;\r\n\t}", "public java.lang.String getCUGNameProp()\n\t{\n\t\treturn CUGNameProp;\n\t}", "public String getPropertyName()\n {\n return propertyName;\n }", "public String getName(Resource resource, OgemaLocale locale, boolean useRelativePathAsAlias, boolean useDefaultLanguage);", "public String getLanguage() {\n\t\tif (language == null)\n\t\t throw new IllegalStateException(\"Should be impossible; missing build.language in test.properties!\");\n\t\treturn language.toLowerCase(Locale.US);\n\t}", "ReadOnlyStringProperty unitsProperty();", "public String getU_NAME()\n {\n return this.U_NAME;\n }", "public String getNiceName()\n {\n String name = getBuildFile().getName();\n\n return Utility.replaceBadChars(name);\n }", "public String getProperty() {\n return \"\";\n }", "protected String getPropertyName(){\n return propertyName;\n }", "private String getExpectedYellowColorName()\n {\n String expected;\n\n switch (ResourceBundleManager.getLocale().getLanguage())\n {\n case \"en\":\n expected = \"Yellow\";\n break;\n\n case \"de\":\n expected = \"Gelb\";\n break;\n\n case \"fr\":\n expected = \"Jaune\";\n break;\n\n case \"it\":\n expected = \"Giallo\";\n break;\n\n case \"es\":\n expected = \"Amarillo\";\n break;\n\n default:\n throw new ResourceBundleException(String.format(\"Unhandled: '%s' locale\", ResourceBundleManager.getLocale()));\n }\n\n return expected;\n }", "public String getBuildingName() {\n return (String) getAttributeInternal(BUILDINGNAME);\n }", "public com.commercetools.api.models.common.LocalizedString getLabel() {\n return this.label;\n }", "public java.lang.String getOldProperty_description(){\n return localOldProperty_description;\n }", "@Override\n public String getName() {\n return this.name();\n }", "public String getMessage() {\n return super.getString(Constants.Properties.MESSAGE);\n }", "private String getDisplayNameI18N() throws JspException {\n Object args[] = new Object[5];\n args[0] = arg0;\n args[1] = arg1;\n args[2] = arg2;\n args[3] = arg3;\n args[4] = arg4;\n\n\n if (getKey() == null) {\n\n Object o = null;\n\n if (getScope().equals(\"session\")) {\n\n o = pageContext.getAttribute(getName(), pageContext.SESSION_SCOPE);\n\n } else if (getScope().equals(\"request\")) {\n\n o = pageContext.getAttribute(getName(), pageContext.REQUEST_SCOPE);\n\n } else if (getScope().equals(\"page\")) {\n\n o = pageContext.getAttribute(getName(), pageContext.PAGE_SCOPE);\n\n }\n\n if (o != null) {\n\n try {\n\n String _property = getProperty();\n String innerPropertyName, innerGetterName;\n Method _method;\n\n while (_property.indexOf(\".\") > 0) {\n\n innerPropertyName = _property.substring(0, _property.indexOf(\".\"));\n innerGetterName = \"get\" + innerPropertyName.substring(0,1).toUpperCase() + innerPropertyName.substring(1);\n\n _method = o.getClass().getMethod(innerGetterName, null);\n\n o = _method.invoke(o, null);\n\n _property = _property.substring(_property.indexOf(\".\") +1);\n }\n\n String getterName = \"get\" + _property.substring(0,1).toUpperCase() + _property.substring(1);\n\n Method method = o.getClass().getMethod(getterName, null);\n\n if (method.getReturnType() == String.class) {\n String messageKey = (String)method.invoke(o, null);\n\n setKey(messageKey);\n }\n\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (SecurityException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n }\n }\n\n // Retrieve the message string we are looking for\n String message = RequestUtils.message(pageContext, this.bundle,\n this.localeKey, this.key, args);\n if (message == null) {\n message = key;\n }\n\n return message;\n }", "public String getPropName() {\n return m_propName;\n }", "public String getPropertyName() {\n return this.propertyName;\n }", "public String getProperty();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();" ]
[ "0.68657994", "0.67341036", "0.651455", "0.644017", "0.64289063", "0.6426048", "0.63556904", "0.6234091", "0.6152162", "0.6121608", "0.60570836", "0.60476947", "0.60476947", "0.604701", "0.60440576", "0.60199654", "0.5962755", "0.59502906", "0.59402835", "0.592701", "0.5914432", "0.5913088", "0.59010243", "0.5862028", "0.5823214", "0.5802204", "0.5794694", "0.5784833", "0.5772319", "0.5768721", "0.5744398", "0.5708336", "0.568454", "0.566665", "0.566665", "0.5660291", "0.56440336", "0.5640614", "0.5636485", "0.5633634", "0.56044763", "0.5584242", "0.5583544", "0.5566714", "0.5566582", "0.5562317", "0.55545497", "0.55545497", "0.55545497", "0.55418134", "0.5534026", "0.55222446", "0.55053085", "0.5502562", "0.55001134", "0.5498952", "0.5489188", "0.5460194", "0.5453551", "0.5449015", "0.5445448", "0.5444084", "0.54277766", "0.5423142", "0.5419962", "0.54164904", "0.54151076", "0.5414559", "0.5409844", "0.5409661", "0.5404324", "0.5384963", "0.53757375", "0.537264", "0.5370246", "0.53698486", "0.5367503", "0.536645", "0.53547", "0.5347313", "0.53449816", "0.5343558", "0.5342415", "0.533113", "0.53270507", "0.5319817", "0.53190774", "0.531596", "0.53085446", "0.5306048", "0.5298534", "0.5294416", "0.52923626", "0.5291976", "0.5285187", "0.52849305", "0.5284827", "0.52829915", "0.5272335", "0.5272335", "0.5272335" ]
0.0
-1
A Buildable A is the same as B if a) it is of the same subclass (runtime class) b) it has the same name
public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Buildable other = (Buildable) obj; if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isMoreDerivedThan( Bootstrapper other )\n {\n return other.getClass().isAssignableFrom( getClass() );\n }", "@Override\n public abstract boolean isAssignableBy(TypeUsage other);", "public boolean assignableTo(Type other) throws LookupException;", "public abstract B copy();", "@Override\n public abstract boolean isAssignableBy(ResolvedType other);", "IClassBuilder getParent();", "B createB();", "public FactType objectifyToConstrainedBaseType(BaseValueRole br) throws DuplicateException {\r\n String nameWithCapital = Naming.withCapital(br.getRoleName());\r\n if (typeRepository.existsFactType(nameWithCapital)) {\r\n throw new DuplicateException(\"rolename of basetype is already in use as fact type name\");\r\n }\r\n\r\n FactType cbt;\r\n cbt = new FactType(nameWithCapital, br.getSubstitutionType(), this, br.getParent().getFactRequirement());\r\n typeRepository.putFactType(cbt);\r\n\r\n br.getParent().replaceBaseType(br, (ConstrainedBaseType) cbt.getObjectType());\r\n\r\n publisher.inform(this, \"newType\", null, cbt);\r\n fireListChanged();\r\n return cbt;\r\n }", "abstract Object build();", "private Boolean areCompatible(Class a, Class b) {\n return (a.isAssignableFrom(b) || b.isAssignableFrom(a));\n }", "public boolean isSubclassOf(ClassReference other) {\n\t\t//TODO: Review this code thoroughly, it hasn't been looked at in a while\n\t\tif (this.equals(other) || this.equals(NULL) || other.equals(NULL)) {\n\t\t\treturn true;\n\t\t}\n\t\tboolean isPrimitive = (primitive != Primitive.REFERENCE && other.primitive != Primitive.REFERENCE);\n\t\tboolean isReference = (primitive == Primitive.REFERENCE && other.primitive == Primitive.REFERENCE);\n\t\tif (isPrimitive && isReference) {\n\t\t\treturn false;\n\t\t} else if (isPrimitive) {\n\t\t\tif (other.primitive == Primitive.INT && INT_TYPES.contains(primitive)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (isReference) {\n\t\t\tQueue<ClassReference> tests = new LinkedList<>();\n\t\t\ttests.add(this);\n\t\t\twhile (!tests.isEmpty()) {\n\t\t\t\tClassReference test = tests.poll();\n\t\t\t\tif (!test.equals(OBJECT)) {\n\t\t\t\t\tJavaClass testClass = ClassStore.findClass(test);\n\t\t\t\t\tif (testClass != null) {\n\t\t\t\t\t\tClassReference superType = testClass.superType;\n\t\t\t\t\t\tif (superType.equals(other)) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttests.add(superType);\n\t\t\t\t\t\tfor (ClassReference interfaceType : testClass.interfaces) {\n\t\t\t\t\t\t\tif (interfaceType.equals(other)) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttests.add(interfaceType);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public abstract Binding getCommonType(Binding b);", "@Test\n public void equals() {\n Log logCopy = new LogBuilder(LOG_A).build();\n assertFalse(LOG_A == logCopy);\n\n // same object -> returns true\n assertTrue(LOG_A == LOG_A);\n\n // null -> returns false\n assertFalse(LOG_A == null);\n\n // different type -> returns false\n assertFalse(LOG_A.equals(5));\n\n // different log -> returns false\n assertFalse(LOG_A == LOG_B);\n\n // different exercise -> returns false\n Log editedLog = new LogBuilder(LOG_A).withExercise(VALID_EXERCISE_B).build();\n assertFalse(LOG_A == editedLog);\n\n // different reps -> returns false\n editedLog = new LogBuilder(LOG_A).withReps(VALID_REP_B_INT).build();\n assertFalse(LOG_A == editedLog);\n\n // different comment -> returns false\n editedLog = new LogBuilder(LOG_A).withComment(VALID_COMMENT_B_STR).build();\n assertFalse(LOG_A == editedLog);\n\n // different dateTime -> returns false\n editedLog = new LogBuilder(LOG_A).withDateTime(VALID_DATE_TIME_B).build();\n assertFalse(LOG_A == editedLog);\n }", "public static void main(String[] args) {\n\n A ab = new B();\n A ac = new C();\n C c = new C();\n C2 c2 = new C2();\n// ab = (C) ab;\n// ac = (B) ac;\n\n }", "public ITool getSuperClass();", "@Override\n\tpublic AbstractRelic makeCopy() {\n\t\treturn new NamelessWarRelicA();\n\t}", "Object getBase();", "@Override\n public AbstractRelic makeCopy() {\n return new Compendium();\n }", "@Override\n public boolean isSame(Bike other) {\n if (other == this) {\n return true;\n }\n\n return other != null\n && other.getName().equals(this.getName());\n }", "public boolean match(MindObject other){\n return other.isSubtypeOf(this) || isSubtypeOf(other);\n }", "boolean hasEnclosingInstance(ClassType encl);", "public abstract Object build();", "@Override\n protected void checkSubclass() {\n }", "public static boolean subtypeOf(Node a, Node b) {\n\t\tif ((a instanceof BoolType) && (b instanceof IntType)) return true;\n\t\telse if ((a instanceof IntType) && (b instanceof IntType)) return true;\n\t\telse if ((a instanceof VoidType) && (b instanceof VoidType)) return true;\n\t\telse if ((a instanceof BoolType) && (b instanceof BoolType)) return true;\n\t\telse if ((a instanceof NullType) && (b instanceof ClassType)) return true;\n\t\telse if ((a instanceof ClassType) && (b instanceof ClassType)) {\n\t\t\tSet<String> SuperA = ((ClassType) a).getSuperList(true);\n\t\t\tSet<String> SuperB = ((ClassType) b).getSuperList(true);\n\t\t\tSet<String> intersection = new HashSet<>(SuperA);\n\t\t\tintersection.retainAll(SuperB);\n\t\t\tif (!intersection.isEmpty()) return true;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n\tpublic void SubclassEqualIdEqualTest() {\n\t\tone = new ConcreteEntity(1);\n\t\ttwo = new ConcreteEntitySubclass(1);\n\t\tassertTrue(one.equals(two));\n\t\tassertTrue(two.equals(one));\n\t}", "public static void main(String[] args) {\n\t\t\tBook b2=Book.getinstanceof();\r\n\t\t\t\r\n\t\t\tBook b3=Book.getinstanceof();\r\n\t\t\tSystem.out.println(b2==b3);\r\n\t\t\r\n\t}", "public abstract Type treeCopy();", "boolean isDerived();", "public IBuildObject getParent();", "public interface CanKnowItsExactBuildingTypeTrait {\n /**\n * Is building boolean.\n *\n * @return the boolean\n */\n default boolean isBuilding() {\n return this instanceof Building;\n }\n\n /**\n * Is cannon boolean.\n *\n * @return the boolean\n */\n default boolean isCannon() {\n return this instanceof Cannon;\n }\n\n /**\n * Is inferno tower boolean.\n *\n * @return the boolean\n */\n default boolean isInfernoTower() {\n return this instanceof InfernoTower;\n }\n}", "TAbstractType getTarget();", "@Test\n public void testDifferentClassEquality() {\n }", "public static void main(String[] args) {\n\t \tAnimal an = new Animal();\r\n\t \tSystem.out.println(\"1: \"+(an instanceof Dog));//true \r\n\t \tDog d= new Dog();\r\n\t \tSystem.out.println(\"2: \"+(d instanceof Dog));\r\n\t \tAnimal b = new Dog();\r\n\t \tSystem.out.println(\"3: \"+(b instanceof Animal));\r\n\t \tSystem.out.println(\"4: \"+(b instanceof Dog));\r\n\t b.show();\r\n\t \t//Animal a = new Animal();\r\n\t \t\r\n\t \t\r\n\t \t//d.derivedfun();\r\n\t \tb.derivedfun();\r\n\t d.show();\r\n\t d.derivedfun();\r\n\t }", "public boolean cmp_new(Type other){\n if (this.dimension < other.dimension) return false;\n if (this.type != type.CLASS && this.type.equals(other.type)) return true;\n// System.out.println(\"this: \" + this.type);\n// System.out.println(\"other: \" + other.type);\n if (this.type == type.CLASS && other.type == type.CLASS && this.class_id.equals(other.class_id)) return true;\n return false;\n }", "protected void checkSubclass() {\n }", "boolean isSubclass(Concept x, Concept y);", "Object build();", "public static void main(String[] args) {\n// subClass[] classes = new subClass[1];\n// System.out.println(superClass.value);\n// System.out.println(subClass.value);\n subClass s = new subClass();\n s.lala();\n// superClass p = s;\n// System.out.println(s==p);\n// System.out.println(s.name);\n// System.out.println(s.value);\n// subClass.haha();\n// s.heihei();\n// System.out.println( p.name);\n// System.out.println(p.value);\n// p.haha();\n// p.heihei();\n\n }", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "protected boolean isInDerivedClass() {\n\t\treturn (getClass() != Main.class);\n\t}", "public abstract boolean isAssignable();", "abstract T build();", "public abstract Instance duplicate();", "public static void main(String[] args) {\n\n// ChildPrint childPrint = new ChildPrint();\n// childPrint.printName();\n\n// ChildOverridingPrivate child = new ChildOverridingPrivate();\n// child.printName();\n\n ParentCasting parent = new ParentCasting();\n ChildCasting child = new ChildCasting();\n\n ParentCasting obj1 = new ChildCasting();\n ChildCasting obj2 = (ChildCasting) new ParentCasting();\n\n\n }", "@Test\n public void testCheckCast() throws Exception {\n Class<?> mainClass = MainCheckCastSubClass.class;\n runTest(\n mainClass,\n ImmutableList.of(mainClass, SuperClass.class, SubClass.class),\n keepMainProguardConfiguration(mainClass),\n (ignoreMainClass, ignoreProgramClasses, inspector) -> {\n assertTrue(inspector.clazz(mainClass).isPresent());\n assertTrue(inspector.clazz(SubClass.class).isPresent());\n // SuperClass may have been merged with SubClass.\n inspector.forAllClasses(this::checkPresentWithDefaultConstructor);\n });\n }", "public static void main(String[] args) {\n B40 b = new B40(); // to not get an error above line should be in test\n A40 a = new A40();\n a = (A40) b;\n System.out.println(a);\n System.out.println(b);\n\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "public void testExtendsRebuild() {\n testExtendsRebuild(new LinkerDef());\n }", "public static void main(String[] args) {\n inheritance_Equals();\n }", "public boolean uniSameAs(Type other, TypeFixer fixer) throws LookupException;", "public void test_inheritence() {\n assertTrue(\"invalid inheritence.\", Task.class.getSuperclass() == BaseTaskEntity.class);\n }", "Inheritance createInheritance();", "@Test public void testInheritance () {\n ArrayList<String> point = new ArrayList<String>(\n Arrays.asList(\"qimpp\", \"Point\") );\n GNode pointNode = treeManager.dereference(point);\n\n ArrayList<String> colorPoint = new ArrayList<String>(\n Arrays.asList(\"qimpp\", \"ColorPoint\") );\n GNode colorNode = treeManager.dereference(colorPoint);\n\n assertTrue( colorNode != null );\n assertTrue( pointNode != null );\n GNode g = (GNode)(treeManager.getParent(colorNode).getProperty(\"ClassDeclaration\"));\n \n\n assertTrue( treeManager.getParent(colorNode) == pointNode );\n\n //\n // Test distinction between package names\n //\n\n ArrayList<String> otherColor =\n new ArrayList<String>( Arrays.asList(\"org\", \"fake\",\n \"ColorPoint\"));\n GNode otherColorNode = treeManager.dereference(otherColor);\n\n assertTrue( otherColorNode != null );\n assertTrue( treeManager.getParent( otherColorNode )\n != treeManager.getParent(colorNode) );\n assertTrue( otherColorNode != colorNode );\n }", "boolean newequals(DataBT a, DataBT b) \n\t {\n\t \tSystem.out.println(\"!!\");\n\t \t\n\t /*1. both empty */\n\t if ((IBinTree)a instanceof MtBT && (IBinTree)b instanceof MtBT)\n\t return true;\n\t System.out.println(\"1 \" + a.data);\n\t \t \n\t /* 2. both non-empty -> compare them */\n\t if ( !((IBinTree)a instanceof MtBT) && !((IBinTree)b instanceof MtBT)) {\n\n\t \tboolean check = (a.data == b.data);\n\t\t System.out.println(\"1112\");\n\t\t \n\t\t if(a.left instanceof MtBT && b.left instanceof MtBT);else\n\t\t if((a.left instanceof MtBT) != (a.left instanceof MtBT))check = false;else\n\t \tif(!newequals((DataBT)a.left, (DataBT)b.left))check = false;\n\t\t \n\t\t \n\t\t System.out.println(\"1113\");\n\t\t \n\t\t \n\t\t if(a.right instanceof MtBT && b.right instanceof MtBT);else\n\t\t\t if((a.right instanceof MtBT) != (a.right instanceof MtBT))check = false;else\n\t\t if(!newequals((DataBT)a.right, (DataBT)b.right))check = false;\n\n\t\t System.out.println(\"112\");\n\n\t\t return (check);\n\t }\n\t System.out.println(\"2\");\n\t \n\t /* 3. one empty, one not -> false */\n\t if ( ((IBinTree)a instanceof MtBT) && (!((IBinTree)b instanceof MtBT))) {\n\t \treturn false;\n\t }\n\t System.out.println(\"3\");\n\t return false;\n\t }", "@Override\r\n\tprotected B clone() throws CloneNotSupportedException {\r\n\t\tB clone = (B)super.clone();\r\n//\t\tclone.a = new A();\r\n\t\treturn clone;\r\n\t}", "boolean classifyAsRefType(String name, TypeImpl superType) {\n switch (name) {\n case CAS.TYPE_NAME_BOOLEAN:\n case CAS.TYPE_NAME_BYTE:\n case CAS.TYPE_NAME_SHORT:\n case CAS.TYPE_NAME_INTEGER:\n case CAS.TYPE_NAME_LONG:\n case CAS.TYPE_NAME_FLOAT:\n case CAS.TYPE_NAME_DOUBLE:\n case CAS.TYPE_NAME_STRING:\n // case CAS.TYPE_NAME_JAVA_OBJECT:\n // case CAS.TYPE_NAME_MAP:\n // case CAS.TYPE_NAME_LIST:\n return false;\n }\n // superType is null for TOP, which is a Ref type\n if (superType != null && superType.getName().equals(CAS.TYPE_NAME_STRING)) { // can't compare to\n // stringType - may\n // not be set yet\n return false;\n }\n return true;\n }", "boolean hasEnclosingInstanceImpl(ClassType encl);", "@Override\n public Object clone() throws CloneNotSupportedException {\n\t return new TypeCloner(this, super.clone()).invoke();\n\t}", "@Override\n public boolean equals(Object otro) {\n if (otro.getClass().getName().equals(this.getClass().getName())) {\n return true;\n } else {\n return false;\n }\n }", "@Test\n public void equals() {\n Plan aliceCopy = new PersonBuilder(ALICE).build();\n assertTrue(ALICE.equals(aliceCopy));\n\n // same object -> returns true\n assertTrue(ALICE.equals(ALICE));\n\n // null -> returns false\n assertFalse(ALICE.equals(null));\n\n // different type -> returns false\n assertFalse(ALICE.equals(5));\n\n // different plan -> returns false\n assertFalse(ALICE.equals(BOB));\n\n // different name -> returns false\n Plan editedAlice = new PersonBuilder(ALICE).withName(VALID_NAME_BOB).build();\n assertFalse(ALICE.equals(editedAlice));\n\n // different address -> returns false\n editedAlice = new PersonBuilder(ALICE).withAddress(VALID_ADDRESS_BOB).build();\n assertFalse(ALICE.equals(editedAlice));\n\n // different tags -> returns false\n editedAlice = new PersonBuilder(ALICE).withTags(VALID_TAG_HUSBAND).build();\n assertFalse(ALICE.equals(editedAlice));\n }", "@Override\n public JDefinedClass apply(String nodeName, JsonNode node, JsonNode parent, JDefinedClass instanceClass, Schema currentSchema) {\n JDefinedClass builderClass;\n\n try {\n String builderName = ruleFactory.getNameHelper().getBuilderClassName(instanceClass);\n builderClass = instanceClass._class(JMod.PUBLIC + JMod.STATIC, builderName);\n } catch (JClassAlreadyExistsException e) {\n return e.getExistingClass();\n }\n\n // Determine which builder (if any) this builder should inherit from\n JClass parentBuilderClass = null;\n JClass parentClass = instanceClass._extends();\n if (!(parentClass.isPrimitive() || reflectionHelper.isFinal(parentClass) || Objects.equals(parentClass.fullName(), \"java.lang.Object\"))) {\n parentBuilderClass = reflectionHelper.getBuilderClass(parentClass);\n }\n\n // Determine the generic type 'T' that the builder will create instances of\n JTypeVar instanceType = builderClass.generify(\"T\", instanceClass);\n\n // For new builders we need to create an instance variable and 'build' method\n // for inheriting builders we'll receive these from the superType\n if (parentBuilderClass == null) {\n\n // Create the instance variable\n JFieldVar instanceField = builderClass.field(JMod.PROTECTED, instanceType, \"instance\");\n\n // Create the actual \"build\" method\n JMethod buildMethod = builderClass.method(JMod.PUBLIC, instanceType, \"build\");\n\n JBlock body = buildMethod.body();\n JVar result = body.decl(instanceType, \"result\");\n body.assign(result, JExpr._this().ref(instanceField));\n body.assign(JExpr._this().ref(instanceField), JExpr._null());\n body._return(result);\n\n // Create the noargs builder constructor\n generateNoArgsBuilderConstructor(instanceClass, builderClass);\n } else {\n // Declare the inheritance\n builderClass._extends(parentBuilderClass);\n \n JMethod buildMethod = builderClass.method(JMod.PUBLIC, instanceType, \"build\");\n buildMethod.annotate(Override.class);\n\n JBlock body = buildMethod.body();\n body._return(JExpr.cast(instanceType, JExpr._super().invoke(\"build\")));\n\n // Create the noargs builder constructor\n generateNoArgsBuilderConstructor(instanceClass, builderClass);\n }\n\n return builderClass;\n }", "@Test\n @Order(2)\n void testClassIdClash() throws ConstructableRegistryException {\n final long oldClassId = ConstructableExample.CLASS_ID;\n ConstructableExample.CLASS_ID = SubpackageConstructable.CLASS_ID;\n assertThrows(ConstructableRegistryException.class, () -> mainReg.registerConstructables(PACKAGE_PREFIX));\n // return the old CLASS_ID\n ConstructableExample.CLASS_ID = oldClassId;\n // now it should be fine again\n mainReg.registerConstructables(PACKAGE_PREFIX);\n }", "public void testGeneralizationImpl_CorrectType() {\n assertEquals(\"equal value expected.\",\n GeneralizationImpl.class.getSuperclass(), RelationshipAbstractImpl.class);\n assertTrue(\"true value expected.\",\n Generalization.class.isAssignableFrom(GeneralizationImpl.class));\n }" ]
[ "0.5964755", "0.5729604", "0.56327504", "0.55312437", "0.54431546", "0.5425587", "0.538179", "0.5352401", "0.53522414", "0.5266153", "0.518868", "0.51824105", "0.5181416", "0.5178411", "0.5168664", "0.51620275", "0.51573694", "0.51336646", "0.51309896", "0.51274216", "0.51248115", "0.51207566", "0.5115431", "0.50951517", "0.5065767", "0.506478", "0.50619006", "0.5052097", "0.5047941", "0.5039334", "0.50217015", "0.50095344", "0.50040585", "0.50027674", "0.4996363", "0.4992537", "0.49908936", "0.49900493", "0.4975232", "0.4975232", "0.4975232", "0.4975232", "0.4975232", "0.4975232", "0.4975232", "0.4975232", "0.4975232", "0.4975232", "0.4975232", "0.4975232", "0.4975232", "0.4975232", "0.4975232", "0.4975232", "0.4975232", "0.4957", "0.4957", "0.4957", "0.49554956", "0.49554956", "0.49554956", "0.49554956", "0.49554956", "0.49554956", "0.49554956", "0.49554956", "0.49554956", "0.49554956", "0.49554956", "0.49554956", "0.49554956", "0.49554956", "0.4941576", "0.49401152", "0.4939067", "0.49351674", "0.49337202", "0.49306437", "0.4923196", "0.49228287", "0.49228287", "0.49228287", "0.49172786", "0.49172786", "0.49172786", "0.49157852", "0.49136436", "0.49044022", "0.48898065", "0.4888381", "0.48830116", "0.4877479", "0.48693824", "0.48648742", "0.48614103", "0.4860571", "0.48549607", "0.4853131", "0.4847837", "0.48441485", "0.48418438" ]
0.0
-1
Mandatory. Map duty distribution and delegation responsibilities to a consumer
public EventMapper onCapture(final Consumer<Set<Duty>> consumer) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumer(consumer, MappingEvent.capture); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DistributorConnector {\n\n /**\n * Lets the factory know what the current demand of the distributor is.\n *\n * @param demandPerType the demand of the distributer by type\n */\n public void setDemand(Map<ClockType, Integer> demandPerType);\n\n /**\n * Registers a listener for clock updates in the distributor stock.\n *\n * @param listener the listener to be registered\n * @return a subscription for the registration that can be cancelled\n */\n public Subscription subscribeForDistributorDeliveries(ClockListener listener);\n\n /**\n * Removes the given clock from the distributor stock.\n *\n * @param removedClock the clock to be removed.\n */\n public void removeClockFromStock(Clock removedClock);\n}", "public void configure() {\n\t\tfrom(\"seda:vxf.onboard?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"onBoardVxFToMANOProvider\") //returns exception or nothing\n\t\t.log(\"VNFD Onboarded Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"VNFD Onboarding failed!\");\n\n\t\tfrom(\"seda:nsd.onboard?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"onBoardNSDToMANOProvider\") //returns exception or nothing\n\t\t.log(\"NSD Onboarded Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NSD Onboarding failed!\");\t\t\n\n\t\t\n\t\tfrom(\"seda:nsd.deploy?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"deployNSDToMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS deployed Successfully\").stop()\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS deployment failed!\").stop();\t\t\n\n\t\tfrom(\"seda:nsd.deployment.complete?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"terminateNSFromMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS completed Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS completion failed!\").stop();\n\n\t\tfrom(\"seda:nsd.deployment.delete?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"deleteNSFromMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS deleted Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS deletion failed!\").stop();\n\t\t\n\t\t//from(\"timer://checkAndDeployTimer?delay=2m&period=120000\").bean(new MANOController(),\"checkAndDeployExperimentToMANOProvider\").stop();\n\t\t//from(\"timer://checkAndTerminateTimer?delay=2m&period=120000\").bean(new MANOController(),\"checkAndTerminateExperimentToMANOProvider\").stop();\n\t\t\n\t\tfrom(\"timer://checkAndUpdateRunningDeploymentDescriptors?delay=1m&period=120000\").bean(MANOController.class,\"checkAndUpdateRunningDeploymentDescriptors\").stop();\n\t\t\n\t}", "IPolicySubscriber withSubscriber();", "void registerOrderConsumer(OrderConsumer orderConsumer);", "public interface StrongDomainConsumer {\n \n /**\n * Signal the end of the output stream.\n * \n */\n public void close();\n \n /**\n * Consume the next strong domain.\n * \n * @param domain \n */\n public void consume(IdentifiableIDSet domain);\n \n /**\n * Signal the beginning of the output stream.\n * \n */\n public void open();\n}", "RequestSender onInform(Consumer<Message> consumer);", "protected CommunicationsHandler(){}", "public CertAuthClient addDistributionAuthetication(Consumer<Communique> distAuth)\n\t\t{\n\t\t\tthis.distAuth = this.distAuth.andThen(distAuth);\n\t\t\treturn this;\n\t\t}", "public interface ProducerService {\n}", "public interface MessageServiceInjector {\n public Consumer getConsumer() ;\n}", "public interface Provider {\n public Sender produce();\n}", "private void calculateDebtDistribution() {\n calculateDebtDistribution(false);\n }", "public interface UnderwriterService {\n LoanDecision underwriteLoanApplication(LoanApplication application) throws LoanException;\n}", "public void interactWhenApproaching() {\r\n\t\t\r\n\t}", "Consumer getConsumer();", "public interface DomainProcessorDelegate extends CoreDelegate {\n\n /**\n * Returns a factory that creates a step to wait for a pod in the specified namespace to be ready.\n *\n * @param namespace the namespace for the pod\n * @return a step-creating factory\n */\n PodAwaiterStepFactory getPodAwaiterStepFactory(String namespace);\n\n /**\n * Returns a factory that creates a step to wait for a pod in the specified namespace to be ready.\n *\n * @param namespace the namespace for the pod\n * @return a step-creating factory\n */\n JobAwaiterStepFactory getJobAwaiterStepFactory(String namespace);\n\n /**\n * Returns a factory that creates a step to wait for a pvc in the specified namespace to be bound.\n *\n * @return a step-creating factory\n */\n PvcAwaiterStepFactory getPvcAwaiterStepFactory();\n\n /**\n * Returns true if the namespace is running.\n *\n * @param namespace the namespace to check\n * @return the 'running' state of the namespace\n */\n boolean isNamespaceRunning(String namespace);\n\n /**\n * Creates a new FiberGate.\n *\n * @return the created instance\n */\n FiberGate createFiberGate();\n\n @Nonnull\n default MakeRightDomainOperation createMakeRightOperation(MakeRightExecutor executor, DomainPresenceInfo info) {\n return new MakeRightDomainOperationImpl(executor, this, info);\n }\n\n @Nonnull\n default MakeRightClusterOperation createMakeRightOperation(MakeRightExecutor executor, ClusterPresenceInfo info) {\n return new MakeRightClusterOperationImpl(executor, this, info);\n }\n\n DomainNamespaces getDomainNamespaces();\n\n void updateDomainStatus(V1Pod pod, DomainPresenceInfo info);\n}", "public interface MedicalForegroundService {\n\n void loadMedicalData(Consumer<HandleResult> callback);\n\n void saveMedicalData(Medical medical, Consumer<HandleResult> callback);\n\n void setTemp(String key, String tempValue);\n\n String getTemp(String key);\n\n void clearTemp(boolean clearContact);\n\n Doctor getDoctorById(String doctorId);\n\n String getNextExpertDoctorId();\n\n boolean isExpertDoctor(Doctor doctor);\n\n Medical getMedicalData();\n\n void login114();\n\n void listMedicalResource(String hospitalId, String departmentId, String date, boolean amPm, Consumer<HandleResult> callback);\n\n void start(TargetDate targetDate, Consumer<HandleResult> stepCallback);\n\n void submitVerifyCode(String verifyCode);\n}", "@Override\r\n\tpublic void personalLoanInterest() {\n\t\t\r\n\t}", "private void chargeInterest() {\n for(Map.Entry<String, Customer> entry : customers.entrySet()) {\n Customer customer = entry.getValue();\n payInterest(customer);\n }\n //collect interests from hasLoans\n for(Map.Entry<String, Customer> entry : hasloans.entrySet()) {\n Customer customer = entry.getValue();\n collectInterest(customer);\n }\n\n }", "public interface Loan {\n\n\t@Gateway(requestChannel = \"readChannel\")\n\tvoid getCust(List<Customer> customers);\n\n}", "public interface BenefitAvailabilityPolicy {\n\n\t/**\n\t * Calculates if an account is eligible to receive benefits for a dining.\n\t * @param account the account of the member who dined\n\t * @param dining the dining event\n\t * @return benefit availability status\n\t */\n\tpublic boolean isBenefitAvailableFor(Account account, Dining dining);\n}", "protected void doAdditionalChecking(Contributor contr) {\n }", "public interface EOAssociationConnector{\n /**\n * Invoked when one of the receiver's subcontrollers is disposed as a transient controller. Instructs the receiver to assume responsibility for managing the subcontroller's EOAssociation, association.\n */\n abstract void takeResposibilityForConnectionOfAssociation(com.webobjects.eointerface.EOAssociation association);\n\n}", "protected abstract void applyPrinciple();", "@ProviderType\npublic interface CoordinatorService {\n\n enum Type {\n /** Entities that process samples from the queue and store the result in a datastore. */\n PROCESSOR,\n /** Entities that produce samples. */\n PRODUCER;\n }\n\n /**\n * Returns the maximum amount of replicas allowed for a given type of service.\n * \n * @param type the type of service to get the replica-count for, cannot be <code>null</code>;\n * @return the maximum amount of replicas, &gt;= 0.\n */\n int getMaxReplicaCount(Type type);\n\n /**\n * Returns the current amount of replicas for a given type of service.\n * \n * @param type the type of service to get the replica-count for, cannot be <code>null</code>;\n * @return the current amount of replicas, &gt;= 0.\n */\n int getReplicaCount(Type type);\n\n /**\n * Sets the desired amount of replicas for a given type of service.\n * \n * @param type the type of service to set the replica-count for, cannot be <code>null</code>;\n * @param number the new desired number of replicas, &gt;= 0. Negative values or values beyond the maximum number of replicas are ignored.\n * @return <code>true</code> if the replica count is changed, <code>false</code> otherwise.\n */\n boolean setReplicaCount(Type type, int number);\n}", "public interface AGIssuer extends DoubleDispatchServer {\n public IssuerResponse processAGRequest(AGRequest authorizationGrantRequest);\n}", "RequestSender onRefuse(Consumer<Message> consumer);", "public interface Management {\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n void createHandler(final String handlerClassName);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n void deleteHandler(final String handlerName);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n void updateHandler(final String handlerName);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n Logger getLogger(final String loggerName);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n void closeHandler(final String handlerName);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n Handler getHandler(final String handlerName);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n Map<String, Logger> loggers();\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n Map<String, Handler> handlers();\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n ClassLoaderLogInfo getClassLoaderLogInfo();\n}", "public interface RequestSender {\n\n /**\n * Adds a message consumer to be invoked when an AGREE response is received.\n * There may be more than one message consumer, and all message consumers will be invoked when this condition is met.\n * The Future will be marked as completed once the message consumer(s) are invoked.\n *\n * @param consumer Message consumer.\n * @return This request sender.\n */\n RequestSender onAgree(Consumer<Message> consumer);\n\n /**\n * Adds a message consumer to be invoked when a REFUSE response is received.\n * There may be more than one message consumer, and all message consumers will be invoked when this condition is met.\n * The Future will be marked as completed once the message consumer(s) are invoked.\n *\n * @param consumer Message consumer.\n * @return This request sender.\n */\n RequestSender onRefuse(Consumer<Message> consumer);\n\n /**\n * Adds a message consumer to be invoked when a FAILURE response is received.\n * There may be more than one message consumer, and all message consumers will be invoked when this condition is met.\n * The Future will be marked as completed once the message consumer(s) are invoked.\n *\n * @param consumer Message consumer.\n * @return This request sender.\n */\n RequestSender onFailure(Consumer<Message> consumer);\n\n /**\n * Adds a message consumer to be invoked when an INFORM message is received.\n * There may be more than one message consumer, and all message consumers will be invoked when this condition is met.\n * The Future will be marked as completed once the message consumer(s) are invoked.\n *\n * @param consumer Message consumer.\n * @return This request sender.\n */\n RequestSender onInform(Consumer<Message> consumer);\n\n /**\n * Adds a Runnable to be invoked when this operation times out.\n * There may be more than one timeout Runnable, but only the one associated with the triggered timeout is invoked.\n * The Future will be marked as completed once the Runnable is invoked.\n *\n * @param timeout Timeout (ms).\n * @param runnable Runnable.\n * @return This request sender.\n */\n RequestSender onTimeout(long timeout, Runnable runnable);\n\n /**\n * Adds a message consumer to be invoked when a message that is not one of AGREE, REFUSE, FAILURE, INFORM is received.\n * There may be more than one message consumer, and all message consumers will be invoked when this condition is met.\n * The Future will be marked as completed once the message consumer(s) are invoked.\n *\n * @param consumer Message consumer.\n * @return This request sender.\n */\n RequestSender otherwise(Consumer<Message> consumer);\n\n /**\n * Sends the message asynchronously.\n * The returned Future will return the response message for any of the message types which have a message consumer associated.\n *\n * @return A Future returning the response message.\n */\n Future<Message> send();\n\n /**\n * Sends the message synchronously.\n *\n * @return A response message for any of the message types which have a message consumer associated, null if the operation timed out.\n */\n Message sendAndWait();\n}", "public interface PrivateDomainApi {\n\n /**\n * Returns the specification applicable to a particular server/cluster combination.\n *\n * @param serverName the name of the server\n * @param clusterName the name of the cluster; may be null for a non-clustered server\n * @param clusterSpec the configuration for the cluster in a Kubernetes resource\n * @return the effective configuration for the server\n */\n EffectiveServerSpec getServer(String serverName, String clusterName, ClusterSpec clusterSpec);\n\n /**\n * Returns the specification applicable to a particular cluster.\n *\n * @param clusterSpec the spec of the cluster; may be null or empty if no applicable cluster.\n * @return the effective configuration for the cluster\n */\n EffectiveClusterSpec getCluster(ClusterSpec clusterSpec);\n\n /**\n * Returns the number of replicas to start for the specified cluster.\n *\n * @param clusterSpec the spec of the cluster; may be null or empty if no applicable cluster.\n * @return the result of applying any configurations for this value\n */\n int getReplicaCount(ClusterSpec clusterSpec);\n\n /**\n * Returns the number of replicas to start for the specified cluster.\n *\n * @param clusterName the name of the cluster\n * @param clusterSpec the spec of the cluster; may be null or empty if no applicable cluster.\n */\n void setReplicaCount(String clusterName, ClusterSpec clusterSpec, int replicaLimit);\n\n /**\n * Returns the maximum number of unavailable replicas for the specified cluster.\n *\n * @param clusterSpec the spec of the cluster; may be null or empty if no applicable cluster.\n * @return the result of applying any configurations for this value\n */\n int getMaxUnavailable(ClusterSpec clusterSpec);\n\n /**\n * Returns the minimum number of replicas for the specified cluster.\n *\n * @param clusterSpec the spec of the cluster; may be null or empty if no applicable cluster.\n * @return the result of applying any configurations for this value\n */\n int getMinAvailable(ClusterSpec clusterSpec);\n\n /**\n * Get the maximum number of servers to start concurrently.\n * @param clusterSpec the spec of the cluster; may be null or empty if no applicable cluster.\n */\n int getMaxConcurrentStartup(ClusterSpec clusterSpec);\n\n /**\n * Get the maximum number of servers to shutdown concurrently.\n * @param clusterSpec the spec of the cluster; may be null or empty if no applicable cluster.\n */\n int getMaxConcurrentShutdown(ClusterSpec clusterSpec);\n}", "RequestSender onAgree(Consumer<Message> consumer);", "public interface DependenciesHandler {\n\n /**\n * Configures dependency management for the dependency identified by the given {@code id}. The id is a string\n * of the form {@code group:name:version}.\n *\n * @param id the id of the dependency\n */\n void dependency(String id);\n\n /**\n * Configures dependency management for the dependency identified by the given {@code id}. The id is a map with\n * {@code group}, {@code name}, and {@code version} entries.\n *\n * @param id the id of the dependency\n */\n void dependency(Map<String, String> id);\n\n /**\n * Configures dependency management for the dependency identified by the given {@code id}. The dependency\n * management can be further configured using the given {@code closure} that is called with a {@link\n * DependencyHandler} as its delegate. The id is a string of the form {@code group:name:version}.\n *\n * @param id the id of the dependency\n * @param closure the closure used to further configure the dependency management\n * @see DependencyHandler\n */\n void dependency(String id, Closure closure);\n\n /**\n * Configures dependency management for the dependency identified by the given {@code id}. The dependency\n * management can be further configured using the given {@code action}. The id is a string of the form\n * {@code group:name:version} or a map with {@code group}, {@code name}, and {@code version} entries.\n *\n * @param id the id of the dependency\n * @param action the action used to further configure the dependency management\n * @see DependencyHandler\n */\n void dependency(String id, Action<DependencyHandler> action);\n\n /**\n * Configures dependency management for the dependency identified by the given {@code id}. The dependency\n * management can be further configured using the given {@code closure} that is called with a {@link\n * DependencyHandler} as its delegate. The id is a map with {@code group}, {@code name}, and {@code version}\n * entries.\n *\n * @param id the id of the dependency\n * @param closure the closure used to further configure the dependency management\n * @see DependencyHandler\n */\n void dependency(Map<String, String> id, Closure closure);\n\n /**\n * Configures dependency management for the dependency identified by the given {@code id}. The dependency\n * management can be further configured using the given {@code action}. The id is a map with {@code group},\n * {@code name}, and {@code version} entries.\n *\n * @param id the id of the dependency\n * @param action the action used to further configure the dependency management\n * @see DependencyHandler\n */\n void dependency(Map<String, String> id, Action<DependencyHandler> action);\n\n /**\n * Configures dependency management for a set of dependencies with the same {@code group} and {@code version}\n * as specified by the given {@code setId}. The id is a string of the form {@code group:version}. Entries are added\n * to the set using the given {@code closure} that is called with a {@link DependencySetHandler} as its delegate.\n *\n * @param setId the id of the set\n * @param closure the closure used to configure the entries\n * @see DependencySetHandler\n */\n void dependencySet(String setId, Closure closure);\n\n /**\n * Configures dependency management for a set of dependencies with the same {@code group} and {@code version}\n * as specified by the given {@code setId}. The id is a string of the form {@code group:version}. Entries are added\n * to the set using the given {@code action}.\n *\n * @param setId the id of the set\n * @param action the action used to configure the entries\n * @see DependencySetHandler\n */\n void dependencySet(String setId, Action<DependencySetHandler> action);\n\n /**\n * Configures dependency management for a set of dependencies with the same {@code group} and {@code version} as\n * specified by the given {@code setId}. The id is a map with {@code group} and {@code version} entries. Entries\n * are added to the set using the given {@code closure} that is called with a {@link DependencySetHandler} as its\n * delegate.\n *\n * @param setId a map containing the {@code group} and {@code version} of the set of dependencies\n * @param closure the closure used to configure the entries\n * @see DependencySetHandler\n */\n void dependencySet(Map<String, String> setId, Closure closure);\n\n /**\n * Configures dependency management for a set of dependencies with the same {@code group} and {@code version} as\n * specified by the given {@code setId}. The id is a map with {@code group} and {@code version} entries. Entries\n * are added to the set using the given {@code action}.\n *\n * @param setId a map containing the {@code group} and {@code version} of the set of dependencies\n * @param action the action used to configure the entries\n * @see DependencySetHandler\n */\n void dependencySet(Map<String, String> setId, Action<DependencySetHandler> action);\n\n}", "protected Responder() {}", "public interface BoatRatingInteractor {\n public void upboat(BoatRatingListener listener);\n\n public void downboat(BoatRatingListener listener);\n}", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "public interface DiscountStrategy {\n /**\n * 会员折扣策略\n * @param level\n * @param money\n * @return\n */\n double getDiscountPrice(int level,double money);\n}", "public interface Accessories {\n List<Accessory> accessories();\n PairedConnection getPairedConnection();\n Optional<Accessory> find(int aid);\n void addListener(Consumer<EventableCharacteristic> listener);\n void removeListener(Consumer<EventableCharacteristic> listener);\n void removeAllListeners();\n}", "@ThreadSafe\npublic interface AuthorizationProvider {\n\n public static String SENTRY_PROVIDER = \"sentry.provider\";\n\n /***\n * Returns validate subject privileges on given Authorizable object\n *\n * @param subject: UserID to validate privileges\n * @param authorizableHierarchy : List of object according to namespace hierarchy.\n * eg. Server->Db->Table or Server->Function\n * The privileges will be validated from the higher to lower scope\n * @param actions : Privileges to validate\n * @param roleSet : Roles which should be used when obtaining privileges\n * @return\n * True if the subject is authorized to perform requested action on the given object\n */\n public boolean hasAccess(Subject subject, List<? extends Authorizable> authorizableHierarchy,\n Set<? extends Action> actions, ActiveRoleSet roleSet);\n\n /***\n * Get the GroupMappingService used by the AuthorizationProvider\n *\n * @return GroupMappingService used by the AuthorizationProvider\n */\n public GroupMappingService getGroupMapping();\n\n /***\n * Validate the policy file format for syntax and semantic errors\n * @param strictValidation\n * @throws SentryConfigurationException\n */\n public void validateResource(boolean strictValidation) throws SentryConfigurationException;\n\n /***\n * Returns the list privileges for the given subject\n * @param subject\n * @return\n * @throws SentryConfigurationException\n */\n public Set<String> listPrivilegesForSubject(Subject subject) throws SentryConfigurationException;\n\n /**\n * Returns the list privileges for the given group\n * @param groupName\n * @return\n * @throws SentryConfigurationException\n */\n public Set<String> listPrivilegesForGroup(String groupName) throws SentryConfigurationException;\n\n /***\n * Returns the list of missing privileges of the last access request\n * @return\n */\n public List<String> getLastFailedPrivileges();\n\n /**\n * Frees any resources held by the the provider\n */\n public void close();\n}", "@Override\n public boolean announce() {\n\taddDataConsumerInfo(dataConsumer);\n return true;\n }", "public interface MetricsService {\n\n /**\n * Get metrics data\n * @param request\n * @return\n */\n GetMetricsResponse getMetrics(GetMetricsRequest request);\n\n /**\n * Create metrics\n * @param request\n * @return\n */\n CreateMetricsResponse createMetrics(CreateMetricsRequest request);\n}", "@Test (dependsOnMethods = \"consumerWithForEach\")\n public void consumerChaining(){\n Consumer <String> dbConsumer = s -> System.out.println(\"Logging to db :: \" + s);\n Consumer <String> consoleConsumer = s -> System.out.println(\"Logging to console :: \" + s);\n Consumer <String> dbConsoleConsumer = dbConsumer.andThen(consoleConsumer);\n allDrivers.forEach(dbConsoleConsumer);\n allDrivers.forEach(dbConsumer.andThen(consoleConsumer));\n\n Map<String, Consumer<String> > consumerMap = new HashMap<>();\n consumerMap.put(\"db\",dbConsumer);\n consumerMap.put(\"console\",consoleConsumer);\n consumerMap.put(\"dbConsole\", dbConsoleConsumer);\n\n allDrivers.forEach(consumerMap.get(System.getProperty(\"consumer-type\")));\n\n\n }", "public EventMapper onRelease(final Consumer<Set<Duty>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumer(consumer, MappingEvent.release);\n\t\treturn this;\n\t}", "@Override\n public void scanActuatorsParked() {\n }", "public interface BusDistributorService extends Services<BusDistributor,Long> {\r\n}", "public OrderRoutingConsumerInterceptor(OrderRoutingConsumer consumer)\n {\n cmiObject = consumer;\n }", "public interface MemberStrategy {\r\n /**\r\n * 计算图书的价格\r\n * @param booksPrice 图书的原价\r\n * @return 计算出打折后的价格\r\n */\r\n public double calcPrice(double booksPrice);\r\n}", "public interface BeverageController {\n /**\n * Beverage controller states.\n * \n * @author Christopher D. Canfield\n */\n public enum State {\n READY,\n MAKING_DRINK\n }\n \n /**\n * Returns the current state of the beverage controller.\n * @return the current state of the beverage controller.\n */\n public State state();\n \n /**\n * Submits a drink order to the BeverageController. The controller will notify its observers of\n * its progress using the BeverageControllerObserver callback methods.\n * @param order the drink order to process.\n */\n public void submitOrder(BeverageOrder order);\n \n /**\n * Adds the specified observer to this beverage controller.\n * @param observer the observer to add.\n */\n public void addObserver(BeverageControllerObserver observer);\n \n /**\n * Removes the specified observer from this beverage controller. If the \n * @param observer the observer to remove.\n */\n public void removeObserver(BeverageControllerObserver observer);\n}", "public interface DistributorManager {\n\n List<DistShopDTO> queryShop(DistShopQTO distShopQTO, String appKey) throws MarketingException;\n \n GainsSetDTO getGainsSet(String appKey) throws MarketingException;\n \n List<ItemSkuDistPlanDTO> getItemSkuDistPlanList(Long itemId , String appKey) throws MarketingException;\n \n}", "public interface SpecialGovernanceActionInterface\n{\n /**\n * Link elements as peer duplicates. Create a simple relationship between two elements.\n * If the relationship already exists, the properties are updated.\n *\n * @param userId caller's userId\n * @param metadataElement1GUID unique identifier of the metadata element at end 1 of the relationship\n * @param metadataElement2GUID unique identifier of the metadata element at end 2 of the relationship\n * @param statusIdentifier what is the status of this relationship (negative means untrusted, 0 means unverified and positive means trusted)\n * @param steward identifier of the steward\n * @param stewardTypeName type of element used to identify the steward\n * @param stewardPropertyName property name used to identify steward\n * @param source source of the duplicate detection processing\n * @param notes notes for the steward\n * @param setKnownDuplicate boolean flag indicating whether the KnownDuplicate classification should be set on the linked entities.\n * @throws InvalidParameterException the unique identifier's of the metadata elements are null or invalid in some way; the properties are\n * not valid for this type of relationship\n * @throws UserNotAuthorizedException the governance action service is not authorized to create this type of relationship\n * @throws PropertyServerException there is a problem with the metadata store\n */\n void linkElementsAsPeerDuplicates(String userId,\n String metadataElement1GUID,\n String metadataElement2GUID,\n int statusIdentifier,\n String steward,\n String stewardTypeName,\n String stewardPropertyName,\n String source,\n String notes,\n boolean setKnownDuplicate) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n\n\n /**\n * Identify an element that acts as a consolidated version for a set of duplicate elements.\n * (The consolidated element is created using createMetadataElement.)\n *\n * @param userId caller's userId\n * @param consolidatedElementGUID unique identifier of the metadata element\n * @param statusIdentifier what is the status of this relationship (negative means untrusted, 0 means unverified and positive means trusted)\n * @param steward identifier of the steward\n * @param stewardTypeName type of element used to identify the steward\n * @param stewardPropertyName property name used to identify steward\n * @param source source of the duplicate detection processing\n * @param notes notes for the steward\n * @param sourceElementGUIDs List of the source elements that must be linked to the consolidated element. It is assumed that they already\n * have the KnownDuplicateClassification.\n * @throws InvalidParameterException the unique identifier's of the metadata elements are null or invalid in some way; the properties are\n * not valid for this type of relationship\n * @throws UserNotAuthorizedException the governance action service is not authorized to create this type of relationship\n * @throws PropertyServerException there is a problem with the metadata store\n */\n void linkConsolidatedDuplicate(String userId,\n String consolidatedElementGUID,\n int statusIdentifier,\n String steward,\n String stewardTypeName,\n String stewardPropertyName,\n String source,\n String notes,\n List<String> sourceElementGUIDs) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;\n}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "public interface IAutonomousRunner {\n <T> void runSingleAutonomousTx(\n RequestContext ctx,\n int expectedTotal, // expected total number of records (Collections.size())\n Iterable<T> iterable, // provider of loop variables\n Function<T, RequestParameters> requestProvider, // converts a loop variable to a request\n Consumer<StatisticsDTO> logEnhancer, // optional (may be null): enhances the statistics output (set info1...)\n String processId // processId of the statistics log\n );\n}", "public interface DTTQPassenger {\n /**\n * The passenger leaves the bus and signals the bus driver if he's the last one to do so.\n * @param pid The passenger's ID.\n * @param seat The passenger's bus seat.\n */\n public void leaveTheBus(int pid, int seat);\n}", "public void consume(IdentifiableIDSet domain);", "@Override\r\n\tpublic void publish(ISeller seller, IHotelBiding hotelBiding) {\n\t\t\r\n\t}", "interface DmaChannel\n{\n\t/**\n\t * Initiate DMA request for read.\n\t * <p>\n\t * Data will be transferred from memory to the peripheral.\n\t */\n\tpublic void dmaRequest(DmaRequestRead read) throws SIMException;\n\n\t/**\n\t * Initiate DMA request for write.\n\t * <p>\n\t * Data will be trasferred from peripheral to memory.\n\t */\n\tpublic void dmaRequest(DmaRequestWrite write) throws SIMException;\n\n\t/**\n\t * Initiate DMA request master.\n\t * <p>\n\t * Control will be passed to the caller.\n\t */\n\tpublic void dmaRequest(DmaRequestMaster master) throws SIMException;\n}", "public abstract void setupDelegate();", "public interface CacheProviders {\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<Topic>>> getTopics(Observable<List<Topic>> topics, DynamicKeyGroup nodeIdAndOffset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<Topic>>> getUserCreateTopics(Observable<List<Topic>> topics, DynamicKey offset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<Topic>>> getUserFavorites(Observable<List<Topic>> topics, DynamicKey offset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<TopicDetail>> getTopicDetail(Observable<TopicDetail> topic, DynamicKey id, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<UserDetailInfo>> getUserInfo(Observable<UserDetailInfo> user, DynamicKey id, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<News>>> getNews(Observable<List<News>> news, DynamicKeyGroup nodeIdAndOffset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<Notification>>> getNotifications (Observable<List<Notification>> notifications, DynamicKey offset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<Site>>> getSite(Observable<List<Site>> sites, DynamicKey offset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<UserInfo>>> getUserFollowing(Observable<List<UserInfo>> users, DynamicKeyGroup usernameAndOffset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<com.example.bill.epsilon.bean.topic.Reply>>> getUserReplies(Observable<List<com.example.bill.epsilon.bean.topic.Reply>> replies, DynamicKeyGroup usernameAndOffset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<TopicReply>>> getReplies(Observable<List<TopicReply>> replies, DynamicKeyGroup idAndOffset, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<Node>>> readNodes(Observable<List<Node>> nodes, EvictProvider evictProvider);\n\n @LifeCache(duration = 7, timeUnit = TimeUnit.DAYS)\n Observable<Reply<List<NewsNode>>> readNewsNodes(Observable<List<NewsNode>> nodes, EvictProvider evictProvider);\n}", "@Override\n\tpublic void requestLawyer() {\n\t\tSystem.out.println(\"xiaoming-requestLawyer\");\n\t}", "void visitProducer(MethodHandle handle);", "public interface HTTPContract {\n void getRequirementList(AnnounceDataSource.GetRequirementListCallback callback);\n void getFeelingList(AnnounceDataSource.GetFeelingListCallback callback);\n void postFeelingCommend();\n void postFeelingComment();\n// void postRequirementBook();\n// void postRequirementComment();\n\n}", "public interface Delivery {\n\n void postDelivery(PlusRequest<?> plusRequest, Response<?> response);\n}", "private FlyWithWings(){\n\t\t\n\t}", "public interface Discountable {\n void discountSell();\n}", "public interface RealmInformationProvider {\n\n /**\n * Returns the display name of the realm which is visible in the tab list or in the realm overview\n * menu on the lobby. This method is not rate limited.\n *\n * @return the display name of the realm.\n */\n String realmDisplayName();\n\n /**\n * Returns the description of the realm which is visible in the realm overview\n * menu on the lobby. This method is not rate limited.\n *\n * @return the description of the realm.\n */\n String description();\n\n /**\n * @return true if the realm is private, false otherwise\n */\n boolean privateRealm();\n\n /**\n * @return the currently allowed maximum player count\n */\n int maxPlayers();\n\n /**\n * @return the amount of currently active boosts\n */\n int boostCount();\n\n /**\n * Limits are specified by the realm boost level.\n *\n * @return the current realm limits\n */\n Limits limits();\n\n /**\n * The promotion state of the realm. A promoted realm will always be shown first on the lobby's\n * realm overview menu and at the banner stand. Only VIPs and higher are privileged to mark a realm as promoted.\n *\n * <br><br> Since a realm doesn't know it's promotion state, it has to be requested at the Cytooxien Realms\n * Backend Management service. So this method returns an {@link Action} and is rate-limited.\n *\n * @return The action containing information about the promotion state of the realm.\n */\n Action<Boolean> promotedRealm();\n\n /**\n * A realm is able to have it's own address. Using this address, players can directly join onto the running realm\n * without joining on Cytooxien first.\n *\n * <br><br> Since a realm doesn't know it's subdomain, it has to be requested at the Cytooxien Realms\n * Backend Management service. So this method returns an {@link Action} and is rate-limited.\n *\n * @return The action containing the FQDN under which the realm can also be joined.\n */\n Action<String> subdomain();\n\n /**\n * This changes the display name of the realm. The new name of the realm must not exceed 32 characters and mustn't\n * be null or empty. Otherwise this action will fail.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n * @param name The new name of the realm\n * @return the action containing the success state\n */\n Action<Void> changeName(String name);\n\n /**\n * This changes the description of the realm. The new description of the realm must not exceed 128 characters otherwise this action will fail.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n * @param description The new realm description\n * @return the action containing the success state\n */\n Action<Void> changeDescription(String description);\n\n /**\n * This changes the maximum allowed player count of the realm. The new player count of the realm must\n * not exceed the maximum player count specified by the {@link Limits} object otherwise this action will fail.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n *\n * @param maxPlayers The new maximum player count\n * @return the action containing the success state\n */\n Action<Void> updateMaximumPlayers(int maxPlayers);\n\n /**\n * This changes the privacy state of the realm.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n *\n * @param privateRealm true if the realm is private false otherwise\n * @return the action containing the success state\n */\n Action<Void> updatePrivacyState(boolean privateRealm);\n\n}", "public interface PaymentStrategy {\n\n void pay(double amount);\n\n}", "public interface WeighInService {\n}", "public interface EventInteractor {\n\n void getEvents(String sellerId,\n Date after,\n Date before,\n final PaginatedResourceRequestCallback<PR_AEvent> callback);\n\n void getCustomerEvents(String customerId,\n final PaginatedResourceRequestCallback<PR_AEvent> callback);\n\n}", "public interface Consumer {\n\n @Nonnull\n String getApiKey();\n\n void setApiKey(@Nonnull String apiKey);\n\n @Nonnull\n String getLoginId();\n\n void setLoginId(@Nonnull String loginId);\n\n @Nonnull\n String getSiteKey();\n\n void setSiteKey(@Nonnull String siteKey);\n\n @Nonnull\n String getTouchPoint();\n\n void setTouchPoint(@Nonnull String touchPoint);\n\n @Nonnull\n String getTid();\n\n void setTid(@Nonnull String tid);\n\n boolean hasTid();\n\n void setSharedSecret(@Nonnull String sharedSecret);\n\n @Nonnull\n String getSharedSecret();\n}", "@Pointcut(\"within(com.wipro.despar..*dao*..*)\")\r\n\tpublic void inDataAccessLayer(){}", "public interface BudgetRateAndBaseService {\n\n /**\n * Calculates the applicable F & A rate for the given award. This should be\n * the F&A rate based on the start date of the award's budget.\n *\n * @param award\n * the award to calculate the applicable rate for\n * @return a BudgetDecimal representing the rate, or null or no rate for the\n * given affective date could be found\n * @throws IllegalArgumentException\n * if the given award is null\n * @throws IllegalArgumentException\n * if the given award does not have a budget\n * @throws IllegalStateException\n * if the located budget does not have a start date\n */\n ScaleTwoDecimal calculateApplicableFandARate(Award award);\n\n}", "public interface AwardStrategy\n{\n /**\n * Obtain a list of prizes, for a all existing strategies to retrieve awards. \n *\n * @return The list of prizes, required for a given strategy.\n */\n List<Prize> getPrizeList();\n}", "public interface CloudServiceImpl {\n\n /**\n * This method provides an implementation of distributed map. All the nodes\n * on the cluster shares this instance.\n * @param mapName Name of the map.\n * @param <K> Type of the map's key.\n * @param <V> Type of the map's values.\n * @return Return the instance of the distributed map.\n */\n <K extends Object, V extends Object> Map<K, V> getMap(String mapName);\n\n /**\n * This method provides an implementation of distributed queue. All the nodes\n * on the cluster shares this instance.\n * @param queueName Name of the queue.\n * @param <V> Type of the queue's values.\n * @return Return the instance of the distributed queue.\n */\n <V extends Object> Queue<V> getQueue(String queueName);\n\n /**\n * This method provides an implementation of distributed set. All the nodes\n * on the cloud shares this instance.\n * @param setName Name of the set.\n * @param <V> Type of the set's values.\n * @return Return the instance of the distributed set.\n */\n <V extends Object> Set<V> getSet(String setName);\n\n /**\n * This method provides an implementation of distributed counter. All the nodes\n * on the cloud shares this instance.\n * @param counterName Name of the counter.\n * @return Return thr instance of the counter.\n */\n Counter getCounter(String counterName);\n\n /**\n * This method takes a resource an lock this for all the thread around the cluster\n * and this resource has locked for all the thread for execution.\n * This method is blocked until you can get the lock.\n * @param resourceName The name of the resource to lock.\n * @throws InterruptedException Interrupted exception\n */\n void lock(String resourceName) throws InterruptedException;\n\n /**\n * This method unlocks a previously locked resource.\n * @param resourceName The name of the resource locked.\n * @throws InterruptedException Interrupted exception.\n */\n void unlock(String resourceName) throws InterruptedException;\n\n /**\n * Return the implementation of the Lock interface distributed.\n * @param lockName Name of the lock.\n * @return Distributed lock implementation.\n */\n Lock getLock(String lockName);\n\n /**\n * Return the distributed lock condition over specific lock object.\n * @param conditionName Lock condition name.\n * @param lock Specific lock object.\n * @return Return the lock condition.\n */\n Condition getCondition(String conditionName, Lock lock);\n\n /**\n * Creates a instance of cache into the cloud using the specific strategy to\n * specify the behavior of the cache instance.\n * @param cacheName Name of the cache instance.\n * @param strategies Set with the strategies for the cache instance.\n */\n void createCache(String cacheName, Set<CloudCacheStrategy> strategies);\n\n /**\n * Return the instance of cache named with specific name.\n * @param cacheName Name of the instance of cache.\n * @return Instance of cache.\n */\n CloudCache getCache(String cacheName);\n\n /**\n * Dispatch the event instance to the cloud.\n * @param event Event instance.\n */\n void dispatchEvent(DistributedEvent event);\n\n /**\n * Publish a distributed layer into the cloud.\n * @param layerClass Layer class.\n * @param implName Layer implementation name.\n * @param regex Regex for match the implementation.\n */\n void publishDistributedLayer(Class<? extends LayerInterface> layerClass, String implName, String regex);\n\n /**\n * This method send the plugin for all the nodes into the cloud.\n * @param jarFile Byte array that represents the jar file.\n */\n void publishPlugin(byte[] jarFile);\n\n /**\n * This method verifies if the layer and name indicated are published into the cloud.\n * @param layerClass Layer class.\n * @param implName Layer implementation name.\n * @return Returns true if the layer is published and false in the otherwise.\n */\n boolean isLayerPublished(Class<? extends LayerInterface> layerClass, String implName);\n\n /**\n * Returns the object that represent the distributed layer.\n * @param layerClass Layer class.\n * @param implName Layer implementation name.\n * @return Regex if exist or null.\n */\n String getRegexFromDistributedLayer(Class<? extends LayerInterface> layerClass, String implName);\n\n /**\n * Invokes the remote instance of a layer.\n * @param layerClass Layer interface class.\n * @param implName Implementation name.\n * @param method Method to invoke.\n * @param parameters Parameters to invoke.\n * @param <O> Expected return data type.\n * @return Invocation result.\n */\n <O extends Object> O layerInvoke(Class<? extends LayerInterface> layerClass, String implName, Method method, Object... parameters);\n\n /**\n * This method must start the process of interaction with other services.\n */\n void publishMe();\n\n /**\n * This method start a worker over the cloud implementation to make a task and finish.\n * @param workerConfig Map with all the parameters to configure a worker instance.\n */\n void forkWorker(Map<String,Object> workerConfig);\n\n /**\n * Shutdown hook\n */\n void shutdown();\n\n}", "public void setupSubscriptions()\n {\n String debug = System.getProperty(\"SAFE.debug\");\n if (debug != null && debug.equalsIgnoreCase(\"true\")) {\n _debug = true;\n }\n \n // get handle to message transport service \n try {\n MessageTransportService mts = (MessageTransportService) this.getBindingSite().getServiceBroker().getService(this,\n MessageTransportService.class,\n null);\n \n // get the name of the domain we are managing\n String domainName = System.getProperty(\"org.cougaar.safe.domainName\");\n if (domainName == null) {\n throw new NullPointerException(\"System property org.cougaar.safe.domainName is not set\");\n } \n\n // create MessageSender and MessageReceiver for DM\n // create local locator and bind MessageReceiver to it\n CougaarMessageTransportService messageTransport = new CougaarMessageTransportService(mts);\n MessageSender sender = messageTransport.newMessageSender();\n MessageReceiver receiver = messageTransport.newMessageReceiver(); \n CougaarLocator myLocator = new CougaarLocator(domainName);\n receiver.bindToLocalLocator(myLocator);\n \n // create Domain Manager\n _dm = new MyDomainManager(domainName,\n receiver,\n sender);\n \n }\n catch (Exception xcp) {\n xcp.printStackTrace();\n }\n \n // BEGIN rehydrate \n \n // rehydrate: get entity descriptions from the blackboard and register them\n // with the domain manager\n Iterator entityDescriptions = query(_entityDescriptionPredicate).iterator();\n Vector nonGuardDescrips = new Vector();\n while (entityDescriptions.hasNext()) { \n KAoSEntityDescription entityDescrip = (KAoSEntityDescription) entityDescriptions.next();\n // register all the guards first\n if (entityDescrip.getEntityType().equals(KAoSConstants.GUARD)) { \n _dm.register(entityDescrip, true);\n }\n else {\n nonGuardDescrips.addElement(entityDescrip);\n }\n }\n // then register the other entities\n for (int i=0; i<nonGuardDescrips.size(); i++) {\n _dm.register((KAoSEntityDescription) nonGuardDescrips.elementAt(i), true);\n }\n \n // rehydrate: get policies from the blackboard and give\n // them to the domain manager\n Iterator policyMsgs = query(_policyMsgPredicate).iterator();\n Vector policyMsgsV = new Vector();\n while (policyMsgs.hasNext()) {\n policyMsgsV.addElement(policyMsgs.next());\n }\n _dm.rehydratePolicies(policyMsgsV);\n \n // END rehydrate\n \n _proposedPolicyUpdate = (IncrementalSubscription) subscribe(_proposedPolicyUpdatePredicate); \n }", "public CanaryDistributionProvider.Distribution getDistribution()\n {\n return _distribution;\n }", "@Override\n\tpublic void doGet(\n\t\tfinal HttpServletRequest req, \n\t\tfinal HttpServletResponse rsp\n\t) throws \n\t\tIOException \n\t{\n\t\tfinal String userId =\n\t\t\treq.getServletPath().split(\"/\")[1];\n\t\t\n\t\t// FIXME: when a pro is created it should also create ConsumerInformation\n\t\tfinal LoadResult<ConsumerInformation> informationResult =\n\t\t\tofy().load().key(Key.create(ConsumerInformation.class, userId));\n\t\t\n\t\tfinal LocalDate startDate =\n\t\t\tLocalDate.now();\n\t\t\n\t\tfinal int NUM_DAYS = 28;\n\t\t\n\t\t// initiate fetch for daily agendas and availiability\n\t\tfinal List<Key<DailyAgenda>> dailyAgendaKeysOne =\n\t\t\tBookingServlet.getProfessionalDailyAgenda(userId, startDate, NUM_DAYS);\n\n\t\tfinal Map<Key<DailyAgenda>, DailyAgenda> dailyAgendaResultOne =\n\t\t\tofy().load().keys(dailyAgendaKeysOne);\n\n\t\tfinal List<Key<ConsumerDailyAgenda>> dailyAgendaKeysTwo =\n\t\t\tBookingServlet.getConsumerDailyAgenda(userId, startDate, NUM_DAYS);\n\n\t\tfinal Map<Key<ConsumerDailyAgenda>, ConsumerDailyAgenda> dailyAgendaResultTwo =\n\t\t\tofy().load().keys(dailyAgendaKeysTwo);\t\n\t\t\n\t\tfinal ConsumerInformation info =\n\t\t\tinformationResult.safe();\n\n\t\tfinal Iterator<Key<DailyAgenda>> agendaIteratorOne =\n\t\t\tdailyAgendaKeysOne.iterator();\n\n\t\tfinal Iterator<Key<ConsumerDailyAgenda>> agendaIteratorTwo =\n\t\t\tdailyAgendaKeysTwo.iterator();\n\t\t\n\t\tint index = 0;\n\t\t\n\t\tfinal ICalBuilder ical = ICal\n\t\t\t.beginCalendar()\n\t\t\t\t.prodid(\"Luke Valenty\", \"bookstuf.com 1.0\")\n\t\t\t\t.version(\"2.0\")\n\t\t\t\t.calscale(\"GREGORIAN\")\n\t\t\t\t.method(\"PUBLISH\")\n\t\t\t\t.calname(\"bookstuf.com\");\n\n\t\twhile (\n\t\t\tagendaIteratorOne.hasNext() &&\n\t\t\tagendaIteratorTwo.hasNext()\n\t\t) {\n\t\t\tfinal LocalDate date = \n\t\t\t\tstartDate.plusDays(index);\n\t\t\t\n\t\t\tfinal DailyAgenda agendaOne = \n\t\t\t\tdailyAgendaResultOne.get(agendaIteratorOne.next());\n\t\t\t\n\t\t\tif (agendaOne != null) {\n\t\t\t\taddEvents(ical, date, agendaOne.getTimezone(), agendaOne.bookingMap());\n\t\t\t}\n\t\t\t\n\t\t\tfinal ConsumerDailyAgenda agendaTwo = \n\t\t\t\tdailyAgendaResultTwo.get(agendaIteratorTwo.next());\n\t\t\t\n\t\t\tif (agendaTwo != null) {\n\t\t\t\taddEvents(ical, date, agendaTwo.getTimezone(), agendaTwo.bookingMap());\n\t\t\t}\n\t\t\t\n\t\t\tindex++;\n\t\t}\n\n\t\tical.endCalendar().output(rsp.getWriter());\n\t}", "public abstract ModuleDistributions distributions();", "public interface IProgressiveCustomRouting {\n void setStateGetter(Supplier<ProgressiveState> stateGetter);\n void setCustomCommand(Consumer<String> command);\n}", "@Pointcut(\"within(com.factly.dega.web.rest..*)\")\n public void applicationPackagePointcut() {\n // Method is empty as this is just a Pointcut, the implementations are in the advices.\n }", "public interface IDiscoveryListener {\r\n\t/**\r\n\t * Called when a device is discovered.\r\n\t * \r\n\t * @param _discoverer the discoverer that found the device\r\n\t * @param _device the device that was found\r\n\t */\r\n\tpublic void deviceDiscovered(IDiscoverer _discoverer, IDevice _device);\r\n}", "public static String updateAssociatedDistributor(HttpServletRequest request, HttpServletResponse response) {\n Delegator delegator = (Delegator) request.getAttribute(\"delegator\");\n GenericValue userLogin = (GenericValue) request.getSession().getAttribute(\"userLogin\");\n GenericValue party = null;\n\n // SCIPIO: now points to shop\n java.net.URL shopPropertiesUrl = null;\n\n try {\n // SCIPIO: now points to shop\n // SCIPIO: get context using servlet API 3.0\n shopPropertiesUrl = request.getServletContext().getResource(\"/WEB-INF/shop.properties\");\n } catch (java.net.MalformedURLException e) {\n Debug.logWarning(e, module);\n }\n\n String store = UtilProperties.getPropertyValue(shopPropertiesUrl, \"distributor.store.customer\");\n\n if (store == null || store.toUpperCase().startsWith(\"N\")) {\n return \"success\";\n }\n\n String storeOnClick = UtilProperties.getPropertyValue(shopPropertiesUrl, \"distributor.store.onclick\");\n\n if (storeOnClick == null || storeOnClick.toUpperCase().startsWith(\"N\")) {\n return \"success\";\n }\n\n try {\n party = userLogin == null ? null : userLogin.getRelatedOne(\"Party\", false);\n } catch (GenericEntityException gee) {\n Debug.logWarning(gee, module);\n }\n\n if (party != null) {\n // if a distributorId is already associated, it will be used instead\n String currentDistributorId = getId(party, \"DISTRIBUTOR\");\n\n if (UtilValidate.isEmpty(currentDistributorId)) {\n String distributorId = (String) request.getSession().getAttribute(DISTRIBUTOR_ID);\n\n if (UtilValidate.isNotEmpty(distributorId)) {\n List<GenericValue> toBeStored = new LinkedList<GenericValue>();\n\n // create distributor Party ?? why?\n // create distributor PartyRole ?? why?\n // create PartyRelationship\n GenericValue partyRelationship = delegator.makeValue(\"PartyRelationship\", UtilMisc.toMap(\"partyIdFrom\", party.getString(\"partyId\"), \"partyIdTo\", distributorId, \"roleTypeIdFrom\", \"CUSTOMER\", \"roleTypeIdTo\", \"DISTRIBUTOR\"));\n\n partyRelationship.set(\"fromDate\", UtilDateTime.nowTimestamp());\n partyRelationship.set(\"partyRelationshipTypeId\", \"DISTRIBUTION_CHANNEL\");\n toBeStored.add(partyRelationship);\n\n toBeStored.add(delegator.makeValue(\"Party\", UtilMisc.toMap(\"partyId\", distributorId)));\n toBeStored.add(delegator.makeValue(\"PartyRole\", UtilMisc.toMap(\"partyId\", distributorId, \"roleTypeId\", \"DISTRIBUTOR\")));\n try {\n delegator.storeAll(toBeStored);\n if (Debug.infoOn()) Debug.logInfo(\"Distributor for user \" + party.getString(\"partyId\") + \" set to \" + distributorId, module);\n } catch (GenericEntityException gee) {\n Debug.logWarning(gee, module);\n }\n } else {\n // no distributorId is available\n Debug.logInfo(\"No distributor in session or already associated with user \" + userLogin.getString(\"partyId\"), module);\n return \"success\";\n }\n } else {\n request.getSession().setAttribute(DISTRIBUTOR_ID, currentDistributorId);\n }\n\n return \"success\";\n } else {\n // not logged in\n Debug.logWarning(\"Cannot associate distributor since not logged in yet\", module);\n return \"success\";\n }\n }", "public void main()\n {\n ContextImplementation context = new ContextImplementation(new StrategyAImplementation());\n context.doSomething();\n\n context.setStrategy(new StrategyBImplementation());\n context.doSomething();\n\n // Define a one-to-many dependency between objects so that when the object change states,\n // all it dependents are notified and updated automatically.\n SubjectImplementation subject = new SubjectImplementation();\n\n ObserverInterface saori = new ObserverImplementation(\"Saori\");\n subject.attach(new ObserverImplementation(\"Horatio\"));\n subject.attach(new ObserverImplementation(\"Harper\"));\n subject.attach(saori);\n\n subject.notifyObservers(\"Leon departed for work\");\n\n subject.detach(saori);\n subject.notifyObservers(\"Leon arrived back from work\");\n\n // Attach additional responsibilities to an object dynamically.\n // Decorators provide a flexible alternative to subclassing in order to extend features/functions.\n // Also know as a wrapper.\n Component component = new ComponentImplementation();\n component.doSomething();\n\n Component decoratorA = new DecoratorAImplementation(component);\n decoratorA.doSomething();\n\n Component decoratorB = new DecoratorBImplementation(component);\n decoratorB.doSomething();\n\n Component decoratorC = new DecoratorBImplementation(decoratorA);\n decoratorC.doSomething();\n\n // Define a skeleton of an algorithm in an operation deferring steps to the subclasses.\n // Template method design pattern lets subclasses redefine certain steps on an algorithm without changing the structure of the algorithm.\n new TemplateMethodAImplementation().templateMethod();\n\n new TemplateMethodBImplementation().templateMethod();\n\n // Defines a higher-level interface that makes the subsystems easier to use.\n // Client of the facade don't have to access the sub system objects directly.\n new Facade().doSomething();\n\n // Converts the interface of a class into another interface clients expect.\n // Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.\n // Target defines the interface that a client uses, Adaptee defines and existing interface that needs to be adapted, and Adapter adapts the interface of Adaptee to the Target interface.\n Target adapter = new Adapter();\n adapter.request();\n\n // Ensure a class only has one instance, and provide a global point of access to it.\n // The class itself is responsible for keeping track of it sole instance.\n // The class can ensure that no other instances can be created (by intercepting requests to create new objects), and provide a way to access to access to single instances.\n Singleton singleton = Singleton.getInstance();\n singleton.doSomething();\n\n // Defines an object that encapsulates how a set of objects interact.\n // Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and lets you vary their interaction independently.\n Mediator mediator = new MediatorImplementation(); // Defines the mediator interface enabling a community of colleague objects to interact.\n Colleague a = new ColleagueAImplementation(mediator); // Each colleague knows its mediator objects.\n // The colleague classes are decoupled, adding a new colleague does not impact mediation.\n Colleague b = new ColleagueBImplementation(mediator);\n\n // Each colleague communicates with its mediator whenever it would have otherwise communicated with another colleague directly.\n a.sendMessage(\"Hi Horatio\");\n b.receiveMessage();\n\n // Reduces communication channels between colleagues since a colleague only has to communicate with the mediator.\n b.sendMessage(\"Hi Harper\");\n a.receiveMessage();\n\n // Decouples an abstraction from it implementation so that the two can vary independently.\n // Divides the abstraction and the implementation into separate class hierarchies.\n // Changes in the implementation of an abstraction should not have an impact on clients.\n Implementor impA = new ImplementorA();\n Implementor impB = new ImplementorB();\n\n // Implementation of an abstraction can be configured at runtime.\n Client clientA = new Client(new AbtractionImplementation(impA));\n clientA.doSomething();\n\n Client clientB = new Client(new AbtractionImplementation(impB));\n clientB.doSomething();\n\n // Command pattern decouples the object that invokes the operation from the one that knows how to perform it.\n Receiver receiver = new Receiver();\n // Client create a command implementation and specifies a receiver.\n Command command = new CommandImplementation(receiver);\n Invoker invoker = new Invoker();\n // Invoker stores the command object.\n invoker.setCommand(command);\n // Invoker issues a request by calling Execute on the command.\n invoker.execute();\n\n }", "public interface IPermissionCommunicator {\n public void onRequestForPermission();\n}", "public interface IMiddlewareResourceManager extends Remote, IProxiable {\n /**\n * Add seats to a flight.\n * <p>\n * In general this will be used to create a new\n * flight, but it should be possible to add seats to an existing flight.\n * Adding to an existing flight should overwrite the current price of the\n * available seats.\n *\n * @return Success\n */\n public boolean addFlight(int id, int flightNum, int flightSeats, int flightPrice)\n throws RemoteException, DeadlockException;\n\n /**\n * Add car at a location.\n * <p>\n * This should look a lot like addFlight, only keyed on a string location\n * instead of a flight number.\n *\n * @return Success\n */\n public boolean addCars(int id, String location, int numCars, int price)\n throws RemoteException, DeadlockException;\n\n /**\n * Add room at a location.\n * <p>\n * This should look a lot like addFlight, only keyed on a string location\n * instead of a flight number.\n *\n * @return Success\n */\n public boolean addRooms(int id, String location, int numRooms, int price)\n throws RemoteException, DeadlockException;\n\n /**\n * Add customer.\n *\n * @return Unique customer identifier\n */\n public int newCustomer(int id)\n throws RemoteException, DeadlockException;\n\n /**\n * Add customer with id.\n *\n * @return Success\n */\n public boolean newCustomer(int id, int cid)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete the flight.\n * <p>\n * deleteFlight implies whole deletion of the flight. If there is a\n * reservation on the flight, then the flight cannot be deleted\n *\n * @return Success\n */\n public boolean deleteFlight(int id, int flightNum)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete all cars at a location.\n * <p>\n * It may not succeed if there are reservations for this location\n *\n * @return Success\n */\n public boolean deleteCars(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete all rooms at a location.\n * <p>\n * It may not succeed if there are reservations for this location.\n *\n * @return Success\n */\n public boolean deleteRooms(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete a customer and associated reservations.\n *\n * @return Success\n */\n public boolean deleteCustomer(int id, int customerID)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a flight.\n *\n * @return Number of empty seats\n */\n public int queryFlight(int id, int flightNumber)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a car location.\n *\n * @return Number of available cars at this location\n */\n public int queryCars(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a room location.\n *\n * @return Number of available rooms at this location\n */\n public int queryRooms(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the customer reservations.\n *\n * @return A formatted bill for the customer\n */\n public String queryCustomerInfo(int id, int customerID)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a flight.\n *\n * @return Price of a seat in this flight\n */\n public int queryFlightPrice(int id, int flightNumber)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a car location.\n *\n * @return Price of car\n */\n public int queryCarsPrice(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a room location.\n *\n * @return Price of a room\n */\n public int queryRoomsPrice(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a seat on this flight.\n *\n * @return Success\n */\n public boolean reserveFlight(int id, int customerID, int flightNumber)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a car at this location.\n *\n * @return Success\n */\n public boolean reserveCar(int id, int customerID, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a room at this location.\n *\n * @return Success\n */\n public boolean reserveRoom(int id, int customerID, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a bundle for the trip.\n *\n * @return Success\n */\n public boolean bundle(int id, int customerID, Vector<Integer> flightNumbers, String location, boolean car, boolean room)\n throws RemoteException, DeadlockException;\n\n /**\n * Convenience for probing the resource manager.\n *\n * @return Name\n */\n public String getName()\n throws RemoteException, DeadlockException;\n\n public int start()\n throws RemoteException;\n\n public boolean commit(int xid) \n throws RemoteException, InvalidTransactionException;\n\n public boolean abort(int xid) \n throws RemoteException, InvalidTransactionException;\n\n public void shutdown()\n throws RemoteException;\n\n}", "@Test\n public void loanWithChargesOfTypeAmountPercentageAndPeriodicAccrualAccountingEnabled() throws InterruptedException {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer percentageDisbursementCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanDisbursementJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\"));\n addCharges(charges, percentageDisbursementCharge, \"1\", null);\n\n Integer percentageSpecifiedDueDateCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageSpecifiedDueDateCharge, \"1\", \"29 September 2011\");\n\n Integer percentageInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageInstallmentFee, \"1\", \"29 September 2011\");\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, ACCRUAL_PERIODIC, assetAccount, incomeAccount, expenseAccount,\n overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"120.00\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"149.11\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"29.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n GlobalConfigurationHelper.manageConfigurations(REQUEST_SPEC, RESPONSE_SPEC,\n GlobalConfigurationHelper.ENABLE_AUTOGENERATED_EXTERNAL_ID, true);\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n ArrayList<HashMap> loanTransactionDetails = LOAN_TRANSACTION_HELPER.getLoanTransactionDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n validateAccrualTransactionForDisbursementCharge(loanTransactionDetails);\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.0\", \"120.00\", \"0.0\");\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3300.60\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.00\", \"120.00\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"90.89\", \"29.11\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentageSpecifiedDueDateCharge), \"29 October 2011\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"149.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOG.info(\"----------- Waive installment charge for 2nd installment ---------\");\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID, (Integer) getloanCharge(percentageInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"61.19\", \"29.11\", \"29.70\");\n\n /*\n * JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount( assetAccount, \"20 September 2011\", new\n * JournalEntry(Float.parseFloat(\"29.7\"), JournalEntry.TransactionType.CREDIT));\n * JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount (expenseAccount, \"20 September 2011\", new\n * JournalEntry(Float.parseFloat(\"29.7\"), JournalEntry.TransactionType.DEBIT));\n */\n\n final String jobName = \"Add Accrual Transactions\";\n\n SCHEDULER_JOB_HELPER.executeAndAwaitJob(jobName);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n checkAccrualTransactions(loanSchedule, loanID);\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3271.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3271.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3271.49\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.DEBIT));\n\n Integer percentagePenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"29 September 2011\", \"1\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentagePenaltySpecifiedDueDate, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"120\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // checking the journal entry as applied penalty has been collected\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3301.78\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3301.78\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.78\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"10 January 2012\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"120\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3240.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"120\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3120.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3120.58\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3120.58\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3120.58\"), JournalEntry.TransactionType.CREDIT));\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.getLoanDetail(REQUEST_SPEC, RESPONSE_SPEC, loanID, \"status\");\n LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);\n }", "@Override\n\tprotected int bound(Delivery delivery, ArrayList<Delivery> nonViewed,\n\t\t\tHashMap<Delivery, HashMap<Delivery, AtomicPath>> allPaths, int[] duration) {\n\t\treturn 0;\n\t}", "void fulfill( AvailabilityRequirement requirement );", "public interface Transport {\n\n /**\n * This method returns id of the current transport\n * @return\n */\n String id();\n\n /**\n * This methos returns Id of the upstream node\n * @return\n */\n String getUpstreamId();\n\n /**\n * This method returns random\n *\n * @param id\n * @param exclude\n * @return\n */\n String getRandomDownstreamFrom(String id, String exclude);\n\n /**\n * This method returns consumer that accepts messages for delivery\n * @return\n */\n Consumer<VoidMessage> outgoingConsumer();\n\n /**\n * This method returns flow of messages for parameter server\n * @return\n */\n Publisher<INDArrayMessage> incomingPublisher();\n\n /**\n * This method starts this Transport instance\n */\n void launch();\n\n /**\n * This method will start this Transport instance\n */\n void launchAsMaster();\n\n /**\n * This method shuts down this Transport instance\n */\n void shutdown();\n\n /**\n * This method will send message to the network, using tree structure\n * @param message\n */\n void propagateMessage(VoidMessage message, PropagationMode mode) throws IOException;\n\n /**\n * This method will send message to the node specified by Id\n *\n * @param message\n * @param id\n */\n void sendMessage(VoidMessage message, String id);\n\n /**\n * This method will send message to specified node, and will return its response\n *\n * @param message\n * @param id\n * @param <T>\n * @return\n */\n <T extends ResponseMessage> T sendMessageBlocking(RequestMessage message, String id) throws InterruptedException;\n\n /**\n * This method will send message to specified node, and will return its response\n *\n * @param message\n * @param id\n * @param <T>\n * @return\n */\n <T extends ResponseMessage> T sendMessageBlocking(RequestMessage message, String id, long waitTime, TimeUnit timeUnit) throws InterruptedException;\n\n /**\n * This method will be invoked for all incoming messages\n * PLEASE NOTE: this method is mostly suited for tests\n *\n * @param message\n */\n void processMessage(VoidMessage message);\n\n\n /**\n * This method allows to set callback instance, which will be called upon restart event\n * @param callback\n */\n void setRestartCallback(RestartCallback callback);\n\n /**\n * This methd allows to set callback instance for various\n * @param cls\n * @param callback\n * @param <T1> RequestMessage class\n * @param <T2> ResponseMessage class\n */\n <T extends RequestMessage> void addRequestConsumer(Class<T> cls, Consumer<T> consumer);\n\n /**\n * This method will be called if mesh update was received\n *\n * PLEASE NOTE: This method will be called ONLY if new mesh differs from current one\n * @param mesh\n */\n void onMeshUpdate(MeshOrganizer mesh);\n\n /**\n * This method will be called upon remap request\n * @param id\n */\n void onRemap(String id);\n\n /**\n * This method returns total number of nodes known to this Transport\n * @return\n */\n int totalNumberOfNodes();\n\n\n /**\n * This method returns ID of the root node\n * @return\n */\n String getRootId();\n\n /**\n * This method checks if all connections required for work are established\n * @return true\n */\n boolean isConnected();\n\n /**\n * This method checks if this node was properly introduced to driver\n * @return\n */\n boolean isIntroduced();\n\n /**\n * This method checks connection to the given node ID, and if it's not connected - establishes connection\n * @param id\n */\n void ensureConnection(String id);\n}", "public interface Chord {\n\n //region: ChordLib parameters\n\n int DEFAULT_NUM_FINGERS = 19;\n int DEFAULT_NUM_SUCCESSORS = 1;\n String DEFAULT_SERVER_IP = \"127.0.0.1\";\n int DEFAULT_SERVER_PORT = 1678;\n boolean USE_PUBLIC_IP = false;\n int DEFAULT_RETRY = 5; //number of retrial lookup in case of failures (it can mask transient failures)\n int DEFAULT_CHORD_MODULE = 20; //Expressed in bit length\n int ROUTINE_PERIOD = 20000;\n int MESSAGE_PASSING_TIMEOUT = 10000;\n\n //endregion\n\n /**\n * Lookup for key in chord network\n * @return IP address of node responsible for key\n * @throws CommunicationFailureException for socket failures\n * @throws TimeoutReachedException timeout in request handling reached\n * @throws NoSuccessorsExceptions there is no living successor (Ring is unstable, actual ChordNode is Killed)\n */\n String lookupKey(String key) throws CommunicationFailureException, TimeoutReachedException, NoSuccessorsExceptions;\n\n /**\n * BasicLookup for key in chord network\n * @return IP address of node responsible for key\n * @throws CommunicationFailureException for socket failures\n * @throws TimeoutReachedException timeout in request handling reached\n * @throws NoSuccessorsExceptions there is no living successor (Ring is unstable, actual ChordNode is Killed)\n */\n String lookupKeyBasic(String key) throws CommunicationFailureException, TimeoutReachedException, NoSuccessorsExceptions;\n\n /**\n * Close ChordLib notifying it to the network\n */\n void closeNetwork();\n\n}", "protected abstract Simulate collectAgentData ();", "public void goalsAndPlansMonitoring() {\n\n monitor.subscribeToEvents(new IFilter<IMonitoringEvent>() {\n public boolean filter(IMonitoringEvent event) {\n\n Map<String, Object> properties = event.getProperties();\n\n if (properties == null || properties.get(\"details\") == null) {\n return false;\n }\n\n if ((properties.get(\"details\") instanceof AbstractBDIInfo)) {\n\n AbstractBDIInfo bdiInfo = (AbstractBDIInfo) properties.get(\"details\");\n\n if (bdiInfo instanceof PlanInfo) {\n handlePlanEvent((PlanInfo) bdiInfo);\n } else if (bdiInfo instanceof GoalInfo) {\n handleGoalEvent((GoalInfo) bdiInfo);\n }\n }\n return true;\n }\n }, true, IMonitoringService.PublishEventLevel.FINE);\n }", "public interface Domainclient {\n public void investment();\n}", "public interface DiscountStrategy {\r\n \r\n /**\r\n * returns the discount type\r\n * @return \r\n */\r\n public double getDiscount();\r\n \r\n /**\r\n * returns the discounted price\r\n * @param itemPrice the items normal price\r\n * @return the discounted price\r\n */\r\n public double getDiscountedPrice(double itemPrice);\r\n}", "public interface UserMethoss {\n\n // or link(Ass, ApplicationWirelet.deployAsApplication());\n // or link(Ass, ApplicationWirelet.deployAsApplicationLazyBuild());\n\n // new LazyAssembly();\n BeanConfiguration deploy(Supplier<? extends Assembly> supplier, Wirelet... wirelets);\n\n void deployLazy(boolean buildLazy, Supplier<? extends Assembly> supplier, Wirelet... wirelets);\n}", "public interface IOrganizationMemberBehavior {\n\n // Запрос на вступление в объединение от организации - кандидата\n OrganizationMembersHandleResult requestToJoinInCommunity(Community community, Community candidateToMember);\n\n // Отказ о вступлении в объединение несколких организаций\n OrganizationMembersHandleResult rejectRequests(Community community, List<OrganizationCommunityMember> organizationCommunityMembers, User currentUser);\n\n // Отмена вступления в объединение от имени руководителя организации\n OrganizationMembersHandleResult cancelRequest(OrganizationCommunityMember organizationCommunityMember);\n\n // Принятие запроса на вступление в объединение нескольких участников\n OrganizationMembersHandleResult acceptToJoinInCommunity(Community community, List<OrganizationCommunityMember> organizationCommunityMembers, User currentUser);\n\n // Запрос от руководтсва организации - члена на выход из объединения\n OrganizationMembersHandleResult requestFromOrganizationToExcludeFromCommunity(OrganizationCommunityMember organizationCommunityMember);\n\n // Запрос на исключение организации из объединения руководством объединения\n OrganizationMembersHandleResult requestFromCommunityOwnerToExcludeFromCommunity(OrganizationCommunityMember organizationCommunityMember, User currentUser);\n\n // Принятие запроса на выход из объединения\n OrganizationMembersHandleResult acceptExcludeFromCommunity(Community community, List<OrganizationCommunityMember> organizationCommunityMembers, User currentUser);\n\n // Отмена запроса на выход из объедиения\n OrganizationMembersHandleResult cancelExcludeRequest(OrganizationCommunityMember organizationCommunityMember);\n\n // Получить всех участников, у которых есть запрос на выход из объединения с выполненным условием\n LeaveOrganizationCommunityMembersDto getLeaveCommunityMembers(Community community, Long userId);\n\n // Получить всех участников, у которых есть запрос на вход в объединение с выполненным условием\n ApproveOrganizationCommunityMembersDto getApproveCommunityMembers(Community community, Long userId);\n}", "public interface IDelivery {\n /**\n * Distribution request response result\n * \n * @param request\n * @param response\n */\n public void postRequestResponse(Request<?> request, Response<?> response);\n\n /**\n * Distribute Failure events\n * \n * @param request\n * @param error\n */\n public void postError(Request<?> request, HttpException error);\n\n /**\n * Distribution to read the cached results response\n * @param request\n * @param cacheData\n */\n public <T>void postCacheResponse(Request<?> request, T cacheData);\n \n /**\n * Prepare events at the start of the request\n * @param request\n */\n public void postRequestPrepare(Request<?> request);\n \n /**\n * Distribution to retry event\n * @param request\n * @param previousError An exception before\n */\n public void postRequestRetry(Request<?> request, int currentRetryCount, HttpException previousError);\n \n /**\n * Delivered current progress for request\n * @param request\n * @param transferredBytesSize\n * @param totalSize\n */\n public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);\n \n /**\n * Delivered upload progress for request\n * @param request\n * @param transferredBytesSize\n * @param totalSize\n * @param currentFileIndex The subscript is currently being uploaded file\n * @param currentFile Is currently being uploaded files\n */\n\tpublic void postRequestUploadProgress(Request<?> request, long transferredBytesSize, long totalSize, int currentFileIndex, File currentFile);\n\n}", "public interface DataModelConsumer {\n\n /**\n * Consume the data model. The consumer shouldn't make any changes to it, as\n * other consumers could be using the model afterwards.\n *\n * @param dataModel\n */\n public void consumeDataModel(final Map<String, Object> dataModel);\n}", "public DefaultResponsibleParty() {\n }", "@ImplementedBy(PaypalCreditCardProcessor.class)\r\npublic interface CreditCardProcessor {\r\n\r\n public ChargeResult charge(CreditCard creditCard, double amount);\r\n\r\n}", "public interface DiscountStrategy {\n\n /**\n * Returns the discount amount given a quantity and a price.\n * @param qty\n * @param price\n * @return a double value for discount amount\n */\n public abstract double getDiscount(int qty, double price);\n \n /**\n * A getter for the discount rate\n * @return a double value\n */\n public abstract double getDiscountRate();\n\n /*\n * Setter for the discount rate.\n */\n public abstract void setDiscountRate(double discountRate);\n \n}", "BrokerAlgo getBrokerAlgo();", "private static void notify( final BindingDistributor distributor, final BindingEvent event,\n final BindingPublisher publisher, final int rank )\n {\n switch ( event )\n {\n case ADD:\n distributor.add( publisher, rank );\n break;\n case REMOVE:\n distributor.remove( publisher );\n break;\n case CLEAR:\n distributor.clear();\n break;\n }\n }" ]
[ "0.5924813", "0.5699412", "0.53888917", "0.53877425", "0.5331349", "0.52798265", "0.5220689", "0.5196229", "0.51741594", "0.5134017", "0.513295", "0.51255697", "0.51235783", "0.51136065", "0.5098523", "0.50867414", "0.50817376", "0.5078879", "0.5078485", "0.5074795", "0.50514966", "0.5051398", "0.5019483", "0.5013004", "0.500516", "0.4998743", "0.49981302", "0.49916622", "0.49834684", "0.4978351", "0.4978143", "0.497311", "0.49537227", "0.4912906", "0.4905099", "0.4900291", "0.4896193", "0.48806405", "0.48689657", "0.4862656", "0.48615575", "0.4858927", "0.48574436", "0.48512372", "0.48486412", "0.48478162", "0.4843879", "0.48390836", "0.48370835", "0.48351583", "0.4822611", "0.48186448", "0.48127908", "0.48079935", "0.48042673", "0.48007843", "0.47997078", "0.47971943", "0.4793981", "0.47922978", "0.4790194", "0.4785294", "0.47827974", "0.47802788", "0.47776702", "0.47728607", "0.4769939", "0.4769723", "0.47643137", "0.47613832", "0.47596684", "0.47586006", "0.4756894", "0.47567052", "0.4756674", "0.47558632", "0.4752326", "0.47490293", "0.47475827", "0.4745658", "0.47441843", "0.47441006", "0.4743489", "0.47375345", "0.47334322", "0.47250035", "0.4722441", "0.47210282", "0.471459", "0.4710865", "0.47096267", "0.47095042", "0.47087342", "0.47065035", "0.47059813", "0.47035247", "0.46997553", "0.46958598", "0.46918443", "0.46867546", "0.46841195" ]
0.0
-1
Required optional. Map pallet assignation responsibilities to a consumer
public EventMapper onPalletCapture(final Consumer<Set<Pallet>> consumer) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumerPallet(consumer, MappingEvent.capturePallet); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void commanderParMap(Map<Produit, Integer> mapOfProduits) {\n\r\n\t}", "public void interactWhenApproaching() {\r\n\t\t\r\n\t}", "public EventMapper onPalletRelease(final Consumer<Set<Pallet>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumerPallet(consumer, MappingEvent.releasePallet);\n\t\treturn this;\n\t}", "@Test\n public void testLimitPool() {\n List<Pool> subscribedTo = new ArrayList<Pool>();\n Consumer guestConsumer = TestUtil.createConsumer(systemType, owner);\n guestConsumer.setFact(\"virt.is_guest\", \"true\");\n \n consumerCurator.create(guestConsumer);\n Pool parentPool = null;\n \n assertTrue(limitPools != null && limitPools.size() == 2);\n for (Pool p : limitPools) {\n // bonus pools have the attribute pool_derived\n if (null != p.getAttributeValue(\"pool_derived\")) {\n // consume 2 times so one can get revoked later.\n consumerResource.bind(guestConsumer.getUuid(), p.getId(), null,\n 10, null, null, false, null);\n consumerResource.bind(guestConsumer.getUuid(), p.getId(), null,\n 10, null, null, false, null);\n // ensure the correct # consumed from the bonus pool\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 100);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 100);\n // keep this list so we don't need to search again\n subscribedTo.add(p);\n }\n else {\n parentPool = p;\n }\n }\n // manifest consume from the physical pool and then check bonus pool quantities\n consumerResource.bind(manifestConsumer.getUuid(), parentPool.getId(), null, 7, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 30);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 30);\n }\n // manifest consume from the physical pool and then check bonus pool quantities.\n // Should result in a revocation of one of the 10 count entitlements.\n consumerResource.bind(manifestConsumer.getUuid(), parentPool.getId(), null, 2, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n }\n // system consume from the physical pool and then check bonus pool quantities.\n // Should result in no change in the entitlements for the guest.\n consumerResource.bind(systemConsumer.getUuid(), parentPool.getId(), null, 1, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n }\n }", "public interface Processor {\n\n /**\n * Common key on the params map that uses/returns the process method\n */\n enum ParameterKeys {\n ID, BODY, LEFT, RIGHT, STOP_FLAG, RESULT\n }\n\n /**\n * It's the entry point to call the business logic execution on each Processor\n * @param params Map of params that is been use inside the Processor\n * @return the new state of the params after the business logic execution\n * @throws NullPointerException if the params is null, or an expected key inside the map\n * @throws IllegalArgumentException id the value of the param is not valid\n */\n Map<ParameterKeys, Object> process(final Map<ParameterKeys, Object> params) throws NullPointerException, IllegalArgumentException;\n}", "@Test (dependsOnMethods = \"consumerWithForEach\")\n public void consumerChaining(){\n Consumer <String> dbConsumer = s -> System.out.println(\"Logging to db :: \" + s);\n Consumer <String> consoleConsumer = s -> System.out.println(\"Logging to console :: \" + s);\n Consumer <String> dbConsoleConsumer = dbConsumer.andThen(consoleConsumer);\n allDrivers.forEach(dbConsoleConsumer);\n allDrivers.forEach(dbConsumer.andThen(consoleConsumer));\n\n Map<String, Consumer<String> > consumerMap = new HashMap<>();\n consumerMap.put(\"db\",dbConsumer);\n consumerMap.put(\"console\",consoleConsumer);\n consumerMap.put(\"dbConsole\", dbConsoleConsumer);\n\n allDrivers.forEach(consumerMap.get(System.getProperty(\"consumer-type\")));\n\n\n }", "public interface AwardStrategy\n{\n /**\n * Obtain a list of prizes, for a all existing strategies to retrieve awards. \n *\n * @return The list of prizes, required for a given strategy.\n */\n List<Prize> getPrizeList();\n}", "@Override\n public void scanActuatorsParked() {\n }", "public EventMapper onPalletUpdate(final Consumer<Pallet> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).setConsumerUpdatePallet(consumer);\n\t\treturn this;\n\t}", "public interface ResourcePool {\n\n /**\n * Returns the id of the party.\n */\n int getMyId();\n\n /**\n * Returns the number of players.\n */\n int getNoOfParties();\n\n}", "@Test\n public void testBeforeOffer_MgrTrue() {\n when(mgr1.beforeOffer(any(), any())).thenReturn(true);\n\n assertTrue(pool.beforeOffer(controller1, CommInfrastructure.UEB, TOPIC1, EVENT1));\n verify(mgr1).beforeOffer(TOPIC1, EVENT1);\n\n // ensure it's still in the map by re-invoking\n assertTrue(pool.beforeOffer(controller1, CommInfrastructure.UEB, TOPIC2, EVENT2));\n verify(mgr1).beforeOffer(TOPIC2, EVENT2);\n\n assertFalse(pool.beforeOffer(controllerDisabled, CommInfrastructure.UEB, TOPIC1, EVENT1));\n }", "public interface IPRequest<P> {\n\n P permission(String... permission);\n\n P permission(List<String> permissions);\n\n P rationale(RationaleAction<List<String>> action);\n\n P onDenied(Action<List<String>> action);\n\n P onGranted(Action<List<String>> action);\n\n void start();\n\n}", "public interface AMDPModelLearner extends AMDPPolicyGenerator{\n\n\n public void updateModel(State s, Action a, List<Double> rewards, State sPrime, GroundedTask gt);\n\n\n}", "public interface ChangeProducerStrategy {\n /**\n * For the register contents and change amount passed in computes the cash required to provide this change amount \n * with minimal amount of bills possible and returns it as a solution. If it is not possible to allocate cash for it - returns null.\n * \n * @param cashAvailable - cash available to produce the change amount requested.\n * @param changeAmount - change amount.\n * @return solution computed for the change or null if it is not possible to allocate cash for change.\n */\n Solution computeChange(Cash cashAvailable, int changeAmount);\n}", "@Override\n\tpublic void blackjack(Participante p) {\n\t\t\n\t}", "public interface Battle {\n\n void battleBetween(Tank tank1, Tank tank2, Consumer<Integer> consumer);\n\n}", "public PickPermitTileBonusAction map(PickPermitTileActionDTO pickPermitTileActionDTO);", "public AcquirePermitTile map(AcquirePermitTileDTO selectedActionDTO);", "private void poetries() {\n\n\t}", "void genPromote(Collection ret, int from, int to, int bits) {\n\tfor (char i = KNIGHT; i <= QUEEN; ++i) {\n\tBouger g = new Bouger(from, to, i, (bits | 32), 'P');\n\tg.setScore(1000000 + (i * 10));\n\tret.add(g);\n\t}\n\t}", "public void actionOffered();", "public Consumer(String name, String password, String tag, String type, RankingStrategy rankingStrategy){\n\t\tthis.name = name;\n\t\tthis.password = password;\n\t\tthis.taste = tag;\n\t\tthis.type = type;\n\t\tthis.rankingStrategy = rankingStrategy;\n\t\tpayoffs = new ArrayList<Integer>();\n\t\trandGen = new Random();\n\t}", "@Test\n\tpublic void pin() {\n\t\tassertEquals(\"value\", p.pin(\"key\", () -> \"value\"));\n\t\tassertThat(p.keys(), contains(\"key\"));\n\t\t// The Supplier is not called second time.\n\t\tassertEquals(\"value\", p.pin(\"key\", () -> \"other\"));\n\t}", "public interface MemberStrategy {\r\n /**\r\n * 计算图书的价格\r\n * @param booksPrice 图书的原价\r\n * @return 计算出打折后的价格\r\n */\r\n public double calcPrice(double booksPrice);\r\n}", "@FunctionalInterface\npublic interface PutInPoolAccessor {\n\tDoubleLinkedListElement<Pair<Integer, Executable>> putInPool(Modifier modifier);\n}", "public interface BoatRatingInteractor {\n public void upboat(BoatRatingListener listener);\n\n public void downboat(BoatRatingListener listener);\n}", "public interface GameItemConsumer {\n\n\t/**\n\t * Adds more gold to the amount of gold the player already has\n\t * \n\t * @param gold The amount of gold to add\n\t */\n\tpublic abstract void addGold(int gold);\n\n\t/**\n\t * Add to the player's HP\n\t * \n\t * @param hp The amount of HP to add to the player\n\t */\n\tpublic abstract void incrementHealth(int hp);\n\n\t/**\n\t * Sets the AP to zero. Used by actions which take up all the AP\n\t */\n\tpublic abstract void zeroAP();\n\t\n\t\n\t/**\n\t * Informs the user of an equipment change;\n\t * @param string\n\t */\n\tpublic abstract void equipmentChange(String string);\n}", "private void offer() {\n\t\t\t\n\t\t}", "@Override\n public void action() {\n DFAgentDescription appointmentAgentDescription = dfSubscription.getAgentDescription();\n List<AllocationState> preferredAllocations = patientAgent.getAllocationStates();\n\n if (patientAgent.getCurrentAllocation() == GlobalAgentConstants.APPOINTMENT_UNINITIALIZED) {\n /* Patient agent has not got any appointment from the hospital agent yet */\n return;\n\n } else if (preferredAllocations.isEmpty()) {\n /* Patient Agent has its most preferred appointment */\n isHappyWithAppointment = true;\n\n } else if (appointmentAgentDescription != null) {\n\n /* Loop executed when action is executed for the first time */\n if (preferredAllocationsIterator == null) {\n /* Querying patient preferences */\n preferredAllocationsIterator = patientAgent.getAllocationStates().iterator();\n currentSize = patientAgent.getAllocationStates().size();\n }\n\n\n if (!preferredAllocationsIterator.hasNext()) {\n /* Condition executed when no more swaps available */\n updatePreferences();\n\n } else if (expectedMessageTemplate == null) {\n\n /* We are not expecting any response, we can make another swap proposal */\n proposeSwap(preferredAllocationsIterator.next(), appointmentAgentDescription);\n\n } else {\n /* Some message has been sent, awaiting a response */\n ACLMessage expectedMessage = patientAgent.receive(expectedMessageTemplate);\n if (expectedMessage != null) {\n boolean wasSwapSuccessful = receiveResponse(expectedMessage, appointmentAgentDescription);\n expectedMessageTemplate = null;\n currentlyProposedAllocationSwap = null;\n\n /* If swap has been successful, we need to update our preference list\n as the patient agent has got new appointment */\n if (wasSwapSuccessful) {\n updatePreferences();\n }\n }\n }\n }\n }", "public abstract void distributeTeamsPointsRedoubleGame(Announce normalAnnounce);", "public interface MemoConsumer {\n\n public void creatArray();\n\n public void creatHashMap();\n\n}", "public interface Panic_BuyingPresenter {\n\n void start();\n\n void HumanList();\n\n double Calculated_distance(LatLng start, LatLng end);\n\n void purchasing();\n\n void getPicNTextInfo(int pid);\n}", "void visitProducer(MethodHandle handle);", "void setBrokerAlgo(BrokerAlgo inBrokerAlgo);", "private interface Permit {\n\t\t/**\n\t\t * context id\n\t\t */\n\t\tpublic String id();\n\t\t\n\t\t/**\n\t\t * The context which we have a permit to\n\t\t */\n\t\tpublic ColumnContext context();\n\n\t\t/**\n\t\t * Must call release when done with context\n\t\t */\n\t\tpublic void revoke();\n\t}", "boolean getProbables();", "public interface PaidNotIssuedService {\n Map<String, Integer> markChecksPaidNotIssuedByAccounts(List<Account> accounts);\n Map<String, Integer> markChecksPaidNotIssuedByCompany(List<Company> company);\n Map<String, Integer> markCheckPaidNotIssuedByBank(List<Bank> banks);\n Map<String, Integer> markChecksPaidNotIssuedByCompanyIds(List<Long> companyIds);\n Map<String, Integer> markChecksPaidNotIssuedByBankIds(List<Long> bankIds);\n Map<String, Integer> markChecksPaidNotIssuedByAccountIds(List<Long> accountIds);\n}", "public interface ISettingInteractor {\n}", "public abstract void onContribution(int amount, Player player);", "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 interface ISeedProveiderRpcService {\n Long getTask( Map<String, Object> mapQuery) throws BizCheckedException;\n void createTask( Map<String, Object> mapQuery) throws BizCheckedException;\n List<String> getOrderList(String barcode) throws BizCheckedException;\n List<Map> getStoreList(Map<String, Object> mapQuery) throws BizCheckedException;\n}", "public interface ISpecimenCrossover {\n\n StrategySpecimen doCrossover(StrategySpecimen specimen1, StrategySpecimen specimen2);\n}", "private void setAttributesForPersonResponsibleProcedure(IacucProcedurePersonResponsible resposibleProcedure, IacucProtocolPerson protocolPerson, \n IacucProtocolStudyGroup iacucProtocolStudyGroup) {\n resposibleProcedure.setProtocolPersonId(protocolPerson.getProtocolPersonId());\n resposibleProcedure.setProtocolPerson(protocolPerson);\n resposibleProcedure.setIacucProtocolStudyGroupId(iacucProtocolStudyGroup.getIacucProtocolStudyGroupId());\n }", "void setProbables(boolean probables);", "@Test\n\tpublic void testConsumerMapAdd() throws Exception {\n\t\t// Create a ProfileConsumer, and make sure it appears in the consumer\n\t\t// map.\n\t\tProfileCollector collector = getCollector(serverNode);\n\n\t\tMap<String, ProfileConsumer> consumerMap = profileCollector\n\t\t\t\t.getConsumers();\n\t\tint count = consumerMap.size();\n\n\t\tProfileConsumer pc1 = collector.getConsumer(\"Cons1\");\n\t\tProfileConsumer pc2 = collector.getConsumer(\"Cons2\");\n\n\t\tconsumerMap = profileCollector.getConsumers();\n\t\tassertSame(count + 2, consumerMap.size());\n\t\tassertEquals(pc1, consumerMap.get(\"Cons1\"));\n\t\tassertEquals(pc2, consumerMap.get(\"Cons2\"));\n\t}", "public void setProposer(Integer proposer) {\r\n this.proposer = proposer;\r\n }", "BrokerAlgo getBrokerAlgo();", "public EventMapper setCapacity(final Pallet pallet, final double weight) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putCapacity(pallet, weight);\n\t\treturn this;\n\t}", "protected abstract void applyPrinciple();", "public interface Provider {\n public Sender produce();\n}", "public interface MatingPoolInterface {\n\n\t/**\n\t * Fills the pool with rockets from the given list.\n\t * \n\t * @param rockets\n\t */\n\tvoid fillPool(List<RocketInterface> rockets);\n\n\t/**\n\t * Gets a random rocket from the pool.\n\t * \n\t * @return\n\t */\n\tRocketInterface getRandomRocket();\n\n\t/**\n\t * Sets the position of the rocket target.\n\t * \n\t * @param target\n\t */\n\tvoid setRocketTarget(Vector2 target);\n}", "public void assignPortfolioShareholders(Customer cust, Map<ModelPortfolio, Portfolio> portMap,\n Map<ModelPortfolio, AllocationModel> allocMap, ModelPortfolio portfolioModel) {\n\n if (portfolioModel == ModelPortfolio.AGGRESSIVEGROWTH) {\n portMap.get(ModelPortfolio.AGGRESSIVEGROWTH).addShareHolder(cust, allocMap.get(ModelPortfolio.AGGRESSIVEGROWTH));\n // portMap.get(ModelPortfolio.AGGRESSIVEGROWTH).displayPortfolio();\n } else if (portfolioModel == ModelPortfolio.GROWTH) {\n portMap.get(ModelPortfolio.GROWTH).addShareHolder(cust, allocMap.get(ModelPortfolio.GROWTH));\n //portMap.get(ModelPortfolio.GROWTH).displayPortfolio();\n } else if (portfolioModel == ModelPortfolio.INCOME) {\n portMap.get(ModelPortfolio.INCOME).addShareHolder(cust, allocMap.get(ModelPortfolio.INCOME));\n //portMap.get(ModelPortfolio.INCOME).displayPortfolio();\n } else if (portfolioModel == ModelPortfolio.RETIREMENT) {\n portMap.get(ModelPortfolio.RETIREMENT).addShareHolder(cust, allocMap.get(ModelPortfolio.RETIREMENT));\n //portMap.get(ModelPortfolio.RETIREMENT).displayPortfolio();\n } else if (portfolioModel == ModelPortfolio.INVALIDPORTFOLIO) {\n System.out.println(\"Customer \" + cust.getLastName() + \" Cannot be assigned to a portfolio\");\n }\n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "public interface DistributorConnector {\n\n /**\n * Lets the factory know what the current demand of the distributor is.\n *\n * @param demandPerType the demand of the distributer by type\n */\n public void setDemand(Map<ClockType, Integer> demandPerType);\n\n /**\n * Registers a listener for clock updates in the distributor stock.\n *\n * @param listener the listener to be registered\n * @return a subscription for the registration that can be cancelled\n */\n public Subscription subscribeForDistributorDeliveries(ClockListener listener);\n\n /**\n * Removes the given clock from the distributor stock.\n *\n * @param removedClock the clock to be removed.\n */\n public void removeClockFromStock(Clock removedClock);\n}", "Builder addProducer(Person value);", "public void getSupplier(Supplier supplier) {\n\t\r\n}", "public interface BountyPresenter {\n}", "public interface IBankWorkerAction extends INormalUserAction {\n // 查用户的信用\n void checkUserCredit();\n // 冻结用户账号\n void freezeUserAccount();\n}", "public AcceptAnOffer map(AcceptAnOfferDTO selectedActionDTO);", "protected void performMapping_() throws IllegalActionException,\r\n\t\t\tNameDuplicationException {\r\n\r\n\t\t// Getting all producers where lifelines can be mapped\r\n\t\tproducers_ = getproducers_();\r\n\t\tint amountOfProducers = producers_.size();\r\n\r\n\t\t// Goes through the list of producers and checks their positions on the\r\n\t\t// mesh to find out the NoC dimensions\r\n\r\n\t\tfor (int i = 0; i < amountOfProducers; i++) {\r\n\r\n\t\t\tProducer p = (Producer) producers_.get(i);\r\n\t\t\tint x = p.getAddressX();\r\n\t\t\tint y = p.getAddressY();\r\n\r\n\t\t\tif (x > xdimension)\r\n\t\t\t\txdimension = x;\r\n\t\t\tif (y > ydimension)\r\n\t\t\t\tydimension = y;\r\n\r\n\t\t}\r\n\r\n\t\t// Creates a hashtable indexing all lifelines by their UML names,\r\n\t\t// which is the name entered by the model designer\r\n\t\t//\r\n\r\n\t\tHashtable lifelinesByUMLName = new Hashtable();\r\n\t\tEnumeration lifelines = lifelinesDirector_.keys();\r\n\r\n\t\twhile (lifelines.hasMoreElements()) {\r\n\r\n\t\t\tLifeline l = (Lifeline) lifelines.nextElement();\r\n\r\n\t\t\tString name = l.getUMLName();\r\n\t\t\tif (!(lifelinesByUMLName.get(name) instanceof Vector))\r\n\t\t\t\tlifelinesByUMLName.put(name, new Vector());\r\n\t\t\t((Vector) lifelinesByUMLName.get(name)).addElement(l);\r\n\t\t}\r\n\r\n\t\t// Reads the contents of the \"lifelines\" parameter and parses\r\n\t\t// the substrings separated by a comma\r\n\r\n\t\tString s = orderOfLifelines.stringValue();\r\n\t\tStringTokenizer st = new StringTokenizer(s, \",\");\r\n\r\n\t\t// Fetches each lifeline of the list and maps it sequentially to a\r\n\t\t// producer\r\n\t\twhile (st.hasMoreTokens()) {\r\n\r\n\t\t\tVector b = (Vector) lifelinesByUMLName.get(st.nextToken());\r\n\t\t\tProducer p = nextProducer(); // must be called even if the lifeline\r\n\t\t\t\t\t\t\t\t\t\t\t// doesn't exist, to enable a\r\n\t\t\t\t\t\t\t\t\t\t\t// \"no map\"\r\n\t\t\tif (b != null) {\r\n\t\t\t\tfor (int i = 0; i < b.size(); i++) {\r\n\r\n\t\t\t\t\tLifeline bl = (Lifeline) b.elementAt(i);\r\n\t\t\t\t\tlifelinesProducer_.put(bl, p);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public interface OptionsProvider {\n void reqRooms(String room_name, String date, String floor, String stime, String etime, String capacity, String proom,int msp, OnRoomsReceived onRoomsReceived);\n}", "public void recevoir(IPorcelet p);", "public interface ExchangeTasks {\n\n public Map<String, BotPrice> getData() throws ExchangeException;\n\n}", "protected Strategy getStrategy(){\n return Strategy.P2P_STAR;\n }", "public interface MapP2P<K, V> {\n\n /** Adds key and value in associative array */\n boolean put(K key, V value);\n\n /** Gets from associative array particular value which associated with received key */\n V get(K key);\n\n /** Removes from associative array particular value which associated with received key */\n V remove(K key);\n\n /** Adds in current map other collection which implements interface MapP2P */\n boolean addAll(MapP2P<K, V> mapP2P);\n\n /** Returns information informing whether the given key is in the collection */\n boolean containsKey(K key);\n\n /** Returns information informing whether the given value is in the collection */\n boolean containsValue(Object value);\n\n /** Returns amount element which stored in the associative array */\n int size();\n\n /** Removes all elements (key-value) from collection */\n void clear();\n\n /** Returns set of nodes which contains key-value */\n Set<Node<K, V>> entrySet();\n\n /** Returns information about whether there are elements on the current associative array */\n boolean isEmpty();\n\n /** Interface for Node that contains key and value */\n interface Node<K, V> {\n /** Returns the key of current node */\n K getKey();\n /** Returns the value of current node */\n V getValue();\n }\n\n /** Performs the given action for each node in this map */\n default void forEach(BiConsumer<? super K, ? super V> action) {\n Objects.requireNonNull(action);\n for (Node<K, V> node : entrySet()) {\n action.accept(node.getKey(), node.getValue());\n }\n }\n\n}", "public PolicyMap getPolicyMap();", "@Override\r\n\tpublic void visit(Park park) {\n\t\t\r\n\t}", "public interface OutcomeMapper<T> {\n\n void onSuccess(ProcessResponse responseResult);\n void onRedirect(Redirect redirectResult);\n void onValidationProblem(ValidationProblem problem);\n void onConsentAcquired(ConsentAcquired acquired);\n void onReturnableProcessError(InternalReturnableConsentGoneProcessError internalReturnableProcessError);\n void onError();\n}", "@Override\r\n\tpublic void assignSlots(Topologies topologies,\r\n\t\t\tMap<String, Collection<WorkerSlot>> newSlotsByTopologyId) {\n\r\n\t}", "public interface PrincipalPresenter {\n\n public void calcular(NumReq req, String operacion);\n}", "public interface PoolingQueueService {\n\n void setIMessageProcessor(final IMessageProcessor iMessageProcessor) throws PoolingQueueException;\n\n MessageMapper cconn(String serialNumber, String contentType, MessageMapper messageMapper);\n\n MessageMapper cpull(String serialNumber);\n\n MessageMapper cpush(String serialNumber, String applicationID, String broadcast, String contentType, MessageMapper messageMapper);\n\n MessageMapper aconn(String serialNumber, String applicationID, String contentType, MessageMapper messageMapper);\n\n MessageMapper apull(String serialNumber, String applicationID, String messageAmount);\n\n MessageMapper apush(String serialNumber, String applicationID, String contentType, MessageMapper messageMapper);\n\n}", "public interface Strategy {\n public Integer pick_card( List<Card> hand, Suit trump, Suit round );\n}", "boolean isSetProbables();", "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 }", "private void functionalInterface2() {\n\t\tPokedex.printData(Arrays.asList(charmander));\n\n\t\tguilherme.powerUp(charmander, new BigDecimal(\"-10\"), psRestoreHp // 100\n\t\t\t\t.and(psMinimalDamage) // -10\n\t\t\t\t.and(psIncreaseHp) // +25\n\t\t\t\t.and(psMinimalDamage) // -10\n\t\t\t\t.and(psHugeDamage) // -20\n\t\t);\n\n\t\tPokedex.printData(Arrays.asList(charmander));\n\t}", "public interface OrderBookBalancingLogic {\n boolean balancingByPercentage();\n}", "@Test\n public void CardRequirement2() {\n MSG_ACTION_ACTIVATE_LEADERCARD message = new MSG_ACTION_ACTIVATE_LEADERCARD(1);\n\n LeaderCard l3 = new LeaderCard(4,\n new CardRequirements(Map.of(Color.YELLOW, new ReqValue(1, 2))),\n new Production(Resource.SHIELD));\n ArrayList<LeaderCard> cards = new ArrayList<>();\n cards.add(l1);\n cards.add(l3);\n p.associateLeaderCards(cards);\n DevelopmentCard card1 = new DevelopmentCard(1, Color.GREEN, 0, null, null);\n DevelopmentCard card2 = new DevelopmentCard(2, Color.YELLOW, 0, null, null);\n p.getDevelopmentSlot().addCard(card1, 1);\n p.getDevelopmentSlot().addCard(card2, 1);\n c.emptyQueue();\n\n assertTrue(am.activateLeaderCard(p, message));\n\n assertTrue(l3.isEnabled());\n\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_NOTIFICATION).count());\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_UPD_Player).count());\n assertEquals(2, c.messages.size());\n }", "public interface MapPresenter {\n /**\n * 注册广播\n */\n void registerReceiver();\n\n /**\n * 注销广播\n */\n void unregisterReceiver();\n}", "public interface Offerable {\n //this is a marker interface to allow a function in Checkout to run depending on what subclass of item is being used as an argument\n}", "public interface IPaletteSink {\r\n\t/**\r\n\t * Inject a palette\r\n\t * @param\tpalette\tNew palette to inject\r\n\t */\r\n\tpublic void accept(IPalette palette);\r\n}", "OMMPool getPool();", "public abstract T provision();", "void registerOrderConsumer(OrderConsumer orderConsumer);", "RequestSender onAgree(Consumer<Message> consumer);", "public interface BenefitAvailabilityPolicy {\n\n\t/**\n\t * Calculates if an account is eligible to receive benefits for a dining.\n\t * @param account the account of the member who dined\n\t * @param dining the dining event\n\t * @return benefit availability status\n\t */\n\tpublic boolean isBenefitAvailableFor(Account account, Dining dining);\n}", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public interface ACPowerSource {\n void provideACPower();\n}", "public interface PaymentStrategy {\n\n void pay(double amount);\n\n}", "public void calculateProbabilities(){\n\t}", "private void assignIntoGrade() {\n }", "public interface ICommonAction {\n\n void obtainData(Object data, String methodIndex, int status,Map<String, String> parameterMap);\n\n\n}", "public interface PooledObject {\n \n /** Object is checked in to the pool **/ \n public final int CHECKEDIN = 1;\n \n /** Object is checked out from the pool **/ \n public final int CHECKEDOUT = 2;\n \n /** Object is marked for sweep **/\n public final int MARKEDFORSWEEP = 3; \n \n /**\n * Match the the pooled object for the given properties.\n *\n * @param\tp\tProperties while creating.\n * @return True if matches.\n */ \n public abstract boolean isMatching(Properties p);\n \n /**\n * Checks whether the pooled object is usable or not.\n *\n * @return\tTrue if it is usable.\n */\n public abstract boolean isUsable(); \n \n /**\n * Mark pooled object as usable.\n */\n public abstract void markUsable(); \n \n /**\n * Mark the object as checked out\n */ \n public abstract void checkedOut(); \n \n /**\n * Mark the object as checked in\n */ \n public abstract void checkedIn();\n \n /**\n * This marks the object for sweeping.\n */\n public abstract void markForSweep();\n \n /**\n * Checks whether the object is marked for sweeping.\n * \n * @return\tIf it is already marked for sweeping.\n */\n public abstract boolean isMarkedForSweep(); \n \n /**\n * Destroys the pooled object. This will abruptly destroy the object.\n * Generally used when there is an error or connection pool is shutdown.\n */\n public abstract void destroy() throws Exception;\n \n /**\n * Get the time of creation of this object.\n *\n * @return the Time of creation of this object.\n */\n public abstract long getCreatedTime(); \n \n}", "public interface IICCpuCardPresenter {\n void cardPower();\n void cardHalt();\n void exist();\n void exchangeApdu();\n}", "public interface IProgressiveCustomRouting {\n void setStateGetter(Supplier<ProgressiveState> stateGetter);\n void setCustomCommand(Consumer<String> command);\n}", "Provider apply(List<Provider> providers);", "public interface Strategy {\n\n\n\tpublic void operation();\n\n}", "@Override\n\tpublic void visit(Park park) {\n\n\t}", "public interface ProducerService {\n}", "public interface PlayerInteraction {\n\t/**\n\t * Asynchronously select a color from a set of colors\n\t * \n\t * @param colors set of colors to select from\n\t * @param callback callback function with selected color\n\t */\n\tvoid selectColorFrom(Set<GameColor> colors, String title, Consumer<GameColor> callback);\n\n\t/**\n\t * Asynchronously select a player from a list of players\n\t * \n\t * @param players list of players to select from\n\t * @param callback callback function with selected player\n\t */\n\tvoid selectPlayerFrom(List<Player> players, String title, Consumer<Player> callback);\n\n\t/**\n\t * Asynchronously select a card from a list of cards\n\t * \n\t * @param cards list of cards to select from\n\t * @param callback callback function with selected card\n\t */\n\tdefault void selectOneCardFrom(List<Card> cards, String title, Consumer<Card> callback) {\n\t\tselectCardsFrom(1, cards, title, list -> callback.accept(list.get(0)));\n\t}\n\n\t/**\n\t * Asynchronously select many cards from a list of cards. The callback will only\n\t * be called if a valid selection with the correct number of cards is made.\n\t * \n\t * @param number the number of cards to choose\n\t * @param cards cards to choose from\n\t * @param callback callback function with selected cards\n\t */\n\tvoid selectCardsFrom(int number, List<Card> cards, String title, Consumer<List<Card>> callback);\n\n\t/**\n\t * Asynchronously select a city from the set of cities\n\t * \n\t * @param cities the cities to select from\n\t * @param callback callback function with the selected city\n\t */\n\tvoid selectCityFrom(Set<City> cities, String title, Consumer<City> callback);\n\n\tList<Card> selectCardsToDiscard(int number, List<Card> cards, String title);\n\n\t/**\n\t * Asynchronously arrange many cards. The callback function must provide a new\n\t * data structure that will not affect the provided list of cards when modified\n\t * \n\t * @param cards cards to arrange\n\t * @param callback callback function with the arranged list of cards\n\t */\n\tvoid arrangeCards(List<Card> cards, String title, Consumer<List<Card>> callback);\n\n\t/**\n\t * Display cities to the user without blocking\n\t * \n\t * @param cities\n\t */\n\tdefault void displayCities(Set<City> cities, String title) {\n\t\tList<Card> cityCardList = new ArrayList<>();\n\t\tcities.forEach(card -> cityCardList.add(new CardCity(card)));\n\t\tdisplayCards(cityCardList, title);\n\t}\n\n\t/**\n\t * Display cards to the user without blocking\n\t * \n\t */\n\tvoid displayCards(List<Card> cards, String title);\n}", "public interface IPermeable {\r\n\t\r\n\tPermeability getPermeability();\r\n\r\n}" ]
[ "0.56134236", "0.5339568", "0.5335697", "0.5212817", "0.5192542", "0.5171127", "0.51674616", "0.5124393", "0.5117934", "0.5116623", "0.51000094", "0.5099916", "0.50927", "0.50834924", "0.50633", "0.506131", "0.5056797", "0.5013905", "0.5010921", "0.500952", "0.49852785", "0.49731353", "0.49668807", "0.49647915", "0.49608746", "0.49391854", "0.49274257", "0.49204102", "0.49175104", "0.4916437", "0.49130648", "0.4913043", "0.4902158", "0.48861495", "0.48789498", "0.4849426", "0.4835301", "0.48259774", "0.48239443", "0.48153162", "0.48152626", "0.48086035", "0.48064157", "0.47966307", "0.47964188", "0.4789023", "0.47776717", "0.47775108", "0.47747988", "0.47739106", "0.4759825", "0.47582445", "0.47567004", "0.47503436", "0.47475585", "0.47448754", "0.47385907", "0.47346207", "0.47322336", "0.47262245", "0.47206315", "0.47173637", "0.4710281", "0.47096997", "0.47024757", "0.469987", "0.4699086", "0.4698054", "0.46929306", "0.4692712", "0.46861598", "0.46846747", "0.4680351", "0.46788555", "0.46763584", "0.46763554", "0.46731514", "0.46713218", "0.46688512", "0.46667397", "0.46651217", "0.4663365", "0.46559295", "0.46542883", "0.4654283", "0.46532756", "0.46430716", "0.4642714", "0.46361202", "0.463527", "0.4631953", "0.462861", "0.46269947", "0.46235073", "0.46189594", "0.4617172", "0.46167114", "0.4615457", "0.4613871", "0.46123946" ]
0.54589283
1
Mandatory. Map duty release contract to a consumer
public EventMapper onRelease(final Consumer<Set<Duty>> consumer) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumer(consumer, MappingEvent.release); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DistributorConnector {\n\n /**\n * Lets the factory know what the current demand of the distributor is.\n *\n * @param demandPerType the demand of the distributer by type\n */\n public void setDemand(Map<ClockType, Integer> demandPerType);\n\n /**\n * Registers a listener for clock updates in the distributor stock.\n *\n * @param listener the listener to be registered\n * @return a subscription for the registration that can be cancelled\n */\n public Subscription subscribeForDistributorDeliveries(ClockListener listener);\n\n /**\n * Removes the given clock from the distributor stock.\n *\n * @param removedClock the clock to be removed.\n */\n public void removeClockFromStock(Clock removedClock);\n}", "public EventMapper onPalletRelease(final Consumer<Set<Pallet>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumerPallet(consumer, MappingEvent.releasePallet);\n\t\treturn this;\n\t}", "void registerOrderConsumer(OrderConsumer orderConsumer);", "@Override\n public boolean release(ResourceConsumer consumer) {\n return false;\n }", "protected abstract void consume(InstrumentPriceVO instrumentPriceVO);", "public OrderRoutingConsumerInterceptor(OrderRoutingConsumer consumer)\n {\n cmiObject = consumer;\n }", "Consumer getConsumer();", "void executeWithinLocks(Consumer<MoneyTransferRequest> consumer, MoneyTransferRequest request);", "public void createContract() {\n\r\n\t}", "Consumer createConsumer(String consumerId, String consumerName) throws RegistrationException;", "default boolean release(Exchange exchange) {\n return true;\n }", "private CoverageReaderContract() {}", "public interface StrongDomainConsumer {\n \n /**\n * Signal the end of the output stream.\n * \n */\n public void close();\n \n /**\n * Consume the next strong domain.\n * \n * @param domain \n */\n public void consume(IdentifiableIDSet domain);\n \n /**\n * Signal the beginning of the output stream.\n * \n */\n public void open();\n}", "public ApiReleaseContractInner() {\n }", "@Override\r\n\tpublic void publish(ISeller seller, IHotelBiding hotelBiding) {\n\t\t\r\n\t}", "public interface Consumer {\n\n @Nonnull\n String getApiKey();\n\n void setApiKey(@Nonnull String apiKey);\n\n @Nonnull\n String getLoginId();\n\n void setLoginId(@Nonnull String loginId);\n\n @Nonnull\n String getSiteKey();\n\n void setSiteKey(@Nonnull String siteKey);\n\n @Nonnull\n String getTouchPoint();\n\n void setTouchPoint(@Nonnull String touchPoint);\n\n @Nonnull\n String getTid();\n\n void setTid(@Nonnull String tid);\n\n boolean hasTid();\n\n void setSharedSecret(@Nonnull String sharedSecret);\n\n @Nonnull\n String getSharedSecret();\n}", "public interface PriceMapService {\n\n /**\n * Receive a price map offer.\n * \n * <p>\n * Implementations must publish a {@link PriceMapOfferAccepted} event after accepting the offer. A\n * {@link PriceMapOfferCountered} event must be published after proposing a counter offer.\n * </p>\n * \n * @param offer\n * the offer\n * @return the offer entity, which informs the caller if the offer has been accepted, rejected, or\n * contains a counter-offer\n */\n @Nonnull\n PriceMapOfferEventEntity receivePriceMapOffer(PriceMapOffer offer);\n\n}", "public void setConsumer(Consumer consumer) {\n this.consumer = consumer;\n }", "RequestSender onAgree(Consumer<Message> consumer);", "public interface WithHoldOrderContract {\r\n\r\n ResponseData resendWithholdOrder();\r\n \r\n}", "private CatalogContract() {}", "public interface ContractService {\n\n /**\n * 获取授权提现函信息\n * @return\n */\n WithdrawalLetter getWithdrawalLetterInfo(Long id) throws Exception;\n\n\n /**\n * 获取 借款服务协议变量 信息\n * @return\n */\n LoanServiceAgreement getLoanServiceAgreementInfo(Long id) throws Exception;\n\n\n /**\n *\n * 获取 电子签名数字证书用户申请确认函s 信息\n * @return\n */\n ElectronicLetter getElectronicLetterInfo(Long id) throws Exception;\n /**\n * 获取个人信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n PersonalInfoProtocolResForm getPersonalInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取企业信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n CompanyInfoProtocolResForm getCompanyInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @param reqForm 请求参数\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId, LoanGuaranteeProtocolReqForm reqForm) throws Exception;\n\n /**\n * 公司立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> companyImmediatelySigned(Long id,ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 个人立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> personalImmediatelySigned(Long id, ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 获取担保函\n * @param orderNo 订单编号\n * @param userId 用户主键\n * @return 协议数据\n */\n GuarantorLetterResForm getGuaranteeLetter(String orderNo, Long userId) throws Exception;\n\n\n Map<String,Object> personFormValidate(PersonReqForm personReqForm);\n\n Map<String,Object> companyFormValidate(String otherLoanAmt, String signatoryName, String signatoryIdentity, String mobile, String smCode,MultipartFile file);\n}", "public interface ProducerService {\n}", "public interface MessageServiceInjector {\n public Consumer getConsumer() ;\n}", "public ReleaseAddressResponse releaseAddress(ReleaseAddress releaseAddress) {\n \t\treturn null;\r\n \t}", "SerialResponse charge(PinChargePost pinChargePost);", "public EventMapper onCapture(final Consumer<Set<Duty>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumer(consumer, MappingEvent.capture);\n\t\treturn this;\n\t}", "private StoneContract() {\n }", "public Subscription subscribeForDistributorDeliveries(ClockListener listener);", "@Override\n\t public void onRelease() {\n\n\t }", "ObligacionDeber createObligacionDeber();", "@objid (\"8f1c9d42-a8ac-4f52-b3f8-2b5f076b4348\")\n RequiredInterface getConsumer();", "public void _release() {\n throw new NO_IMPLEMENT(reason);\n }", "void saveChangesTo(Consumer consumer) throws RegistrationException;", "CarPaymentMethod processHotDollars();", "@Override\r\n\t@Transactional(\"transactionManager\")\r\n\tpublic void addConsumerDispute(Dispute dispute,int transactionId)\r\n\t{\r\n\t\tdispute.setDispute_id(0);\r\n\t\tTransactions transaction = orderDao.getTransaction(transactionId);\r\n\t\tif(transaction==null)\r\n\t\t\tthrow new CustomApplicationException(ErrorConstants.INVALID_TRANSACTION_ID,ErrorConstants.STR_INVALID_TRANSACTION_ID);\r\n\t\tif(!transaction.getStatus().equals(OrderState.DELIVERED))\r\n\t\t\tthrow new CustomApplicationException(ErrorConstants.INVALID_TRANSACTION_ID,ErrorConstants.STR_INVALID_TRANSACTION_ID);\r\n\t\t//Description , dispute amount\r\n\t\tif(dispute.getDisputed_amount() < 1 || dispute.getDisputed_amount() > transaction.getTransaction_amount())\r\n\t\t\tthrow new CustomDataException(ErrorConstants.INVALID_DISPUTE_AMOUNT,ErrorConstants.STR_INVALID_DISPUTE_AMOUNT);\r\n\t\tdispute.setStatus(DisputeStates.OPEN);\r\n\t\tdispute.setType(DisputeStates.PRODUCT_DISPUTE);\r\n\t\tdispute.setRefund_policy_id(0);\r\n\t\tdispute.setActivity_time(new Date());\r\n\t\ttransaction.setStatus(OrderState.DISPUTE);\r\n\t\t\r\n\t\tdispute.setTransaction(transaction);\r\n\t\torderDao.addDispute(dispute);\r\n\t\torderDao.updateTransactions(transaction);\r\n\t}", "public KaChingContract() {\n\t}", "public interface PinContract {\n\n interface View {\n\n void showPinMismatchError(String message);\n\n Context getContext();\n\n void correctPinEntered();\n }\n\n interface UserActionsListener {\n\n void tryUnlock(String pin);\n }\n}", "void release(Service service);", "public interface RentToBuyService {\n}", "public EventMapper onTransfer(final BiConsumer<Duty, Serializable> biconsumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).setBiConsumerTransfer(biconsumer);\n\t\treturn this;\n\t}", "@Override\r\n\tpublic void makeDeliveryFree() {\n\t\t\r\n\t}", "public interface EOAssociationConnector{\n /**\n * Invoked when one of the receiver's subcontrollers is disposed as a transient controller. Instructs the receiver to assume responsibility for managing the subcontroller's EOAssociation, association.\n */\n abstract void takeResposibilityForConnectionOfAssociation(com.webobjects.eointerface.EOAssociation association);\n\n}", "@Override\r\n\tpublic void updateConsumer(Consumer con) {\n\r\n\t}", "void release(PooledObject<T> t);", "private DishContract() {\n }", "@Test\n public void canObtainOwnRelease() throws Exception {\n final Release release = release();\n final RtReleaseAsset asset = new RtReleaseAsset(\n new FakeRequest(),\n release,\n 1\n );\n MatcherAssert.assertThat(\n asset.release(),\n Matchers.is(release)\n );\n }", "public void setUseContracts(boolean useContracts)\n {\n this.useContracts = useContracts;\n }", "public void deliver() {\n try {\n if (null != this.listener) {\n ContentObject pending = null;\n CCNInterestListener listener = null;\n synchronized (this) {\n if (null != this.data && null != this.listener) {\n pending = this.data;\n this.data = null;\n listener = (CCNInterestListener) this.listener;\n }\n }\n if (null != pending) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback (\" + pending + \" data) for: {0}\", this.interest.name());\n synchronized (this) {\n this.deliveryPending = false;\n }\n manager.unregisterInterest(this);\n Interest updatedInterest = listener.handleContent(pending, interest);\n if (null != updatedInterest) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback: updated interest to express: {0}\", updatedInterest.name());\n manager.expressInterest(this.owner, updatedInterest, listener);\n }\n } else {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback skipped (no data) for: {0}\", this.interest.name());\n }\n } else {\n synchronized (this) {\n if (null != this.sema) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Data consumes pending get: {0}\", this.interest.name());\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINEST)) Log.finest(Log.FAC_NETMANAGER, \"releasing {0}\", this.sema);\n this.sema.release();\n }\n }\n if (null == this.sema) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback skipped (not valid) for: {0}\", this.interest.name());\n }\n }\n } catch (Exception ex) {\n _stats.increment(StatsEnum.DeliverContentFailed);\n Log.warning(Log.FAC_NETMANAGER, \"failed to deliver data: {0}\", ex);\n Log.warningStackTrace(ex);\n }\n }", "public interface AGIssuer extends DoubleDispatchServer {\n public IssuerResponse processAGRequest(AGRequest authorizationGrantRequest);\n}", "public void getVersion(VersionConsumer consumer);", "private ChildContract() {}", "public interface PickDistributeContract {\n\n interface View extends BaseContract.View<PickDistributeContract.Presenter> {\n void success(RspAllDistribute list);\n\n void itemSuccess(List<RspDistribute> list);\n\n void submitSuccess();\n }\n\n interface Presenter extends BaseContract.Presenter {\n void getData();\n\n void itemClick(List<RspDistribute> list, int position);\n\n void submit(List<RspDistribute> list,String note,RspUser chooseEmp);\n }\n}", "Consumer getConsumerById(String consumerId) throws IllegalArgumentException, RegistrationException;", "@Override\n public String getDescription() {\n return \"Claim currency reserve\";\n }", "public EventMapper onUpdate(final Consumer<Duty> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).setConsumerUpdate(consumer);\n\t\treturn this;\n\t}", "private Consumer<Queue> getConsumerPostStart(SolaceConsumerDestination destination,\n\t\t\t\t\t\t\t\t\t\t\t\t ExtendedConsumerProperties<SolaceConsumerProperties> properties) {\n\t\treturn (queue) -> {\n\t\t\tprovisioningProvider.addSubscriptionToQueue(queue, destination.getBindingDestinationName(), properties.getExtension(), true);\n\n\t\t\t//Process additional subscriptions\n\t\t\tfor (String subscription : destination.getAdditionalSubscriptions()) {\n\t\t\t\tprovisioningProvider.addSubscriptionToQueue(queue, subscription, properties.getExtension(), false);\n\t\t\t}\n\t\t};\n\t}", "@Override\n\tpublic void onRelease(RobotAPI arg0) {\n\n\t}", "public interface NightlyOutService {\n\n /**\n * Deletes all the records that were copied to the GL.\n */\n public void deleteCopiedPendingLedgerEntries();\n\n /**\n * Copies the approved pending ledger entries to orign entry table\n */\n public void copyApprovedPendingLedgerEntries();\n}", "public interface BusDistributorService extends Services<BusDistributor,Long> {\r\n}", "public interface HTTPContract {\n void getRequirementList(AnnounceDataSource.GetRequirementListCallback callback);\n void getFeelingList(AnnounceDataSource.GetFeelingListCallback callback);\n void postFeelingCommend();\n void postFeelingComment();\n// void postRequirementBook();\n// void postRequirementComment();\n\n}", "protected void release()\n {\n }", "public interface DTTQPassenger {\n /**\n * The passenger leaves the bus and signals the bus driver if he's the last one to do so.\n * @param pid The passenger's ID.\n * @param seat The passenger's bus seat.\n */\n public void leaveTheBus(int pid, int seat);\n}", "@Override\n\tpublic void onRelease(RobotAPI arg0) {\n\t\t\n\t}", "boolean deliver(CommInfrastructure busType, String topic, Object event);", "public interface WithDrawAContract {\n interface View extends BaseView{\n void showBalance(UserBalanceDto userBalanceDto);\n void withdrawSuccess();\n }\n interface Presenter extends BasePresenter{\n void getUserBalance();\n void submitWithdraw(WithDrawAccountDto withDrawAccountDto,String money);\n }\n}", "RequestSender onRefuse(Consumer<Message> consumer);", "public Consumer getConsumer() {\n return consumer;\n }", "private Contract() {\n }", "public interface BillContracts {\n\tinterface View {\n\t\t/**\n\t\t * 列表显示\n\t\t * @param\n\t\t */\n\t\tpublic void showBillItem(BillList bills);\n\n\t}\n\n\tinterface Presenter {\n\n\t\t/**\n\t\t * 条目被点击\n\t\t * @param context\n\t\t * @param simpleBill\n\t\t */\n\t\tpublic void itemClick(Context context, SimpleBill simpleBill);\n\n\t\t/**\n\t\t * 获取列表\n\t\t */\n\t\tpublic BillList getBillList();\n\n\t\t/**\n\t\t * 通知数据改变\n\t\t */\n\t\tpublic void notifyDataChange(Context context, BillAdapter adapter);\n\n\t\t/**\n\t\t * 加载缓存\n\t\t */\n\t\tpublic void startCacheLoading(Context context, BillList.SyncLoadBillLisetner syncLoadBillLisetner);\n\n\t\t/**\n\t\t * 获取分享链接\n\t\t * @param activity\n\t\t * @param billId\n\t\t */\n\t\tpublic void getInviteLink(final Activity activity, final String billId);\n\t}\n}", "private BookContract() {}", "interface PaymentCallback {\n\n /**\n * Invoke the payment callback.\n * \n */\n void call();\n}", "public void testBidDeclineNotification(){\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n // owner.declineBid(thing1, bid);\n //assertTrue(borrower.notifiedOfDeclinedBid(bid));\n\n assertTrue(false);\n }", "com.djt.cvpp.ota.orfin.vadrevent.mapper.dto.VadrRelease publishVadrReleaseEvent() \n\tthrows \n\t\tEntityAlreadyExistsException, \n\t\tValidationException;", "public Object consumeBloqueante();", "public void setSubscriber(ARDInstanceSubscriber subscriber);", "public interface DataModelConsumer {\n\n /**\n * Consume the data model. The consumer shouldn't make any changes to it, as\n * other consumers could be using the model afterwards.\n *\n * @param dataModel\n */\n public void consumeDataModel(final Map<String, Object> dataModel);\n}", "public interface ICreditRefundBorrow {\n}", "public interface IDistributedLock {\n public String getLock(String itemId) throws KeeperException, InterruptedException;\n\n public void releaseLock(String itemId) throws KeeperException, InterruptedException;\n}", "public abstract void release();", "public abstract void release();", "public abstract void release();", "public interface MqConsumer {\n}", "public EventMapper onPalletCapture(final Consumer<Set<Pallet>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumerPallet(consumer, MappingEvent.capturePallet);\n\t\treturn this;\n\t}", "public interface AutoLoadConfigurationChangePushToGateService {\r\n /**\r\n * @return request sequence number\r\n */\r\n Integer requestAutoLoadConfigurationChange(String cardNumber, Integer autoLoadState, Long pickUpLocation);\r\n}", "public CustomerContract() {\n\n }", "public interface ChangeProducerStrategy {\n /**\n * For the register contents and change amount passed in computes the cash required to provide this change amount \n * with minimal amount of bills possible and returns it as a solution. If it is not possible to allocate cash for it - returns null.\n * \n * @param cashAvailable - cash available to produce the change amount requested.\n * @param changeAmount - change amount.\n * @return solution computed for the change or null if it is not possible to allocate cash for change.\n */\n Solution computeChange(Cash cashAvailable, int changeAmount);\n}", "private BookMasterContract() {\n }", "public interface BondComponent {\n double getPrice();\n }", "public interface DirectPreApprovalCancellation {\n\n /**\n * Get Direct Pre Approval Code\n *\n * @return Direct Pre Approval Code\n */\n String getCode();\n\n}", "public ContractMethod() {\n }", "public interface BenefitAvailabilityPolicy {\n\n\t/**\n\t * Calculates if an account is eligible to receive benefits for a dining.\n\t * @param account the account of the member who dined\n\t * @param dining the dining event\n\t * @return benefit availability status\n\t */\n\tpublic boolean isBenefitAvailableFor(Account account, Dining dining);\n}", "public void accept(final Consumer<Advancement> consumer) {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 3: getstatic net/minecraft/world/level/block/Blocks.RED_NETHER_BRICKS:Lnet/minecraft/world/level/block/Block;\n // 6: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 9: dup \n // 10: ldc \"advancements.nether.root.title\"\n // 12: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 15: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 18: dup \n // 19: ldc \"advancements.nether.root.description\"\n // 21: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 24: new Lnet/minecraft/resources/ResourceLocation;\n // 27: dup \n // 28: ldc \"textures/gui/advancements/backgrounds/nether.png\"\n // 30: invokespecial net/minecraft/resources/ResourceLocation.<init>:(Ljava/lang/String;)V\n // 33: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 36: iconst_0 \n // 37: iconst_0 \n // 38: iconst_0 \n // 39: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 42: ldc \"entered_nether\"\n // 44: getstatic net/minecraft/world/level/Level.NETHER:Lnet/minecraft/resources/ResourceKey;\n // 47: invokestatic net/minecraft/advancements/critereon/ChangeDimensionTrigger$TriggerInstance.changedDimensionTo:(Lnet/minecraft/resources/ResourceKey;)Lnet/minecraft/advancements/critereon/ChangeDimensionTrigger$TriggerInstance;\n // 50: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 53: aload_1 /* consumer */\n // 54: ldc \"nether/root\"\n // 56: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 59: astore_2 /* y3 */\n // 60: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 63: aload_2 /* y3 */\n // 64: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 67: getstatic net/minecraft/world/item/Items.FIRE_CHARGE:Lnet/minecraft/world/item/Item;\n // 70: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 73: dup \n // 74: ldc \"advancements.nether.return_to_sender.title\"\n // 76: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 79: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 82: dup \n // 83: ldc \"advancements.nether.return_to_sender.description\"\n // 85: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 88: aconst_null \n // 89: getstatic net/minecraft/advancements/FrameType.CHALLENGE:Lnet/minecraft/advancements/FrameType;\n // 92: iconst_1 \n // 93: iconst_1 \n // 94: iconst_0 \n // 95: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 98: bipush 50\n // 100: invokestatic net/minecraft/advancements/AdvancementRewards$Builder.experience:(I)Lnet/minecraft/advancements/AdvancementRewards$Builder;\n // 103: invokevirtual net/minecraft/advancements/Advancement$Builder.rewards:(Lnet/minecraft/advancements/AdvancementRewards$Builder;)Lnet/minecraft/advancements/Advancement$Builder;\n // 106: ldc \"killed_ghast\"\n // 108: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 111: getstatic net/minecraft/world/entity/EntityType.GHAST:Lnet/minecraft/world/entity/EntityType;\n // 114: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.of:(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 117: invokestatic net/minecraft/advancements/critereon/DamageSourcePredicate$Builder.damageType:()Lnet/minecraft/advancements/critereon/DamageSourcePredicate$Builder;\n // 120: iconst_1 \n // 121: invokestatic java/lang/Boolean.valueOf:(Z)Ljava/lang/Boolean;\n // 124: invokevirtual net/minecraft/advancements/critereon/DamageSourcePredicate$Builder.isProjectile:(Ljava/lang/Boolean;)Lnet/minecraft/advancements/critereon/DamageSourcePredicate$Builder;\n // 127: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 130: getstatic net/minecraft/world/entity/EntityType.FIREBALL:Lnet/minecraft/world/entity/EntityType;\n // 133: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.of:(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 136: invokevirtual net/minecraft/advancements/critereon/DamageSourcePredicate$Builder.direct:(Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;)Lnet/minecraft/advancements/critereon/DamageSourcePredicate$Builder;\n // 139: invokestatic net/minecraft/advancements/critereon/KilledTrigger$TriggerInstance.playerKilledEntity:(Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;Lnet/minecraft/advancements/critereon/DamageSourcePredicate$Builder;)Lnet/minecraft/advancements/critereon/KilledTrigger$TriggerInstance;\n // 142: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 145: aload_1 /* consumer */\n // 146: ldc_w \"nether/return_to_sender\"\n // 149: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 152: astore_3 /* y4 */\n // 153: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 156: aload_2 /* y3 */\n // 157: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 160: getstatic net/minecraft/world/level/block/Blocks.NETHER_BRICKS:Lnet/minecraft/world/level/block/Block;\n // 163: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 166: dup \n // 167: ldc_w \"advancements.nether.find_fortress.title\"\n // 170: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 173: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 176: dup \n // 177: ldc_w \"advancements.nether.find_fortress.description\"\n // 180: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 183: aconst_null \n // 184: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 187: iconst_1 \n // 188: iconst_1 \n // 189: iconst_0 \n // 190: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 193: ldc_w \"fortress\"\n // 196: getstatic net/minecraft/world/level/levelgen/feature/StructureFeature.NETHER_BRIDGE:Lnet/minecraft/world/level/levelgen/feature/StructureFeature;\n // 199: invokestatic net/minecraft/advancements/critereon/LocationPredicate.inFeature:(Lnet/minecraft/world/level/levelgen/feature/StructureFeature;)Lnet/minecraft/advancements/critereon/LocationPredicate;\n // 202: invokestatic net/minecraft/advancements/critereon/LocationTrigger$TriggerInstance.located:(Lnet/minecraft/advancements/critereon/LocationPredicate;)Lnet/minecraft/advancements/critereon/LocationTrigger$TriggerInstance;\n // 205: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 208: aload_1 /* consumer */\n // 209: ldc_w \"nether/find_fortress\"\n // 212: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 215: astore y5\n // 217: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 220: aload_2 /* y3 */\n // 221: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 224: getstatic net/minecraft/world/item/Items.MAP:Lnet/minecraft/world/item/Item;\n // 227: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 230: dup \n // 231: ldc_w \"advancements.nether.fast_travel.title\"\n // 234: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 237: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 240: dup \n // 241: ldc_w \"advancements.nether.fast_travel.description\"\n // 244: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 247: aconst_null \n // 248: getstatic net/minecraft/advancements/FrameType.CHALLENGE:Lnet/minecraft/advancements/FrameType;\n // 251: iconst_1 \n // 252: iconst_1 \n // 253: iconst_0 \n // 254: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 257: bipush 100\n // 259: invokestatic net/minecraft/advancements/AdvancementRewards$Builder.experience:(I)Lnet/minecraft/advancements/AdvancementRewards$Builder;\n // 262: invokevirtual net/minecraft/advancements/Advancement$Builder.rewards:(Lnet/minecraft/advancements/AdvancementRewards$Builder;)Lnet/minecraft/advancements/Advancement$Builder;\n // 265: ldc_w \"travelled\"\n // 268: ldc_w 7000.0\n // 271: invokestatic net/minecraft/advancements/critereon/MinMaxBounds$Floats.atLeast:(F)Lnet/minecraft/advancements/critereon/MinMaxBounds$Floats;\n // 274: invokestatic net/minecraft/advancements/critereon/DistancePredicate.horizontal:(Lnet/minecraft/advancements/critereon/MinMaxBounds$Floats;)Lnet/minecraft/advancements/critereon/DistancePredicate;\n // 277: invokestatic net/minecraft/advancements/critereon/NetherTravelTrigger$TriggerInstance.travelledThroughNether:(Lnet/minecraft/advancements/critereon/DistancePredicate;)Lnet/minecraft/advancements/critereon/NetherTravelTrigger$TriggerInstance;\n // 280: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 283: aload_1 /* consumer */\n // 284: ldc_w \"nether/fast_travel\"\n // 287: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 290: pop \n // 291: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 294: aload_3 /* y4 */\n // 295: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 298: getstatic net/minecraft/world/item/Items.GHAST_TEAR:Lnet/minecraft/world/item/Item;\n // 301: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 304: dup \n // 305: ldc_w \"advancements.nether.uneasy_alliance.title\"\n // 308: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 311: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 314: dup \n // 315: ldc_w \"advancements.nether.uneasy_alliance.description\"\n // 318: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 321: aconst_null \n // 322: getstatic net/minecraft/advancements/FrameType.CHALLENGE:Lnet/minecraft/advancements/FrameType;\n // 325: iconst_1 \n // 326: iconst_1 \n // 327: iconst_0 \n // 328: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 331: bipush 100\n // 333: invokestatic net/minecraft/advancements/AdvancementRewards$Builder.experience:(I)Lnet/minecraft/advancements/AdvancementRewards$Builder;\n // 336: invokevirtual net/minecraft/advancements/Advancement$Builder.rewards:(Lnet/minecraft/advancements/AdvancementRewards$Builder;)Lnet/minecraft/advancements/Advancement$Builder;\n // 339: ldc \"killed_ghast\"\n // 341: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 344: getstatic net/minecraft/world/entity/EntityType.GHAST:Lnet/minecraft/world/entity/EntityType;\n // 347: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.of:(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 350: getstatic net/minecraft/world/level/Level.OVERWORLD:Lnet/minecraft/resources/ResourceKey;\n // 353: invokestatic net/minecraft/advancements/critereon/LocationPredicate.inDimension:(Lnet/minecraft/resources/ResourceKey;)Lnet/minecraft/advancements/critereon/LocationPredicate;\n // 356: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.located:(Lnet/minecraft/advancements/critereon/LocationPredicate;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 359: invokestatic net/minecraft/advancements/critereon/KilledTrigger$TriggerInstance.playerKilledEntity:(Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;)Lnet/minecraft/advancements/critereon/KilledTrigger$TriggerInstance;\n // 362: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 365: aload_1 /* consumer */\n // 366: ldc_w \"nether/uneasy_alliance\"\n // 369: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 372: pop \n // 373: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 376: aload y5\n // 378: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 381: getstatic net/minecraft/world/level/block/Blocks.WITHER_SKELETON_SKULL:Lnet/minecraft/world/level/block/Block;\n // 384: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 387: dup \n // 388: ldc_w \"advancements.nether.get_wither_skull.title\"\n // 391: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 394: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 397: dup \n // 398: ldc_w \"advancements.nether.get_wither_skull.description\"\n // 401: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 404: aconst_null \n // 405: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 408: iconst_1 \n // 409: iconst_1 \n // 410: iconst_0 \n // 411: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 414: ldc_w \"wither_skull\"\n // 417: iconst_1 \n // 418: anewarray Lnet/minecraft/world/level/ItemLike;\n // 421: dup \n // 422: iconst_0 \n // 423: getstatic net/minecraft/world/level/block/Blocks.WITHER_SKELETON_SKULL:Lnet/minecraft/world/level/block/Block;\n // 426: aastore \n // 427: invokestatic net/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance.hasItems:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance;\n // 430: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 433: aload_1 /* consumer */\n // 434: ldc_w \"nether/get_wither_skull\"\n // 437: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 440: astore y6\n // 442: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 445: aload y6\n // 447: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 450: getstatic net/minecraft/world/item/Items.NETHER_STAR:Lnet/minecraft/world/item/Item;\n // 453: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 456: dup \n // 457: ldc_w \"advancements.nether.summon_wither.title\"\n // 460: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 463: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 466: dup \n // 467: ldc_w \"advancements.nether.summon_wither.description\"\n // 470: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 473: aconst_null \n // 474: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 477: iconst_1 \n // 478: iconst_1 \n // 479: iconst_0 \n // 480: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 483: ldc_w \"summoned\"\n // 486: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 489: getstatic net/minecraft/world/entity/EntityType.WITHER:Lnet/minecraft/world/entity/EntityType;\n // 492: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.of:(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 495: invokestatic net/minecraft/advancements/critereon/SummonedEntityTrigger$TriggerInstance.summonedEntity:(Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;)Lnet/minecraft/advancements/critereon/SummonedEntityTrigger$TriggerInstance;\n // 498: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 501: aload_1 /* consumer */\n // 502: ldc_w \"nether/summon_wither\"\n // 505: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 508: astore y7\n // 510: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 513: aload y5\n // 515: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 518: getstatic net/minecraft/world/item/Items.BLAZE_ROD:Lnet/minecraft/world/item/Item;\n // 521: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 524: dup \n // 525: ldc_w \"advancements.nether.obtain_blaze_rod.title\"\n // 528: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 531: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 534: dup \n // 535: ldc_w \"advancements.nether.obtain_blaze_rod.description\"\n // 538: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 541: aconst_null \n // 542: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 545: iconst_1 \n // 546: iconst_1 \n // 547: iconst_0 \n // 548: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 551: ldc_w \"blaze_rod\"\n // 554: iconst_1 \n // 555: anewarray Lnet/minecraft/world/level/ItemLike;\n // 558: dup \n // 559: iconst_0 \n // 560: getstatic net/minecraft/world/item/Items.BLAZE_ROD:Lnet/minecraft/world/item/Item;\n // 563: aastore \n // 564: invokestatic net/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance.hasItems:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance;\n // 567: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 570: aload_1 /* consumer */\n // 571: ldc_w \"nether/obtain_blaze_rod\"\n // 574: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 577: astore y8\n // 579: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 582: aload y7\n // 584: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 587: getstatic net/minecraft/world/level/block/Blocks.BEACON:Lnet/minecraft/world/level/block/Block;\n // 590: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 593: dup \n // 594: ldc_w \"advancements.nether.create_beacon.title\"\n // 597: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 600: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 603: dup \n // 604: ldc_w \"advancements.nether.create_beacon.description\"\n // 607: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 610: aconst_null \n // 611: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 614: iconst_1 \n // 615: iconst_1 \n // 616: iconst_0 \n // 617: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 620: ldc_w \"beacon\"\n // 623: iconst_1 \n // 624: invokestatic net/minecraft/advancements/critereon/MinMaxBounds$Ints.atLeast:(I)Lnet/minecraft/advancements/critereon/MinMaxBounds$Ints;\n // 627: invokestatic net/minecraft/advancements/critereon/ConstructBeaconTrigger$TriggerInstance.constructedBeacon:(Lnet/minecraft/advancements/critereon/MinMaxBounds$Ints;)Lnet/minecraft/advancements/critereon/ConstructBeaconTrigger$TriggerInstance;\n // 630: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 633: aload_1 /* consumer */\n // 634: ldc_w \"nether/create_beacon\"\n // 637: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 640: astore y9\n // 642: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 645: aload y9\n // 647: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 650: getstatic net/minecraft/world/level/block/Blocks.BEACON:Lnet/minecraft/world/level/block/Block;\n // 653: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 656: dup \n // 657: ldc_w \"advancements.nether.create_full_beacon.title\"\n // 660: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 663: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 666: dup \n // 667: ldc_w \"advancements.nether.create_full_beacon.description\"\n // 670: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 673: aconst_null \n // 674: getstatic net/minecraft/advancements/FrameType.GOAL:Lnet/minecraft/advancements/FrameType;\n // 677: iconst_1 \n // 678: iconst_1 \n // 679: iconst_0 \n // 680: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 683: ldc_w \"beacon\"\n // 686: iconst_4 \n // 687: invokestatic net/minecraft/advancements/critereon/MinMaxBounds$Ints.exactly:(I)Lnet/minecraft/advancements/critereon/MinMaxBounds$Ints;\n // 690: invokestatic net/minecraft/advancements/critereon/ConstructBeaconTrigger$TriggerInstance.constructedBeacon:(Lnet/minecraft/advancements/critereon/MinMaxBounds$Ints;)Lnet/minecraft/advancements/critereon/ConstructBeaconTrigger$TriggerInstance;\n // 693: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 696: aload_1 /* consumer */\n // 697: ldc_w \"nether/create_full_beacon\"\n // 700: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 703: pop \n // 704: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 707: aload y8\n // 709: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 712: getstatic net/minecraft/world/item/Items.POTION:Lnet/minecraft/world/item/Item;\n // 715: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 718: dup \n // 719: ldc_w \"advancements.nether.brew_potion.title\"\n // 722: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 725: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 728: dup \n // 729: ldc_w \"advancements.nether.brew_potion.description\"\n // 732: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 735: aconst_null \n // 736: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 739: iconst_1 \n // 740: iconst_1 \n // 741: iconst_0 \n // 742: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 745: ldc_w \"potion\"\n // 748: invokestatic net/minecraft/advancements/critereon/BrewedPotionTrigger$TriggerInstance.brewedPotion:()Lnet/minecraft/advancements/critereon/BrewedPotionTrigger$TriggerInstance;\n // 751: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 754: aload_1 /* consumer */\n // 755: ldc_w \"nether/brew_potion\"\n // 758: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 761: astore y10\n // 763: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 766: aload y10\n // 768: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 771: getstatic net/minecraft/world/item/Items.MILK_BUCKET:Lnet/minecraft/world/item/Item;\n // 774: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 777: dup \n // 778: ldc_w \"advancements.nether.all_potions.title\"\n // 781: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 784: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 787: dup \n // 788: ldc_w \"advancements.nether.all_potions.description\"\n // 791: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 794: aconst_null \n // 795: getstatic net/minecraft/advancements/FrameType.CHALLENGE:Lnet/minecraft/advancements/FrameType;\n // 798: iconst_1 \n // 799: iconst_1 \n // 800: iconst_0 \n // 801: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 804: bipush 100\n // 806: invokestatic net/minecraft/advancements/AdvancementRewards$Builder.experience:(I)Lnet/minecraft/advancements/AdvancementRewards$Builder;\n // 809: invokevirtual net/minecraft/advancements/Advancement$Builder.rewards:(Lnet/minecraft/advancements/AdvancementRewards$Builder;)Lnet/minecraft/advancements/Advancement$Builder;\n // 812: ldc_w \"all_effects\"\n // 815: invokestatic net/minecraft/advancements/critereon/MobEffectsPredicate.effects:()Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 818: getstatic net/minecraft/world/effect/MobEffects.MOVEMENT_SPEED:Lnet/minecraft/world/effect/MobEffect;\n // 821: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 824: getstatic net/minecraft/world/effect/MobEffects.MOVEMENT_SLOWDOWN:Lnet/minecraft/world/effect/MobEffect;\n // 827: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 830: getstatic net/minecraft/world/effect/MobEffects.DAMAGE_BOOST:Lnet/minecraft/world/effect/MobEffect;\n // 833: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 836: getstatic net/minecraft/world/effect/MobEffects.JUMP:Lnet/minecraft/world/effect/MobEffect;\n // 839: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 842: getstatic net/minecraft/world/effect/MobEffects.REGENERATION:Lnet/minecraft/world/effect/MobEffect;\n // 845: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 848: getstatic net/minecraft/world/effect/MobEffects.FIRE_RESISTANCE:Lnet/minecraft/world/effect/MobEffect;\n // 851: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 854: getstatic net/minecraft/world/effect/MobEffects.WATER_BREATHING:Lnet/minecraft/world/effect/MobEffect;\n // 857: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 860: getstatic net/minecraft/world/effect/MobEffects.INVISIBILITY:Lnet/minecraft/world/effect/MobEffect;\n // 863: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 866: getstatic net/minecraft/world/effect/MobEffects.NIGHT_VISION:Lnet/minecraft/world/effect/MobEffect;\n // 869: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 872: getstatic net/minecraft/world/effect/MobEffects.WEAKNESS:Lnet/minecraft/world/effect/MobEffect;\n // 875: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 878: getstatic net/minecraft/world/effect/MobEffects.POISON:Lnet/minecraft/world/effect/MobEffect;\n // 881: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 884: getstatic net/minecraft/world/effect/MobEffects.SLOW_FALLING:Lnet/minecraft/world/effect/MobEffect;\n // 887: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 890: getstatic net/minecraft/world/effect/MobEffects.DAMAGE_RESISTANCE:Lnet/minecraft/world/effect/MobEffect;\n // 893: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 896: invokestatic net/minecraft/advancements/critereon/EffectsChangedTrigger$TriggerInstance.hasEffects:(Lnet/minecraft/advancements/critereon/MobEffectsPredicate;)Lnet/minecraft/advancements/critereon/EffectsChangedTrigger$TriggerInstance;\n // 899: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 902: aload_1 /* consumer */\n // 903: ldc_w \"nether/all_potions\"\n // 906: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 909: astore y11\n // 911: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 914: aload y11\n // 916: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 919: getstatic net/minecraft/world/item/Items.BUCKET:Lnet/minecraft/world/item/Item;\n // 922: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 925: dup \n // 926: ldc_w \"advancements.nether.all_effects.title\"\n // 929: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 932: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 935: dup \n // 936: ldc_w \"advancements.nether.all_effects.description\"\n // 939: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 942: aconst_null \n // 943: getstatic net/minecraft/advancements/FrameType.CHALLENGE:Lnet/minecraft/advancements/FrameType;\n // 946: iconst_1 \n // 947: iconst_1 \n // 948: iconst_1 \n // 949: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 952: sipush 1000\n // 955: invokestatic net/minecraft/advancements/AdvancementRewards$Builder.experience:(I)Lnet/minecraft/advancements/AdvancementRewards$Builder;\n // 958: invokevirtual net/minecraft/advancements/Advancement$Builder.rewards:(Lnet/minecraft/advancements/AdvancementRewards$Builder;)Lnet/minecraft/advancements/Advancement$Builder;\n // 961: ldc_w \"all_effects\"\n // 964: invokestatic net/minecraft/advancements/critereon/MobEffectsPredicate.effects:()Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 967: getstatic net/minecraft/world/effect/MobEffects.MOVEMENT_SPEED:Lnet/minecraft/world/effect/MobEffect;\n // 970: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 973: getstatic net/minecraft/world/effect/MobEffects.MOVEMENT_SLOWDOWN:Lnet/minecraft/world/effect/MobEffect;\n // 976: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 979: getstatic net/minecraft/world/effect/MobEffects.DAMAGE_BOOST:Lnet/minecraft/world/effect/MobEffect;\n // 982: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 985: getstatic net/minecraft/world/effect/MobEffects.JUMP:Lnet/minecraft/world/effect/MobEffect;\n // 988: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 991: getstatic net/minecraft/world/effect/MobEffects.REGENERATION:Lnet/minecraft/world/effect/MobEffect;\n // 994: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 997: getstatic net/minecraft/world/effect/MobEffects.FIRE_RESISTANCE:Lnet/minecraft/world/effect/MobEffect;\n // 1000: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1003: getstatic net/minecraft/world/effect/MobEffects.WATER_BREATHING:Lnet/minecraft/world/effect/MobEffect;\n // 1006: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1009: getstatic net/minecraft/world/effect/MobEffects.INVISIBILITY:Lnet/minecraft/world/effect/MobEffect;\n // 1012: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1015: getstatic net/minecraft/world/effect/MobEffects.NIGHT_VISION:Lnet/minecraft/world/effect/MobEffect;\n // 1018: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1021: getstatic net/minecraft/world/effect/MobEffects.WEAKNESS:Lnet/minecraft/world/effect/MobEffect;\n // 1024: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1027: getstatic net/minecraft/world/effect/MobEffects.POISON:Lnet/minecraft/world/effect/MobEffect;\n // 1030: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1033: getstatic net/minecraft/world/effect/MobEffects.WITHER:Lnet/minecraft/world/effect/MobEffect;\n // 1036: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1039: getstatic net/minecraft/world/effect/MobEffects.DIG_SPEED:Lnet/minecraft/world/effect/MobEffect;\n // 1042: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1045: getstatic net/minecraft/world/effect/MobEffects.DIG_SLOWDOWN:Lnet/minecraft/world/effect/MobEffect;\n // 1048: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1051: getstatic net/minecraft/world/effect/MobEffects.LEVITATION:Lnet/minecraft/world/effect/MobEffect;\n // 1054: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1057: getstatic net/minecraft/world/effect/MobEffects.GLOWING:Lnet/minecraft/world/effect/MobEffect;\n // 1060: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1063: getstatic net/minecraft/world/effect/MobEffects.ABSORPTION:Lnet/minecraft/world/effect/MobEffect;\n // 1066: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1069: getstatic net/minecraft/world/effect/MobEffects.HUNGER:Lnet/minecraft/world/effect/MobEffect;\n // 1072: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1075: getstatic net/minecraft/world/effect/MobEffects.CONFUSION:Lnet/minecraft/world/effect/MobEffect;\n // 1078: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1081: getstatic net/minecraft/world/effect/MobEffects.DAMAGE_RESISTANCE:Lnet/minecraft/world/effect/MobEffect;\n // 1084: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1087: getstatic net/minecraft/world/effect/MobEffects.SLOW_FALLING:Lnet/minecraft/world/effect/MobEffect;\n // 1090: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1093: getstatic net/minecraft/world/effect/MobEffects.CONDUIT_POWER:Lnet/minecraft/world/effect/MobEffect;\n // 1096: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1099: getstatic net/minecraft/world/effect/MobEffects.DOLPHINS_GRACE:Lnet/minecraft/world/effect/MobEffect;\n // 1102: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1105: getstatic net/minecraft/world/effect/MobEffects.BLINDNESS:Lnet/minecraft/world/effect/MobEffect;\n // 1108: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1111: getstatic net/minecraft/world/effect/MobEffects.BAD_OMEN:Lnet/minecraft/world/effect/MobEffect;\n // 1114: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1117: getstatic net/minecraft/world/effect/MobEffects.HERO_OF_THE_VILLAGE:Lnet/minecraft/world/effect/MobEffect;\n // 1120: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1123: invokestatic net/minecraft/advancements/critereon/EffectsChangedTrigger$TriggerInstance.hasEffects:(Lnet/minecraft/advancements/critereon/MobEffectsPredicate;)Lnet/minecraft/advancements/critereon/EffectsChangedTrigger$TriggerInstance;\n // 1126: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1129: aload_1 /* consumer */\n // 1130: ldc_w \"nether/all_effects\"\n // 1133: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1136: pop \n // 1137: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1140: aload_2 /* y3 */\n // 1141: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1144: getstatic net/minecraft/world/item/Items.ANCIENT_DEBRIS:Lnet/minecraft/world/item/Item;\n // 1147: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1150: dup \n // 1151: ldc_w \"advancements.nether.obtain_ancient_debris.title\"\n // 1154: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1157: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1160: dup \n // 1161: ldc_w \"advancements.nether.obtain_ancient_debris.description\"\n // 1164: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1167: aconst_null \n // 1168: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1171: iconst_1 \n // 1172: iconst_1 \n // 1173: iconst_0 \n // 1174: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1177: ldc_w \"ancient_debris\"\n // 1180: iconst_1 \n // 1181: anewarray Lnet/minecraft/world/level/ItemLike;\n // 1184: dup \n // 1185: iconst_0 \n // 1186: getstatic net/minecraft/world/item/Items.ANCIENT_DEBRIS:Lnet/minecraft/world/item/Item;\n // 1189: aastore \n // 1190: invokestatic net/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance.hasItems:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance;\n // 1193: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1196: aload_1 /* consumer */\n // 1197: ldc_w \"nether/obtain_ancient_debris\"\n // 1200: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1203: astore y12\n // 1205: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1208: aload y12\n // 1210: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1213: getstatic net/minecraft/world/item/Items.NETHERITE_CHESTPLATE:Lnet/minecraft/world/item/Item;\n // 1216: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1219: dup \n // 1220: ldc_w \"advancements.nether.netherite_armor.title\"\n // 1223: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1226: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1229: dup \n // 1230: ldc_w \"advancements.nether.netherite_armor.description\"\n // 1233: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1236: aconst_null \n // 1237: getstatic net/minecraft/advancements/FrameType.CHALLENGE:Lnet/minecraft/advancements/FrameType;\n // 1240: iconst_1 \n // 1241: iconst_1 \n // 1242: iconst_0 \n // 1243: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1246: bipush 100\n // 1248: invokestatic net/minecraft/advancements/AdvancementRewards$Builder.experience:(I)Lnet/minecraft/advancements/AdvancementRewards$Builder;\n // 1251: invokevirtual net/minecraft/advancements/Advancement$Builder.rewards:(Lnet/minecraft/advancements/AdvancementRewards$Builder;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1254: ldc_w \"netherite_armor\"\n // 1257: iconst_4 \n // 1258: anewarray Lnet/minecraft/world/level/ItemLike;\n // 1261: dup \n // 1262: iconst_0 \n // 1263: getstatic net/minecraft/world/item/Items.NETHERITE_HELMET:Lnet/minecraft/world/item/Item;\n // 1266: aastore \n // 1267: dup \n // 1268: iconst_1 \n // 1269: getstatic net/minecraft/world/item/Items.NETHERITE_CHESTPLATE:Lnet/minecraft/world/item/Item;\n // 1272: aastore \n // 1273: dup \n // 1274: iconst_2 \n // 1275: getstatic net/minecraft/world/item/Items.NETHERITE_LEGGINGS:Lnet/minecraft/world/item/Item;\n // 1278: aastore \n // 1279: dup \n // 1280: iconst_3 \n // 1281: getstatic net/minecraft/world/item/Items.NETHERITE_BOOTS:Lnet/minecraft/world/item/Item;\n // 1284: aastore \n // 1285: invokestatic net/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance.hasItems:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance;\n // 1288: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1291: aload_1 /* consumer */\n // 1292: ldc_w \"nether/netherite_armor\"\n // 1295: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1298: pop \n // 1299: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1302: aload y12\n // 1304: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1307: getstatic net/minecraft/world/item/Items.LODESTONE:Lnet/minecraft/world/item/Item;\n // 1310: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1313: dup \n // 1314: ldc_w \"advancements.nether.use_lodestone.title\"\n // 1317: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1320: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1323: dup \n // 1324: ldc_w \"advancements.nether.use_lodestone.description\"\n // 1327: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1330: aconst_null \n // 1331: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1334: iconst_1 \n // 1335: iconst_1 \n // 1336: iconst_0 \n // 1337: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1340: ldc_w \"use_lodestone\"\n // 1343: invokestatic net/minecraft/advancements/critereon/LocationPredicate$Builder.location:()Lnet/minecraft/advancements/critereon/LocationPredicate$Builder;\n // 1346: invokestatic net/minecraft/advancements/critereon/BlockPredicate$Builder.block:()Lnet/minecraft/advancements/critereon/BlockPredicate$Builder;\n // 1349: getstatic net/minecraft/world/level/block/Blocks.LODESTONE:Lnet/minecraft/world/level/block/Block;\n // 1352: invokevirtual net/minecraft/advancements/critereon/BlockPredicate$Builder.of:(Lnet/minecraft/world/level/block/Block;)Lnet/minecraft/advancements/critereon/BlockPredicate$Builder;\n // 1355: invokevirtual net/minecraft/advancements/critereon/BlockPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/BlockPredicate;\n // 1358: invokevirtual net/minecraft/advancements/critereon/LocationPredicate$Builder.setBlock:(Lnet/minecraft/advancements/critereon/BlockPredicate;)Lnet/minecraft/advancements/critereon/LocationPredicate$Builder;\n // 1361: invokestatic net/minecraft/advancements/critereon/ItemPredicate$Builder.item:()Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1364: getstatic net/minecraft/world/item/Items.COMPASS:Lnet/minecraft/world/item/Item;\n // 1367: invokevirtual net/minecraft/advancements/critereon/ItemPredicate$Builder.of:(Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1370: invokestatic net/minecraft/advancements/critereon/ItemUsedOnBlockTrigger$TriggerInstance.itemUsedOnBlock:(Lnet/minecraft/advancements/critereon/LocationPredicate$Builder;Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;)Lnet/minecraft/advancements/critereon/ItemUsedOnBlockTrigger$TriggerInstance;\n // 1373: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1376: aload_1 /* consumer */\n // 1377: ldc_w \"nether/use_lodestone\"\n // 1380: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1383: pop \n // 1384: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1387: aload_2 /* y3 */\n // 1388: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1391: getstatic net/minecraft/world/item/Items.CRYING_OBSIDIAN:Lnet/minecraft/world/item/Item;\n // 1394: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1397: dup \n // 1398: ldc_w \"advancements.nether.obtain_crying_obsidian.title\"\n // 1401: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1404: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1407: dup \n // 1408: ldc_w \"advancements.nether.obtain_crying_obsidian.description\"\n // 1411: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1414: aconst_null \n // 1415: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1418: iconst_1 \n // 1419: iconst_1 \n // 1420: iconst_0 \n // 1421: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1424: ldc_w \"crying_obsidian\"\n // 1427: iconst_1 \n // 1428: anewarray Lnet/minecraft/world/level/ItemLike;\n // 1431: dup \n // 1432: iconst_0 \n // 1433: getstatic net/minecraft/world/item/Items.CRYING_OBSIDIAN:Lnet/minecraft/world/item/Item;\n // 1436: aastore \n // 1437: invokestatic net/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance.hasItems:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance;\n // 1440: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1443: aload_1 /* consumer */\n // 1444: ldc_w \"nether/obtain_crying_obsidian\"\n // 1447: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1450: astore y13\n // 1452: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1455: aload y13\n // 1457: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1460: getstatic net/minecraft/world/item/Items.RESPAWN_ANCHOR:Lnet/minecraft/world/item/Item;\n // 1463: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1466: dup \n // 1467: ldc_w \"advancements.nether.charge_respawn_anchor.title\"\n // 1470: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1473: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1476: dup \n // 1477: ldc_w \"advancements.nether.charge_respawn_anchor.description\"\n // 1480: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1483: aconst_null \n // 1484: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1487: iconst_1 \n // 1488: iconst_1 \n // 1489: iconst_0 \n // 1490: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1493: ldc_w \"charge_respawn_anchor\"\n // 1496: invokestatic net/minecraft/advancements/critereon/LocationPredicate$Builder.location:()Lnet/minecraft/advancements/critereon/LocationPredicate$Builder;\n // 1499: invokestatic net/minecraft/advancements/critereon/BlockPredicate$Builder.block:()Lnet/minecraft/advancements/critereon/BlockPredicate$Builder;\n // 1502: getstatic net/minecraft/world/level/block/Blocks.RESPAWN_ANCHOR:Lnet/minecraft/world/level/block/Block;\n // 1505: invokevirtual net/minecraft/advancements/critereon/BlockPredicate$Builder.of:(Lnet/minecraft/world/level/block/Block;)Lnet/minecraft/advancements/critereon/BlockPredicate$Builder;\n // 1508: invokestatic net/minecraft/advancements/critereon/StatePropertiesPredicate$Builder.properties:()Lnet/minecraft/advancements/critereon/StatePropertiesPredicate$Builder;\n // 1511: getstatic net/minecraft/world/level/block/RespawnAnchorBlock.CHARGE:Lnet/minecraft/world/level/block/state/properties/IntegerProperty;\n // 1514: iconst_4 \n // 1515: invokevirtual net/minecraft/advancements/critereon/StatePropertiesPredicate$Builder.hasProperty:(Lnet/minecraft/world/level/block/state/properties/Property;I)Lnet/minecraft/advancements/critereon/StatePropertiesPredicate$Builder;\n // 1518: invokevirtual net/minecraft/advancements/critereon/StatePropertiesPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/StatePropertiesPredicate;\n // 1521: invokevirtual net/minecraft/advancements/critereon/BlockPredicate$Builder.setProperties:(Lnet/minecraft/advancements/critereon/StatePropertiesPredicate;)Lnet/minecraft/advancements/critereon/BlockPredicate$Builder;\n // 1524: invokevirtual net/minecraft/advancements/critereon/BlockPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/BlockPredicate;\n // 1527: invokevirtual net/minecraft/advancements/critereon/LocationPredicate$Builder.setBlock:(Lnet/minecraft/advancements/critereon/BlockPredicate;)Lnet/minecraft/advancements/critereon/LocationPredicate$Builder;\n // 1530: invokestatic net/minecraft/advancements/critereon/ItemPredicate$Builder.item:()Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1533: getstatic net/minecraft/world/level/block/Blocks.GLOWSTONE:Lnet/minecraft/world/level/block/Block;\n // 1536: invokevirtual net/minecraft/advancements/critereon/ItemPredicate$Builder.of:(Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1539: invokestatic net/minecraft/advancements/critereon/ItemUsedOnBlockTrigger$TriggerInstance.itemUsedOnBlock:(Lnet/minecraft/advancements/critereon/LocationPredicate$Builder;Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;)Lnet/minecraft/advancements/critereon/ItemUsedOnBlockTrigger$TriggerInstance;\n // 1542: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1545: aload_1 /* consumer */\n // 1546: ldc_w \"nether/charge_respawn_anchor\"\n // 1549: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1552: pop \n // 1553: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1556: aload_2 /* y3 */\n // 1557: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1560: getstatic net/minecraft/world/item/Items.WARPED_FUNGUS_ON_A_STICK:Lnet/minecraft/world/item/Item;\n // 1563: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1566: dup \n // 1567: ldc_w \"advancements.nether.ride_strider.title\"\n // 1570: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1573: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1576: dup \n // 1577: ldc_w \"advancements.nether.ride_strider.description\"\n // 1580: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1583: aconst_null \n // 1584: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1587: iconst_1 \n // 1588: iconst_1 \n // 1589: iconst_0 \n // 1590: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1593: ldc_w \"used_warped_fungus_on_a_stick\"\n // 1596: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 1599: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 1602: getstatic net/minecraft/world/entity/EntityType.STRIDER:Lnet/minecraft/world/entity/EntityType;\n // 1605: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.of:(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 1608: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/EntityPredicate;\n // 1611: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.vehicle:(Lnet/minecraft/advancements/critereon/EntityPredicate;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 1614: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/EntityPredicate;\n // 1617: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Composite.wrap:(Lnet/minecraft/advancements/critereon/EntityPredicate;)Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;\n // 1620: invokestatic net/minecraft/advancements/critereon/ItemPredicate$Builder.item:()Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1623: getstatic net/minecraft/world/item/Items.WARPED_FUNGUS_ON_A_STICK:Lnet/minecraft/world/item/Item;\n // 1626: invokevirtual net/minecraft/advancements/critereon/ItemPredicate$Builder.of:(Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1629: invokevirtual net/minecraft/advancements/critereon/ItemPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/ItemPredicate;\n // 1632: getstatic net/minecraft/advancements/critereon/MinMaxBounds$Ints.ANY:Lnet/minecraft/advancements/critereon/MinMaxBounds$Ints;\n // 1635: invokestatic net/minecraft/advancements/critereon/ItemDurabilityTrigger$TriggerInstance.changedDurability:(Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;Lnet/minecraft/advancements/critereon/ItemPredicate;Lnet/minecraft/advancements/critereon/MinMaxBounds$Ints;)Lnet/minecraft/advancements/critereon/ItemDurabilityTrigger$TriggerInstance;\n // 1638: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1641: aload_1 /* consumer */\n // 1642: ldc_w \"nether/ride_strider\"\n // 1645: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1648: astore y14\n // 1650: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1653: getstatic net/minecraft/data/advancements/NetherAdvancements.EXPLORABLE_BIOMES:Ljava/util/List;\n // 1656: invokestatic net/minecraft/data/advancements/AdventureAdvancements.addBiomes:(Lnet/minecraft/advancements/Advancement$Builder;Ljava/util/List;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1659: aload y14\n // 1661: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1664: getstatic net/minecraft/world/item/Items.NETHERITE_BOOTS:Lnet/minecraft/world/item/Item;\n // 1667: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1670: dup \n // 1671: ldc_w \"advancements.nether.explore_nether.title\"\n // 1674: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1677: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1680: dup \n // 1681: ldc_w \"advancements.nether.explore_nether.description\"\n // 1684: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1687: aconst_null \n // 1688: getstatic net/minecraft/advancements/FrameType.CHALLENGE:Lnet/minecraft/advancements/FrameType;\n // 1691: iconst_1 \n // 1692: iconst_1 \n // 1693: iconst_0 \n // 1694: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1697: sipush 500\n // 1700: invokestatic net/minecraft/advancements/AdvancementRewards$Builder.experience:(I)Lnet/minecraft/advancements/AdvancementRewards$Builder;\n // 1703: invokevirtual net/minecraft/advancements/Advancement$Builder.rewards:(Lnet/minecraft/advancements/AdvancementRewards$Builder;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1706: aload_1 /* consumer */\n // 1707: ldc_w \"nether/explore_nether\"\n // 1710: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1713: pop \n // 1714: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1717: aload_2 /* y3 */\n // 1718: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1721: getstatic net/minecraft/world/item/Items.POLISHED_BLACKSTONE_BRICKS:Lnet/minecraft/world/item/Item;\n // 1724: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1727: dup \n // 1728: ldc_w \"advancements.nether.find_bastion.title\"\n // 1731: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1734: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1737: dup \n // 1738: ldc_w \"advancements.nether.find_bastion.description\"\n // 1741: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1744: aconst_null \n // 1745: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1748: iconst_1 \n // 1749: iconst_1 \n // 1750: iconst_0 \n // 1751: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1754: ldc_w \"bastion\"\n // 1757: getstatic net/minecraft/world/level/levelgen/feature/StructureFeature.BASTION_REMNANT:Lnet/minecraft/world/level/levelgen/feature/StructureFeature;\n // 1760: invokestatic net/minecraft/advancements/critereon/LocationPredicate.inFeature:(Lnet/minecraft/world/level/levelgen/feature/StructureFeature;)Lnet/minecraft/advancements/critereon/LocationPredicate;\n // 1763: invokestatic net/minecraft/advancements/critereon/LocationTrigger$TriggerInstance.located:(Lnet/minecraft/advancements/critereon/LocationPredicate;)Lnet/minecraft/advancements/critereon/LocationTrigger$TriggerInstance;\n // 1766: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1769: aload_1 /* consumer */\n // 1770: ldc_w \"nether/find_bastion\"\n // 1773: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1776: astore y15\n // 1778: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1781: aload y15\n // 1783: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1786: getstatic net/minecraft/world/level/block/Blocks.CHEST:Lnet/minecraft/world/level/block/Block;\n // 1789: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1792: dup \n // 1793: ldc_w \"advancements.nether.loot_bastion.title\"\n // 1796: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1799: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1802: dup \n // 1803: ldc_w \"advancements.nether.loot_bastion.description\"\n // 1806: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1809: aconst_null \n // 1810: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1813: iconst_1 \n // 1814: iconst_1 \n // 1815: iconst_0 \n // 1816: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1819: getstatic net/minecraft/advancements/RequirementsStrategy.OR:Lnet/minecraft/advancements/RequirementsStrategy;\n // 1822: invokevirtual net/minecraft/advancements/Advancement$Builder.requirements:(Lnet/minecraft/advancements/RequirementsStrategy;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1825: ldc_w \"loot_bastion_other\"\n // 1828: new Lnet/minecraft/resources/ResourceLocation;\n // 1831: dup \n // 1832: ldc_w \"minecraft:chests/bastion_other\"\n // 1835: invokespecial net/minecraft/resources/ResourceLocation.<init>:(Ljava/lang/String;)V\n // 1838: invokestatic net/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance.lootTableUsed:(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance;\n // 1841: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1844: ldc_w \"loot_bastion_treasure\"\n // 1847: new Lnet/minecraft/resources/ResourceLocation;\n // 1850: dup \n // 1851: ldc_w \"minecraft:chests/bastion_treasure\"\n // 1854: invokespecial net/minecraft/resources/ResourceLocation.<init>:(Ljava/lang/String;)V\n // 1857: invokestatic net/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance.lootTableUsed:(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance;\n // 1860: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1863: ldc_w \"loot_bastion_hoglin_stable\"\n // 1866: new Lnet/minecraft/resources/ResourceLocation;\n // 1869: dup \n // 1870: ldc_w \"minecraft:chests/bastion_hoglin_stable\"\n // 1873: invokespecial net/minecraft/resources/ResourceLocation.<init>:(Ljava/lang/String;)V\n // 1876: invokestatic net/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance.lootTableUsed:(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance;\n // 1879: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1882: ldc_w \"loot_bastion_bridge\"\n // 1885: new Lnet/minecraft/resources/ResourceLocation;\n // 1888: dup \n // 1889: ldc_w \"minecraft:chests/bastion_bridge\"\n // 1892: invokespecial net/minecraft/resources/ResourceLocation.<init>:(Ljava/lang/String;)V\n // 1895: invokestatic net/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance.lootTableUsed:(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance;\n // 1898: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1901: aload_1 /* consumer */\n // 1902: ldc_w \"nether/loot_bastion\"\n // 1905: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1908: pop \n // 1909: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1912: aload_2 /* y3 */\n // 1913: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1916: getstatic net/minecraft/advancements/RequirementsStrategy.OR:Lnet/minecraft/advancements/RequirementsStrategy;\n // 1919: invokevirtual net/minecraft/advancements/Advancement$Builder.requirements:(Lnet/minecraft/advancements/RequirementsStrategy;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1922: getstatic net/minecraft/world/item/Items.GOLD_INGOT:Lnet/minecraft/world/item/Item;\n // 1925: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1928: dup \n // 1929: ldc_w \"advancements.nether.distract_piglin.title\"\n // 1932: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1935: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1938: dup \n // 1939: ldc_w \"advancements.nether.distract_piglin.description\"\n // 1942: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1945: aconst_null \n // 1946: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1949: iconst_1 \n // 1950: iconst_1 \n // 1951: iconst_0 \n // 1952: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1955: ldc_w \"distract_piglin\"\n // 1958: getstatic net/minecraft/data/advancements/NetherAdvancements.DISTRACT_PIGLIN_PLAYER_ARMOR_PREDICATE:Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;\n // 1961: invokestatic net/minecraft/advancements/critereon/ItemPredicate$Builder.item:()Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1964: getstatic net/minecraft/tags/ItemTags.PIGLIN_LOVED:Lnet/minecraft/tags/Tag$Named;\n // 1967: invokevirtual net/minecraft/advancements/critereon/ItemPredicate$Builder.of:(Lnet/minecraft/tags/Tag;)Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1970: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 1973: getstatic net/minecraft/world/entity/EntityType.PIGLIN:Lnet/minecraft/world/entity/EntityType;\n // 1976: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.of:(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 1979: invokestatic net/minecraft/advancements/critereon/EntityFlagsPredicate$Builder.flags:()Lnet/minecraft/advancements/critereon/EntityFlagsPredicate$Builder;\n // 1982: iconst_0 \n // 1983: invokestatic java/lang/Boolean.valueOf:(Z)Ljava/lang/Boolean;\n // 1986: invokevirtual net/minecraft/advancements/critereon/EntityFlagsPredicate$Builder.setIsBaby:(Ljava/lang/Boolean;)Lnet/minecraft/advancements/critereon/EntityFlagsPredicate$Builder;\n // 1989: invokevirtual net/minecraft/advancements/critereon/EntityFlagsPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/EntityFlagsPredicate;\n // 1992: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.flags:(Lnet/minecraft/advancements/critereon/EntityFlagsPredicate;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 1995: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/EntityPredicate;\n // 1998: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Composite.wrap:(Lnet/minecraft/advancements/critereon/EntityPredicate;)Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;\n // 2001: invokestatic net/minecraft/advancements/critereon/ItemPickedUpByEntityTrigger$TriggerInstance.itemPickedUpByEntity:(Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;)Lnet/minecraft/advancements/critereon/ItemPickedUpByEntityTrigger$TriggerInstance;\n // 2004: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 2007: ldc_w \"distract_piglin_directly\"\n // 2010: getstatic net/minecraft/data/advancements/NetherAdvancements.DISTRACT_PIGLIN_PLAYER_ARMOR_PREDICATE:Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;\n // 2013: invokestatic net/minecraft/advancements/critereon/ItemPredicate$Builder.item:()Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 2016: getstatic net/minecraft/world/entity/monster/piglin/PiglinAi.BARTERING_ITEM:Lnet/minecraft/world/item/Item;\n // 2019: invokevirtual net/minecraft/advancements/critereon/ItemPredicate$Builder.of:(Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 2022: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 2025: getstatic net/minecraft/world/entity/EntityType.PIGLIN:Lnet/minecraft/world/entity/EntityType;\n // 2028: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.of:(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 2031: invokestatic net/minecraft/advancements/critereon/EntityFlagsPredicate$Builder.flags:()Lnet/minecraft/advancements/critereon/EntityFlagsPredicate$Builder;\n // 2034: iconst_0 \n // 2035: invokestatic java/lang/Boolean.valueOf:(Z)Ljava/lang/Boolean;\n // 2038: invokevirtual net/minecraft/advancements/critereon/EntityFlagsPredicate$Builder.setIsBaby:(Ljava/lang/Boolean;)Lnet/minecraft/advancements/critereon/EntityFlagsPredicate$Builder;\n // 2041: invokevirtual net/minecraft/advancements/critereon/EntityFlagsPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/EntityFlagsPredicate;\n // 2044: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.flags:(Lnet/minecraft/advancements/critereon/EntityFlagsPredicate;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 2047: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/EntityPredicate;\n // 2050: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Composite.wrap:(Lnet/minecraft/advancements/critereon/EntityPredicate;)Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;\n // 2053: invokestatic net/minecraft/advancements/critereon/PlayerInteractTrigger$TriggerInstance.itemUsedOnEntity:(Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;)Lnet/minecraft/advancements/critereon/PlayerInteractTrigger$TriggerInstance;\n // 2056: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 2059: aload_1 /* consumer */\n // 2060: ldc_w \"nether/distract_piglin\"\n // 2063: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 2066: pop \n // 2067: return \n // Signature:\n // (Ljava/util/function/Consumer<Lnet/minecraft/advancements/Advancement;>;)V\n // MethodParameters:\n // Name Flags \n // -------- -----\n // consumer \n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0\n // at java.base/java.util.Vector.get(Vector.java:749)\n // at com.strobel.assembler.metadata.MetadataResolver.resolve(MetadataResolver.java:82)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedType.resolve(CoreMetadataFactory.java:616)\n // at com.strobel.assembler.metadata.MetadataResolver.resolve(MetadataResolver.java:91)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedType.resolve(CoreMetadataFactory.java:616)\n // at com.strobel.assembler.metadata.MetadataHelper.isRawType(MetadataHelper.java:1581)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2470)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1029)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:672)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypesForVariables(TypeAnalysis.java:586)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:397)\n // at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:96)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:109)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)\n // at cuchaz.enigma.source.procyon.ProcyonDecompiler.getSource(ProcyonDecompiler.java:75)\n // at cuchaz.enigma.EnigmaProject$JarExport.decompileClass(EnigmaProject.java:270)\n // at cuchaz.enigma.EnigmaProject$JarExport.lambda$decompileStream$1(EnigmaProject.java:246)\n // at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)\n // at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1624)\n // at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)\n // at java.base/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)\n // at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)\n // at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)\n // at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)\n // at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)\n // at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)\n // at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public interface IContractMgtService {\n\n}", "public static void main(String[] args) {\n\t\tDomestic_Consumer dc=new Domestic_Consumer(111,\"vishal\");\r\n\t\t//better way to implement runtime polymorhism\r\n\t\t//ref variable of interface pointing to implementing class\r\n\t\tElectric_Domestic dom=new Domestic_Consumer(123,\"java\");\r\n\t\tint bill=dom.calcBill(130);\r\n\t\tSystem.out.println(\"Totl bill is \"+bill);\r\n\t\t bill=dc.calcBill(100);\r\n\t\tSystem.out.println(\"bill is\" +bill);\r\n\r\n\t}", "public interface Loan {\n\n\t@Gateway(requestChannel = \"readChannel\")\n\tvoid getCust(List<Customer> customers);\n\n}", "public EventMapper onPalletUpdate(final Consumer<Pallet> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).setConsumerUpdatePallet(consumer);\n\t\treturn this;\n\t}", "boolean deliver(CommInfrastructure busType, String topic, String event);", "@objid (\"443e3927-5e5c-43bb-9d78-44c58df8e6fd\")\n void setConsumer(RequiredInterface value);", "@Override\r\n public void pay() {\n }" ]
[ "0.6271931", "0.62335235", "0.6019997", "0.56667656", "0.5627056", "0.56124634", "0.5488133", "0.54713976", "0.54450583", "0.536779", "0.5363666", "0.5359879", "0.5339226", "0.52139", "0.5185677", "0.5185315", "0.5164845", "0.51633817", "0.5150038", "0.513093", "0.5128543", "0.5119791", "0.51151747", "0.5109689", "0.5102077", "0.5098048", "0.5084033", "0.50838834", "0.50774217", "0.50756425", "0.5061044", "0.50555915", "0.50424874", "0.50400835", "0.5008997", "0.50070226", "0.49895957", "0.49859017", "0.49822003", "0.49762896", "0.49735224", "0.49715075", "0.4967954", "0.49667466", "0.4964581", "0.4956199", "0.4953709", "0.49503887", "0.49498972", "0.4947335", "0.49472252", "0.49469402", "0.49449492", "0.49371466", "0.49341142", "0.49332207", "0.49275842", "0.49220234", "0.49162376", "0.49124545", "0.49113163", "0.49035874", "0.49029616", "0.49022272", "0.48814112", "0.48777953", "0.48743007", "0.4867625", "0.4867018", "0.48648185", "0.48551348", "0.4852182", "0.48394477", "0.48224437", "0.48210666", "0.48187128", "0.48135114", "0.48125425", "0.48121005", "0.4810559", "0.4810559", "0.4810559", "0.4809634", "0.48055995", "0.48042285", "0.47857934", "0.4783484", "0.47828907", "0.4782484", "0.4775517", "0.47744212", "0.477317", "0.4769541", "0.47688887", "0.4767836", "0.47646672", "0.4763639", "0.47635219", "0.4760117", "0.4755584" ]
0.6716964
0
Required optional. Map pallet release contract to a consumer
public EventMapper onPalletRelease(final Consumer<Set<Pallet>> consumer) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumerPallet(consumer, MappingEvent.releasePallet); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EventMapper onRelease(final Consumer<Set<Duty>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumer(consumer, MappingEvent.release);\n\t\treturn this;\n\t}", "public interface DistributorConnector {\n\n /**\n * Lets the factory know what the current demand of the distributor is.\n *\n * @param demandPerType the demand of the distributer by type\n */\n public void setDemand(Map<ClockType, Integer> demandPerType);\n\n /**\n * Registers a listener for clock updates in the distributor stock.\n *\n * @param listener the listener to be registered\n * @return a subscription for the registration that can be cancelled\n */\n public Subscription subscribeForDistributorDeliveries(ClockListener listener);\n\n /**\n * Removes the given clock from the distributor stock.\n *\n * @param removedClock the clock to be removed.\n */\n public void removeClockFromStock(Clock removedClock);\n}", "public EventMapper onPalletUpdate(final Consumer<Pallet> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).setConsumerUpdatePallet(consumer);\n\t\treturn this;\n\t}", "void registerOrderConsumer(OrderConsumer orderConsumer);", "public void getVersion(VersionConsumer consumer);", "public EventMapper onPalletCapture(final Consumer<Set<Pallet>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumerPallet(consumer, MappingEvent.capturePallet);\n\t\treturn this;\n\t}", "public interface Consumer {\n\n @Nonnull\n String getApiKey();\n\n void setApiKey(@Nonnull String apiKey);\n\n @Nonnull\n String getLoginId();\n\n void setLoginId(@Nonnull String loginId);\n\n @Nonnull\n String getSiteKey();\n\n void setSiteKey(@Nonnull String siteKey);\n\n @Nonnull\n String getTouchPoint();\n\n void setTouchPoint(@Nonnull String touchPoint);\n\n @Nonnull\n String getTid();\n\n void setTid(@Nonnull String tid);\n\n boolean hasTid();\n\n void setSharedSecret(@Nonnull String sharedSecret);\n\n @Nonnull\n String getSharedSecret();\n}", "Consumer createConsumer(String consumerId, String consumerName) throws RegistrationException;", "public void createContract() {\n\r\n\t}", "Consumer getConsumer();", "@Override\n public boolean release(ResourceConsumer consumer) {\n return false;\n }", "public OrderRoutingConsumerInterceptor(OrderRoutingConsumer consumer)\n {\n cmiObject = consumer;\n }", "public interface PriceMapService {\n\n /**\n * Receive a price map offer.\n * \n * <p>\n * Implementations must publish a {@link PriceMapOfferAccepted} event after accepting the offer. A\n * {@link PriceMapOfferCountered} event must be published after proposing a counter offer.\n * </p>\n * \n * @param offer\n * the offer\n * @return the offer entity, which informs the caller if the offer has been accepted, rejected, or\n * contains a counter-offer\n */\n @Nonnull\n PriceMapOfferEventEntity receivePriceMapOffer(PriceMapOffer offer);\n\n}", "public void setConsumer(Consumer consumer) {\n this.consumer = consumer;\n }", "public interface PinContract {\n\n interface View {\n\n void showPinMismatchError(String message);\n\n Context getContext();\n\n void correctPinEntered();\n }\n\n interface UserActionsListener {\n\n void tryUnlock(String pin);\n }\n}", "public ApiReleaseContractInner() {\n }", "void executeWithinLocks(Consumer<MoneyTransferRequest> consumer, MoneyTransferRequest request);", "private CatalogContract() {}", "@objid (\"8f1c9d42-a8ac-4f52-b3f8-2b5f076b4348\")\n RequiredInterface getConsumer();", "public interface PickDistributeContract {\n\n interface View extends BaseContract.View<PickDistributeContract.Presenter> {\n void success(RspAllDistribute list);\n\n void itemSuccess(List<RspDistribute> list);\n\n void submitSuccess();\n }\n\n interface Presenter extends BaseContract.Presenter {\n void getData();\n\n void itemClick(List<RspDistribute> list, int position);\n\n void submit(List<RspDistribute> list,String note,RspUser chooseEmp);\n }\n}", "Consumer getConsumerById(String consumerId) throws IllegalArgumentException, RegistrationException;", "RequestSender onAgree(Consumer<Message> consumer);", "protected abstract void consume(InstrumentPriceVO instrumentPriceVO);", "public interface MessageServiceInjector {\n public Consumer getConsumer() ;\n}", "public interface ProducerService {\n}", "public interface PurchasePackage {\n\n }", "public KaChingContract() {\n\t}", "@objid (\"443e3927-5e5c-43bb-9d78-44c58df8e6fd\")\n void setConsumer(RequiredInterface value);", "Provider createProvider(Provider prov, Aggregator agr) throws RepoxException;", "Provider createProvider(Provider prov, Aggregator agr) throws RepoxException;", "public interface ChangeProducerStrategy {\n /**\n * For the register contents and change amount passed in computes the cash required to provide this change amount \n * with minimal amount of bills possible and returns it as a solution. If it is not possible to allocate cash for it - returns null.\n * \n * @param cashAvailable - cash available to produce the change amount requested.\n * @param changeAmount - change amount.\n * @return solution computed for the change or null if it is not possible to allocate cash for change.\n */\n Solution computeChange(Cash cashAvailable, int changeAmount);\n}", "@Override\r\n\tpublic void updateConsumer(Consumer con) {\n\r\n\t}", "void makeMarketSellOrder(AuthInfo authInfo, String pair, String money,HibtcApiCallback<Object> callback);", "public interface AutoLoadConfigurationChangePushToGateService {\r\n /**\r\n * @return request sequence number\r\n */\r\n Integer requestAutoLoadConfigurationChange(String cardNumber, Integer autoLoadState, Long pickUpLocation);\r\n}", "SerialResponse charge(PinChargePost pinChargePost);", "interface Consumer {\n /**\n * Consume a message.\n * \n * @param entry\n * A log entry converted to hash.\n */\n public void consume(Map<String, Object> entry);\n\n /**\n * Shutdown the consumer thread, waiting for it to finish.\n */\n public void shutdown();\n}", "public interface TicketCodeService {\r\n public JSONObject createCode(Map<String, Object> source);\r\n}", "void saveChangesTo(Consumer consumer) throws RegistrationException;", "private CoverageReaderContract() {}", "public interface IContractMgtService {\n\n}", "public Consumer getConsumer() {\n return consumer;\n }", "public interface ConsumerAdminOperations\n{\n\t/* constants */\n\t/* operations */\n\torg.omg.CosEventChannelAdmin.ProxyPushSupplier obtain_push_supplier();\n\torg.omg.CosEventChannelAdmin.ProxyPullSupplier obtain_pull_supplier();\n}", "public void setReleaseId(int releaseId) { this.releaseId = releaseId; }", "public interface ContractService {\n\n /**\n * 获取授权提现函信息\n * @return\n */\n WithdrawalLetter getWithdrawalLetterInfo(Long id) throws Exception;\n\n\n /**\n * 获取 借款服务协议变量 信息\n * @return\n */\n LoanServiceAgreement getLoanServiceAgreementInfo(Long id) throws Exception;\n\n\n /**\n *\n * 获取 电子签名数字证书用户申请确认函s 信息\n * @return\n */\n ElectronicLetter getElectronicLetterInfo(Long id) throws Exception;\n /**\n * 获取个人信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n PersonalInfoProtocolResForm getPersonalInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取企业信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n CompanyInfoProtocolResForm getCompanyInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @param reqForm 请求参数\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId, LoanGuaranteeProtocolReqForm reqForm) throws Exception;\n\n /**\n * 公司立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> companyImmediatelySigned(Long id,ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 个人立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> personalImmediatelySigned(Long id, ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 获取担保函\n * @param orderNo 订单编号\n * @param userId 用户主键\n * @return 协议数据\n */\n GuarantorLetterResForm getGuaranteeLetter(String orderNo, Long userId) throws Exception;\n\n\n Map<String,Object> personFormValidate(PersonReqForm personReqForm);\n\n Map<String,Object> companyFormValidate(String otherLoanAmt, String signatoryName, String signatoryIdentity, String mobile, String smCode,MultipartFile file);\n}", "@Test\n public void testLimitPool() {\n List<Pool> subscribedTo = new ArrayList<Pool>();\n Consumer guestConsumer = TestUtil.createConsumer(systemType, owner);\n guestConsumer.setFact(\"virt.is_guest\", \"true\");\n \n consumerCurator.create(guestConsumer);\n Pool parentPool = null;\n \n assertTrue(limitPools != null && limitPools.size() == 2);\n for (Pool p : limitPools) {\n // bonus pools have the attribute pool_derived\n if (null != p.getAttributeValue(\"pool_derived\")) {\n // consume 2 times so one can get revoked later.\n consumerResource.bind(guestConsumer.getUuid(), p.getId(), null,\n 10, null, null, false, null);\n consumerResource.bind(guestConsumer.getUuid(), p.getId(), null,\n 10, null, null, false, null);\n // ensure the correct # consumed from the bonus pool\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 100);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 100);\n // keep this list so we don't need to search again\n subscribedTo.add(p);\n }\n else {\n parentPool = p;\n }\n }\n // manifest consume from the physical pool and then check bonus pool quantities\n consumerResource.bind(manifestConsumer.getUuid(), parentPool.getId(), null, 7, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 30);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 20);\n assertTrue(p.getQuantity() == 30);\n }\n // manifest consume from the physical pool and then check bonus pool quantities.\n // Should result in a revocation of one of the 10 count entitlements.\n consumerResource.bind(manifestConsumer.getUuid(), parentPool.getId(), null, 2, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n }\n // system consume from the physical pool and then check bonus pool quantities.\n // Should result in no change in the entitlements for the guest.\n consumerResource.bind(systemConsumer.getUuid(), parentPool.getId(), null, 1, null,\n null, false, null);\n for (Pool p : subscribedTo) {\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n poolManager.refreshPools(owner);\n // double check after pools refresh\n assertTrue(p.getConsumed() == 10);\n assertTrue(p.getQuantity() == 10);\n }\n }", "public void setUseContracts(boolean useContracts)\n {\n this.useContracts = useContracts;\n }", "@SPI(scope = Scope.PROTOTYPE)\npublic interface Cluster extends InvokerRegistry<Consumer>, NotifyListener {\n\n void destroy();\n\n List<Consumer> listConsumer();\n\n Response onError(Consumer cluster, Consumer failedConsumer, Request request, RuntimeException e);\n\n /*\n * implement InvokerRegistry\n */\n @Override\n void registerInvoker(String serviceIdentify, Consumer invoker);\n\n @Override\n Consumer unregisterInvoker(String serviceIdentify);\n\n /*\n * implement NotifyListener\n */\n @Override\n default void notify(RegistryConfig registryConfig, List<MetaInfo> metaInfoCollection) {\n }\n}", "default boolean release(Exchange exchange) {\n return true;\n }", "public Subscription subscribeForDistributorDeliveries(ClockListener listener);", "@Override\n public String getDescription() {\n return \"Claim currency reserve\";\n }", "public interface BankCustomersContract {\n interface Presenter {\n void downBankCustomers(String orgCode);\n void loadBankCustomers(String orgCode);\n void bindCustomer(Customer customer);\n void doDestroy();\n }\n\n interface View {\n void downBankCustomersCallback(String message);\n void loadBankCustomersCallback(List<Customer> customerList);\n void bindCustomerCallback(ResponseEntity responseEntity, Customer customer);\n }\n}", "public interface HelpIndexContract\n{\n interface presenter extends BasePresenter\n {\n\n void onPriorityImage(Context helpIndexTicketDetails, String priority, ImageView ivHelpCenterPriorityPre);\n\n void callApiToCommentOnTicket(String trim, String zenId);\n\n void callApiToCreateTicket(String trim, String subject, String priority);\n\n void callApiToGetTicketInfo(String zenId);\n }\n interface HelpView extends BaseView\n {\n\n void onTicketInfoSuccess(ArrayList<ZendeskDataEvent> events, String timeToSet, String subject, String priority, String type);\n\n void onZendeskTicketAdded(String response);\n void onError(String errMsg);\n }\n}", "public Consumer(String name, String password, String tag, String type, RankingStrategy rankingStrategy){\n\t\tthis.name = name;\n\t\tthis.password = password;\n\t\tthis.taste = tag;\n\t\tthis.type = type;\n\t\tthis.rankingStrategy = rankingStrategy;\n\t\tpayoffs = new ArrayList<Integer>();\n\t\trandGen = new Random();\n\t}", "private BookContract() {}", "public void accept(final Consumer<Advancement> consumer) {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 3: getstatic net/minecraft/world/level/block/Blocks.RED_NETHER_BRICKS:Lnet/minecraft/world/level/block/Block;\n // 6: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 9: dup \n // 10: ldc \"advancements.nether.root.title\"\n // 12: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 15: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 18: dup \n // 19: ldc \"advancements.nether.root.description\"\n // 21: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 24: new Lnet/minecraft/resources/ResourceLocation;\n // 27: dup \n // 28: ldc \"textures/gui/advancements/backgrounds/nether.png\"\n // 30: invokespecial net/minecraft/resources/ResourceLocation.<init>:(Ljava/lang/String;)V\n // 33: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 36: iconst_0 \n // 37: iconst_0 \n // 38: iconst_0 \n // 39: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 42: ldc \"entered_nether\"\n // 44: getstatic net/minecraft/world/level/Level.NETHER:Lnet/minecraft/resources/ResourceKey;\n // 47: invokestatic net/minecraft/advancements/critereon/ChangeDimensionTrigger$TriggerInstance.changedDimensionTo:(Lnet/minecraft/resources/ResourceKey;)Lnet/minecraft/advancements/critereon/ChangeDimensionTrigger$TriggerInstance;\n // 50: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 53: aload_1 /* consumer */\n // 54: ldc \"nether/root\"\n // 56: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 59: astore_2 /* y3 */\n // 60: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 63: aload_2 /* y3 */\n // 64: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 67: getstatic net/minecraft/world/item/Items.FIRE_CHARGE:Lnet/minecraft/world/item/Item;\n // 70: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 73: dup \n // 74: ldc \"advancements.nether.return_to_sender.title\"\n // 76: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 79: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 82: dup \n // 83: ldc \"advancements.nether.return_to_sender.description\"\n // 85: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 88: aconst_null \n // 89: getstatic net/minecraft/advancements/FrameType.CHALLENGE:Lnet/minecraft/advancements/FrameType;\n // 92: iconst_1 \n // 93: iconst_1 \n // 94: iconst_0 \n // 95: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 98: bipush 50\n // 100: invokestatic net/minecraft/advancements/AdvancementRewards$Builder.experience:(I)Lnet/minecraft/advancements/AdvancementRewards$Builder;\n // 103: invokevirtual net/minecraft/advancements/Advancement$Builder.rewards:(Lnet/minecraft/advancements/AdvancementRewards$Builder;)Lnet/minecraft/advancements/Advancement$Builder;\n // 106: ldc \"killed_ghast\"\n // 108: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 111: getstatic net/minecraft/world/entity/EntityType.GHAST:Lnet/minecraft/world/entity/EntityType;\n // 114: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.of:(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 117: invokestatic net/minecraft/advancements/critereon/DamageSourcePredicate$Builder.damageType:()Lnet/minecraft/advancements/critereon/DamageSourcePredicate$Builder;\n // 120: iconst_1 \n // 121: invokestatic java/lang/Boolean.valueOf:(Z)Ljava/lang/Boolean;\n // 124: invokevirtual net/minecraft/advancements/critereon/DamageSourcePredicate$Builder.isProjectile:(Ljava/lang/Boolean;)Lnet/minecraft/advancements/critereon/DamageSourcePredicate$Builder;\n // 127: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 130: getstatic net/minecraft/world/entity/EntityType.FIREBALL:Lnet/minecraft/world/entity/EntityType;\n // 133: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.of:(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 136: invokevirtual net/minecraft/advancements/critereon/DamageSourcePredicate$Builder.direct:(Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;)Lnet/minecraft/advancements/critereon/DamageSourcePredicate$Builder;\n // 139: invokestatic net/minecraft/advancements/critereon/KilledTrigger$TriggerInstance.playerKilledEntity:(Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;Lnet/minecraft/advancements/critereon/DamageSourcePredicate$Builder;)Lnet/minecraft/advancements/critereon/KilledTrigger$TriggerInstance;\n // 142: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 145: aload_1 /* consumer */\n // 146: ldc_w \"nether/return_to_sender\"\n // 149: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 152: astore_3 /* y4 */\n // 153: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 156: aload_2 /* y3 */\n // 157: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 160: getstatic net/minecraft/world/level/block/Blocks.NETHER_BRICKS:Lnet/minecraft/world/level/block/Block;\n // 163: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 166: dup \n // 167: ldc_w \"advancements.nether.find_fortress.title\"\n // 170: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 173: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 176: dup \n // 177: ldc_w \"advancements.nether.find_fortress.description\"\n // 180: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 183: aconst_null \n // 184: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 187: iconst_1 \n // 188: iconst_1 \n // 189: iconst_0 \n // 190: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 193: ldc_w \"fortress\"\n // 196: getstatic net/minecraft/world/level/levelgen/feature/StructureFeature.NETHER_BRIDGE:Lnet/minecraft/world/level/levelgen/feature/StructureFeature;\n // 199: invokestatic net/minecraft/advancements/critereon/LocationPredicate.inFeature:(Lnet/minecraft/world/level/levelgen/feature/StructureFeature;)Lnet/minecraft/advancements/critereon/LocationPredicate;\n // 202: invokestatic net/minecraft/advancements/critereon/LocationTrigger$TriggerInstance.located:(Lnet/minecraft/advancements/critereon/LocationPredicate;)Lnet/minecraft/advancements/critereon/LocationTrigger$TriggerInstance;\n // 205: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 208: aload_1 /* consumer */\n // 209: ldc_w \"nether/find_fortress\"\n // 212: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 215: astore y5\n // 217: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 220: aload_2 /* y3 */\n // 221: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 224: getstatic net/minecraft/world/item/Items.MAP:Lnet/minecraft/world/item/Item;\n // 227: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 230: dup \n // 231: ldc_w \"advancements.nether.fast_travel.title\"\n // 234: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 237: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 240: dup \n // 241: ldc_w \"advancements.nether.fast_travel.description\"\n // 244: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 247: aconst_null \n // 248: getstatic net/minecraft/advancements/FrameType.CHALLENGE:Lnet/minecraft/advancements/FrameType;\n // 251: iconst_1 \n // 252: iconst_1 \n // 253: iconst_0 \n // 254: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 257: bipush 100\n // 259: invokestatic net/minecraft/advancements/AdvancementRewards$Builder.experience:(I)Lnet/minecraft/advancements/AdvancementRewards$Builder;\n // 262: invokevirtual net/minecraft/advancements/Advancement$Builder.rewards:(Lnet/minecraft/advancements/AdvancementRewards$Builder;)Lnet/minecraft/advancements/Advancement$Builder;\n // 265: ldc_w \"travelled\"\n // 268: ldc_w 7000.0\n // 271: invokestatic net/minecraft/advancements/critereon/MinMaxBounds$Floats.atLeast:(F)Lnet/minecraft/advancements/critereon/MinMaxBounds$Floats;\n // 274: invokestatic net/minecraft/advancements/critereon/DistancePredicate.horizontal:(Lnet/minecraft/advancements/critereon/MinMaxBounds$Floats;)Lnet/minecraft/advancements/critereon/DistancePredicate;\n // 277: invokestatic net/minecraft/advancements/critereon/NetherTravelTrigger$TriggerInstance.travelledThroughNether:(Lnet/minecraft/advancements/critereon/DistancePredicate;)Lnet/minecraft/advancements/critereon/NetherTravelTrigger$TriggerInstance;\n // 280: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 283: aload_1 /* consumer */\n // 284: ldc_w \"nether/fast_travel\"\n // 287: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 290: pop \n // 291: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 294: aload_3 /* y4 */\n // 295: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 298: getstatic net/minecraft/world/item/Items.GHAST_TEAR:Lnet/minecraft/world/item/Item;\n // 301: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 304: dup \n // 305: ldc_w \"advancements.nether.uneasy_alliance.title\"\n // 308: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 311: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 314: dup \n // 315: ldc_w \"advancements.nether.uneasy_alliance.description\"\n // 318: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 321: aconst_null \n // 322: getstatic net/minecraft/advancements/FrameType.CHALLENGE:Lnet/minecraft/advancements/FrameType;\n // 325: iconst_1 \n // 326: iconst_1 \n // 327: iconst_0 \n // 328: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 331: bipush 100\n // 333: invokestatic net/minecraft/advancements/AdvancementRewards$Builder.experience:(I)Lnet/minecraft/advancements/AdvancementRewards$Builder;\n // 336: invokevirtual net/minecraft/advancements/Advancement$Builder.rewards:(Lnet/minecraft/advancements/AdvancementRewards$Builder;)Lnet/minecraft/advancements/Advancement$Builder;\n // 339: ldc \"killed_ghast\"\n // 341: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 344: getstatic net/minecraft/world/entity/EntityType.GHAST:Lnet/minecraft/world/entity/EntityType;\n // 347: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.of:(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 350: getstatic net/minecraft/world/level/Level.OVERWORLD:Lnet/minecraft/resources/ResourceKey;\n // 353: invokestatic net/minecraft/advancements/critereon/LocationPredicate.inDimension:(Lnet/minecraft/resources/ResourceKey;)Lnet/minecraft/advancements/critereon/LocationPredicate;\n // 356: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.located:(Lnet/minecraft/advancements/critereon/LocationPredicate;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 359: invokestatic net/minecraft/advancements/critereon/KilledTrigger$TriggerInstance.playerKilledEntity:(Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;)Lnet/minecraft/advancements/critereon/KilledTrigger$TriggerInstance;\n // 362: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 365: aload_1 /* consumer */\n // 366: ldc_w \"nether/uneasy_alliance\"\n // 369: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 372: pop \n // 373: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 376: aload y5\n // 378: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 381: getstatic net/minecraft/world/level/block/Blocks.WITHER_SKELETON_SKULL:Lnet/minecraft/world/level/block/Block;\n // 384: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 387: dup \n // 388: ldc_w \"advancements.nether.get_wither_skull.title\"\n // 391: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 394: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 397: dup \n // 398: ldc_w \"advancements.nether.get_wither_skull.description\"\n // 401: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 404: aconst_null \n // 405: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 408: iconst_1 \n // 409: iconst_1 \n // 410: iconst_0 \n // 411: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 414: ldc_w \"wither_skull\"\n // 417: iconst_1 \n // 418: anewarray Lnet/minecraft/world/level/ItemLike;\n // 421: dup \n // 422: iconst_0 \n // 423: getstatic net/minecraft/world/level/block/Blocks.WITHER_SKELETON_SKULL:Lnet/minecraft/world/level/block/Block;\n // 426: aastore \n // 427: invokestatic net/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance.hasItems:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance;\n // 430: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 433: aload_1 /* consumer */\n // 434: ldc_w \"nether/get_wither_skull\"\n // 437: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 440: astore y6\n // 442: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 445: aload y6\n // 447: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 450: getstatic net/minecraft/world/item/Items.NETHER_STAR:Lnet/minecraft/world/item/Item;\n // 453: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 456: dup \n // 457: ldc_w \"advancements.nether.summon_wither.title\"\n // 460: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 463: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 466: dup \n // 467: ldc_w \"advancements.nether.summon_wither.description\"\n // 470: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 473: aconst_null \n // 474: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 477: iconst_1 \n // 478: iconst_1 \n // 479: iconst_0 \n // 480: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 483: ldc_w \"summoned\"\n // 486: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 489: getstatic net/minecraft/world/entity/EntityType.WITHER:Lnet/minecraft/world/entity/EntityType;\n // 492: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.of:(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 495: invokestatic net/minecraft/advancements/critereon/SummonedEntityTrigger$TriggerInstance.summonedEntity:(Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;)Lnet/minecraft/advancements/critereon/SummonedEntityTrigger$TriggerInstance;\n // 498: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 501: aload_1 /* consumer */\n // 502: ldc_w \"nether/summon_wither\"\n // 505: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 508: astore y7\n // 510: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 513: aload y5\n // 515: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 518: getstatic net/minecraft/world/item/Items.BLAZE_ROD:Lnet/minecraft/world/item/Item;\n // 521: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 524: dup \n // 525: ldc_w \"advancements.nether.obtain_blaze_rod.title\"\n // 528: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 531: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 534: dup \n // 535: ldc_w \"advancements.nether.obtain_blaze_rod.description\"\n // 538: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 541: aconst_null \n // 542: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 545: iconst_1 \n // 546: iconst_1 \n // 547: iconst_0 \n // 548: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 551: ldc_w \"blaze_rod\"\n // 554: iconst_1 \n // 555: anewarray Lnet/minecraft/world/level/ItemLike;\n // 558: dup \n // 559: iconst_0 \n // 560: getstatic net/minecraft/world/item/Items.BLAZE_ROD:Lnet/minecraft/world/item/Item;\n // 563: aastore \n // 564: invokestatic net/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance.hasItems:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance;\n // 567: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 570: aload_1 /* consumer */\n // 571: ldc_w \"nether/obtain_blaze_rod\"\n // 574: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 577: astore y8\n // 579: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 582: aload y7\n // 584: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 587: getstatic net/minecraft/world/level/block/Blocks.BEACON:Lnet/minecraft/world/level/block/Block;\n // 590: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 593: dup \n // 594: ldc_w \"advancements.nether.create_beacon.title\"\n // 597: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 600: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 603: dup \n // 604: ldc_w \"advancements.nether.create_beacon.description\"\n // 607: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 610: aconst_null \n // 611: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 614: iconst_1 \n // 615: iconst_1 \n // 616: iconst_0 \n // 617: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 620: ldc_w \"beacon\"\n // 623: iconst_1 \n // 624: invokestatic net/minecraft/advancements/critereon/MinMaxBounds$Ints.atLeast:(I)Lnet/minecraft/advancements/critereon/MinMaxBounds$Ints;\n // 627: invokestatic net/minecraft/advancements/critereon/ConstructBeaconTrigger$TriggerInstance.constructedBeacon:(Lnet/minecraft/advancements/critereon/MinMaxBounds$Ints;)Lnet/minecraft/advancements/critereon/ConstructBeaconTrigger$TriggerInstance;\n // 630: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 633: aload_1 /* consumer */\n // 634: ldc_w \"nether/create_beacon\"\n // 637: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 640: astore y9\n // 642: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 645: aload y9\n // 647: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 650: getstatic net/minecraft/world/level/block/Blocks.BEACON:Lnet/minecraft/world/level/block/Block;\n // 653: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 656: dup \n // 657: ldc_w \"advancements.nether.create_full_beacon.title\"\n // 660: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 663: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 666: dup \n // 667: ldc_w \"advancements.nether.create_full_beacon.description\"\n // 670: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 673: aconst_null \n // 674: getstatic net/minecraft/advancements/FrameType.GOAL:Lnet/minecraft/advancements/FrameType;\n // 677: iconst_1 \n // 678: iconst_1 \n // 679: iconst_0 \n // 680: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 683: ldc_w \"beacon\"\n // 686: iconst_4 \n // 687: invokestatic net/minecraft/advancements/critereon/MinMaxBounds$Ints.exactly:(I)Lnet/minecraft/advancements/critereon/MinMaxBounds$Ints;\n // 690: invokestatic net/minecraft/advancements/critereon/ConstructBeaconTrigger$TriggerInstance.constructedBeacon:(Lnet/minecraft/advancements/critereon/MinMaxBounds$Ints;)Lnet/minecraft/advancements/critereon/ConstructBeaconTrigger$TriggerInstance;\n // 693: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 696: aload_1 /* consumer */\n // 697: ldc_w \"nether/create_full_beacon\"\n // 700: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 703: pop \n // 704: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 707: aload y8\n // 709: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 712: getstatic net/minecraft/world/item/Items.POTION:Lnet/minecraft/world/item/Item;\n // 715: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 718: dup \n // 719: ldc_w \"advancements.nether.brew_potion.title\"\n // 722: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 725: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 728: dup \n // 729: ldc_w \"advancements.nether.brew_potion.description\"\n // 732: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 735: aconst_null \n // 736: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 739: iconst_1 \n // 740: iconst_1 \n // 741: iconst_0 \n // 742: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 745: ldc_w \"potion\"\n // 748: invokestatic net/minecraft/advancements/critereon/BrewedPotionTrigger$TriggerInstance.brewedPotion:()Lnet/minecraft/advancements/critereon/BrewedPotionTrigger$TriggerInstance;\n // 751: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 754: aload_1 /* consumer */\n // 755: ldc_w \"nether/brew_potion\"\n // 758: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 761: astore y10\n // 763: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 766: aload y10\n // 768: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 771: getstatic net/minecraft/world/item/Items.MILK_BUCKET:Lnet/minecraft/world/item/Item;\n // 774: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 777: dup \n // 778: ldc_w \"advancements.nether.all_potions.title\"\n // 781: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 784: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 787: dup \n // 788: ldc_w \"advancements.nether.all_potions.description\"\n // 791: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 794: aconst_null \n // 795: getstatic net/minecraft/advancements/FrameType.CHALLENGE:Lnet/minecraft/advancements/FrameType;\n // 798: iconst_1 \n // 799: iconst_1 \n // 800: iconst_0 \n // 801: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 804: bipush 100\n // 806: invokestatic net/minecraft/advancements/AdvancementRewards$Builder.experience:(I)Lnet/minecraft/advancements/AdvancementRewards$Builder;\n // 809: invokevirtual net/minecraft/advancements/Advancement$Builder.rewards:(Lnet/minecraft/advancements/AdvancementRewards$Builder;)Lnet/minecraft/advancements/Advancement$Builder;\n // 812: ldc_w \"all_effects\"\n // 815: invokestatic net/minecraft/advancements/critereon/MobEffectsPredicate.effects:()Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 818: getstatic net/minecraft/world/effect/MobEffects.MOVEMENT_SPEED:Lnet/minecraft/world/effect/MobEffect;\n // 821: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 824: getstatic net/minecraft/world/effect/MobEffects.MOVEMENT_SLOWDOWN:Lnet/minecraft/world/effect/MobEffect;\n // 827: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 830: getstatic net/minecraft/world/effect/MobEffects.DAMAGE_BOOST:Lnet/minecraft/world/effect/MobEffect;\n // 833: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 836: getstatic net/minecraft/world/effect/MobEffects.JUMP:Lnet/minecraft/world/effect/MobEffect;\n // 839: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 842: getstatic net/minecraft/world/effect/MobEffects.REGENERATION:Lnet/minecraft/world/effect/MobEffect;\n // 845: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 848: getstatic net/minecraft/world/effect/MobEffects.FIRE_RESISTANCE:Lnet/minecraft/world/effect/MobEffect;\n // 851: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 854: getstatic net/minecraft/world/effect/MobEffects.WATER_BREATHING:Lnet/minecraft/world/effect/MobEffect;\n // 857: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 860: getstatic net/minecraft/world/effect/MobEffects.INVISIBILITY:Lnet/minecraft/world/effect/MobEffect;\n // 863: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 866: getstatic net/minecraft/world/effect/MobEffects.NIGHT_VISION:Lnet/minecraft/world/effect/MobEffect;\n // 869: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 872: getstatic net/minecraft/world/effect/MobEffects.WEAKNESS:Lnet/minecraft/world/effect/MobEffect;\n // 875: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 878: getstatic net/minecraft/world/effect/MobEffects.POISON:Lnet/minecraft/world/effect/MobEffect;\n // 881: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 884: getstatic net/minecraft/world/effect/MobEffects.SLOW_FALLING:Lnet/minecraft/world/effect/MobEffect;\n // 887: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 890: getstatic net/minecraft/world/effect/MobEffects.DAMAGE_RESISTANCE:Lnet/minecraft/world/effect/MobEffect;\n // 893: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 896: invokestatic net/minecraft/advancements/critereon/EffectsChangedTrigger$TriggerInstance.hasEffects:(Lnet/minecraft/advancements/critereon/MobEffectsPredicate;)Lnet/minecraft/advancements/critereon/EffectsChangedTrigger$TriggerInstance;\n // 899: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 902: aload_1 /* consumer */\n // 903: ldc_w \"nether/all_potions\"\n // 906: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 909: astore y11\n // 911: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 914: aload y11\n // 916: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 919: getstatic net/minecraft/world/item/Items.BUCKET:Lnet/minecraft/world/item/Item;\n // 922: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 925: dup \n // 926: ldc_w \"advancements.nether.all_effects.title\"\n // 929: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 932: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 935: dup \n // 936: ldc_w \"advancements.nether.all_effects.description\"\n // 939: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 942: aconst_null \n // 943: getstatic net/minecraft/advancements/FrameType.CHALLENGE:Lnet/minecraft/advancements/FrameType;\n // 946: iconst_1 \n // 947: iconst_1 \n // 948: iconst_1 \n // 949: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 952: sipush 1000\n // 955: invokestatic net/minecraft/advancements/AdvancementRewards$Builder.experience:(I)Lnet/minecraft/advancements/AdvancementRewards$Builder;\n // 958: invokevirtual net/minecraft/advancements/Advancement$Builder.rewards:(Lnet/minecraft/advancements/AdvancementRewards$Builder;)Lnet/minecraft/advancements/Advancement$Builder;\n // 961: ldc_w \"all_effects\"\n // 964: invokestatic net/minecraft/advancements/critereon/MobEffectsPredicate.effects:()Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 967: getstatic net/minecraft/world/effect/MobEffects.MOVEMENT_SPEED:Lnet/minecraft/world/effect/MobEffect;\n // 970: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 973: getstatic net/minecraft/world/effect/MobEffects.MOVEMENT_SLOWDOWN:Lnet/minecraft/world/effect/MobEffect;\n // 976: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 979: getstatic net/minecraft/world/effect/MobEffects.DAMAGE_BOOST:Lnet/minecraft/world/effect/MobEffect;\n // 982: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 985: getstatic net/minecraft/world/effect/MobEffects.JUMP:Lnet/minecraft/world/effect/MobEffect;\n // 988: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 991: getstatic net/minecraft/world/effect/MobEffects.REGENERATION:Lnet/minecraft/world/effect/MobEffect;\n // 994: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 997: getstatic net/minecraft/world/effect/MobEffects.FIRE_RESISTANCE:Lnet/minecraft/world/effect/MobEffect;\n // 1000: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1003: getstatic net/minecraft/world/effect/MobEffects.WATER_BREATHING:Lnet/minecraft/world/effect/MobEffect;\n // 1006: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1009: getstatic net/minecraft/world/effect/MobEffects.INVISIBILITY:Lnet/minecraft/world/effect/MobEffect;\n // 1012: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1015: getstatic net/minecraft/world/effect/MobEffects.NIGHT_VISION:Lnet/minecraft/world/effect/MobEffect;\n // 1018: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1021: getstatic net/minecraft/world/effect/MobEffects.WEAKNESS:Lnet/minecraft/world/effect/MobEffect;\n // 1024: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1027: getstatic net/minecraft/world/effect/MobEffects.POISON:Lnet/minecraft/world/effect/MobEffect;\n // 1030: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1033: getstatic net/minecraft/world/effect/MobEffects.WITHER:Lnet/minecraft/world/effect/MobEffect;\n // 1036: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1039: getstatic net/minecraft/world/effect/MobEffects.DIG_SPEED:Lnet/minecraft/world/effect/MobEffect;\n // 1042: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1045: getstatic net/minecraft/world/effect/MobEffects.DIG_SLOWDOWN:Lnet/minecraft/world/effect/MobEffect;\n // 1048: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1051: getstatic net/minecraft/world/effect/MobEffects.LEVITATION:Lnet/minecraft/world/effect/MobEffect;\n // 1054: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1057: getstatic net/minecraft/world/effect/MobEffects.GLOWING:Lnet/minecraft/world/effect/MobEffect;\n // 1060: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1063: getstatic net/minecraft/world/effect/MobEffects.ABSORPTION:Lnet/minecraft/world/effect/MobEffect;\n // 1066: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1069: getstatic net/minecraft/world/effect/MobEffects.HUNGER:Lnet/minecraft/world/effect/MobEffect;\n // 1072: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1075: getstatic net/minecraft/world/effect/MobEffects.CONFUSION:Lnet/minecraft/world/effect/MobEffect;\n // 1078: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1081: getstatic net/minecraft/world/effect/MobEffects.DAMAGE_RESISTANCE:Lnet/minecraft/world/effect/MobEffect;\n // 1084: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1087: getstatic net/minecraft/world/effect/MobEffects.SLOW_FALLING:Lnet/minecraft/world/effect/MobEffect;\n // 1090: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1093: getstatic net/minecraft/world/effect/MobEffects.CONDUIT_POWER:Lnet/minecraft/world/effect/MobEffect;\n // 1096: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1099: getstatic net/minecraft/world/effect/MobEffects.DOLPHINS_GRACE:Lnet/minecraft/world/effect/MobEffect;\n // 1102: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1105: getstatic net/minecraft/world/effect/MobEffects.BLINDNESS:Lnet/minecraft/world/effect/MobEffect;\n // 1108: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1111: getstatic net/minecraft/world/effect/MobEffects.BAD_OMEN:Lnet/minecraft/world/effect/MobEffect;\n // 1114: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1117: getstatic net/minecraft/world/effect/MobEffects.HERO_OF_THE_VILLAGE:Lnet/minecraft/world/effect/MobEffect;\n // 1120: invokevirtual net/minecraft/advancements/critereon/MobEffectsPredicate.and:(Lnet/minecraft/world/effect/MobEffect;)Lnet/minecraft/advancements/critereon/MobEffectsPredicate;\n // 1123: invokestatic net/minecraft/advancements/critereon/EffectsChangedTrigger$TriggerInstance.hasEffects:(Lnet/minecraft/advancements/critereon/MobEffectsPredicate;)Lnet/minecraft/advancements/critereon/EffectsChangedTrigger$TriggerInstance;\n // 1126: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1129: aload_1 /* consumer */\n // 1130: ldc_w \"nether/all_effects\"\n // 1133: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1136: pop \n // 1137: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1140: aload_2 /* y3 */\n // 1141: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1144: getstatic net/minecraft/world/item/Items.ANCIENT_DEBRIS:Lnet/minecraft/world/item/Item;\n // 1147: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1150: dup \n // 1151: ldc_w \"advancements.nether.obtain_ancient_debris.title\"\n // 1154: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1157: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1160: dup \n // 1161: ldc_w \"advancements.nether.obtain_ancient_debris.description\"\n // 1164: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1167: aconst_null \n // 1168: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1171: iconst_1 \n // 1172: iconst_1 \n // 1173: iconst_0 \n // 1174: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1177: ldc_w \"ancient_debris\"\n // 1180: iconst_1 \n // 1181: anewarray Lnet/minecraft/world/level/ItemLike;\n // 1184: dup \n // 1185: iconst_0 \n // 1186: getstatic net/minecraft/world/item/Items.ANCIENT_DEBRIS:Lnet/minecraft/world/item/Item;\n // 1189: aastore \n // 1190: invokestatic net/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance.hasItems:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance;\n // 1193: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1196: aload_1 /* consumer */\n // 1197: ldc_w \"nether/obtain_ancient_debris\"\n // 1200: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1203: astore y12\n // 1205: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1208: aload y12\n // 1210: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1213: getstatic net/minecraft/world/item/Items.NETHERITE_CHESTPLATE:Lnet/minecraft/world/item/Item;\n // 1216: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1219: dup \n // 1220: ldc_w \"advancements.nether.netherite_armor.title\"\n // 1223: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1226: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1229: dup \n // 1230: ldc_w \"advancements.nether.netherite_armor.description\"\n // 1233: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1236: aconst_null \n // 1237: getstatic net/minecraft/advancements/FrameType.CHALLENGE:Lnet/minecraft/advancements/FrameType;\n // 1240: iconst_1 \n // 1241: iconst_1 \n // 1242: iconst_0 \n // 1243: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1246: bipush 100\n // 1248: invokestatic net/minecraft/advancements/AdvancementRewards$Builder.experience:(I)Lnet/minecraft/advancements/AdvancementRewards$Builder;\n // 1251: invokevirtual net/minecraft/advancements/Advancement$Builder.rewards:(Lnet/minecraft/advancements/AdvancementRewards$Builder;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1254: ldc_w \"netherite_armor\"\n // 1257: iconst_4 \n // 1258: anewarray Lnet/minecraft/world/level/ItemLike;\n // 1261: dup \n // 1262: iconst_0 \n // 1263: getstatic net/minecraft/world/item/Items.NETHERITE_HELMET:Lnet/minecraft/world/item/Item;\n // 1266: aastore \n // 1267: dup \n // 1268: iconst_1 \n // 1269: getstatic net/minecraft/world/item/Items.NETHERITE_CHESTPLATE:Lnet/minecraft/world/item/Item;\n // 1272: aastore \n // 1273: dup \n // 1274: iconst_2 \n // 1275: getstatic net/minecraft/world/item/Items.NETHERITE_LEGGINGS:Lnet/minecraft/world/item/Item;\n // 1278: aastore \n // 1279: dup \n // 1280: iconst_3 \n // 1281: getstatic net/minecraft/world/item/Items.NETHERITE_BOOTS:Lnet/minecraft/world/item/Item;\n // 1284: aastore \n // 1285: invokestatic net/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance.hasItems:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance;\n // 1288: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1291: aload_1 /* consumer */\n // 1292: ldc_w \"nether/netherite_armor\"\n // 1295: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1298: pop \n // 1299: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1302: aload y12\n // 1304: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1307: getstatic net/minecraft/world/item/Items.LODESTONE:Lnet/minecraft/world/item/Item;\n // 1310: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1313: dup \n // 1314: ldc_w \"advancements.nether.use_lodestone.title\"\n // 1317: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1320: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1323: dup \n // 1324: ldc_w \"advancements.nether.use_lodestone.description\"\n // 1327: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1330: aconst_null \n // 1331: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1334: iconst_1 \n // 1335: iconst_1 \n // 1336: iconst_0 \n // 1337: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1340: ldc_w \"use_lodestone\"\n // 1343: invokestatic net/minecraft/advancements/critereon/LocationPredicate$Builder.location:()Lnet/minecraft/advancements/critereon/LocationPredicate$Builder;\n // 1346: invokestatic net/minecraft/advancements/critereon/BlockPredicate$Builder.block:()Lnet/minecraft/advancements/critereon/BlockPredicate$Builder;\n // 1349: getstatic net/minecraft/world/level/block/Blocks.LODESTONE:Lnet/minecraft/world/level/block/Block;\n // 1352: invokevirtual net/minecraft/advancements/critereon/BlockPredicate$Builder.of:(Lnet/minecraft/world/level/block/Block;)Lnet/minecraft/advancements/critereon/BlockPredicate$Builder;\n // 1355: invokevirtual net/minecraft/advancements/critereon/BlockPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/BlockPredicate;\n // 1358: invokevirtual net/minecraft/advancements/critereon/LocationPredicate$Builder.setBlock:(Lnet/minecraft/advancements/critereon/BlockPredicate;)Lnet/minecraft/advancements/critereon/LocationPredicate$Builder;\n // 1361: invokestatic net/minecraft/advancements/critereon/ItemPredicate$Builder.item:()Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1364: getstatic net/minecraft/world/item/Items.COMPASS:Lnet/minecraft/world/item/Item;\n // 1367: invokevirtual net/minecraft/advancements/critereon/ItemPredicate$Builder.of:(Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1370: invokestatic net/minecraft/advancements/critereon/ItemUsedOnBlockTrigger$TriggerInstance.itemUsedOnBlock:(Lnet/minecraft/advancements/critereon/LocationPredicate$Builder;Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;)Lnet/minecraft/advancements/critereon/ItemUsedOnBlockTrigger$TriggerInstance;\n // 1373: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1376: aload_1 /* consumer */\n // 1377: ldc_w \"nether/use_lodestone\"\n // 1380: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1383: pop \n // 1384: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1387: aload_2 /* y3 */\n // 1388: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1391: getstatic net/minecraft/world/item/Items.CRYING_OBSIDIAN:Lnet/minecraft/world/item/Item;\n // 1394: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1397: dup \n // 1398: ldc_w \"advancements.nether.obtain_crying_obsidian.title\"\n // 1401: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1404: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1407: dup \n // 1408: ldc_w \"advancements.nether.obtain_crying_obsidian.description\"\n // 1411: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1414: aconst_null \n // 1415: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1418: iconst_1 \n // 1419: iconst_1 \n // 1420: iconst_0 \n // 1421: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1424: ldc_w \"crying_obsidian\"\n // 1427: iconst_1 \n // 1428: anewarray Lnet/minecraft/world/level/ItemLike;\n // 1431: dup \n // 1432: iconst_0 \n // 1433: getstatic net/minecraft/world/item/Items.CRYING_OBSIDIAN:Lnet/minecraft/world/item/Item;\n // 1436: aastore \n // 1437: invokestatic net/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance.hasItems:([Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/InventoryChangeTrigger$TriggerInstance;\n // 1440: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1443: aload_1 /* consumer */\n // 1444: ldc_w \"nether/obtain_crying_obsidian\"\n // 1447: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1450: astore y13\n // 1452: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1455: aload y13\n // 1457: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1460: getstatic net/minecraft/world/item/Items.RESPAWN_ANCHOR:Lnet/minecraft/world/item/Item;\n // 1463: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1466: dup \n // 1467: ldc_w \"advancements.nether.charge_respawn_anchor.title\"\n // 1470: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1473: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1476: dup \n // 1477: ldc_w \"advancements.nether.charge_respawn_anchor.description\"\n // 1480: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1483: aconst_null \n // 1484: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1487: iconst_1 \n // 1488: iconst_1 \n // 1489: iconst_0 \n // 1490: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1493: ldc_w \"charge_respawn_anchor\"\n // 1496: invokestatic net/minecraft/advancements/critereon/LocationPredicate$Builder.location:()Lnet/minecraft/advancements/critereon/LocationPredicate$Builder;\n // 1499: invokestatic net/minecraft/advancements/critereon/BlockPredicate$Builder.block:()Lnet/minecraft/advancements/critereon/BlockPredicate$Builder;\n // 1502: getstatic net/minecraft/world/level/block/Blocks.RESPAWN_ANCHOR:Lnet/minecraft/world/level/block/Block;\n // 1505: invokevirtual net/minecraft/advancements/critereon/BlockPredicate$Builder.of:(Lnet/minecraft/world/level/block/Block;)Lnet/minecraft/advancements/critereon/BlockPredicate$Builder;\n // 1508: invokestatic net/minecraft/advancements/critereon/StatePropertiesPredicate$Builder.properties:()Lnet/minecraft/advancements/critereon/StatePropertiesPredicate$Builder;\n // 1511: getstatic net/minecraft/world/level/block/RespawnAnchorBlock.CHARGE:Lnet/minecraft/world/level/block/state/properties/IntegerProperty;\n // 1514: iconst_4 \n // 1515: invokevirtual net/minecraft/advancements/critereon/StatePropertiesPredicate$Builder.hasProperty:(Lnet/minecraft/world/level/block/state/properties/Property;I)Lnet/minecraft/advancements/critereon/StatePropertiesPredicate$Builder;\n // 1518: invokevirtual net/minecraft/advancements/critereon/StatePropertiesPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/StatePropertiesPredicate;\n // 1521: invokevirtual net/minecraft/advancements/critereon/BlockPredicate$Builder.setProperties:(Lnet/minecraft/advancements/critereon/StatePropertiesPredicate;)Lnet/minecraft/advancements/critereon/BlockPredicate$Builder;\n // 1524: invokevirtual net/minecraft/advancements/critereon/BlockPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/BlockPredicate;\n // 1527: invokevirtual net/minecraft/advancements/critereon/LocationPredicate$Builder.setBlock:(Lnet/minecraft/advancements/critereon/BlockPredicate;)Lnet/minecraft/advancements/critereon/LocationPredicate$Builder;\n // 1530: invokestatic net/minecraft/advancements/critereon/ItemPredicate$Builder.item:()Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1533: getstatic net/minecraft/world/level/block/Blocks.GLOWSTONE:Lnet/minecraft/world/level/block/Block;\n // 1536: invokevirtual net/minecraft/advancements/critereon/ItemPredicate$Builder.of:(Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1539: invokestatic net/minecraft/advancements/critereon/ItemUsedOnBlockTrigger$TriggerInstance.itemUsedOnBlock:(Lnet/minecraft/advancements/critereon/LocationPredicate$Builder;Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;)Lnet/minecraft/advancements/critereon/ItemUsedOnBlockTrigger$TriggerInstance;\n // 1542: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1545: aload_1 /* consumer */\n // 1546: ldc_w \"nether/charge_respawn_anchor\"\n // 1549: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1552: pop \n // 1553: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1556: aload_2 /* y3 */\n // 1557: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1560: getstatic net/minecraft/world/item/Items.WARPED_FUNGUS_ON_A_STICK:Lnet/minecraft/world/item/Item;\n // 1563: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1566: dup \n // 1567: ldc_w \"advancements.nether.ride_strider.title\"\n // 1570: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1573: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1576: dup \n // 1577: ldc_w \"advancements.nether.ride_strider.description\"\n // 1580: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1583: aconst_null \n // 1584: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1587: iconst_1 \n // 1588: iconst_1 \n // 1589: iconst_0 \n // 1590: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1593: ldc_w \"used_warped_fungus_on_a_stick\"\n // 1596: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 1599: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 1602: getstatic net/minecraft/world/entity/EntityType.STRIDER:Lnet/minecraft/world/entity/EntityType;\n // 1605: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.of:(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 1608: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/EntityPredicate;\n // 1611: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.vehicle:(Lnet/minecraft/advancements/critereon/EntityPredicate;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 1614: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/EntityPredicate;\n // 1617: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Composite.wrap:(Lnet/minecraft/advancements/critereon/EntityPredicate;)Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;\n // 1620: invokestatic net/minecraft/advancements/critereon/ItemPredicate$Builder.item:()Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1623: getstatic net/minecraft/world/item/Items.WARPED_FUNGUS_ON_A_STICK:Lnet/minecraft/world/item/Item;\n // 1626: invokevirtual net/minecraft/advancements/critereon/ItemPredicate$Builder.of:(Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1629: invokevirtual net/minecraft/advancements/critereon/ItemPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/ItemPredicate;\n // 1632: getstatic net/minecraft/advancements/critereon/MinMaxBounds$Ints.ANY:Lnet/minecraft/advancements/critereon/MinMaxBounds$Ints;\n // 1635: invokestatic net/minecraft/advancements/critereon/ItemDurabilityTrigger$TriggerInstance.changedDurability:(Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;Lnet/minecraft/advancements/critereon/ItemPredicate;Lnet/minecraft/advancements/critereon/MinMaxBounds$Ints;)Lnet/minecraft/advancements/critereon/ItemDurabilityTrigger$TriggerInstance;\n // 1638: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1641: aload_1 /* consumer */\n // 1642: ldc_w \"nether/ride_strider\"\n // 1645: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1648: astore y14\n // 1650: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1653: getstatic net/minecraft/data/advancements/NetherAdvancements.EXPLORABLE_BIOMES:Ljava/util/List;\n // 1656: invokestatic net/minecraft/data/advancements/AdventureAdvancements.addBiomes:(Lnet/minecraft/advancements/Advancement$Builder;Ljava/util/List;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1659: aload y14\n // 1661: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1664: getstatic net/minecraft/world/item/Items.NETHERITE_BOOTS:Lnet/minecraft/world/item/Item;\n // 1667: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1670: dup \n // 1671: ldc_w \"advancements.nether.explore_nether.title\"\n // 1674: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1677: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1680: dup \n // 1681: ldc_w \"advancements.nether.explore_nether.description\"\n // 1684: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1687: aconst_null \n // 1688: getstatic net/minecraft/advancements/FrameType.CHALLENGE:Lnet/minecraft/advancements/FrameType;\n // 1691: iconst_1 \n // 1692: iconst_1 \n // 1693: iconst_0 \n // 1694: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1697: sipush 500\n // 1700: invokestatic net/minecraft/advancements/AdvancementRewards$Builder.experience:(I)Lnet/minecraft/advancements/AdvancementRewards$Builder;\n // 1703: invokevirtual net/minecraft/advancements/Advancement$Builder.rewards:(Lnet/minecraft/advancements/AdvancementRewards$Builder;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1706: aload_1 /* consumer */\n // 1707: ldc_w \"nether/explore_nether\"\n // 1710: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1713: pop \n // 1714: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1717: aload_2 /* y3 */\n // 1718: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1721: getstatic net/minecraft/world/item/Items.POLISHED_BLACKSTONE_BRICKS:Lnet/minecraft/world/item/Item;\n // 1724: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1727: dup \n // 1728: ldc_w \"advancements.nether.find_bastion.title\"\n // 1731: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1734: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1737: dup \n // 1738: ldc_w \"advancements.nether.find_bastion.description\"\n // 1741: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1744: aconst_null \n // 1745: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1748: iconst_1 \n // 1749: iconst_1 \n // 1750: iconst_0 \n // 1751: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1754: ldc_w \"bastion\"\n // 1757: getstatic net/minecraft/world/level/levelgen/feature/StructureFeature.BASTION_REMNANT:Lnet/minecraft/world/level/levelgen/feature/StructureFeature;\n // 1760: invokestatic net/minecraft/advancements/critereon/LocationPredicate.inFeature:(Lnet/minecraft/world/level/levelgen/feature/StructureFeature;)Lnet/minecraft/advancements/critereon/LocationPredicate;\n // 1763: invokestatic net/minecraft/advancements/critereon/LocationTrigger$TriggerInstance.located:(Lnet/minecraft/advancements/critereon/LocationPredicate;)Lnet/minecraft/advancements/critereon/LocationTrigger$TriggerInstance;\n // 1766: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1769: aload_1 /* consumer */\n // 1770: ldc_w \"nether/find_bastion\"\n // 1773: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1776: astore y15\n // 1778: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1781: aload y15\n // 1783: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1786: getstatic net/minecraft/world/level/block/Blocks.CHEST:Lnet/minecraft/world/level/block/Block;\n // 1789: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1792: dup \n // 1793: ldc_w \"advancements.nether.loot_bastion.title\"\n // 1796: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1799: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1802: dup \n // 1803: ldc_w \"advancements.nether.loot_bastion.description\"\n // 1806: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1809: aconst_null \n // 1810: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1813: iconst_1 \n // 1814: iconst_1 \n // 1815: iconst_0 \n // 1816: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1819: getstatic net/minecraft/advancements/RequirementsStrategy.OR:Lnet/minecraft/advancements/RequirementsStrategy;\n // 1822: invokevirtual net/minecraft/advancements/Advancement$Builder.requirements:(Lnet/minecraft/advancements/RequirementsStrategy;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1825: ldc_w \"loot_bastion_other\"\n // 1828: new Lnet/minecraft/resources/ResourceLocation;\n // 1831: dup \n // 1832: ldc_w \"minecraft:chests/bastion_other\"\n // 1835: invokespecial net/minecraft/resources/ResourceLocation.<init>:(Ljava/lang/String;)V\n // 1838: invokestatic net/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance.lootTableUsed:(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance;\n // 1841: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1844: ldc_w \"loot_bastion_treasure\"\n // 1847: new Lnet/minecraft/resources/ResourceLocation;\n // 1850: dup \n // 1851: ldc_w \"minecraft:chests/bastion_treasure\"\n // 1854: invokespecial net/minecraft/resources/ResourceLocation.<init>:(Ljava/lang/String;)V\n // 1857: invokestatic net/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance.lootTableUsed:(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance;\n // 1860: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1863: ldc_w \"loot_bastion_hoglin_stable\"\n // 1866: new Lnet/minecraft/resources/ResourceLocation;\n // 1869: dup \n // 1870: ldc_w \"minecraft:chests/bastion_hoglin_stable\"\n // 1873: invokespecial net/minecraft/resources/ResourceLocation.<init>:(Ljava/lang/String;)V\n // 1876: invokestatic net/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance.lootTableUsed:(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance;\n // 1879: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1882: ldc_w \"loot_bastion_bridge\"\n // 1885: new Lnet/minecraft/resources/ResourceLocation;\n // 1888: dup \n // 1889: ldc_w \"minecraft:chests/bastion_bridge\"\n // 1892: invokespecial net/minecraft/resources/ResourceLocation.<init>:(Ljava/lang/String;)V\n // 1895: invokestatic net/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance.lootTableUsed:(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/advancements/critereon/LootTableTrigger$TriggerInstance;\n // 1898: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1901: aload_1 /* consumer */\n // 1902: ldc_w \"nether/loot_bastion\"\n // 1905: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 1908: pop \n // 1909: invokestatic net/minecraft/advancements/Advancement$Builder.advancement:()Lnet/minecraft/advancements/Advancement$Builder;\n // 1912: aload_2 /* y3 */\n // 1913: invokevirtual net/minecraft/advancements/Advancement$Builder.parent:(Lnet/minecraft/advancements/Advancement;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1916: getstatic net/minecraft/advancements/RequirementsStrategy.OR:Lnet/minecraft/advancements/RequirementsStrategy;\n // 1919: invokevirtual net/minecraft/advancements/Advancement$Builder.requirements:(Lnet/minecraft/advancements/RequirementsStrategy;)Lnet/minecraft/advancements/Advancement$Builder;\n // 1922: getstatic net/minecraft/world/item/Items.GOLD_INGOT:Lnet/minecraft/world/item/Item;\n // 1925: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1928: dup \n // 1929: ldc_w \"advancements.nether.distract_piglin.title\"\n // 1932: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1935: new Lnet/minecraft/network/chat/TranslatableComponent;\n // 1938: dup \n // 1939: ldc_w \"advancements.nether.distract_piglin.description\"\n // 1942: invokespecial net/minecraft/network/chat/TranslatableComponent.<init>:(Ljava/lang/String;)V\n // 1945: aconst_null \n // 1946: getstatic net/minecraft/advancements/FrameType.TASK:Lnet/minecraft/advancements/FrameType;\n // 1949: iconst_1 \n // 1950: iconst_1 \n // 1951: iconst_0 \n // 1952: invokevirtual net/minecraft/advancements/Advancement$Builder.display:(Lnet/minecraft/world/level/ItemLike;Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/Component;Lnet/minecraft/resources/ResourceLocation;Lnet/minecraft/advancements/FrameType;ZZZ)Lnet/minecraft/advancements/Advancement$Builder;\n // 1955: ldc_w \"distract_piglin\"\n // 1958: getstatic net/minecraft/data/advancements/NetherAdvancements.DISTRACT_PIGLIN_PLAYER_ARMOR_PREDICATE:Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;\n // 1961: invokestatic net/minecraft/advancements/critereon/ItemPredicate$Builder.item:()Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1964: getstatic net/minecraft/tags/ItemTags.PIGLIN_LOVED:Lnet/minecraft/tags/Tag$Named;\n // 1967: invokevirtual net/minecraft/advancements/critereon/ItemPredicate$Builder.of:(Lnet/minecraft/tags/Tag;)Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 1970: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 1973: getstatic net/minecraft/world/entity/EntityType.PIGLIN:Lnet/minecraft/world/entity/EntityType;\n // 1976: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.of:(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 1979: invokestatic net/minecraft/advancements/critereon/EntityFlagsPredicate$Builder.flags:()Lnet/minecraft/advancements/critereon/EntityFlagsPredicate$Builder;\n // 1982: iconst_0 \n // 1983: invokestatic java/lang/Boolean.valueOf:(Z)Ljava/lang/Boolean;\n // 1986: invokevirtual net/minecraft/advancements/critereon/EntityFlagsPredicate$Builder.setIsBaby:(Ljava/lang/Boolean;)Lnet/minecraft/advancements/critereon/EntityFlagsPredicate$Builder;\n // 1989: invokevirtual net/minecraft/advancements/critereon/EntityFlagsPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/EntityFlagsPredicate;\n // 1992: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.flags:(Lnet/minecraft/advancements/critereon/EntityFlagsPredicate;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 1995: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/EntityPredicate;\n // 1998: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Composite.wrap:(Lnet/minecraft/advancements/critereon/EntityPredicate;)Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;\n // 2001: invokestatic net/minecraft/advancements/critereon/ItemPickedUpByEntityTrigger$TriggerInstance.itemPickedUpByEntity:(Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;)Lnet/minecraft/advancements/critereon/ItemPickedUpByEntityTrigger$TriggerInstance;\n // 2004: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 2007: ldc_w \"distract_piglin_directly\"\n // 2010: getstatic net/minecraft/data/advancements/NetherAdvancements.DISTRACT_PIGLIN_PLAYER_ARMOR_PREDICATE:Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;\n // 2013: invokestatic net/minecraft/advancements/critereon/ItemPredicate$Builder.item:()Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 2016: getstatic net/minecraft/world/entity/monster/piglin/PiglinAi.BARTERING_ITEM:Lnet/minecraft/world/item/Item;\n // 2019: invokevirtual net/minecraft/advancements/critereon/ItemPredicate$Builder.of:(Lnet/minecraft/world/level/ItemLike;)Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;\n // 2022: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Builder.entity:()Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 2025: getstatic net/minecraft/world/entity/EntityType.PIGLIN:Lnet/minecraft/world/entity/EntityType;\n // 2028: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.of:(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 2031: invokestatic net/minecraft/advancements/critereon/EntityFlagsPredicate$Builder.flags:()Lnet/minecraft/advancements/critereon/EntityFlagsPredicate$Builder;\n // 2034: iconst_0 \n // 2035: invokestatic java/lang/Boolean.valueOf:(Z)Ljava/lang/Boolean;\n // 2038: invokevirtual net/minecraft/advancements/critereon/EntityFlagsPredicate$Builder.setIsBaby:(Ljava/lang/Boolean;)Lnet/minecraft/advancements/critereon/EntityFlagsPredicate$Builder;\n // 2041: invokevirtual net/minecraft/advancements/critereon/EntityFlagsPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/EntityFlagsPredicate;\n // 2044: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.flags:(Lnet/minecraft/advancements/critereon/EntityFlagsPredicate;)Lnet/minecraft/advancements/critereon/EntityPredicate$Builder;\n // 2047: invokevirtual net/minecraft/advancements/critereon/EntityPredicate$Builder.build:()Lnet/minecraft/advancements/critereon/EntityPredicate;\n // 2050: invokestatic net/minecraft/advancements/critereon/EntityPredicate$Composite.wrap:(Lnet/minecraft/advancements/critereon/EntityPredicate;)Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;\n // 2053: invokestatic net/minecraft/advancements/critereon/PlayerInteractTrigger$TriggerInstance.itemUsedOnEntity:(Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;Lnet/minecraft/advancements/critereon/ItemPredicate$Builder;Lnet/minecraft/advancements/critereon/EntityPredicate$Composite;)Lnet/minecraft/advancements/critereon/PlayerInteractTrigger$TriggerInstance;\n // 2056: invokevirtual net/minecraft/advancements/Advancement$Builder.addCriterion:(Ljava/lang/String;Lnet/minecraft/advancements/CriterionTriggerInstance;)Lnet/minecraft/advancements/Advancement$Builder;\n // 2059: aload_1 /* consumer */\n // 2060: ldc_w \"nether/distract_piglin\"\n // 2063: invokevirtual net/minecraft/advancements/Advancement$Builder.save:(Ljava/util/function/Consumer;Ljava/lang/String;)Lnet/minecraft/advancements/Advancement;\n // 2066: pop \n // 2067: return \n // Signature:\n // (Ljava/util/function/Consumer<Lnet/minecraft/advancements/Advancement;>;)V\n // MethodParameters:\n // Name Flags \n // -------- -----\n // consumer \n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0\n // at java.base/java.util.Vector.get(Vector.java:749)\n // at com.strobel.assembler.metadata.MetadataResolver.resolve(MetadataResolver.java:82)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedType.resolve(CoreMetadataFactory.java:616)\n // at com.strobel.assembler.metadata.MetadataResolver.resolve(MetadataResolver.java:91)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedType.resolve(CoreMetadataFactory.java:616)\n // at com.strobel.assembler.metadata.MetadataHelper.isRawType(MetadataHelper.java:1581)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2470)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1029)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:672)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypesForVariables(TypeAnalysis.java:586)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:397)\n // at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:96)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:109)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)\n // at cuchaz.enigma.source.procyon.ProcyonDecompiler.getSource(ProcyonDecompiler.java:75)\n // at cuchaz.enigma.EnigmaProject$JarExport.decompileClass(EnigmaProject.java:270)\n // at cuchaz.enigma.EnigmaProject$JarExport.lambda$decompileStream$1(EnigmaProject.java:246)\n // at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)\n // at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1624)\n // at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)\n // at java.base/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)\n // at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)\n // at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)\n // at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)\n // at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)\n // at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)\n // at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public ReleaseAddressResponse releaseAddress(ReleaseAddress releaseAddress) {\n \t\treturn null;\r\n \t}", "@Test\n public void canObtainOwnRelease() throws Exception {\n final Release release = release();\n final RtReleaseAsset asset = new RtReleaseAsset(\n new FakeRequest(),\n release,\n 1\n );\n MatcherAssert.assertThat(\n asset.release(),\n Matchers.is(release)\n );\n }", "public CustomerContract() {\n\n }", "private StoneContract() {\n }", "public interface Consumer {\n\n public void createKafkaConsumer() throws Exception;\n\n public void subscribe(String... topic) throws Exception;\n\n\n public Object poll(long timeout);\n\n public void commitSync();\n\n public void close();\n\n}", "public interface BillContracts {\n\tinterface View {\n\t\t/**\n\t\t * 列表显示\n\t\t * @param\n\t\t */\n\t\tpublic void showBillItem(BillList bills);\n\n\t}\n\n\tinterface Presenter {\n\n\t\t/**\n\t\t * 条目被点击\n\t\t * @param context\n\t\t * @param simpleBill\n\t\t */\n\t\tpublic void itemClick(Context context, SimpleBill simpleBill);\n\n\t\t/**\n\t\t * 获取列表\n\t\t */\n\t\tpublic BillList getBillList();\n\n\t\t/**\n\t\t * 通知数据改变\n\t\t */\n\t\tpublic void notifyDataChange(Context context, BillAdapter adapter);\n\n\t\t/**\n\t\t * 加载缓存\n\t\t */\n\t\tpublic void startCacheLoading(Context context, BillList.SyncLoadBillLisetner syncLoadBillLisetner);\n\n\t\t/**\n\t\t * 获取分享链接\n\t\t * @param activity\n\t\t * @param billId\n\t\t */\n\t\tpublic void getInviteLink(final Activity activity, final String billId);\n\t}\n}", "private BookMasterContract() {\n }", "@Override\n\t public void onRelease() {\n\n\t }", "public interface HTTPContract {\n void getRequirementList(AnnounceDataSource.GetRequirementListCallback callback);\n void getFeelingList(AnnounceDataSource.GetFeelingListCallback callback);\n void postFeelingCommend();\n void postFeelingComment();\n// void postRequirementBook();\n// void postRequirementComment();\n\n}", "void release(PooledObject<T> t);", "public interface PoolingQueueService {\n\n void setIMessageProcessor(final IMessageProcessor iMessageProcessor) throws PoolingQueueException;\n\n MessageMapper cconn(String serialNumber, String contentType, MessageMapper messageMapper);\n\n MessageMapper cpull(String serialNumber);\n\n MessageMapper cpush(String serialNumber, String applicationID, String broadcast, String contentType, MessageMapper messageMapper);\n\n MessageMapper aconn(String serialNumber, String applicationID, String contentType, MessageMapper messageMapper);\n\n MessageMapper apull(String serialNumber, String applicationID, String messageAmount);\n\n MessageMapper apush(String serialNumber, String applicationID, String contentType, MessageMapper messageMapper);\n\n}", "public interface ExchangeTasks {\n\n public Map<String, BotPrice> getData() throws ExchangeException;\n\n}", "void makeMarketBuyOrder(AuthInfo authInfo, String pair, String money,HibtcApiCallback<Object> callback);", "public void setRelease(String release)\n {\n this.release = release;\n }", "@Override\r public SpiServiceResult handle(SpiServiceProvider provider, SpiServiceRequest request) {", "void getPackageCatalogue(PackageCatalogueRetrieved callback);", "interface PaymentCallback {\n\n /**\n * Invoke the payment callback.\n * \n */\n void call();\n}", "RequestSender onRefuse(Consumer<Message> consumer);", "public abstract @Nullable SerializableSupplier<PublisherServiceStub> stubSupplier();", "IPayerEntry setSubscriber(IPolicySubscriber value);", "public interface GiftBuyRecordContract {\n interface View extends BaseContract.BaseView{\n void setGiftBuyRecord(List<GiftBuyRecord> bookCategories);\n void onAddAddr();\n }\n\n interface Presenter extends BaseContract.BasePresenter<View>{\n void loadGiftBuyRecord(int pageNo, int pageSize);\n void addAddr(long id, String name, String phone, String addr);\n }\n}", "public interface MySetContract {\n\n interface View extends BaseContract.BaseView {\n void startDocData(DocDataBean docDataBean);\n void againDocData(int code);\n void startSDocData(SDocDataBean sDocDataBean);\n void againSDocData(int code);\n }\n\n interface Presenter extends BaseContract.BasePresenter<View> {\n void getDocDataAttribute(String docid);\n void getSDocDataAttribute(String docid,String docname,String sex,String birthday,\n String mobile,String professional, String hospital,String office);\n }\n\n}", "@Override\n\tpublic void createRelease(Version version) {\n\n\t}", "void onAddContract(String contractAddress, ContractType type);", "public interface ConsumerService extends AbstractService<Consumer> {\n String sayHello(String name);\n}", "public EventMapper onUpdate(final Consumer<Duty> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).setConsumerUpdate(consumer);\n\t\treturn this;\n\t}", "public interface RentToBuyService {\n}", "public interface WithDrawAContract {\n interface View extends BaseView{\n void showBalance(UserBalanceDto userBalanceDto);\n void withdrawSuccess();\n }\n interface Presenter extends BasePresenter{\n void getUserBalance();\n void submitWithdraw(WithDrawAccountDto withDrawAccountDto,String money);\n }\n}", "public interface Consumer<K,V>\t{\n\t/**\n\t * accept the key and value\n\t * @param k\n\t * @param v\n\t */\n\tvoid accept(K k, V v);\n\n}", "public interface BookSourceContract {\n\n interface View extends BaseContract.BaseView {\n void showBookSource(List<BookSource> list);\n }\n\n interface Presenter extends BaseContract.BasePresenter<View> {\n void getBookSource(String view, String book);\n }\n\n}", "@Step\n\tpublic void User_click_on_client_with_release_in_the_Opportunity_Dashboard(String client, String release) throws IOException {\n\t\tString sClientkey=CPWPage.RetrieveTheClientkeyfromgivenClientthroughservice(client);\n\t\t\n\t\tString exactRelese=StringUtils.substringAfter(release, \" \")+GenericUtils.RetrivetheExactMonth(release);\n\t\tSerenity.setSessionVariable(\"client\").to(client);\n\t\tSerenity.setSessionVariable(\"release\").to(exactRelese);\n\t\tSerenity.setSessionVariable(\"clientkey\").to(sClientkey);\n\n\t\toCPWPage.SelectPayer(release, client);\n\t}", "void makeLimitSellOrder(AuthInfo authInfo, String pair, String price, String amount,HibtcApiCallback<Object> callback);", "public void addConsumer(UserSessionConsumer consumer, ChannelKey key) {}", "private PasskeyContract() {}", "public interface ISeedProveiderRpcService {\n Long getTask( Map<String, Object> mapQuery) throws BizCheckedException;\n void createTask( Map<String, Object> mapQuery) throws BizCheckedException;\n List<String> getOrderList(String barcode) throws BizCheckedException;\n List<Map> getStoreList(Map<String, Object> mapQuery) throws BizCheckedException;\n}", "public ToolConsumer getConsumer() {\n\n return this.consumer;\n\n }", "@PayEntryGenerator(\n packageName = \"example.loo.com.fastec\",\n payEntryTemplate = WXPayEntryTemplate.class\n)\npublic interface WeChatPayEntry {\n}", "public void onRelease(String param1) {\n }", "public interface MqConsumer {\n}", "public interface RequestContract {\n\n public void save_request(String note);\n\n public void save_request();\n}", "public interface Binding extends AutoCloseable, Consumer<Bindings> {\n\n\n}", "public interface PaymentComponentProvider<ComponentT extends PaymentComponent, ConfigurationT extends Configuration>\n extends ComponentProvider<ComponentT> {\n\n @SuppressWarnings(\"LambdaLast\")\n @NonNull\n ComponentT get(\n @NonNull ViewModelStoreOwner viewModelStoreOwner,\n @NonNull PaymentMethod paymentMethod,\n @NonNull ConfigurationT configuration\n ) throws CheckoutException;\n}", "@Override\r\n\tpublic void publish(ISeller seller, IHotelBiding hotelBiding) {\n\t\t\r\n\t}", "@Override\n\tpublic void receiveProduct(Product product) {\n\t\t\n\t}", "public interface IMarketObserver {\n\n //To be defined in which format MarketAgent publishes stockprice\n /**\n * This method is called when information about an IMarket\n * which was previously requested using an asynchronous\n * interface becomes available.\n */\n public void onStockpriceChanged();\n\n /**\n * This method is called when information about an IMarket\n * which was previously requested using an asynchronous\n * interface becomes available.\n *\n * @param transactionEntry the transaction entry\n */\n public void onTransactionAdded(TransactionEntry transactionEntry);\n \n /**\n * This method is called when information about an IMarket\n * which was previously requested using an asynchronous\n * interface becomes available.\n *\n * @param orderEntry the order entry\n */\n public void onOrderAdded(OrderEntry orderEntry);\n \n /**\n * This method is called when information about an IMarket\n * which was previously requested using an asynchronous\n * interface becomes available.\n *\n * @param shareEntry the share entry\n */\n public void onShareAdded(ShareEntry shareEntry);\n}" ]
[ "0.63414407", "0.58435965", "0.57580334", "0.57041013", "0.5586668", "0.5567803", "0.5456579", "0.5413883", "0.53712445", "0.53287464", "0.5278651", "0.5179533", "0.5175901", "0.51754564", "0.5169487", "0.5135638", "0.5133242", "0.51244503", "0.5099474", "0.50081974", "0.49700004", "0.49664786", "0.48980588", "0.4891718", "0.48900616", "0.48782763", "0.48453763", "0.48448712", "0.48369732", "0.48369732", "0.48185247", "0.47957885", "0.47945166", "0.4791148", "0.47899622", "0.47878394", "0.4784309", "0.47718447", "0.47652736", "0.47592837", "0.47482976", "0.47472462", "0.47328198", "0.47324505", "0.47280243", "0.47230443", "0.47221577", "0.47157472", "0.47014844", "0.47009176", "0.47005662", "0.47004044", "0.46999022", "0.4689011", "0.46846923", "0.46843067", "0.46820533", "0.4670812", "0.4659624", "0.4655951", "0.46394774", "0.46349606", "0.46317673", "0.4628129", "0.4620137", "0.4610772", "0.46061268", "0.46049032", "0.4604878", "0.4599784", "0.45922622", "0.45908585", "0.45854187", "0.4584479", "0.45776892", "0.45761442", "0.45756176", "0.4575027", "0.45730096", "0.4569669", "0.45662215", "0.45653388", "0.45652452", "0.45611912", "0.45611367", "0.45598722", "0.45560366", "0.4555666", "0.45545858", "0.4552041", "0.45495063", "0.45486003", "0.45465475", "0.45419168", "0.45379555", "0.45367143", "0.4535453", "0.45302153", "0.4530188", "0.4526984" ]
0.69799405
0
Optional. Map an update on the duty's payload to a consumer
public EventMapper onUpdate(final Consumer<Duty> consumer) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).setConsumerUpdate(consumer); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateConsumer(Consumer con) {\n\r\n\t}", "RequestSender onInform(Consumer<Message> consumer);", "public interface DataModelConsumer {\n\n /**\n * Consume the data model. The consumer shouldn't make any changes to it, as\n * other consumers could be using the model afterwards.\n *\n * @param dataModel\n */\n public void consumeDataModel(final Map<String, Object> dataModel);\n}", "RequestSender onRefuse(Consumer<Message> consumer);", "public EventMapper onPalletUpdate(final Consumer<Pallet> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).setConsumerUpdatePallet(consumer);\n\t\treturn this;\n\t}", "@Transactional\n\tpublic void updateConsumer() {\n\t\t\n\t}", "void update(Subscriber record);", "@Override\n\tprotected void processPostUpdateStream(KStream<String, Event> events) {\n\n\t}", "private void registerToEventBusForUpdates(final EventBus eb) {\n eb\n .<JsonObject>consumer(Constants.CACHE_REDIS_EVENTBUS_ADDRESS)\n .handler(message -> {\n LOGGER.fine(\"I have received a message: \" + message.body());\n LOGGER.fine(\"Message type: \" + message.body().getClass().getName());\n writeDataToCache(message);\n });\n }", "protected abstract void consume(InstrumentPriceVO instrumentPriceVO);", "@Override\n\tpublic void handleConsumeOk(String consumerTag) {\n\t\t\n\t}", "@Override\n public void update() {\n String msg = (String) topic.getUpdate(this);\n if(msg == null){\n System.out.println(this.imeRonioca + \" no new messages\");\n }else{\n System.out.println(this.imeRonioca + \" consuming message: \" + msg);\n }\n }", "interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }", "RequestSender onAgree(Consumer<Message> consumer);", "@Override\n public MockResponse handleUpdate(RecordedRequest request) {\n return process(request, putHandler);\n }", "public interface ReceiverObserver {\n\n void update(DataNotification notification);\n}", "void registerOrderConsumer(OrderConsumer orderConsumer);", "@Override\n public void onPutBeansRaised() {\n }", "public int update(StoreFeedBack storeFeedBack);", "public interface FetchHandler {\n\n void updateMetrics(long latency);\n}", "@Override\npublic void update(Observable o, Object arg) {\n\t\n\tMessage<T> msg=input.read();\n\t// Validate for quit and fail flags before consuming\n\tif (!msg.getQuit() && !msg.getFail()){\n\t\tconsume(msg.getContent());\n\t}\n\t\n}", "public void doSomeChanges() {\n\n eventBus.publish(\"our.event.coming.from.model\", \"some data passed\");\n }", "@Override\r\n\tpublic void update(Responsible p) {\n\t\t\r\n\t}", "public abstract void update(DataAction data, DataRequest source) throws ConnectorOperationException;", "public EventMapper onRelease(final Consumer<Set<Duty>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumer(consumer, MappingEvent.release);\n\t\treturn this;\n\t}", "public abstract void observeSpecificData(Service service);", "void saveChangesTo(Consumer consumer) throws RegistrationException;", "public interface Consumer {\n\n @Nonnull\n String getApiKey();\n\n void setApiKey(@Nonnull String apiKey);\n\n @Nonnull\n String getLoginId();\n\n void setLoginId(@Nonnull String loginId);\n\n @Nonnull\n String getSiteKey();\n\n void setSiteKey(@Nonnull String siteKey);\n\n @Nonnull\n String getTouchPoint();\n\n void setTouchPoint(@Nonnull String touchPoint);\n\n @Nonnull\n String getTid();\n\n void setTid(@Nonnull String tid);\n\n boolean hasTid();\n\n void setSharedSecret(@Nonnull String sharedSecret);\n\n @Nonnull\n String getSharedSecret();\n}", "public void doUpdates(MetricsContext unused) {\n synchronized (this) {\n this.cluster_requests.pushMetric(metricsRecord);\n }\n this.metricsRecord.update();\n }", "public void updateBusinessData(Map<String,Object> params) throws Exception;", "public interface OnDeliveriesUpdatedListener {\n void onDeliveriesUpdated(List<Delivery> deliveries);\n}", "public void setConsumer(Consumer consumer) {\n this.consumer = consumer;\n }", "public void receivedUpdateFromServer();", "Consumer getConsumer();", "void update(Object source, Object reason, T arg);", "@Override\r\n\tpublic void update(BbsDto dto) {\n\t\t\r\n\t}", "@Override\n\tpublic Book update(Book dto) {\n\t\treturn null;\n\t}", "@Override\n public void postReceive(RepositoryHookContext context, Collection<RefChange> refChanges) \n {\n }", "void onDemandUpdated(Vehicule demand);", "public void updateData() {}", "void emit(TrackerPayload payload);", "public Object getUpdate(IObserver obj);", "@Override\n public void run() {\n handler.post(Update);\n }", "public interface RestfulListener {\r\n public void childChange(String businessKey);\r\n}", "@Override\n\tpublic void update(Map<String, Object> params)\n\t{\n\t}", "@Override\r\n\tpublic void onMessage(ConsumerRecord<String, String> record) {\n\t\t\r\n\t\tString key = record.key();\r\n\t\tString value = record.value();\r\n\t\tif(key!=null && key.equals(\"addarticle\")) {\r\n\t\t\tArticle article = JSONObject.parseObject(value,Article.class);\r\n\t\t\t//新增到数据库\r\n\t\t\tarticleService.save(article);\r\n\t\t}\t\r\n\t}", "public void consume(Connector connector) {\n\n\t}", "@Override\n public void update(Observable o, Object arg)\n {\n \n }", "@Override\n public void doUpdate(NotificationMessage notification) {\n \n }", "public interface EventBusProducer {\n void post(final Answer answer);\n}", "public void handleUpdate(WasteBinSensorData updatedData)\n\t{\n\t\t// extract updated values and store them in the current instance\n\t\t// variables.\n\t\tthis.fillLevel = updatedData.getFillLevel();\n\t\tthis.temperatureAsMeasure = updatedData.getTemperature();\n\t\t\n\t\t// update the latest update time\n\t\tthis.latestUpdate = new Date();\n\t\tHashMap<String, Object> valuesMap = new HashMap<>();\n\t\tvaluesMap.put(\"getTemperature\", this.getTemperature());\n\t\tvaluesMap.put(\"getLevel\", this.getLevel());\n\t\tPWALNewDataAvailableEvent event = new PWALNewDataAvailableEvent(this.getUpdatedAt(), this.getPwalId(),\n\t\t\t\tthis.getExpiresAt(), valuesMap, this);\n\t\tlogger.info(\"Device {} is publishing a new data available event on topic: {}\", this.getPwalId(),\n\t\t\t\tthis.eventPublisher.getTopics());\n\t\tthis.eventPublisher.publish(event);\n\t\t\n\t}", "EventChannel.Update update();", "interface Update extends Appliable<Secret>, UpdateStages.WithProperties, UpdateStages.WithTags {\n }", "public interface IProcessor {\n\n /**\n * Process one change in the container.\n * @param document json that was added to/updated in the container\n */\n void process(JsonNode document);\n\n}", "@Override\n public void updateWithObservationsFromDatastreamOnly(SensingDevice sensingDevice, Datastream datastream) {\n }", "@Override\n\tpublic void update(Observable observable, Object data) {\n\n\t}", "public void notificationUpdate(long notificationID, String recipient, String verb, String actor){\n String unread = \"false\";\n Callback<Notifications> callback = new Callback<Notifications>() {\n\n @Override\n public void success(Notifications serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceNotificationServerEvent(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.updateNotification(notificationID, recipient, verb, unread, actor, callback);\n }", "@Override\n\tpublic void receiveProduct(Product product) {\n\t\t\n\t}", "@Override\r\n\tpublic void publish(ISeller seller, IHotelBiding hotelBiding) {\n\t\t\r\n\t}", "public interface IntfOnChange\n{\n /**\n The method is called when the broker sends a change notification event.\n\n @param subscribers the number of clients subscribed to the topic.\n @param tid the topic name requested or the ephemeral topic ID\n requested to be observed.\n */\n public void smqOnChange(final long subscribers, final long tid);\n}", "@Override\r\n\tpublic void onMessage(ConsumerRecord<String, String> data) {\n\t\t\r\n\t\tString value = data.value();\r\n\t\t\r\n\r\n\t\tif(data.key().equals(\"add1\")) {\r\n\t\t\tarticleService.addHot(Integer.parseInt(data.value()));\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"浏览量增加\");\r\n\t\t\t\r\n\t\t}else if(data.key().equals(\"shuju\")){\r\n\t\t\tGson gson = new Gson();\r\n\t\t\tArticle fromJson = gson.fromJson(value, Article.class);\r\n\t\t\t\r\n\t\t\tarticleService.kafkaSave(fromJson);\r\n\t\t}else if(data.key().equals(\"shizhichao_redis\")) {\r\n\t\t\tValueOperations<String, Article> opsForValue = redisTemplate.opsForValue();\r\n\t\t\t\r\n\t\t\tArticle article = opsForValue.get(value);\r\n\t\t\t\r\n\t\t\tint i = articleService.kafkaSave(article);\r\n\t\t\t\r\n\t\t\tif(i>0) {\r\n\t\t\t\tredisTemplate.delete(value);\r\n\t\t\t\tSystem.out.println( data.value() + \"已导入完毕\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void handleDelivery(String consumerTag, Envelope envelope,\n AMQP.BasicProperties properties, byte[] body) throws IOException \n {\n try\n {\n Object obj = getObjectForBytes(body);\n json = returnJson(obj);\n System.out.println(\"The json is \"+json.toString());\n \n } catch (ClassNotFoundException ex)\n {\n Logger.getLogger(JsonTranslator.class.getName()).log(Level.SEVERE, null, ex);\n }finally \n {\n System.out.println(\" [x] Done\");\n publishJsonData();//VERY INOVATIVE\n //DDO NOT KILL THE \n // channel.basicAck(envelope.getDeliveryTag(), false);\n }\n \n }", "protected void handleUpdateData(BaseIotData data)\n\t{\n\t\tActuatorData ad = (ActuatorData) data;\n\t\tthis.command = ad.getCommand();\n\t\tthis.value = ad.getValue();\n\t\tthis.actuatorType = ad.getActuatorType();\n\t}", "void invoke(Map<String, Object> data, String sender);", "@Override\r\n\tpublic void onUpdateIO(int device, int type, int code, int value,\r\n\t\t\tint timestamp) {\n\t\t\r\n\t}", "void onData(int id, GuidPrefix sourcePrefix, Data data, Time timeStamp) throws IOException {\r\n\t\tGuid writerGuid = new Guid(sourcePrefix, data.getWriterId());\r\n\r\n\t\tWriterProxy wp = getWriterProxy(writerGuid);\r\n\t\tif (wp != null) {\r\n\t\t\twp.assertLiveliness();\r\n\r\n\t\t\tif (wp.acceptData(data.getWriterSequenceNumber())) {\r\n\t\t\t\tif (checkDirectedWrite(data)) { \r\n\t\t\t\t\t// Add Data to cache only if permitted by DirectedWrite, or if DirectedWrite does not exist\r\n\t\t\t\t\tlogger.debug(\"[{}] Got Data: #{}\", getEntityId(), data.getWriterSequenceNumber());\r\n\t\t\t\t\trCache.addChange(id, writerGuid, data, timeStamp);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlogger.debug(\"[{}] Data was rejected: Data seq-num={}, proxy seq-num={}\", getEntityId(),\r\n\t\t\t\t\t\tdata.getWriterSequenceNumber(), wp.getGreatestDataSeqNum());\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tlogger.warn(\"[{}] Discarding Data from unknown writer {}, {}\", getEntityId(), sourcePrefix,\r\n\t\t\t\t\tdata.getWriterId());\r\n\t\t}\r\n\t}", "public interface BookDataReceiver {\n void pushData(List<Book> books);\n}", "public interface CommercialUpdateNotificationService {\n void notify(Commercial commercial);\n}", "public interface MessageHandler {\n\n /**\n * handle message\n * @param result\n */\n public void handleMessage(ConsumerResult result);\n\n}", "void onRequest(Member member, Map<String, ?> input, JSONObject output);", "@Service\npublic interface EventHandler {\n public AppdirectAPIResponse handleEvent(EventInfo eventInfo);\n}", "@KafkaListener(topics = \"${spring.kafka.consumer.topic.product}\")\n @LoadBalanced\n public void receiveProduct(ConsumerRecord<String, String> consumerRecord) {\n LOGGER.info(\"Received topic={}, key={}, Products={}\", consumerRecord.topic(), consumerRecord.key(), consumerRecord.value());\n if (consumerRecord.key().equals(KeySet.UPDATE_QNT_PRODUCT.toString())) {\n updateProductQnt(jsonMapperWrapper.readProductValue(consumerRecord.value()));\n }\n// latch.countDown();\n }", "abstract void handleAlarmUpdate(AlarmUpdateInfo info);", "@Override\n public DataObjectResponse<Agenda> handlePUT(DataObjectRequest<Agenda> request)\n {\n return super.handlePUT(request);\n }", "@Override\n public void update (Observable o, Object arg) {\n }", "void enqueue(BasePayload payload, EnqueueCallback callback);", "void update(Seller obj);", "void update(Seller obj);", "<T extends RequestMessage> void addRequestConsumer(Class<T> cls, Consumer<T> consumer);", "@Override // io.reactivex.functions.Consumer\n public void accept(Unit unit) {\n this.a.e.enqueueUpdateUnreadMessagesCountWork();\n }", "@Override\n public void update(Observable o, Object arg) {\n\n }", "public void update(Customer myCust){\n }", "@MessagingGateway(defaultRequestChannel = \"eventOutput\")\ninterface EventWriter {\n\n @Gateway(requestChannel = \"eventOutput\")\n void writeEvent(Event event);\n}", "@Override\r\n\tpublic CustomResult update(MaterialConsume materialConsume) throws Exception{\n\t\tint i = materialConsumeMapper.updateByPrimaryKeySelective(materialConsume);\r\n\t\tif(i>0){\r\n\t\t\treturn CustomResult.ok();\r\n\t\t}else{\r\n\t\t\treturn CustomResult.build(101, \"修改物料消耗信息失败\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic void update(Observable o, Object arg) {\n\t\t\n\t}", "@Bean\n public Consumer<RawJHUCSSUCOVID19> onCovidRawDataRegion() {\n\t\treturn rawJHUCSSUCOVID19 -> {\n\t\t\tfor (RawJHUCSSUCOVID19.Features feature : rawJHUCSSUCOVID19.getFeatures()) {\n\t\t\t\tString key = topicPrefix + feature.getAttributes().getCountryRegion() + \"/\" + feature.getAttributes().getProvinceState();\n if(feature.getAttributes().getLastUpdate() != null) {\n if (!updateMap.containsKey(key) || updateMap.get(key).getAttributes().getLastUpdate().compareTo(feature.getAttributes().getLastUpdate()) != 0) {\n\n try {\n jmsTemplate.convertAndSend(key, mapper.writeValueAsString(cloneFeature(feature)));\n } catch (JsonProcessingException e) {\n logger.error(e.getMessage());\n }\n updateMap.put(key, feature);\n logger.info(\"Publishing: \" + key);\n }\n }\n\t\t\t}\n\t\t};\n\t}", "@Override\n public void update(Observable o, Object arg) {\n }", "@Override\n\tpublic void receiveRequest() {\n\n\t}", "@Override\r\n\tpublic void update(Observable o, Object arg) {\n\t\t\r\n\t}", "public void deliver() {\n try {\n if (null != this.listener) {\n ContentObject pending = null;\n CCNInterestListener listener = null;\n synchronized (this) {\n if (null != this.data && null != this.listener) {\n pending = this.data;\n this.data = null;\n listener = (CCNInterestListener) this.listener;\n }\n }\n if (null != pending) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback (\" + pending + \" data) for: {0}\", this.interest.name());\n synchronized (this) {\n this.deliveryPending = false;\n }\n manager.unregisterInterest(this);\n Interest updatedInterest = listener.handleContent(pending, interest);\n if (null != updatedInterest) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback: updated interest to express: {0}\", updatedInterest.name());\n manager.expressInterest(this.owner, updatedInterest, listener);\n }\n } else {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback skipped (no data) for: {0}\", this.interest.name());\n }\n } else {\n synchronized (this) {\n if (null != this.sema) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Data consumes pending get: {0}\", this.interest.name());\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINEST)) Log.finest(Log.FAC_NETMANAGER, \"releasing {0}\", this.sema);\n this.sema.release();\n }\n }\n if (null == this.sema) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback skipped (not valid) for: {0}\", this.interest.name());\n }\n }\n } catch (Exception ex) {\n _stats.increment(StatsEnum.DeliverContentFailed);\n Log.warning(Log.FAC_NETMANAGER, \"failed to deliver data: {0}\", ex);\n Log.warningStackTrace(ex);\n }\n }", "@Override\r\n\tpublic void receiveMessage(Stanza stanza, Object payload) {\r\n\t\t//CHECK WHICH END BUNDLE TO BE CALLED THAT I MANAGE\r\n\t\tif (payload instanceof CalcBean){ \r\n\t\t\tCalcBean messageBean = (CalcBean)payload;\r\n\t\t\tLOG.debug(\"*** Message Recieved by ExampleCommMgr: \" + messageBean.getMessage());\r\n\t\t}\r\n\t}", "@FunctionalInterface\npublic interface MessageEditHandler extends UpdateHandler {\n \n /**\n * Handles an incoming message edit.\n *\n * @param message new incoming edit\n * @param editDate the date of the edit\n * @throws Throwable if a throwable is thrown\n */\n void onMessageEdit(Message message, long editDate) throws Throwable;\n \n @Override\n default void onUpdate(Update update) throws Throwable {\n if (update instanceof EditedMessageUpdate) {\n Message message = ((EditedMessageUpdate) update).getMessage();\n onMessageEdit(message, message.getEditDate().getAsLong());\n }\n }\n \n}", "void filterUpdate(ServerContext context, UpdateRequest request,\n ResultHandler<Resource> handler, RequestHandler next);", "@Override\n public void onDataUpdatedCb(Object response_data) {\n \n }", "D update(D dto);", "@Override\n public boolean announce() {\n\taddDataConsumerInfo(dataConsumer);\n return true;\n }", "public Object consumeBloqueante();", "public void smqOnChange(final long subscribers, final long tid);", "@Override\n public void call(InterestResponse interestResponse) {\n if (interestResponse != null && interestResponse.details != null) {\n updateInterestsList(interestResponse.details);\n }\n\n mainHandler.post(new Runnable() {\n @Override\n public void run() {\n bus.post(new InterestUpdateEvent());\n\n\n// UIHelper.getInstance().dismissProgressDialog();\n }\n });\n\n }", "private void apply(ShipArrived event) {\n }" ]
[ "0.6421956", "0.60227734", "0.5913004", "0.5882795", "0.5841567", "0.58356416", "0.5778682", "0.55195796", "0.5461023", "0.54509455", "0.53307563", "0.5324811", "0.53056324", "0.5246516", "0.52264595", "0.52227044", "0.52212334", "0.52139103", "0.51836133", "0.51733696", "0.51637447", "0.5162915", "0.5156811", "0.5144719", "0.514038", "0.5134099", "0.51303935", "0.5115063", "0.5104704", "0.5103151", "0.509869", "0.5082212", "0.50726783", "0.5068395", "0.5046784", "0.5034503", "0.50297904", "0.5029469", "0.50260216", "0.502499", "0.50195986", "0.5011782", "0.5005005", "0.5001356", "0.4995233", "0.49951786", "0.49945918", "0.49842194", "0.49821016", "0.49804437", "0.49788225", "0.49783927", "0.49779418", "0.4977238", "0.49565408", "0.49541032", "0.49460536", "0.49405298", "0.49380597", "0.49375793", "0.49338016", "0.49308357", "0.49281335", "0.49219534", "0.49200845", "0.4918313", "0.4911676", "0.490871", "0.49084854", "0.49074057", "0.49024197", "0.49016374", "0.489652", "0.48943648", "0.48913145", "0.48859376", "0.48857114", "0.48857114", "0.48834112", "0.48829693", "0.48794508", "0.48724145", "0.4860435", "0.48545206", "0.48518285", "0.48475042", "0.48437235", "0.48432773", "0.4842599", "0.4841048", "0.4827552", "0.48259348", "0.48215157", "0.4820187", "0.4816657", "0.48162955", "0.4814331", "0.48110828", "0.48019066", "0.47932824" ]
0.64217126
1
Optional. Map an update on the pallet's payload to a consumer
public EventMapper onPalletUpdate(final Consumer<Pallet> consumer) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).setConsumerUpdatePallet(consumer); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateConsumer(Consumer con) {\n\r\n\t}", "RequestSender onInform(Consumer<Message> consumer);", "RequestSender onRefuse(Consumer<Message> consumer);", "@Override\n\tpublic void handleConsumeOk(String consumerTag) {\n\t\t\n\t}", "public EventMapper onPalletRelease(final Consumer<Set<Pallet>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumerPallet(consumer, MappingEvent.releasePallet);\n\t\treturn this;\n\t}", "public void consume(Connector connector) {\n\n\t}", "public interface DataModelConsumer {\n\n /**\n * Consume the data model. The consumer shouldn't make any changes to it, as\n * other consumers could be using the model afterwards.\n *\n * @param dataModel\n */\n public void consumeDataModel(final Map<String, Object> dataModel);\n}", "public EventMapper onUpdate(final Consumer<Duty> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).setConsumerUpdate(consumer);\n\t\treturn this;\n\t}", "@Transactional\n\tpublic void updateConsumer() {\n\t\t\n\t}", "RequestSender onAgree(Consumer<Message> consumer);", "void nextPayload(PayloadCallback callback);", "protected final void consumePubSubMessage(Object listener, Pipe<MessageSubscription> p) {\n\t\t\t\t\n\t\t//TODO: Pipe.markHead(p); change all calls to low level API then add support for mark.\t\t\n\t\t\n\t\t\n\t\twhile (Pipe.hasContentToRead(p)) {\n\t\t\t\n\t\t\tPipe.markTail(p);\n\t\t\t\n int msgIdx = Pipe.takeMsgIdx(p); \t\t \n \n switch (msgIdx) {\n case MessageSubscription.MSG_PUBLISH_103:\n if (listener instanceof PubSubListener) {\n \t \t\n \tint meta = Pipe.takeRingByteLen(p);\n \tint len = Pipe.takeRingByteMetaData(p);\n \t \t\n \t\n \tCharSequence topic = workspace.setToField(p, meta, len);\n\t \n\t assert(null!=topic) : \"Callers must be free to write topic.equals(x) with no fear that topic is null.\";\n\t \n\t PayloadReader reader = (PayloadReader)Pipe.inputStream(p);\n\t DataInputBlobReader.openLowLevelAPIField(reader);\n\t \n\t \n\t boolean isDone = ((PubSubListener)listener).message(topic,reader);\n\t\t \tif (!isDone) {\n\t\t \t\t Pipe.resetTail(p);\n\t\t \t\t return;//continue later and repeat this same value.\n\t\t \t}\n\t \n }\n break;\n case MessageSubscription.MSG_STATECHANGED_71:\n \tif (listener instanceof StateChangeListener) {\n \t\t\n \t\tint oldOrdinal = Pipe.takeInt(p);\n \t\tint newOrdinal = Pipe.takeInt(p); \n \t\t\n \t\tassert(oldOrdinal != newOrdinal) : \"Stage change must actualt change the state!\";\n \t\t\n \t\tif (isIncluded(newOrdinal, includedToStates) && isIncluded(oldOrdinal, includedFromStates) &&\n \t\t\tisNotExcluded(newOrdinal, excludedToStates) && isNotExcluded(oldOrdinal, excludedFromStates) ) {\t\t\t \t\t\t\n \t\t\t\n \t\t\tboolean isDone = ((StateChangeListener)listener).stateChange(states[oldOrdinal], states[newOrdinal]);\n\t \t\t \tif (!isDone) {\n\t\t\t \t\t Pipe.resetTail(p);\n\t\t\t \t\t return;//continue later and repeat this same value.\n\t\t\t \t}\n \t\t\t\n \t\t}\n\t\t\t\t\t\t\n \t} else {\n \t\t//Reactive listener can store the state here\n \t\t\n \t\t//TODO: important feature, in the future we can keep the state and add new filters like\n \t\t// only accept digital reads when we are in state X\n \t\t\n \t}\n break;\n case -1:\n \n requestShutdown();\n Pipe.confirmLowLevelRead(p, Pipe.EOF_SIZE);\n Pipe.releaseReadLock(p);\n return;\n \n default:\n throw new UnsupportedOperationException(\"Unknown id: \"+msgIdx);\n \n }\n Pipe.confirmLowLevelRead(p, Pipe.sizeOf(p,msgIdx));\n Pipe.releaseReadLock(p);\n }\n }", "@KafkaListener(topics = \"${spring.kafka.consumer.topic.product}\")\n @LoadBalanced\n public void receiveProduct(ConsumerRecord<String, String> consumerRecord) {\n LOGGER.info(\"Received topic={}, key={}, Products={}\", consumerRecord.topic(), consumerRecord.key(), consumerRecord.value());\n if (consumerRecord.key().equals(KeySet.UPDATE_QNT_PRODUCT.toString())) {\n updateProductQnt(jsonMapperWrapper.readProductValue(consumerRecord.value()));\n }\n// latch.countDown();\n }", "@Override\n\tprotected void processPostUpdateStream(KStream<String, Event> events) {\n\n\t}", "public EventMapper onPalletCapture(final Consumer<Set<Pallet>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumerPallet(consumer, MappingEvent.capturePallet);\n\t\treturn this;\n\t}", "public interface BookDataReceiver {\n void pushData(List<Book> books);\n}", "protected abstract void consume(InstrumentPriceVO instrumentPriceVO);", "void registerOrderConsumer(OrderConsumer orderConsumer);", "Consumer getConsumer();", "@Override\n public void update() {\n String msg = (String) topic.getUpdate(this);\n if(msg == null){\n System.out.println(this.imeRonioca + \" no new messages\");\n }else{\n System.out.println(this.imeRonioca + \" consuming message: \" + msg);\n }\n }", "public int update(StoreFeedBack storeFeedBack);", "public void setConsumer(Consumer consumer) {\n this.consumer = consumer;\n }", "@Override\n public void onPutBeansRaised() {\n }", "@Override\n\tpublic void receiveProduct(Product product) {\n\t\t\n\t}", "@Override\r\n\tpublic void onMessage(ConsumerRecord<String, String> data) {\n\t\t\r\n\t\tString value = data.value();\r\n\t\t\r\n\r\n\t\tif(data.key().equals(\"add1\")) {\r\n\t\t\tarticleService.addHot(Integer.parseInt(data.value()));\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"浏览量增加\");\r\n\t\t\t\r\n\t\t}else if(data.key().equals(\"shuju\")){\r\n\t\t\tGson gson = new Gson();\r\n\t\t\tArticle fromJson = gson.fromJson(value, Article.class);\r\n\t\t\t\r\n\t\t\tarticleService.kafkaSave(fromJson);\r\n\t\t}else if(data.key().equals(\"shizhichao_redis\")) {\r\n\t\t\tValueOperations<String, Article> opsForValue = redisTemplate.opsForValue();\r\n\t\t\t\r\n\t\t\tArticle article = opsForValue.get(value);\r\n\t\t\t\r\n\t\t\tint i = articleService.kafkaSave(article);\r\n\t\t\t\r\n\t\t\tif(i>0) {\r\n\t\t\t\tredisTemplate.delete(value);\r\n\t\t\t\tSystem.out.println( data.value() + \"已导入完毕\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\r\n\t\t\r\n\t\t\r\n\t}", "void saveChangesTo(Consumer consumer) throws RegistrationException;", "void applyProduces(ReaderContext context, Operation operation, Method method);", "@Override\npublic void update(Observable o, Object arg) {\n\t\n\tMessage<T> msg=input.read();\n\t// Validate for quit and fail flags before consuming\n\tif (!msg.getQuit() && !msg.getFail()){\n\t\tconsume(msg.getContent());\n\t}\n\t\n}", "public interface Consumer {\n\n @Nonnull\n String getApiKey();\n\n void setApiKey(@Nonnull String apiKey);\n\n @Nonnull\n String getLoginId();\n\n void setLoginId(@Nonnull String loginId);\n\n @Nonnull\n String getSiteKey();\n\n void setSiteKey(@Nonnull String siteKey);\n\n @Nonnull\n String getTouchPoint();\n\n void setTouchPoint(@Nonnull String touchPoint);\n\n @Nonnull\n String getTid();\n\n void setTid(@Nonnull String tid);\n\n boolean hasTid();\n\n void setSharedSecret(@Nonnull String sharedSecret);\n\n @Nonnull\n String getSharedSecret();\n}", "@Override\n public void handleDelivery(String consumerTag, Envelope envelope,\n AMQP.BasicProperties properties, byte[] body) throws IOException \n {\n try\n {\n Object obj = getObjectForBytes(body);\n json = returnJson(obj);\n System.out.println(\"The json is \"+json.toString());\n \n } catch (ClassNotFoundException ex)\n {\n Logger.getLogger(JsonTranslator.class.getName()).log(Level.SEVERE, null, ex);\n }finally \n {\n System.out.println(\" [x] Done\");\n publishJsonData();//VERY INOVATIVE\n //DDO NOT KILL THE \n // channel.basicAck(envelope.getDeliveryTag(), false);\n }\n \n }", "<T extends RequestMessage> void addRequestConsumer(Class<T> cls, Consumer<T> consumer);", "@Override\r\n\tpublic void receiveMessage(Stanza stanza, Object payload) {\r\n\t\t//CHECK WHICH END BUNDLE TO BE CALLED THAT I MANAGE\r\n\t\tif (payload instanceof CalcBean){ \r\n\t\t\tCalcBean messageBean = (CalcBean)payload;\r\n\t\t\tLOG.debug(\"*** Message Recieved by ExampleCommMgr: \" + messageBean.getMessage());\r\n\t\t}\r\n\t}", "void enqueue(BasePayload payload, EnqueueCallback callback);", "void emit(TrackerPayload payload);", "public interface MessageHandler {\n\n /**\n * handle message\n * @param result\n */\n public void handleMessage(ConsumerResult result);\n\n}", "void invoke(Map<String, Object> data, String sender);", "public interface IProcessor {\n\n /**\n * Process one change in the container.\n * @param document json that was added to/updated in the container\n */\n void process(JsonNode document);\n\n}", "void update(Subscriber record);", "@Override\n public void onPutSpiceRaised() {\n }", "Builder addProducer(Person value);", "@Override\n\tpublic void receiveRequest() {\n\n\t}", "public Object consumeBloqueante();", "@Override\r\n\tpublic void publish(ISeller seller, IHotelBiding hotelBiding) {\n\t\t\r\n\t}", "public void receivedUpdateFromServer();", "public interface EventBusProducer {\n void post(final Answer answer);\n}", "void assignDataReceived(Serializable dataReceived);", "public interface PriceMapService {\n\n /**\n * Receive a price map offer.\n * \n * <p>\n * Implementations must publish a {@link PriceMapOfferAccepted} event after accepting the offer. A\n * {@link PriceMapOfferCountered} event must be published after proposing a counter offer.\n * </p>\n * \n * @param offer\n * the offer\n * @return the offer entity, which informs the caller if the offer has been accepted, rejected, or\n * contains a counter-offer\n */\n @Nonnull\n PriceMapOfferEventEntity receivePriceMapOffer(PriceMapOffer offer);\n\n}", "@DSSafe(DSCat.IPC_CALLBACK)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.580 -0500\", hash_original_method = \"2469457C965E8FC7C139A1D414384428\", hash_generated_method = \"42C86E9B0B120923F19E3F5FDF13C046\")\n \n@Override\n public void handleMessage(Message msg) {\n mResultMsg = Message.obtain();\n mResultMsg.copyFrom(msg);\n synchronized(mLockObject) {\n mLockObject.notify();\n }\n }", "public abstract void processMsg(ConsumerRecord<byte[], byte[]> record);", "@Override\n public void consume(Player p) {\n if(boostType.equals(\"force\")){\n p.setStrength(p.getStrength() + 1);\n }else if(boostType.equals(\"life\")){\n p.modifyLife(1);\n }else if(boostType.equals(\"force+\")){\n p.setStrength(p.getStrength() + 2);\n }else if(boostType.equals(\"life+\")) {\n p.modifyLife(2);\n }else if(boostType.equals(\"force++\")){\n p.setStrength(p.getStrength() + 3);\n }else if(boostType.equals(\"life++\")) {\n p.modifyLife(3);\n }\n Thread t = new Thread(this);\n t.start();\n }", "public abstract void update(DataAction data, DataRequest source) throws ConnectorOperationException;", "public interface IProducer {\n\n\n /** sends out the filled in message to kafka */\n public void dispatchMessage(KeyedMessage<byte[], byte[]> msg);\n\n public void shutdown();\n\n public void dispatchMessage(final List<KeyedMessage<byte[], byte[]>> msgBatch );\n\n\n}", "@Override\r\n\tpublic void onMessage(ConsumerRecord<String, String> record) {\n\t\t\r\n\t\tString key = record.key();\r\n\t\tString value = record.value();\r\n\t\tif(key!=null && key.equals(\"addarticle\")) {\r\n\t\t\tArticle article = JSONObject.parseObject(value,Article.class);\r\n\t\t\t//新增到数据库\r\n\t\t\tarticleService.save(article);\r\n\t\t}\t\r\n\t}", "interface Update extends Appliable<Secret>, UpdateStages.WithProperties, UpdateStages.WithTags {\n }", "interface Consumer {\n /**\n * Consume a message.\n * \n * @param entry\n * A log entry converted to hash.\n */\n public void consume(Map<String, Object> entry);\n\n /**\n * Shutdown the consumer thread, waiting for it to finish.\n */\n public void shutdown();\n}", "public void onPacketReceived(Consumer<APINetworkPacket> consumer) {\n packetReceived.register(consumer);\n }", "public void connectorPushed(InputConnector inputConnector);", "void storeDataFlow(DataFlow msg);", "public interface IntfOnChange\n{\n /**\n The method is called when the broker sends a change notification event.\n\n @param subscribers the number of clients subscribed to the topic.\n @param tid the topic name requested or the ephemeral topic ID\n requested to be observed.\n */\n public void smqOnChange(final long subscribers, final long tid);\n}", "public interface IPaletteSink {\r\n\t/**\r\n\t * Inject a palette\r\n\t * @param\tpalette\tNew palette to inject\r\n\t */\r\n\tpublic void accept(IPalette palette);\r\n}", "@Override\r\n public void handleMessage(Message inputMessage){\n Log.i(\"graphql insert\", \"made it to the callback\");\r\n //grab the data\r\n CreateBuyableItemMutation.CreateBuyableItem item = response.data().createBuyableItem();\r\n //make a new buyable item with it\r\n buyableItems.add(new BuyableItem(item));\r\n recyclerView.getAdapter().notifyDataSetChanged();\r\n\r\n }", "@ConsumerType\npublic interface BlobStatsCollector {\n BlobStatsCollector NOOP = new BlobStatsCollector() {\n @Override\n public void uploaded(long timeTaken, TimeUnit unit, long size) {\n\n }\n\n @Override\n public void downloaded(String blobId, long timeTaken, TimeUnit unit, long size) {\n\n }\n\n @Override\n public void uploadCompleted(String blobId) {\n\n }\n\n @Override\n public void downloadCompleted(String blobId) {\n\n }\n };\n\n /**\n * Called when a binary content is written to BlobStore\n *\n * @param timeTaken time taken to perform the operation\n * @param unit unit of time taken\n * @param size size of binary content being written\n */\n void uploaded(long timeTaken, TimeUnit unit, long size);\n\n /**\n * Called when a binary content is read from BlobStore\n *\n * @param blobId id of blob whose content are being read. For BlobStore\n * which break up file in chunks it would be chunkId\n * @param timeTaken time taken to perform the operation\n * @param unit unit of time taken\n * @param size size of binary content being read\n */\n void downloaded(String blobId, long timeTaken, TimeUnit unit, long size);\n\n /**\n * Invoked when upload for a binary file get completed. In case of chunked\n * BlobStore this invoked when all the chunks have been uploaded\n *\n * @param blobId id of the blob which got uploaded. Even in case of chunked\n * blobStores its the id of main blob\n */\n void uploadCompleted(String blobId);\n\n /**\n * Invoked when download for a binary file get completed. In case of chunked\n * BlobStore this invoked when all the chunks have been downloaded\n *\n * @param blobId id of the blob which got downloaded. Even in case of chunked\n * blobStores its the id of main blob\n */\n void downloadCompleted(String blobId);\n}", "public interface ConsumerRunnable {\n public void consumer(long offset, String msg);\n}", "public interface BufferUsageStrategy\n{\n ByteBuffer onTermAdded(final String destination,\n final long sessionId,\n final long channelId,\n final long termId,\n boolean isSender) throws Exception;\n}", "@Override\r\n public void update() {\n String msg = (String) topic.getUpdate(this);\r\n\t\tif(msg == null){\r\n\t\t\tSystem.out.println(name+\":: No new message\");\r\n\t\t}else{\r\n card.show(this.getContentPane(), msg);\r\n }\r\n System.out.println(name+\":: Consuming message::\"+msg);\r\n \r\n }", "@Override\n\tpublic void invoke() {\n\t\t\n\t\tIBuffer b = Buffer.getBuffer();\n\t\tint r = b.getRemainingCapacity();\n\t\t\n\t\t// the buffer is empty - this means that invoke was called after a grid was removed\n\t\t// and we need to fill it up to prevent starvation. Ideally the only way this could\n\t\t// happen is if the buffer size was 1\n\t\tif (r == 0) {\n\t\t\tPublisher.getInstance().send(new ProduceMessage());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (r < b.getCapacity())\n\t\t\tPublisher.getInstance().send(new ProduceMessage());\n\t\t\n\t\tif (r > 0)\n\t\t\tPublisher.getInstance().send(new ConsumeMessage());\n\t\t\n\t}", "public interface PayloadCallback {\n void onPayload(long minId, long maxId, List<BasePayload> payloads);\n }", "@KafkaListener(topics = \"product-info\", groupId = \"test\")\n public void listen(String message) {\n Gson gson = new Gson();\n Product product = productRepository.save(gson.fromJson(message,Product.class));\n logger.info(\"*=*=*>Saving product =+=+=+==>\" +product.toString());\n categorySync(product);\n\n\n }", "public void ifOk(@NotNull Consumer<Data> consumer) {\n if (_type == Type.OK) {\n consumer.accept(_data);\n }\n }", "void update(T message);", "void fileCollectionObserved(FileCollection inputs, String consumer);", "@Override\r public SpiServiceResult handle(SpiServiceProvider provider, SpiServiceRequest request) {", "public void receiveGeneratedData(byte[] arg0) {\n\t}", "@Override\n public ConsumerNode getConsumer(){\n return super.getConsumer();\n }", "public interface ProducerService {\n}", "public interface Provider {\n public Sender produce();\n}", "<T extends Message> void visitConsumer(Class<T> consumedType, MethodHandle handle);", "ISerializer invoke(String responseReceiverId);", "public <T> void process(Message<T> tMessage) {\n eb.publish(addressBook.getResult(), process(tMessage.body().toString()), addressBook.getDeliveryOptions(tMessage));//.addHeader(\"buffer_size\", buffer.getBuffSize() + \"\"));\n }", "@Override\n public void onReceivedResponse(WebSocketResponseMessage responseMessage) {\n System.err.println(\"[JVDBG] Got response with status \" + responseMessage.getStatus()+\n \" and requestId = \"+responseMessage.getRequestId());\n long id = responseMessage.getRequestId();\n if (pending.containsKey(id)) {\n Consumer f = pending.get(id);\n f.accept(responseMessage);\n pending.remove(id);\n }\n System.err.println(\"Message = \" + responseMessage);\n if (responseMessage.getBody().isPresent()) {\n System.err.println(\"[JVDBG] Got response body: \" + new String(responseMessage.getBody().get()));\n }\n }", "@Override\n public void postReceive(RepositoryHookContext context, Collection<RefChange> refChanges) \n {\n }", "private void registerToEventBusForUpdates(final EventBus eb) {\n eb\n .<JsonObject>consumer(Constants.CACHE_REDIS_EVENTBUS_ADDRESS)\n .handler(message -> {\n LOGGER.fine(\"I have received a message: \" + message.body());\n LOGGER.fine(\"Message type: \" + message.body().getClass().getName());\n writeDataToCache(message);\n });\n }", "void applyConsumes(ReaderContext context, Operation operation, Method method);", "public void onPublish(UTF8Buffer topic, Buffer payload, Runnable ack) {\n\t\t ack.run();\r\n\t\t System.out.println(\"topic\"+topic.toString()+\"=\"+new String(payload.getData()));\r\n\t\t }", "public void onWrite(Consumer<TransformResult> hook) {\n this.hook = hook;\n }", "@Override\n\tpublic void receive( Metadata metadata )\n\t{\n\t\tif( metadata.isReset() )\n\t\t{\n\t\t\treset();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmMetadata.add( metadata );\n\t\t\tprocessMetadata( metadata );\n\t\t}\n\t\t\n\t\tmUpdated = true;\n\t}", "public void consumeComponent(Lot lot, Component component) {\n\r\n\t}", "protected void beforeConsume() {\n // Do nothing\n }", "public String updateProductionBlock(ProductionBlock pb);", "public interface MessageReceiver {\n /**\n * Interprets and responds to a JSON message from the server\n * @param message The JSON message to respond to, as a string map of\n * name-value pairs\n */\n void respondToMessage(Map<String, String> message);\n}", "public interface Sink<I>\n extends Consumer<I>\n{\n /**\n * {@inheritDoc}\n */\n @Override\n public default void accept (I message)\n {\n dataIn().send(message);\n }\n\n /**\n * Input Connection.\n *\n * @return the data-input that provides the messages to the pipeline.\n */\n public Input<I> dataIn ();\n}", "Consumer<VoidMessage> outgoingConsumer();", "private void AsyncPush(String topic){\n\t\t\t\t \t\n\t \t/**\n\t \t * output a map, delete existed items\n\t \t */\n\t \t//Map<Key, Integer> deduplicatedBuff = mergeDuplicatedItemsAndDelte(buff);\n\t \t\n\t \t//not in, create, delay\n\t \tif(!producerMap.containsKey(topic)){\n\t \t\ttry {\n\t\t\t\t\t\t\tCreateProducer(topic,LogicController.batchMessagesMaxMessagesPerBatch);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\t \t\t \n\t \t}\n\t \tlog.info(\"#publish\"+topic+\", \"+buffMap.size());\n\t \tProducer<byte[]> producer = producerMap.get(topic);\n\t \t/**\n\t \t * init set, copy to hash set\n\t \t */\n\t \t//Set<Key> Keys = Sets.newConcurrentHashSet(buffMap.keySet());\n\t \t\n\t \t \n\t \tfor (Key key : buffMap.keySet()){\n\t \t\t \n\t \t\t //if(buffMap.containsKey(key)){\n\t \t\t \n\t \t\t \n\t \t\t if(buffMap.containsKey(key)){\n\t \t\t\t Integer val = buffMap.get(key);\n\t \t\t\t //clear,skip\n\t \t\t\t if(val<=0){buffMap.remove(key);continue;}\n\t \t\t\t //concenate\n\t \t\t\t byte[] out = createKVByte(key,val);\n\t \t\t\t \n\t \t\t\t//get producer\n\t\t\t \t\t\t \n\t\t\t \t\t\t //byte[] tempTable = new byte[](buffMap);\n\t\t producer.sendAsync(out).thenRun(() -> {\n\t\t\t messagesSent.increment();\n\t\t\t bytesSent.add(out.length);\n\t\t\t //update\n\t\t\t TopicMap.replace(topic, TopicMap.get(topic)+out.length);\t\n\t\t\t \n\t\t\t //delete\n\t\t\t rescaleBufferMap(buffMap,key,val);\n\t\t\t \n\t\t\t //CheckNumberPacketsEnoughEndMessageAndSend(topic);\n\t\t\t //buffMap.remove(key);\n\t\t\t //remove from the set\n\t\t\t //ier.remove();\n\t\t\t \t\t \t\t \n\t\t\t }).exceptionally(ex -> {\n\t\t\t log.warn(\"Write error on message\", ex);\n\t\t\t //System.exit(-1);\n\t\t\t return null;\n\t\t\t });\n\t \t\t }\n\t \t\t }\n\t \t\t \n\t \t }", "RequestSender otherwise(Consumer<Message> consumer);", "public interface OnDeliveriesUpdatedListener {\n void onDeliveriesUpdated(List<Delivery> deliveries);\n}", "public interface Delivery {\n\n void postDelivery(PlusRequest<?> plusRequest, Response<?> response);\n}", "public interface FetchHandler {\n\n void updateMetrics(long latency);\n}", "@MessagingGateway(defaultRequestChannel = \"eventOutput\")\ninterface EventWriter {\n\n @Gateway(requestChannel = \"eventOutput\")\n void writeEvent(Event event);\n}", "interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }", "public interface ConsumerService extends AbstractService<Consumer> {\n String sayHello(String name);\n}" ]
[ "0.60780466", "0.5780822", "0.5733657", "0.56199414", "0.5607447", "0.55772066", "0.55517", "0.5527077", "0.5476781", "0.54460436", "0.533165", "0.53282225", "0.5288654", "0.52582395", "0.52279997", "0.5223818", "0.52113897", "0.5170112", "0.51351553", "0.51146513", "0.51121193", "0.51100475", "0.50929654", "0.50742114", "0.5059002", "0.5037376", "0.5019225", "0.50158453", "0.5007772", "0.497939", "0.49789283", "0.4972955", "0.49483627", "0.49483344", "0.49412817", "0.49351045", "0.4932006", "0.49059495", "0.49024072", "0.48961172", "0.48856685", "0.48838055", "0.48740584", "0.4849065", "0.48471373", "0.4844874", "0.484125", "0.48259285", "0.48191473", "0.48138583", "0.48016384", "0.47817588", "0.47730967", "0.47676405", "0.47645256", "0.47512203", "0.47473398", "0.4737117", "0.47317538", "0.47304863", "0.4719897", "0.47027877", "0.46966326", "0.46902484", "0.46865714", "0.46865606", "0.46684316", "0.4665937", "0.46610355", "0.4655328", "0.46524212", "0.4645556", "0.46440294", "0.4642906", "0.46426785", "0.46424043", "0.46406403", "0.46308523", "0.46296304", "0.4628772", "0.46287093", "0.46268657", "0.46247798", "0.462271", "0.4621681", "0.46210414", "0.46172047", "0.46147388", "0.46097645", "0.46095908", "0.46061212", "0.46060053", "0.46035004", "0.4599153", "0.45962164", "0.45918742", "0.4587662", "0.45868096", "0.4586803", "0.45865494" ]
0.69014865
0
Optional. Map duty object's transfer responsibilities to a receptionist consumer
public EventMapper onTransfer(final BiConsumer<Duty, Serializable> biconsumer) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).setBiConsumerTransfer(biconsumer); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Delivery {\n\n void postDelivery(PlusRequest<?> plusRequest, Response<?> response);\n}", "RequestSender onInform(Consumer<Message> consumer);", "public interface MovimentacaoChainHandler {\n\n void handleMovimentacao(Movimentacao movimentacao);\n}", "protected CommunicationsHandler(){}", "public void deliver() {\n try {\n if (null != this.listener) {\n ContentObject pending = null;\n CCNInterestListener listener = null;\n synchronized (this) {\n if (null != this.data && null != this.listener) {\n pending = this.data;\n this.data = null;\n listener = (CCNInterestListener) this.listener;\n }\n }\n if (null != pending) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback (\" + pending + \" data) for: {0}\", this.interest.name());\n synchronized (this) {\n this.deliveryPending = false;\n }\n manager.unregisterInterest(this);\n Interest updatedInterest = listener.handleContent(pending, interest);\n if (null != updatedInterest) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback: updated interest to express: {0}\", updatedInterest.name());\n manager.expressInterest(this.owner, updatedInterest, listener);\n }\n } else {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback skipped (no data) for: {0}\", this.interest.name());\n }\n } else {\n synchronized (this) {\n if (null != this.sema) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Data consumes pending get: {0}\", this.interest.name());\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINEST)) Log.finest(Log.FAC_NETMANAGER, \"releasing {0}\", this.sema);\n this.sema.release();\n }\n }\n if (null == this.sema) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Interest callback skipped (not valid) for: {0}\", this.interest.name());\n }\n }\n } catch (Exception ex) {\n _stats.increment(StatsEnum.DeliverContentFailed);\n Log.warning(Log.FAC_NETMANAGER, \"failed to deliver data: {0}\", ex);\n Log.warningStackTrace(ex);\n }\n }", "private void createActions() {\n\n\t\t//-----------------------------------------------\n\t\t// Check if Party Exists\n\t\t//-----------------------------------------------\n\t\tpartyExists = new GuardedRequest<Party>() {\n\t\t\tprotected boolean error() {return emailaddressField.noValue();}\n\t\t\tprotected void send() {super.send(getValue(new PartyExists()));}\n\t\t\tprotected void receive(Party party) {\n\t\t\t\tif (party != null ) {setValue(party);}\n\t\t\t}\n\t\t};\n\n\t\t//-----------------------------------------------\n\t\t// Read Party\n\t\t//-----------------------------------------------\n\t\tactorRead = new GuardedRequest<Party>() {\n\t\t\tprotected boolean error() {return partyField.noValue();}\n\t\t\tprotected void send() {super.send(getValue(new ActorRead()));}\n\t\t\tprotected void receive(Party party){setValue(party);}\n\t\t};\n\n\t\t//-----------------------------------------------\n\t\t// Update Party\n\t\t//-----------------------------------------------\n\t\tactorUpdate = new GuardedRequest<Party>() {\n\t\t\tprotected boolean error() {\n\t\t\t\treturn (\n\t\t\t\t\t\tifMessage(AbstractRoot.noOrganizationid(), Level.TERSE, AbstractField.CONSTANTS.errOrganizationid(), partyField)\n\t\t\t\t\t\t|| ifMessage(partyField.noValue(), Level.TERSE, AbstractField.CONSTANTS.errId(), partyField)\n\t\t\t\t\t\t|| ifMessage(emailaddressField.noValue(), Level.ERROR, AbstractField.CONSTANTS.errEmailaddress(), emailaddressField)\n\t\t\t\t\t\t|| ifMessage(formatdateField.noValue(), Level.ERROR, CONSTANTS.formatdateError(), formatdateField)\n\t\t\t\t\t\t|| ifMessage(formatphoneField.noValue(), Level.ERROR, CONSTANTS.formatphoneError(), formatphoneField)\n\t\t\t\t\t\t|| ifMessage(!Party.isEmailAddress(emailaddressField.getValue()), Level.ERROR, AbstractField.CONSTANTS.errEmailaddress(), emailaddressField)\n//\t\t\t\t\t\t|| ifMessage((typesField.hasValue(Party.Type.Agent.name()) || typesField.hasValue(Party.Type.Organization.name())) && !partyField.hasValue(AbstractRoot.getOrganizationid()), Level.ERROR, CONSTANTS.partytypeError(), partyField)\n\t\t\t\t);\n\t\t\t}\n\t\t\tprotected void send() {super.send(getValue(new ActorUpdate()));}\n\t\t\tprotected void receive(Party party) {\n\t\t\t\tif (parentTable != null) {parentTable.execute(true);}\n\t\t\t\thide();\n\t\t\t}\n\t\t};\n\n\t\t//-----------------------------------------------\n\t\t// Delete Party\n\t\t//-----------------------------------------------\n\t\tactorDelete = new GuardedRequest<Party>() {\n\t\t\tprotected String popup() {return AbstractField.CONSTANTS.errDeleteOK();}\n\t\t\tpublic void cancel() {state = oldstate;}\n\t\t\tprotected boolean error() {\n\t\t\t\treturn (\n\t\t\t\t\t\tifMessage(partyField.noValue(), Level.TERSE, AbstractField.CONSTANTS.errId(), partyField)\n\t\t\t\t);\n\t\t\t}\n\t\t\tprotected void send() {super.send(getValue(new ActorDelete()));}\n\t\t\tprotected void receive(Party party){\n\t\t\t\tif (parentTable != null) {parentTable.execute(true);}\n\t\t\t\thide();\n\t\t\t}\n\t\t};\t\n\t}", "public Object consumeBloqueante();", "public interface Loan {\n\n\t@Gateway(requestChannel = \"readChannel\")\n\tvoid getCust(List<Customer> customers);\n\n}", "public interface IDelivery {\n /**\n * Distribution request response result\n * \n * @param request\n * @param response\n */\n public void postRequestResponse(Request<?> request, Response<?> response);\n\n /**\n * Distribute Failure events\n * \n * @param request\n * @param error\n */\n public void postError(Request<?> request, HttpException error);\n\n /**\n * Distribution to read the cached results response\n * @param request\n * @param cacheData\n */\n public <T>void postCacheResponse(Request<?> request, T cacheData);\n \n /**\n * Prepare events at the start of the request\n * @param request\n */\n public void postRequestPrepare(Request<?> request);\n \n /**\n * Distribution to retry event\n * @param request\n * @param previousError An exception before\n */\n public void postRequestRetry(Request<?> request, int currentRetryCount, HttpException previousError);\n \n /**\n * Delivered current progress for request\n * @param request\n * @param transferredBytesSize\n * @param totalSize\n */\n public void postRequestDownloadProgress(Request<?> request, long transferredBytesSize, long totalSize);\n \n /**\n * Delivered upload progress for request\n * @param request\n * @param transferredBytesSize\n * @param totalSize\n * @param currentFileIndex The subscript is currently being uploaded file\n * @param currentFile Is currently being uploaded files\n */\n\tpublic void postRequestUploadProgress(Request<?> request, long transferredBytesSize, long totalSize, int currentFileIndex, File currentFile);\n\n}", "RequestSender onRefuse(Consumer<Message> consumer);", "public void deliver() {\n try {\n Interest pending = null;\n ArrayList<Interest> pendingExtra = null;\n CCNFilterListener listener = null;\n synchronized (this) {\n if (null != this.interest && null != this.listener) {\n pending = interest;\n interest = null;\n if (null != this.extra) {\n pendingExtra = extra;\n extra = null;\n }\n }\n listener = (CCNFilterListener) this.listener;\n }\n if (null != pending) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Filter callback for: {0}\", prefix);\n listener.handleInterest(pending);\n if (null != pendingExtra) {\n int countExtra = 0;\n for (Interest pi : pendingExtra) {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) {\n countExtra++;\n Log.finer(Log.FAC_NETMANAGER, \"Filter callback (extra {0} of {1}) for: {2}\", countExtra, pendingExtra.size(), prefix);\n }\n listener.handleInterest(pi);\n }\n }\n } else {\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINER)) Log.finer(Log.FAC_NETMANAGER, \"Filter callback skipped (no interests) for: {0}\", prefix);\n }\n } catch (RuntimeException ex) {\n _stats.increment(StatsEnum.DeliverInterestFailed);\n Log.warning(Log.FAC_NETMANAGER, \"failed to deliver interest: {0}\", ex);\n Log.warningStackTrace(ex);\n }\n }", "ResponseDTO performServerActions();", "public interface EOAssociationConnector{\n /**\n * Invoked when one of the receiver's subcontrollers is disposed as a transient controller. Instructs the receiver to assume responsibility for managing the subcontroller's EOAssociation, association.\n */\n abstract void takeResposibilityForConnectionOfAssociation(com.webobjects.eointerface.EOAssociation association);\n\n}", "public void deliverStone1() {\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tprivate void deliver(Message m) {\n List<Consumer> listOfSpecificConsumers =\n manager.getConsumerManager().getConsumersFor(m.getContent().getClass());\n for (Consumer consumer : listOfSpecificConsumers) {\n \tConsumerManagementInfo info = manager.getConsumerManager().getManagementInfo(consumer);\n \tif ( info.canReceive(m) ) {\n \t\tconsumer.consume(m.getContent());\n \t}\n }\n if ( listOfSpecificConsumers.size() > 1 ) {\n \tassert Logger.info(this, \"Dispatched object to \" + listOfSpecificConsumers.size() + \" consumers\");\n }\n\n }", "public void deliverStone2() {\n }", "public interface DistributorConnector {\n\n /**\n * Lets the factory know what the current demand of the distributor is.\n *\n * @param demandPerType the demand of the distributer by type\n */\n public void setDemand(Map<ClockType, Integer> demandPerType);\n\n /**\n * Registers a listener for clock updates in the distributor stock.\n *\n * @param listener the listener to be registered\n * @return a subscription for the registration that can be cancelled\n */\n public Subscription subscribeForDistributorDeliveries(ClockListener listener);\n\n /**\n * Removes the given clock from the distributor stock.\n *\n * @param removedClock the clock to be removed.\n */\n public void removeClockFromStock(Clock removedClock);\n}", "public interface Provider {\n public Sender produce();\n}", "public interface RequestSender {\n\n /**\n * Adds a message consumer to be invoked when an AGREE response is received.\n * There may be more than one message consumer, and all message consumers will be invoked when this condition is met.\n * The Future will be marked as completed once the message consumer(s) are invoked.\n *\n * @param consumer Message consumer.\n * @return This request sender.\n */\n RequestSender onAgree(Consumer<Message> consumer);\n\n /**\n * Adds a message consumer to be invoked when a REFUSE response is received.\n * There may be more than one message consumer, and all message consumers will be invoked when this condition is met.\n * The Future will be marked as completed once the message consumer(s) are invoked.\n *\n * @param consumer Message consumer.\n * @return This request sender.\n */\n RequestSender onRefuse(Consumer<Message> consumer);\n\n /**\n * Adds a message consumer to be invoked when a FAILURE response is received.\n * There may be more than one message consumer, and all message consumers will be invoked when this condition is met.\n * The Future will be marked as completed once the message consumer(s) are invoked.\n *\n * @param consumer Message consumer.\n * @return This request sender.\n */\n RequestSender onFailure(Consumer<Message> consumer);\n\n /**\n * Adds a message consumer to be invoked when an INFORM message is received.\n * There may be more than one message consumer, and all message consumers will be invoked when this condition is met.\n * The Future will be marked as completed once the message consumer(s) are invoked.\n *\n * @param consumer Message consumer.\n * @return This request sender.\n */\n RequestSender onInform(Consumer<Message> consumer);\n\n /**\n * Adds a Runnable to be invoked when this operation times out.\n * There may be more than one timeout Runnable, but only the one associated with the triggered timeout is invoked.\n * The Future will be marked as completed once the Runnable is invoked.\n *\n * @param timeout Timeout (ms).\n * @param runnable Runnable.\n * @return This request sender.\n */\n RequestSender onTimeout(long timeout, Runnable runnable);\n\n /**\n * Adds a message consumer to be invoked when a message that is not one of AGREE, REFUSE, FAILURE, INFORM is received.\n * There may be more than one message consumer, and all message consumers will be invoked when this condition is met.\n * The Future will be marked as completed once the message consumer(s) are invoked.\n *\n * @param consumer Message consumer.\n * @return This request sender.\n */\n RequestSender otherwise(Consumer<Message> consumer);\n\n /**\n * Sends the message asynchronously.\n * The returned Future will return the response message for any of the message types which have a message consumer associated.\n *\n * @return A Future returning the response message.\n */\n Future<Message> send();\n\n /**\n * Sends the message synchronously.\n *\n * @return A response message for any of the message types which have a message consumer associated, null if the operation timed out.\n */\n Message sendAndWait();\n}", "interface Handler{\n /**\n * The proxy will call it when it has new data coming from the opponent. The implementation should handle the\n * checkpoints in the way the client needs.\n *\n * @param checkPoint <code>CheckPoint</code> received from the opponent.\n */\n void hasNewData(CheckPoint checkPoint);\n\n /**\n * Will be called when the proxy receives notification that the opponent is ready.\n */\n void isReady();\n\n /**\n * Will be called when the proxy receives notification that the opponent has finished.\n */\n void isFinished();\n\n /**\n * Will be called when the proxy receives notification that the opponent has left the challenge.\n */\n void hasLeft();\n\n /**\n * Will be called when the proxy receives notification that the opponent has joined the challenge room.\n */\n void opponentInRoom();\n }", "public interface AddDealInteractor {\n void createDeal(String name, String price, String info);\n}", "public interface Transport {\n\n /**\n * This method returns id of the current transport\n * @return\n */\n String id();\n\n /**\n * This methos returns Id of the upstream node\n * @return\n */\n String getUpstreamId();\n\n /**\n * This method returns random\n *\n * @param id\n * @param exclude\n * @return\n */\n String getRandomDownstreamFrom(String id, String exclude);\n\n /**\n * This method returns consumer that accepts messages for delivery\n * @return\n */\n Consumer<VoidMessage> outgoingConsumer();\n\n /**\n * This method returns flow of messages for parameter server\n * @return\n */\n Publisher<INDArrayMessage> incomingPublisher();\n\n /**\n * This method starts this Transport instance\n */\n void launch();\n\n /**\n * This method will start this Transport instance\n */\n void launchAsMaster();\n\n /**\n * This method shuts down this Transport instance\n */\n void shutdown();\n\n /**\n * This method will send message to the network, using tree structure\n * @param message\n */\n void propagateMessage(VoidMessage message, PropagationMode mode) throws IOException;\n\n /**\n * This method will send message to the node specified by Id\n *\n * @param message\n * @param id\n */\n void sendMessage(VoidMessage message, String id);\n\n /**\n * This method will send message to specified node, and will return its response\n *\n * @param message\n * @param id\n * @param <T>\n * @return\n */\n <T extends ResponseMessage> T sendMessageBlocking(RequestMessage message, String id) throws InterruptedException;\n\n /**\n * This method will send message to specified node, and will return its response\n *\n * @param message\n * @param id\n * @param <T>\n * @return\n */\n <T extends ResponseMessage> T sendMessageBlocking(RequestMessage message, String id, long waitTime, TimeUnit timeUnit) throws InterruptedException;\n\n /**\n * This method will be invoked for all incoming messages\n * PLEASE NOTE: this method is mostly suited for tests\n *\n * @param message\n */\n void processMessage(VoidMessage message);\n\n\n /**\n * This method allows to set callback instance, which will be called upon restart event\n * @param callback\n */\n void setRestartCallback(RestartCallback callback);\n\n /**\n * This methd allows to set callback instance for various\n * @param cls\n * @param callback\n * @param <T1> RequestMessage class\n * @param <T2> ResponseMessage class\n */\n <T extends RequestMessage> void addRequestConsumer(Class<T> cls, Consumer<T> consumer);\n\n /**\n * This method will be called if mesh update was received\n *\n * PLEASE NOTE: This method will be called ONLY if new mesh differs from current one\n * @param mesh\n */\n void onMeshUpdate(MeshOrganizer mesh);\n\n /**\n * This method will be called upon remap request\n * @param id\n */\n void onRemap(String id);\n\n /**\n * This method returns total number of nodes known to this Transport\n * @return\n */\n int totalNumberOfNodes();\n\n\n /**\n * This method returns ID of the root node\n * @return\n */\n String getRootId();\n\n /**\n * This method checks if all connections required for work are established\n * @return true\n */\n boolean isConnected();\n\n /**\n * This method checks if this node was properly introduced to driver\n * @return\n */\n boolean isIntroduced();\n\n /**\n * This method checks connection to the given node ID, and if it's not connected - establishes connection\n * @param id\n */\n void ensureConnection(String id);\n}", "public interface HTTPContract {\n void getRequirementList(AnnounceDataSource.GetRequirementListCallback callback);\n void getFeelingList(AnnounceDataSource.GetFeelingListCallback callback);\n void postFeelingCommend();\n void postFeelingComment();\n// void postRequirementBook();\n// void postRequirementComment();\n\n}", "public interface OutcomeMapper<T> {\n\n void onSuccess(ProcessResponse responseResult);\n void onRedirect(Redirect redirectResult);\n void onValidationProblem(ValidationProblem problem);\n void onConsentAcquired(ConsentAcquired acquired);\n void onReturnableProcessError(InternalReturnableConsentGoneProcessError internalReturnableProcessError);\n void onError();\n}", "public interface BoatRatingInteractor {\n public void upboat(BoatRatingListener listener);\n\n public void downboat(BoatRatingListener listener);\n}", "void registerOrderConsumer(OrderConsumer orderConsumer);", "public interface Sendable {\n\n}", "abstract void takeResposibilityForConnectionOfAssociation(com.webobjects.eointerface.EOAssociation association);", "RequestSender onAgree(Consumer<Message> consumer);", "public interface ResourceChangeForMaketService {\n\n void send(Object o,User operator);\n}", "boolean deliver(CommInfrastructure busType, String topic, Object event);", "public SyncMessage recoit ( Door d ) {\n\nSyncMessage sm = (SyncMessage)receive( d );\nreturn sm;\n}", "public interface MedicalForegroundService {\n\n void loadMedicalData(Consumer<HandleResult> callback);\n\n void saveMedicalData(Medical medical, Consumer<HandleResult> callback);\n\n void setTemp(String key, String tempValue);\n\n String getTemp(String key);\n\n void clearTemp(boolean clearContact);\n\n Doctor getDoctorById(String doctorId);\n\n String getNextExpertDoctorId();\n\n boolean isExpertDoctor(Doctor doctor);\n\n Medical getMedicalData();\n\n void login114();\n\n void listMedicalResource(String hospitalId, String departmentId, String date, boolean amPm, Consumer<HandleResult> callback);\n\n void start(TargetDate targetDate, Consumer<HandleResult> stepCallback);\n\n void submitVerifyCode(String verifyCode);\n}", "@Test\n public void dispatchToSingleObjectAndSubscriberMethods() {\n BaseEventBus eventBus = new SynchronousEventBus(LOG);\n\n final List<String> object1Received = new ArrayList<>();\n Object object1 = new Object() {\n @Subscriber\n public void onStringEvent(String event) {\n object1Received.add(event);\n }\n };\n\n final List<Integer> object2Received = new ArrayList<>();\n Object object2 = new Object() {\n @Subscriber\n public void onIntEvent(Integer event) {\n object2Received.add(event);\n }\n };\n\n eventBus.register(object1);\n eventBus.register(object2);\n\n eventBus.post(\"event 1\");\n eventBus.post(\"event 2\");\n\n // only object1 should receive all items\n assertThat(object1Received, is(asList(\"event 1\", \"event 2\")));\n assertThat(object2Received, is(emptyList()));\n\n eventBus.post(1);\n\n assertThat(object1Received, is(asList(\"event 1\", \"event 2\")));\n assertThat(object2Received, is(asList(1)));\n\n }", "public interface WardrobeDelegateInteractor extends BaseDelegateInteractor {\n\n void onShuffleClick(int maxShirts, int maxPants);\n\n void onAddFavClick(int shirtPosition, int pantPosition);\n\n void onAddClothes(int category);\n}", "public interface MessageHandler {\n\n /**\n * handle message\n * @param result\n */\n public void handleMessage(ConsumerResult result);\n\n}", "RequestSender otherwise(Consumer<Message> consumer);", "public interface IBankWorkerAction extends INormalUserAction {\n // 查用户的信用\n void checkUserCredit();\n // 冻结用户账号\n void freezeUserAccount();\n}", "public interface IBemListaInteractor {\n\n void buscarBensPorDepartamento(IBemListaPresenter listener);\n void atualizarListaBens(IBemListaPresenter listener);\n void buscarBemTipo(Context context, IBemListaPresenter listener);\n void buscarDadosQrCode(IBemListaPresenter listener);\n\n}", "public interface IBusiness {\n public Map<String, Object> trade(Map<String, Object> msgMap);\n}", "public interface TransmissionServiceP3{\n \n /**\n * Delete a transmission by id.\n *\n * @param transmissionId transmission id \n * @param siteUser user\n */\n void deleteTransmission(Long transmissionId, SiteUser siteUser);\n\n /**\n * Delete a transmission by Transmission object.\n *\n * @param transmission transmission\n * @param siteUser user\n */\n void deleteTransmission(Transmission transmission, SiteUser siteUser);\n\n /**\n * Get baseline youth count by transmission id.\n *\n * @param transmissionId transmission id\n * @return count as Integer\n */\n Long getCountBaselineYouth(Long transmissionId);\n\n /**\n * Get followup youth count by transmission id.\n *\n * @param transmissionId transmission id\n * @return count as Integer\n */\n Long getCountFollowupYouth(Long transmissionId);\n\n /**\n * Get served youth count by transmission id.\n *\n * @param transmissionId transmission id\n * @return count as Integer\n */\n Long getCountServedYouth(Long transmissionId);\n\n /**\n * Get total record count by transmission id.\n *\n * @param transmissionId transmission id\n * @return count as Integer\n */\n Long getCountTotalRecords(Long transmissionId);\n\n /**\n * Get current reporting period.\n *\n * @return ReportingPeriod object\n */\n Optional<ReportingPeriod> getCurrentReportingPeriod();\n\n /**\n * Get current reporting period for state which may vary by \n * extended due date.\n *\n * @param stateId Long state id\n * @param fileType String Regular or Corrected\n * @param reportingPeriodId Long reporting period id\n * @return ReportingPeriod object\n */\n Optional<ReportingPeriod> getCurrentReportingPeriodForState(Long stateId, String fileType, Long reportingPeriodId);\n \n /**\n * Get dashboard transmissions.\n *\n * @param search TransmissionSearch object\n * @return TransmissionSearch object\n */\n TransmissionSearch getDashboardTransmissions(TransmissionSearch search);\n\n /**\n * Get datum notes.\n *\n * @param search TransmissionSearch object\n * @return TransmissionSearch object\n */\n TransmissionSearch getDatumNotes(TransmissionSearch search);\n\n /**\n * Get element notes.\n *\n * @param search TransmissionSearch object\n * @return TransmissionSearch object\n */\n TransmissionSearch getElementNotes(TransmissionSearch search);\n\n /**\n * Get record notes.\n *\n * @param search TransmissionSearch object\n * @return TransmissionSearch object\n */\n TransmissionSearch getRecordNotes(TransmissionSearch search);\n\n /**\n * Get submission.\n *\n * @param state State object\n * @param period ReportingPeriod object\n * @return Transmission object\n */\n Transmission getSubmission(State state, ReportingPeriod period);\n\n /**\n * Get submission deadline.\n *\n * @param period ReportingPeriod object\n * @return Calendar object\n */\n Calendar getSubmissionDeadline(ReportingPeriod period);\n\n /**\n * Get submission deadline by transmission type.\n *\n * @param period ReportingPeriod object\n * @param transmissionType type of transmission as Long\n * @return Calendar object\n */\n Calendar getSubmissionDeadline(ReportingPeriod period, Long transmissionType);\n\n /**\n * Get submission deadline by transmission type.\n *\n * @param transmissionId transmission id\n * @return Transmission object\n */\n Transmission getTransmission(Long transmissionId);\n\n /**\n * Get list of transmission id.\n *\n * @return id list as Long\n */\n List<Long> getTransmissionIds();\n\n /**\n * Get transmission id of inactive status.\n *\n * @param stateId state id\n * @param reportingPeriodId reporting period id\n * @return id as Long\n */\n Long getTransmissionIdOfInactiveStatus(Long stateId, Long reportingPeriodId);\n\n /**\n * Get state id by state name.\n *\n * @param stateId state id\n * @param stateName as String\n * @return state id as Long\n */\n Long getStateId(String stateName);\n\n /**\n * Get transmission note by transmission id.\n *\n * @param transmissionId transmission id\n * @return list of TransmissionNote object\n */\n List<TransmissionNote> getTransmissionNotes(Long transmissionId);\n\n /**\n * Get youth record.\n *\n * @param transmissionId transmission id\n * @param recordNumber record number as String\n * @param datumId datum id\n * @return TransmissionRecord object\n */\n TransmissionRecord getYouthRecord(Long transmissionId, String recordNumber, Long datumId);\n\n /**\n * Check authorization by user and transmission id.\n *\n * @param user SiteUser object\n * @param transmissionId transmission id\n * @return true or false\n */\n boolean isAuthorized(SiteUser user, Long transmissionId);\n\n /**\n * Search Transmissions.\n *\n * @param search as TransmissionSearch object\n * @param user as SiteUser\n * @return TransmissionSearch object\n */\n TransmissionSearch searchTransmissions(TransmissionSearch search, SiteUser user);\n\n /**\n * Process submission reminder.\n *\n */\n void submissionReminder();\n\n /**\n * Submit Transmissions.\n *\n * @param transmission as Transmission\n * @param stateUser as SiteUser\n * @param ignoreWarning as Boolean object\n * @throws SubmissionException\n * @return TransmissionSearch object\n */\n Transmission submitTransmission(Transmission transmission, SiteUser stateUser, Boolean ignoreWarning) throws SubmissionException;\n\n /**\n * Get state by state id.\n *\n * @param stateId state id\n * @return state as State object\n */\n State getState(Long stateId);\n\n /**\n * Get reporting period by reporting period id.\n *\n * @param reportingPeriodId reporting period id\n * @return reporting period as ReportingPeriod object\n */\n ReportingPeriod getReportingPeriod(Long reportingPeriodId);\n\n /**\n * Get failed transmissions report.\n *\n * @param searchCriteria as a Map\n * @return list of FailedTransmissionDetail object\n */\n List<FailedTransmissionDetail> getFailedTransmissionsReport(Map<String, String> searchCriteria);\n\n /**\n * Get baseline cohort record to export.\n *\n * @param cohortSearch as a CohortSearch object\n * @return a record to export as RecordToExport object\n */\n RecordToExport getBaselineCohortRecord(CohortSearch cohortSearch);\n \n /**\n * Get cohort 19 record to export.\n *\n * @param cohortSearch as a CohortSearch object\n * @return a record to export as RecordToExport object\n */\n RecordToExport getCohortSet19Record(CohortSearch cohortSearch);\n \n /**\n * Get outcomes universe record that are not reported.\n *\n * @param search as a OutcomesReportSearch object\n * @return a record to export as RecordToExport object\n */\n RecordToExport getOutcomesUniverseNotReportedRecord(OutcomesReportSearch search);\n \n /**\n * Get due date of transmission by transmission id.\n *\n * @param transmissionid transmission id\n * @return due date as String\n */\n String getDueDateofTransmission(Long transmissionid);\n \n /**\n * Check if cohort is sampled by transmission id.\n *\n * @param transmissionid transmission id\n * @return true or false\n */\n boolean isCohortSampled(Long transmissionid);\n \n /**\n * Check if a transmission is within regular report period.\n *\n * @param transmissionid transmission id\n * @return String\n */\n String isWithinRegularReportPeriod(Long transmissionid);\n \n /**\n * Get penalty amount for inactive regular file.\n *\n * @param correctedFileTransmissionid transmission id of the corrected file\n * @param stateid state id\n * @param reportingperiodid reporting period id\n * @return penalty amount by Float object\n */\n Float getPenaltyAmtForInactiveRegularFile(Long correctedFileTransmissionid, Long stateid, Long reportingperiodid);\n\n /**\n * Get element name by id.\n *\n * @param elementId element id\n * @return element name as String\n */\n String getElementNameById(Integer elementId);\n \n /**\n * Update transmission in database.\n *\n * @param transmission\n */\n void updateTransmission(Transmission transmission);\n \n /**\n * Get unprocessed directory.\n *\n * @return directory as File\n */\n File getUnprocessedDir();\n \n /**\n * Get toprocess directory.\n *\n * @return directory as File\n */\n File getToprocessDir();\n\n boolean isTransmissionActive(String transmissionId);\n\n String getTransmissionType(String transmissionId);\n\n boolean isCompliant(String transmissionId);\n\n boolean stateHasActiveTransmission(State state);\n\n boolean stateHasActiveTransmission(State state, Long reportingPeriod);\n\n}", "private FlyWithWings(){\n\t\t\n\t}", "public interface IOrganizationMemberBehavior {\n\n // Запрос на вступление в объединение от организации - кандидата\n OrganizationMembersHandleResult requestToJoinInCommunity(Community community, Community candidateToMember);\n\n // Отказ о вступлении в объединение несколких организаций\n OrganizationMembersHandleResult rejectRequests(Community community, List<OrganizationCommunityMember> organizationCommunityMembers, User currentUser);\n\n // Отмена вступления в объединение от имени руководителя организации\n OrganizationMembersHandleResult cancelRequest(OrganizationCommunityMember organizationCommunityMember);\n\n // Принятие запроса на вступление в объединение нескольких участников\n OrganizationMembersHandleResult acceptToJoinInCommunity(Community community, List<OrganizationCommunityMember> organizationCommunityMembers, User currentUser);\n\n // Запрос от руководтсва организации - члена на выход из объединения\n OrganizationMembersHandleResult requestFromOrganizationToExcludeFromCommunity(OrganizationCommunityMember organizationCommunityMember);\n\n // Запрос на исключение организации из объединения руководством объединения\n OrganizationMembersHandleResult requestFromCommunityOwnerToExcludeFromCommunity(OrganizationCommunityMember organizationCommunityMember, User currentUser);\n\n // Принятие запроса на выход из объединения\n OrganizationMembersHandleResult acceptExcludeFromCommunity(Community community, List<OrganizationCommunityMember> organizationCommunityMembers, User currentUser);\n\n // Отмена запроса на выход из объедиения\n OrganizationMembersHandleResult cancelExcludeRequest(OrganizationCommunityMember organizationCommunityMember);\n\n // Получить всех участников, у которых есть запрос на выход из объединения с выполненным условием\n LeaveOrganizationCommunityMembersDto getLeaveCommunityMembers(Community community, Long userId);\n\n // Получить всех участников, у которых есть запрос на вход в объединение с выполненным условием\n ApproveOrganizationCommunityMembersDto getApproveCommunityMembers(Community community, Long userId);\n}", "public interface IMakeOrderactivity {\n\n void uploadRes(boolean res, OrderEx result);\n void updateLogisticFee(boolean res, LogisticFee logisticFee);\n void updateAddress(List<Address> list);\n}", "@Override\n\tpublic void receiveProduct(Product product) {\n\t\t\n\t}", "public interface SendOutService {\n\n String BEAN_NAME = \"SendOutService\";\n\n /**\n * Returns all the sendInfo nodes associated with given document.\n *\n * @param document document NodeRef\n * @return list of sendInfo nodes associated with given document\n */\n List<SendInfo> getDocumentSendInfos(NodeRef document);\n\n /**\n * Update searchable send info properties according to document's sendInfo child nodes\n *\n * @param document document NodeRef\n */\n void updateSearchableSendInfo(NodeRef document);\n\n /**\n * Build searchable send info data from document's sendInfo child nodes\n *\n * @param document document NodeRef\n * @return Map with documents properties populated with document's sendInfo values\n */\n Map<QName, Serializable> buildSearchableSendInfo(NodeRef document);\n\n /**\n * Sends out document.\n * Inspects all the given recipients and based on send mode sends out the document through DVK to those who support it (based on addressbook) and through email to others.\n * Registers sendInfo child entries under document and checks if given document is a reply outgoing letter and updates originating document info if needed.\n *\n * @param document subject document for sending out\n * @param names list of recipient names\n * @param emails list of recipient email addresses\n * @param modes list of recipient send modes\n * @param idCodes TODO\n * @param fromEmail from email address\n * @param subject mail subject\n * @param content mail content text\n * @param zipIt if attachments should be zipped into single file, or sent as separate files\n * @param fileNodeRefs list of file node refs as strings to match those files which should be sent out as attachments from given document\n * @return true\n */\n boolean sendOut(NodeRef document, List<String> names, List<String> emails, List<String> modes, List<String> idCodes, List<String> encryptionIdCodes, List<X509Certificate> allCertificates, \n \t\tString fromEmail, String subject, String content, List<NodeRef> fileRefs, boolean zipIt);\n\n /** @return {@code List<Pair<recipientName, recipientRegistrationNr>> } */\n List<Pair<String, String>> forward(NodeRef document, List<String> names, List<String> emails, List<String> modes, String fromEmail, String content, List<NodeRef> fileRefs);\n\n NodeRef addSendinfo(NodeRef document, Map<QName, Serializable> props);\n\n /**\n * If updateSearchableSendInfo is false then updateSearchableSendInfo() must manually be called later\n */\n NodeRef addSendinfo(NodeRef document, Map<QName, Serializable> props, boolean updateSearchableSendInfo);\n\n List<ContentToSend> prepareContents(NodeRef document, List<NodeRef> fileRefs, boolean zipIt) throws Exception;\n \n List<ContentToSend> prepareContents(List<EmailAttachment> attachments);\n\n void addSapSendInfo(Node document, String dvkId);\n\n boolean hasDocumentSendInfos(NodeRef document);\n\n Long sendForInformation(List<String> authorityIds, Node docNode, String emailTemplate, String subject, String content);\n\n Date getEarliestSendInfoDate(NodeRef docRef);\n\n}", "public interface MessageServiceInjector {\n public Consumer getConsumer() ;\n}", "protected Responder() {}", "public interface ActorProxy {\n\n /**\n * Returns the ActorId associated with the proxy object.\n *\n * @return An ActorId object.\n */\n ActorId getActorId();\n\n /**\n * Returns actor implementation type of the actor associated with the proxy object.\n *\n * @return Actor's type name.\n */\n String getActorType();\n\n /**\n * Invokes an Actor method on Dapr.\n *\n * @param methodName Method name to invoke.\n * @param type The type of the return class.\n * @param <T> The type to be returned.\n * @return Asynchronous result with the Actor's response.\n */\n <T> Mono<T> invokeMethod(String methodName, TypeRef<T> type);\n\n /**\n * Invokes an Actor method on Dapr.\n *\n * @param methodName Method name to invoke.\n * @param clazz The type of the return class.\n * @param <T> The type to be returned.\n * @return Asynchronous result with the Actor's response.\n */\n <T> Mono<T> invokeMethod(String methodName, Class<T> clazz);\n\n /**\n * Invokes an Actor method on Dapr.\n *\n * @param methodName Method name to invoke.\n * @param data Object with the data.\n * @param type The type of the return class.\n * @param <T> The type to be returned.\n * @return Asynchronous result with the Actor's response.\n */\n <T> Mono<T> invokeMethod(String methodName, Object data, TypeRef<T> type);\n\n /**\n * Invokes an Actor method on Dapr.\n *\n * @param methodName Method name to invoke.\n * @param data Object with the data.\n * @param clazz The type of the return class.\n * @param <T> The type to be returned.\n * @return Asynchronous result with the Actor's response.\n */\n <T> Mono<T> invokeMethod(String methodName, Object data, Class<T> clazz);\n\n /**\n * Invokes an Actor method on Dapr.\n *\n * @param methodName Method name to invoke.\n * @return Asynchronous result with the Actor's response.\n */\n Mono<Void> invokeMethod(String methodName);\n\n /**\n * Invokes an Actor method on Dapr.\n *\n * @param methodName Method name to invoke.\n * @param data Object with the data.\n * @return Asynchronous result with the Actor's response.\n */\n Mono<Void> invokeMethod(String methodName, Object data);\n\n}", "public interface WithHoldOrderContract {\r\n\r\n ResponseData resendWithholdOrder();\r\n \r\n}", "public void interactWhenApproaching() {\r\n\t\t\r\n\t}", "Consumer getConsumer();", "public interface SendMoney {\n boolean sendMoney(Transfer transfer);\n}", "public void deliverStone4() {\n }", "Consumer<VoidMessage> outgoingConsumer();", "public interface IResponder\n{\n String getName();\n\n String getDescription();\n}", "public interface Battle {\n\n void battleBetween(Tank tank1, Tank tank2, Consumer<Integer> consumer);\n\n}", "@Override\n public void actualiser(Observable observable) {\n\n\n if (! (observable instanceof Role)) {\n return;\n }\n\n Role role = (Role) observable;\n\n if (role.getState() != InterfaceState.MESSAGE_RECEIVED) {\n return;\n }\n\n if (role.equals(roleFourni)) {\n this.roleRequis.transmit(this.roleFourni.getMessageReceived());\n }\n\n if (role.equals(roleRequis) && role.getState() == InterfaceState.MESSAGE_RECEIVED) {\n this.roleFourni.transmit(this.roleRequis.getMessageReceived());\n }\n\n }", "public void deliverStone6() {\n }", "boolean deliver(CommInfrastructure busType, String topic, String event);", "public interface Requestor {\r\n \r\n /**\r\n * Marshal the given operation and its parameters into a request object, send\r\n * it to the remote component, and interpret the answer and convert it back\r\n * into the return type of generic type T\r\n * \r\n * @param <T>\r\n * generic type of the return value\r\n * @param objectId\r\n * the object that this request relates to; not that this may not\r\n * necessarily just be the object that the method is called upon\r\n * @param operationName\r\n * the operation (=method) to invoke\r\n * @param typeOfReturnValue\r\n * the java reflection type of the returned type\r\n * @param argument\r\n * the arguments to the method call\r\n * @return the return value of the type given by typeOfReturnValue\r\n */\r\n <T> T sendRequestAndAwaitReply(String objectId, String operationName, Type typeOfReturnValue, String accessToken, Object... argument);\r\n\r\n}", "public interface BluesIWomen {\n public int getType();\n\n public String getRequest();\n}", "public interface ExchangeTasks {\n\n public Map<String, BotPrice> getData() throws ExchangeException;\n\n}", "@Override\n\tprotected void flowThrough(Object in, Object d, Object out) {\n\t\t\n\t}", "public interface Cashier {\n\t\n\t// Sent from waiter to computer a bill for a customer\n\tpublic abstract void msgComputeBill(String choice, Customer c, Waiter w, int tableNumber, Map<String, Double> menu);\n\t\n\t// Sent from a customer when making a payment\n\tpublic abstract void msgPayment(Customer customer, Cash cash);\n\n\tpublic abstract void msgAskForPayment(String food, int batchSize, Market market, double price);\n\n\tpublic abstract String getCash();\t\n\t\n\tpublic abstract String getTotalDebt(); \n}", "@Override\n\tpublic boolean isResponsibleFor(final Class< ? > clazz) {\n\t\treturn PriceListDescriptorDTO.class.isAssignableFrom(clazz) || PriceListDescriptor.class.isAssignableFrom(clazz);\n\t}", "public void configure() {\n\t\tfrom(\"seda:vxf.onboard?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"onBoardVxFToMANOProvider\") //returns exception or nothing\n\t\t.log(\"VNFD Onboarded Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"VNFD Onboarding failed!\");\n\n\t\tfrom(\"seda:nsd.onboard?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"onBoardNSDToMANOProvider\") //returns exception or nothing\n\t\t.log(\"NSD Onboarded Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NSD Onboarding failed!\");\t\t\n\n\t\t\n\t\tfrom(\"seda:nsd.deploy?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"deployNSDToMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS deployed Successfully\").stop()\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS deployment failed!\").stop();\t\t\n\n\t\tfrom(\"seda:nsd.deployment.complete?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"terminateNSFromMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS completed Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS completion failed!\").stop();\n\n\t\tfrom(\"seda:nsd.deployment.delete?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"deleteNSFromMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS deleted Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS deletion failed!\").stop();\n\t\t\n\t\t//from(\"timer://checkAndDeployTimer?delay=2m&period=120000\").bean(new MANOController(),\"checkAndDeployExperimentToMANOProvider\").stop();\n\t\t//from(\"timer://checkAndTerminateTimer?delay=2m&period=120000\").bean(new MANOController(),\"checkAndTerminateExperimentToMANOProvider\").stop();\n\t\t\n\t\tfrom(\"timer://checkAndUpdateRunningDeploymentDescriptors?delay=1m&period=120000\").bean(MANOController.class,\"checkAndUpdateRunningDeploymentDescriptors\").stop();\n\t\t\n\t}", "public interface DataModelConsumer {\n\n /**\n * Consume the data model. The consumer shouldn't make any changes to it, as\n * other consumers could be using the model afterwards.\n *\n * @param dataModel\n */\n public void consumeDataModel(final Map<String, Object> dataModel);\n}", "interface DmaChannel\n{\n\t/**\n\t * Initiate DMA request for read.\n\t * <p>\n\t * Data will be transferred from memory to the peripheral.\n\t */\n\tpublic void dmaRequest(DmaRequestRead read) throws SIMException;\n\n\t/**\n\t * Initiate DMA request for write.\n\t * <p>\n\t * Data will be trasferred from peripheral to memory.\n\t */\n\tpublic void dmaRequest(DmaRequestWrite write) throws SIMException;\n\n\t/**\n\t * Initiate DMA request master.\n\t * <p>\n\t * Control will be passed to the caller.\n\t */\n\tpublic void dmaRequest(DmaRequestMaster master) throws SIMException;\n}", "void acceptNotification(NotificationDTO selectedNotification);", "public interface Channel {\n\n\t/**\n\t * Call this to send an article to its destination.\n\t * @param article the article to send\n\t */\t\n\tvoid accept(Article article);\n}", "public boolean enqueueDtoMessage(Object Dto) throws Exception;", "public interface CommunicationService {\n public String postDeployment(UnitDeliveryResource unitDeliveryResource);\n\n public String postService(UnitServiceResource unitServiceResource);\n\n public boolean checkLocality(UnitDeliveryResource unitDeliveryResource);\n\n public List<SiteReource> getSites();\n}", "@Override\n public StreamObserver<RequestData> biDirectionalStreamService(StreamObserver<ResponseData> responseObserver) {\n return new StreamObserver<RequestData>() {\n\n @Override\n public void onNext(RequestData request) {\n // TODO Auto-generated method stub\n System.out.println(\"Requestor:\" + request.getName());\n System.out.println(\"Request Message:\" + request.getMessage());\n responseObserver.onNext(ResponseData.newBuilder().setMessage(request.getMessage() + \" - \" + request.getName()).build());\n }\n\n @Override\n public void onError(Throwable t) {\n // TODO Auto-generated method stub\n t.printStackTrace();\n }\n\n @Override\n public void onCompleted() {\n // TODO Auto-generated method stub\n responseObserver.onCompleted();\n }\n };\n }", "public interface ActionHandler {\n ModelApiResponse handleActionChoice(ActionChoice choice);\n List<AvailableActions> getActionsCurrentlyAvailable();\n}", "public interface WhenEventBus {\n\n /**\n * Returns the underlying event bus being wrapped over\n *\n * @return\n */\n EventBus getEventBus();\n\n /**\n * Send a message\n *\n * @param address The address to send it to\n * @param message The message\n */\n Promise<Message> send(String address, Object message);\n\n /**\n * Send an object as a message\n *\n * @param address The address to send it to\n * @param message The message\n * @param timeout - Timeout in ms. If no reply received within the timeout then the reply handler will be unregistered\n */\n <T> Promise<Message<T>> sendWithTimeout(String address, Object message, long timeout);\n\n /**\n * Send a JSON object as a message\n *\n * @param address The address to send it to\n * @param message The message\n */\n <T> Promise<Message<T>> send(String address, JsonObject message);\n\n /**\n * Send a JSON object as a message\n *\n * @param address The address to send it to\n * @param message The message\n * @param timeout - Timeout in ms. If no reply received within the timeout then the reply handler will be unregistered\n */\n <T> Promise<Message<T>> sendWithTimeout(String address, JsonObject message, long timeout);\n\n /**\n * Send a JSON array as a message\n *\n * @param address The address to send it to\n * @param message The message\n */\n <T> Promise<Message<T>> send(String address, JsonArray message);\n\n /**\n * Send a JSON array as a message\n *\n * @param address The address to send it to\n * @param message The message\n * @param timeout - Timeout in ms. If no reply received within the timeout then the reply handler will be unregistered\n */\n <T> Promise<Message<T>> sendWithTimeout(String address, JsonArray message, long timeout);\n\n /**\n * Send a Buffer as a message\n *\n * @param address The address to send it to\n * @param message The message\n */\n <T> Promise<Message<T>> send(String address, Buffer message);\n\n /**\n * Send a Buffer object as a message\n *\n * @param address The address to send it to\n * @param message The message\n * @param timeout - Timeout in ms. If no reply received within the timeout then the reply handler will be unregistered\n */\n <T> Promise<Message<T>> sendWithTimeout(String address, Buffer message, long timeout);\n\n /**\n * Send a byte[] as a message\n *\n * @param address The address to send it to\n * @param message The message\n */\n <T> Promise<Message<T>> send(String address, byte[] message);\n\n /**\n * Send a byte[] object as a message\n *\n * @param address The address to send it to\n * @param message The message\n * @param timeout - Timeout in ms. If no reply received within the timeout then the reply handler will be unregistered\n */\n <T> Promise<Message<T>> sendWithTimeout(String address, byte[] message, long timeout);\n\n /**\n * Send a String as a message\n *\n * @param address The address to send it to\n * @param message The message\n */\n <T> Promise<Message<T>> send(String address, String message);\n\n /**\n * Send a string object as a message\n *\n * @param address The address to send it to\n * @param message The message\n * @param timeout - Timeout in ms. If no reply received within the timeout then the reply handler will be unregistered\n */\n <T> Promise<Message<T>> sendWithTimeout(String address, String message, long timeout);\n\n /**\n * Send an Integer as a message\n *\n * @param address The address to send it to\n * @param message The message\n */\n <T> Promise<Message<T>> send(String address, Integer message);\n\n /**\n * Send an Integer as a message\n *\n * @param address The address to send it to\n * @param message The message\n * @param timeout - Timeout in ms. If no reply received within the timeout then the reply handler will be unregistered\n */\n <T> Promise<Message<T>> sendWithTimeout(String address, Integer message, long timeout);\n\n /**\n * Send a Long as a message\n *\n * @param address The address to send it to\n * @param message The message\n */\n <T> Promise<Message<T>> send(String address, Long message);\n\n /**\n * Send a long as a message\n *\n * @param address The address to send it to\n * @param message The message\n * @param timeout - Timeout in ms. If no reply received within the timeout then the reply handler will be unregistered\n */\n <T> Promise<Message<T>> sendWithTimeout(String address, Long message, long timeout);\n\n /**\n * Send a Float as a message\n *\n * @param address The address to send it to\n * @param message The message\n */\n <T> Promise<Message<T>> send(String address, Float message);\n\n /**\n * Send a float as a message\n *\n * @param address The address to send it to\n * @param message The message\n * @param timeout - Timeout in ms. If no reply received within the timeout then the reply handler will be unregistered\n */\n <T> Promise<Message<T>> sendWithTimeout(String address, Float message, long timeout);\n\n /**\n * Send a Double as a message\n *\n * @param address The address to send it to\n * @param message The message\n */\n <T> Promise<Message<T>> send(String address, Double message);\n\n /**\n * Send a double as a message\n *\n * @param address The address to send it to\n * @param message The message\n * @param timeout - Timeout in ms. If no reply received within the timeout then the reply handler will be unregistered\n */\n <T> Promise<Message<T>> sendWithTimeout(String address, Double message, long timeout);\n\n /**\n * Send a Boolean as a message\n *\n * @param address The address to send it to\n * @param message The message\n */\n <T> Promise<Message<T>> send(String address, Boolean message);\n\n /**\n * Send a boolean as a message\n *\n * @param address The address to send it to\n * @param message The message\n * @param timeout - Timeout in ms. If no reply received within the timeout then the reply handler will be unregistered\n */\n <T> Promise<Message<T>> sendWithTimeout(String address, Boolean message, long timeout);\n\n /**\n * Send a Short as a message\n *\n * @param address The address to send it to\n * @param message The message\n */\n <T> Promise<Message<T>> send(String address, Short message);\n\n /**\n * Send a short as a message\n *\n * @param address The address to send it to\n * @param message The message\n * @param timeout - Timeout in ms. If no reply received within the timeout then the reply handler will be unregistered\n */\n <T> Promise<Message<T>> sendWithTimeout(String address, Short message, long timeout);\n\n /**\n * Send a Character as a message\n *\n * @param address The address to send it to\n * @param message The message\n */\n <T> Promise<Message<T>> send(String address, Character message);\n\n /**\n * Send a character as a message\n *\n * @param address The address to send it to\n * @param message The message\n * @param timeout - Timeout in ms. If no reply received within the timeout then the reply handler will be unregistered\n */\n <T> Promise<Message<T>> sendWithTimeout(String address, Character message, long timeout);\n\n /**\n * Send a Byte as a message\n *\n * @param address The address to send it to\n * @param message The message\n */\n <T> Promise<Message<T>> send(String address, Byte message);\n\n /**\n * Send a byte as a message\n *\n * @param address The address to send it to\n * @param message The message\n * @param timeout - Timeout in ms. If no reply received within the timeout then the reply handler will be unregistered\n */\n <T> Promise<Message<T>> sendWithTimeout(String address, Byte message, long timeout);\n\n /**\n * Unregisters a handler given the address and the handler\n *\n * @param address The address the handler was registered at\n * @param handler The handler\n */\n Promise<Void> unregisterHandler(String address, Handler<? extends Message> handler);\n\n /**\n * Registers a handler against the specified address\n *\n * @param address The address to register it at\n * @param handler The handler\n */\n Promise<Void> registerHandler(String address, Handler<? extends Message> handler);\n\n}", "@Override\n\tpublic void receiveRequest() {\n\n\t}", "public void goalsAndPlansMonitoring() {\n\n monitor.subscribeToEvents(new IFilter<IMonitoringEvent>() {\n public boolean filter(IMonitoringEvent event) {\n\n Map<String, Object> properties = event.getProperties();\n\n if (properties == null || properties.get(\"details\") == null) {\n return false;\n }\n\n if ((properties.get(\"details\") instanceof AbstractBDIInfo)) {\n\n AbstractBDIInfo bdiInfo = (AbstractBDIInfo) properties.get(\"details\");\n\n if (bdiInfo instanceof PlanInfo) {\n handlePlanEvent((PlanInfo) bdiInfo);\n } else if (bdiInfo instanceof GoalInfo) {\n handleGoalEvent((GoalInfo) bdiInfo);\n }\n }\n return true;\n }\n }, true, IMonitoringService.PublishEventLevel.FINE);\n }", "public interface DTTQPassenger {\n /**\n * The passenger leaves the bus and signals the bus driver if he's the last one to do so.\n * @param pid The passenger's ID.\n * @param seat The passenger's bus seat.\n */\n public void leaveTheBus(int pid, int seat);\n}", "public void sendToOutpatients(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "public interface EventInteractor {\n\n void getEvents(String sellerId,\n Date after,\n Date before,\n final PaginatedResourceRequestCallback<PR_AEvent> callback);\n\n void getCustomerEvents(String customerId,\n final PaginatedResourceRequestCallback<PR_AEvent> callback);\n\n}", "public interface BroadCastManagerCallerInterface {\n /**\n * **\n * This method is called when an intent Has Been ReceivedT hrough The BroadCast\n * @param intent This is the intent that was received\n */\n void intentHasBeenReceivedThroughTheBroadCast(Intent intent);\n}", "@Override\n\t\t\tpublic void action() {\n\t\t\t\tMessageTemplate cfpTemplate = MessageTemplate.MatchPerformative(ACLMessage.CFP);\n\t\t\t\tMessageTemplate informTemplate = MessageTemplate.MatchPerformative(ACLMessage.INFORM);\n\t\t\t\tMessageTemplate messageTemplate = MessageTemplate.or(cfpTemplate, informTemplate);\n\t\t\t\tACLMessage receivedMessage = myAgent.receive(messageTemplate);\n\t\t\t\t\n\t\t\t\tif (receivedMessage != null) {\n\t\t\t\t\thasReceivedMessage = true;\n\t\t\t\t\t\n\t\t\t\t\tif (receivedMessage.getPerformative() == ACLMessage.CFP) {\n\t\t\t\t\t\tdouble price = Double.parseDouble(receivedMessage.getContent());\n\t\t\t\t\t\tSystem.out.println(\"Buyer [\" + getAID().getLocalName() + \"] received \"\n\t\t\t\t\t\t\t\t+ \"CFP with price \" + Double.toString(price));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Value in range; send proposal\n\t\t\t\t\t\tif (price <= priceToBuy) {\n\t\t\t\t\t\t\tACLMessage proposal = new ACLMessage(ACLMessage.PROPOSE);\n\t\t\t\t\t\t\tproposal.addReceiver(receivedMessage.getSender());\n\t\t\t\t\t\t\tproposal.setProtocol(receivedMessage.getProtocol());\n\t\t\t\t\t\t\tmyAgent.send(proposal);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttransitionStatus = sendProposal;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Price too high; refuse and wait for new CFP\n\t\t\t\t\t\t\tACLMessage refusal = new ACLMessage(ACLMessage.REFUSE);\n\t\t\t\t\t\t\trefusal.addReceiver(receivedMessage.getSender());\n\t\t\t\t\t\t\trefusal.setProtocol(receivedMessage.getProtocol());\n\t\t\t\t\t\t\tmyAgent.send(refusal);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttransitionStatus = highPrice;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (receivedMessage.getPerformative() == ACLMessage.INFORM) {\n\t\t\t\t\t\ttransitionStatus = noBuyers;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tblock();\n\t\t\t\t}\n\t\t\t}", "public interface PayService {\n\n /**\n * 支付订单\n * @param orderDTO 被支付的订单对应的orderDTO对象\n */\n PayResponse create(OrderDTO orderDTO);\n\n /**\n * 异步返回支付信息\n * @param notifyData\n */\n PayResponse notify(String notifyData);\n\n /**\n * 退款\n * @param orderDTO\n */\n RefundResponse refund(OrderDTO orderDTO);\n}", "public interface Ot {\n\n /**\n * Send two possible messages for the recipient to choose from.\n *\n * @param messageZero\n * Message zero to send\n * @param messageOne\n * Message one to send\n */\n void send(StrictBitVector messageZero, StrictBitVector messageOne);\n\n /**\n * Receive one-out-of-two messages.\n *\n * @param choiceBit\n * Bit indicating which message to receive. False means message zero\n * and true means message one.\n * @return The message indicated by the choice bit\n */\n StrictBitVector receive(boolean choiceBit);\n}", "public interface Target {\n void handleRequest();\n}", "public interface Observer {\r\n\r\n /**\r\n * Updates the observer whether he is the winner\r\n * @param winner tells if the observer won the auction\r\n */\r\n void update(boolean winner);\r\n\r\n /**\r\n * Updates the observer with a specific information field\r\n * @param info the information field set by the subject\r\n */\r\n void update(Information info);\r\n\r\n /**\r\n * Bidding, used for actively participating in an auction\r\n * @return a pair of the current bid and the current number\r\n * of won auctions\r\n */\r\n Pair<Double, Integer> bid();\r\n\r\n /**\r\n * A getter for an observer's information, used by the subject\r\n * to better perform in the auction process\r\n * @return the information of this observer\r\n */\r\n Information getInfo();\r\n}", "public interface DependenciesHandler {\n\n /**\n * Configures dependency management for the dependency identified by the given {@code id}. The id is a string\n * of the form {@code group:name:version}.\n *\n * @param id the id of the dependency\n */\n void dependency(String id);\n\n /**\n * Configures dependency management for the dependency identified by the given {@code id}. The id is a map with\n * {@code group}, {@code name}, and {@code version} entries.\n *\n * @param id the id of the dependency\n */\n void dependency(Map<String, String> id);\n\n /**\n * Configures dependency management for the dependency identified by the given {@code id}. The dependency\n * management can be further configured using the given {@code closure} that is called with a {@link\n * DependencyHandler} as its delegate. The id is a string of the form {@code group:name:version}.\n *\n * @param id the id of the dependency\n * @param closure the closure used to further configure the dependency management\n * @see DependencyHandler\n */\n void dependency(String id, Closure closure);\n\n /**\n * Configures dependency management for the dependency identified by the given {@code id}. The dependency\n * management can be further configured using the given {@code action}. The id is a string of the form\n * {@code group:name:version} or a map with {@code group}, {@code name}, and {@code version} entries.\n *\n * @param id the id of the dependency\n * @param action the action used to further configure the dependency management\n * @see DependencyHandler\n */\n void dependency(String id, Action<DependencyHandler> action);\n\n /**\n * Configures dependency management for the dependency identified by the given {@code id}. The dependency\n * management can be further configured using the given {@code closure} that is called with a {@link\n * DependencyHandler} as its delegate. The id is a map with {@code group}, {@code name}, and {@code version}\n * entries.\n *\n * @param id the id of the dependency\n * @param closure the closure used to further configure the dependency management\n * @see DependencyHandler\n */\n void dependency(Map<String, String> id, Closure closure);\n\n /**\n * Configures dependency management for the dependency identified by the given {@code id}. The dependency\n * management can be further configured using the given {@code action}. The id is a map with {@code group},\n * {@code name}, and {@code version} entries.\n *\n * @param id the id of the dependency\n * @param action the action used to further configure the dependency management\n * @see DependencyHandler\n */\n void dependency(Map<String, String> id, Action<DependencyHandler> action);\n\n /**\n * Configures dependency management for a set of dependencies with the same {@code group} and {@code version}\n * as specified by the given {@code setId}. The id is a string of the form {@code group:version}. Entries are added\n * to the set using the given {@code closure} that is called with a {@link DependencySetHandler} as its delegate.\n *\n * @param setId the id of the set\n * @param closure the closure used to configure the entries\n * @see DependencySetHandler\n */\n void dependencySet(String setId, Closure closure);\n\n /**\n * Configures dependency management for a set of dependencies with the same {@code group} and {@code version}\n * as specified by the given {@code setId}. The id is a string of the form {@code group:version}. Entries are added\n * to the set using the given {@code action}.\n *\n * @param setId the id of the set\n * @param action the action used to configure the entries\n * @see DependencySetHandler\n */\n void dependencySet(String setId, Action<DependencySetHandler> action);\n\n /**\n * Configures dependency management for a set of dependencies with the same {@code group} and {@code version} as\n * specified by the given {@code setId}. The id is a map with {@code group} and {@code version} entries. Entries\n * are added to the set using the given {@code closure} that is called with a {@link DependencySetHandler} as its\n * delegate.\n *\n * @param setId a map containing the {@code group} and {@code version} of the set of dependencies\n * @param closure the closure used to configure the entries\n * @see DependencySetHandler\n */\n void dependencySet(Map<String, String> setId, Closure closure);\n\n /**\n * Configures dependency management for a set of dependencies with the same {@code group} and {@code version} as\n * specified by the given {@code setId}. The id is a map with {@code group} and {@code version} entries. Entries\n * are added to the set using the given {@code action}.\n *\n * @param setId a map containing the {@code group} and {@code version} of the set of dependencies\n * @param action the action used to configure the entries\n * @see DependencySetHandler\n */\n void dependencySet(Map<String, String> setId, Action<DependencySetHandler> action);\n\n}", "public interface NegotiationTransmission {\n\n /**\n * The method <code>getTransmissionId</code> returns the transmission id of the negotiation transmission\n * @return an UUID the transmission id of the negotiation transmission\n */\n UUID getTransmissionId();\n\n /**\n * The method <code>getTransactionId</code> returns the transaction id of the negotiation transmission\n * @return an UUID the transaction id of the negotiation transmission\n */\n UUID getTransactionId();\n\n /**\n * The method <code>getNegotiationId</code> returns the negotiation id of the negotiation transmission\n * @return an UUID the negotiation id of the negotiation\n */\n UUID getNegotiationId();\n\n /**\n * The method <code>getNegotiationTransactionType</code> returns the transaction type of the negotiation transmission\n * @return an NegotiationTransactionType of the transaction type\n */\n NegotiationTransactionType getNegotiationTransactionType();\n\n /**\n * The method <code>getPublicKeyActorSend</code> returns the public key the actor send of the negotiation transaction\n * @return an String the public key of the actor send\n */\n String getPublicKeyActorSend();\n\n /**\n * The method <code>getActorSendType</code> returns the actor send type of the negotiation transmission\n * @return an PlatformComponentType of the actor send type\n */\n PlatformComponentType getActorSendType();\n\n /**\n * The method <code>getPublicKeyActorReceive</code> returns the public key the actor receive of the negotiation transmission\n * @return an String the public key of the actor receive\n */\n String getPublicKeyActorReceive();\n\n /**\n * The method <code>getActorReceiveType</code> returns the actor receive type of the negotiation transmission\n * @return an PlatformComponentType of the actor receive type\n */\n PlatformComponentType getActorReceiveType();\n\n /**\n * The method <code>getTransmissionType</code> returns the type of the negotiation transmission\n * @return an NegotiationTransmissionType of the negotiation type\n */\n NegotiationTransmissionType getTransmissionType();\n\n /**\n * The method <code>getTransmissionState</code> returns the state of the negotiation transmission\n * @return an NegotiationTransmissionStateof the negotiation state\n */\n NegotiationTransmissionState getTransmissionState();\n\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an NegotiationType the negotiation type of negotiation\n */\n NegotiationType getNegotiationType();\n\n void setNegotiationType(NegotiationType negotiationType);\n /**\n * The method <code>getNegotiationXML</code> returns the xml of the negotiation relationship with negotiation transmission\n * @return an String the xml of negotiation\n */\n String getNegotiationXML();\n\n /**\n * The method <code>getTimestamp</code> returns the time stamp of the negotiation transmission\n * @return an Long the time stamp of the negotiation transmission\n */\n long getTimestamp();\n\n /**\n * The method <code>isPendingToRead</code> returns if this pending to read the negotiation transmission\n * @return an boolean if this pending to read\n */\n boolean isPendingToRead();\n\n /**\n * The method <code>confirmRead</code> confirm the read of the negotiation trasmission\n */\n void confirmRead();\n\n /**\n * The method <code>setNegotiationTransactionType</code> set the negotiation transaction type\n */\n void setNegotiationTransactionType(NegotiationTransactionType negotiationTransactionType);\n\n /**\n * The method <code>setTransmissionType</code> set the Transmission Type\n */\n void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);\n\n /**\n * The method <code>setTransmissionState</code> set the Transmission State\n */\n void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);\n\n public boolean isFlagRead();\n\n public void setFlagRead(boolean flagRead);\n\n public int getSentCount();\n\n public void setSentCount(int sentCount);\n\n public UUID getResponseToNotificationId();\n\n public void setResponseToNotificationId(UUID responseToNotificationId);\n\n public boolean isPendingFlag();\n\n public void setPendingFlag(boolean pendingFlag);\n\n public String toJson();\n\n}", "public interface CompetitorHandler {\n\n List<Competitor> getCompetitors();\n\n Competitor getCompetitor(int competitorId);\n}", "public void deliverStone5() {\n }", "@Override\r\n\tpublic void makeDeliveryFree() {\n\t\t\r\n\t}", "@MessagingGateway(defaultRequestChannel = \"eventOutput\")\ninterface EventWriter {\n\n @Gateway(requestChannel = \"eventOutput\")\n void writeEvent(Event event);\n}", "public interface IRequestHeartBeatBiz {\n interface OnRequestListener{\n void success(List<UserInformationBean> userInformation);\n void failed();\n }\n void requestData(String uuid, OnRequestListener requestListener);\n}", "public interface IMiddlewareResourceManager extends Remote, IProxiable {\n /**\n * Add seats to a flight.\n * <p>\n * In general this will be used to create a new\n * flight, but it should be possible to add seats to an existing flight.\n * Adding to an existing flight should overwrite the current price of the\n * available seats.\n *\n * @return Success\n */\n public boolean addFlight(int id, int flightNum, int flightSeats, int flightPrice)\n throws RemoteException, DeadlockException;\n\n /**\n * Add car at a location.\n * <p>\n * This should look a lot like addFlight, only keyed on a string location\n * instead of a flight number.\n *\n * @return Success\n */\n public boolean addCars(int id, String location, int numCars, int price)\n throws RemoteException, DeadlockException;\n\n /**\n * Add room at a location.\n * <p>\n * This should look a lot like addFlight, only keyed on a string location\n * instead of a flight number.\n *\n * @return Success\n */\n public boolean addRooms(int id, String location, int numRooms, int price)\n throws RemoteException, DeadlockException;\n\n /**\n * Add customer.\n *\n * @return Unique customer identifier\n */\n public int newCustomer(int id)\n throws RemoteException, DeadlockException;\n\n /**\n * Add customer with id.\n *\n * @return Success\n */\n public boolean newCustomer(int id, int cid)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete the flight.\n * <p>\n * deleteFlight implies whole deletion of the flight. If there is a\n * reservation on the flight, then the flight cannot be deleted\n *\n * @return Success\n */\n public boolean deleteFlight(int id, int flightNum)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete all cars at a location.\n * <p>\n * It may not succeed if there are reservations for this location\n *\n * @return Success\n */\n public boolean deleteCars(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete all rooms at a location.\n * <p>\n * It may not succeed if there are reservations for this location.\n *\n * @return Success\n */\n public boolean deleteRooms(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete a customer and associated reservations.\n *\n * @return Success\n */\n public boolean deleteCustomer(int id, int customerID)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a flight.\n *\n * @return Number of empty seats\n */\n public int queryFlight(int id, int flightNumber)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a car location.\n *\n * @return Number of available cars at this location\n */\n public int queryCars(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a room location.\n *\n * @return Number of available rooms at this location\n */\n public int queryRooms(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the customer reservations.\n *\n * @return A formatted bill for the customer\n */\n public String queryCustomerInfo(int id, int customerID)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a flight.\n *\n * @return Price of a seat in this flight\n */\n public int queryFlightPrice(int id, int flightNumber)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a car location.\n *\n * @return Price of car\n */\n public int queryCarsPrice(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a room location.\n *\n * @return Price of a room\n */\n public int queryRoomsPrice(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a seat on this flight.\n *\n * @return Success\n */\n public boolean reserveFlight(int id, int customerID, int flightNumber)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a car at this location.\n *\n * @return Success\n */\n public boolean reserveCar(int id, int customerID, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a room at this location.\n *\n * @return Success\n */\n public boolean reserveRoom(int id, int customerID, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a bundle for the trip.\n *\n * @return Success\n */\n public boolean bundle(int id, int customerID, Vector<Integer> flightNumbers, String location, boolean car, boolean room)\n throws RemoteException, DeadlockException;\n\n /**\n * Convenience for probing the resource manager.\n *\n * @return Name\n */\n public String getName()\n throws RemoteException, DeadlockException;\n\n public int start()\n throws RemoteException;\n\n public boolean commit(int xid) \n throws RemoteException, InvalidTransactionException;\n\n public boolean abort(int xid) \n throws RemoteException, InvalidTransactionException;\n\n public void shutdown()\n throws RemoteException;\n\n}", "public abstract IObserver getMediatedObserver();", "public interface LogisticsDataApi {\n\n\n /**\n * 用户类型:-1用户, 0-咨询会员,1-交易会员,2-商家会员\n * 会员认证 状态: 0 -未认证, 1 -已认证\n * 会员锁定 状态: 0 -正常, 1 -锁定, 2 -注销\n * /member/query_type_new?token GET 用户类型\n */\n @GET(\"member/query_type_new\")\n Observable<UserTypeData> getUserType(@Query(\"token\") String token);\n\n /**\n * 发布求购 publish\n *\n * 收货信息 member/get_member_delivery_address?token 取默认地址 / 没有默认取第一条\n *\n * 原料品名 baseData/query_breed?keyword\n * 原料牌号 baseData/query_spec?keyword & code // code 为 breed code\n * 生产厂家 baseData/query_brand?keyword\n *\n * 提交 求购数据 member/publish_buy - post reference: class: MemberPurchaseDTOs\n */\n\n\n // 收货地址\n @GET(\"member/get_member_delivery_address\")\n Observable<PublishData.AddressData> getAddressData(@Query(\"token\") String token);\n\n // breed\n @GET(\"baseData/query_breed\")\n Observable<PublishData> getBreedData(@Query(\"keyword\") String keyword);\n // spec\n @GET(\"baseData/query_spec\")\n Observable<PublishData> getSpecData(@Query(\"keyword\") String keyword,\n @Query(\"code\") String breedCode);\n // brand\n @GET(\"baseData/query_brand\")\n Observable<PublishData.PublishBrandData> getBrandData(@Query(\"keyword\") String keyword);\n\n\n\n // 提交 求购数据 post Content-Type为application/json todo\n @POST(\"member/publish_buy\")\n Observable<VerifyData> postPurchaseData(@Body RequestBody requestBody);\n\n\n /**\n * 发布求购 publish - 收货地址 新增/编辑 get\n @\"/member/save_member_delivery_address\" // 新增收货信息\n @\"/member/update_member_delivery_address\" // 编辑收货信息\n */\n // 新增收货信息\n @GET(\"member/save_member_delivery_address\")\n Observable<VerifyData> getSaveAddressData(\n @Query(\"token\") String token,\n @Query(\"address\") String address,\n @Query(\"contactName\") String contactName,\n @Query(\"mobile\") String mobile,\n @Query(\"isDefault\") String isDefault,\n @Query(\"provinceCode\") String provinceCode,\n @Query(\"provinceName\") String provinceName,\n @Query(\"cityCode\") String cityCode,\n @Query(\"cityName\") String cityName,\n @Query(\"districtCode\") String districtCode,\n @Query(\"districtName\") String districtName\n );\n\n // 修改收货信息 (memberDeliveryAddressId 新增地址没有此参数)\n @GET(\"member/update_member_delivery_address\")\n Observable<VerifyData> getUpdateAddressData(\n @Query(\"token\") String token,\n @Query(\"address\") String address,\n @Query(\"contactName\") String contactName,\n @Query(\"mobile\") String mobile,\n @Query(\"isDefault\") int isDefault,\n @Query(\"provinceCode\") String provinceCode,\n @Query(\"provinceName\") String provinceName,\n @Query(\"cityCode\") String cityCode,\n @Query(\"cityName\") String cityName,\n @Query(\"districtCode\") String districtCode,\n @Query(\"districtName\") String districtName,\n @Query(\"memberDeliveryAddressId\") String memberDeliveryAddressId\n );\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n /**\n * purchase\n * member/purchase_pool?token 求购池数据\n * member/my_purchase_list?token 我的求购\n * shop/my_quote_list?token 我的报价\n */\n @GET(\"member/purchase_pool\")\n Observable<PurchaseData> getPurchasePoolData(@Query(\"token\") String token,\n @Query(\"pageNum\") int pageNum,\n @Query(\"pageSize\") int pageSize);\n\n\n @GET(\"member/my_purchase_list\")\n Observable<PurchaseData> getMyPurchaseData(@Query(\"token\") String token,\n @Query(\"pageNum\") int pageNum,\n @Query(\"pageSize\") int pageSize);\n\n @GET(\"shop/my_quote_list\")\n Observable<PurchaseData> getMyQuoteData(@Query(\"token\") String token,\n @Query(\"pageNum\") int pageNum,\n @Query(\"pageSize\") int pageSize);\n\n /**\n * member/purchase_quote_list?token&memberPurchaseId 求购报价详情\n * shop/my_quote_detail?quoteId&token 报价详情\n */\n\n @GET(\"member/purchase_quote_list\")\n Observable<PurchaseQuoteData> getMyPurchaseDetailData(@Query(\"token\") String token,\n @Query(\"memberPurchaseId\") String memberPurchaseId);\n\n @GET(\"shop/my_quote_detail\")\n Observable<QuoteDetailData> getMyQuoteDetailData(@Query(\"token\") String token,\n @Query(\"quoteId\") String quoteId);\n\n\n /**\n * member/member_review_quote ?token&sellMemberQuoteId& reviewNote 买家复议\n * shop/sell_review_quote ? token& quoteId& price 卖家复议\n */\n\n @GET(\"member/member_review_quote\")\n Observable<VerifyData> getPurchaseReviewData(@Query(\"token\") String token,\n @Query(\"sellMemberQuoteId\") String sellMemberQuoteId,\n @Query(\"reviewNote\") String reviewNote);\n\n @GET(\"shop/sell_review_quote\")\n Observable<VerifyData> getQuoteReviewData(@Query(\"token\") String token,\n @Query(\"quoteId\") String quoteId,\n @Query(\"price\") String price);\n\n\n /** 商家报价\n * baseData/query_like_warehouse?companyShortName 模糊搜索仓库\n * baseData/query_warehouse?companyShortName 精准搜索仓库 1.创建新仓库校验 2.选择历史\n * shop/sell_price 报价 - 提交报价数据 post\n */\n\n @GET(\"baseData/query_like_warehouse\")\n Observable<WarehouseData> getFuzzyWarehouseData(@Query(\"companyShortName\") String companyShortName);\n\n @GET(\"baseData/query_warehouse\")\n Observable<WarehouseData.WarehouseCheckData> getWarehouseData(@Query(\"companyShortName\") String companyShortName);\n\n\n // 提交报价数据 post todo\n @FormUrlEncoded\n @POST(\"shop/sell_price\")\n Observable<VerifyData> postQuoteData(\n @Field(\"token\") String token,\n @Field(\"memberPurchaseId\") long memberPurchaseId,\n @Field(\"price\") double price,\n @Field(\"isSupplierDistribution\") int isSupplierDistribution, // 0 - no ; 1 - yes;\n @Field(\"deliveryDate\") String deliveryDate,\n @Field(\"warehouse\") String warehouse // warehouse json\n );\n\n\n\n\n\n\n /**\n * logistics\n * /app/logistics/from_address 出发地\n * /app/logistics/to_address?provFrom&cityFrom&distinctFrom 目的地\n * /app/logistics/query_price?provFrom&cityFrom&distinctFrom&provTo&cityTo&distinctTo&amount 价格\n * @return\n */\n\n // 出发地\n @GET(\"logistics/from_address\")\n Observable<LogisticsCityData> getFromData();\n\n // 目的地\n @GET(\"logistics/to_address\")\n Observable<LogisticsCityData> getDestinationData(@Query(\"provFrom\") String provFrom,\n @Query(\"cityFrom\") String cityFrom,\n @Query(\"distinctFrom\") String distinctFrom\n );\n\n // 价格\n @GET(\"logistics/query_price\")\n Observable<LogisticsResultData> getPriceData(@Query(\"provFrom\") String provFrom,\n @Query(\"cityFrom\") String cityFrom,\n @Query(\"distinctFrom\") String distinctFrom,\n @Query(\"provTo\") String provTo,\n @Query(\"cityTo\") String cityTo,\n @Query(\"distinctTo\") String distinctTo,\n @Query(\"amount\") int amount\n );\n\n\n /**\n * 一键下单页面计算:\n 采购单价:求购报价的价格;\n 运费单价:求购报价的运费单价;(非供配情况下,选择自提,重置为0)\n 资金服务费利率:未认证会员为0;\n 账期:使用授信(部分授信,或全部授信)默认为最大账期天数;款到发货,账期为0;\n\n 选择账期后计算-----------------------------------------------------\n\n 1.资金服务费 =(采购单价+运费单价)*数量*资金服务费利率*账期\n\n * 全部授信- 资金服务费 =(采购单价+运费单价)*数量*资金服务费利率*账期\n * 部分授信- 资金服务费 = 授信额度(自填)*资金服务费利率*账期\n\n\n 2.销售总货款 =(采购单价+运费单价)*数量 + 资金服务费\n\n 3.采购总货款 = 采购单价*数量\n\n 4.物流总货款 = 运费单价*数量\n\n 5.销售单价 = 销售总货款/数量\n\n\n 6.使用授信(授信金额)\n 全部授信-使用授信 =(采购单价+运费单价)* 数量 + 资金服务费\n 部分授信-使用授信 = 授信额度(自填);\n 款到发货-使用授信 = 0;\n\n 7.手续费 = 销售总货款*0.3%\n *\n * /member/purchase_check_create_order?token \t\t\t\t 检验能否一键下单\n * /member/query_purchase_create_order_details?token&quoteId 确认订单\n */\n\n // 检验能否一键下单\n @GET(\"member/purchase_check_create_order\")\n Observable<VerifyData> getOrderCheckData(@Query(\"token\") String token);\n\n // 确认订单\n @GET(\"member/query_purchase_create_order_details\")\n Observable<OrderConfirmData> getOrderConfirmData(@Query(\"token\") String token,\n @Query(\"quoteId\") String quoteId);\n\n /**\n * 保证金\n * order/check_deposit?token & receivableWay\n */\n @GET(\"order/check_deposit\")\n Observable<VerifyData> getCheckDepositData(@Query(\"token\") String token,\n @Query(\"receivableWay\") String receivableWay);\n\n /**\n * private Long memberPurchaseId = 0L;\t\t\t\t\t\t// 会员求购单Id\n private Long sellMemberQuoteId = 0L;\t\t\t\t\t // 报价单Id\n\n private Double saleSumQty = 0D;\t\t\t\t\t\t\t// 销售总重量\n private Double saleSumAmt = 0D;\t\t\t\t\t\t\t// 销售总金额\n private Double purchaseSumQty = 0D;\t\t\t\t\t\t// 采购总重量\n private Double purchaseSumAmt = 0D;\t\t\t\t\t\t// 采购总金额\n private Double logisticsSumCost = 0D;\t\t\t\t\t // 物流总货款\n private Double salePrice = 0D;\t\t\t\t\t\t\t // 销售单价\n\n private Integer distributionWay = 0;\t\t\t\t\t// 配送方式 0-供方配送 1-自提 2-平台配送\n private String deliveryDate = \"\";\t\t\t\t\t\t// 交货日期\n private Integer receivableWay = 0;\t\t\t\t\t\t// 结算方式 0-全额授信 1-部分授信 2-款到发货\n private Double creditAmount = 0D;\t\t\t\t\t\t// 授信金额\n private Integer receivableDay = 0;\t\t\t\t\t\t// 货到收款天数- 账期\n\n private String packagSpec = \"\";\t\t\t\t\t\t// 包装规格\n\n private Double memberMoneyRate = 0D;\t\t\t\t\t// 服务费利率\n private\tDouble serviceAmt = 0D;\t\t\t\t\t\t// 服务费\n */\n /**\n * /order/purchase_save_sale_order // 一键下单 todo\n */\n @FormUrlEncoded\n @POST(\"order/purchase_save_sale_order\")\n Observable<VerifyData> postOrderData(@Field(\"token\") String token,\n @Field(\"memberPurchaseId\") Long memberPurchaseId,\n @Field(\"sellMemberQuoteId\") Long sellMemberQuoteId,\n @Field(\"saleSumQty\") Double saleSumQty,\n @Field(\"saleSumAmt\") Double saleSumAmt,\n @Field(\"purchaseSumQty\") Double purchaseSumQty,\n @Field(\"purchaseSumAmt\") Double purchaseSumAmt,\n @Field(\"logisticsSumCost\") Double logisticsSumCost,\n @Field(\"salePrice\") Double salePrice,\n @Field(\"distributionWay\") int distributionWay,\n @Field(\"deliveryDate\") String deliveryDate,\n @Field(\"receivableWay\") int receivableWay,\n @Field(\"creditAmount\") Double creditAmount,\n @Field(\"receivableDay\") int receivableDay,\n @Field(\"packagSpec\") String packagSpec,\n @Field(\"memberMoneyRate\") Double memberMoneyRate,\n @Field(\"serviceAmt\") Double serviceAmt);\n\n\n\n\n\n /**\n * OrderFragment 订单列表\n * @param token\n * @param subStatus\n * 10-待审核 12-待支付手续费 11-待上传采购合同\n * 20-待收款 30-待付款 40-待发货 50-待确认收货\n * 90-交易失败 100-待开票? 101-待开票审核? 102-交易成功\n */\n @GET(\"order/query_order_list\")\n Observable<OrdersData> getOrderData(@Query(\"token\") String token,\n @Query(\"subStatus\") String subStatus,\n @Query(\"pageNum\") int pageNum,\n @Query(\"pageSize\") int pageSize);\n\n /**\n * 订单详情\n * order/query_order_detail?token&orderId\n */\n @GET(\"order/query_order_detail\")\n Observable<OrderDetailData> getOrderDetailData(@Query(\"token\") String token,\n @Query(\"orderId\") String orderId);\n\n /**\n * 支付手续费\n * order/member_purchase_alipay_create?token&orderSn&goodsAmount 支付宝 todo\n * order/member_purchase_wx_create?token&orderSn&goodsAmount 微信 todo\n * private String operateStatus;\t// 操作状态 null没有; A0-支付手续费; A1-开票申请; A2-申请展期\n */\n\n // 支付宝支付\n @FormUrlEncoded\n @POST(\"order/member_purchase_alipay_create\")\n Observable<OrderData> postAliPayData(@Field(\"token\") String token,\n @Query(\"orderId\") String orderId,\n @Field(\"orderSn\") String orderSn,\n @Field(\"goodsAmount\") String goodsAmount);\n\n\n\n // 微信支付\n @FormUrlEncoded\n @POST(\"order/member_purchase_wx_create\")\n Observable<OrderPayData> postWeChatPayData(@Field(\"token\") String token,\n @Query(\"orderId\") String orderId,\n @Field(\"orderSn\") String orderSn,\n @Field(\"goodsAmount\") String goodsAmount);\n\n /**\n * rder/query_extends_days_detail?orderId&token 展期详情\n * order/save_extends_days 申请展期\n */\n @GET(\"order/query_extends_days_detail\")\n Observable<ExtensionData> getExtensionData(@Query(\"token\") String token,\n @Query(\"orderId\") String orderId);\n\n /**\n * order/save_extends_days 申请展期\n * private String token ;\n private Long orderId = 0L; // 订单Id\n private String contractCode = \"\"; // 关联合同号\n private Double amount = 0D; // 金额\n private Integer days = 0; // 天数\n private String note = \"\"; // 备注\n */\n\n @FormUrlEncoded\n @POST(\"order/save_extends_days\")\n Observable<VerifyData> postExtensionData(@Field(\"token\") String token,\n @Query(\"orderId\") long orderId,\n @Field(\"contractCode\") String contractCode,\n @Field(\"amount\") double amount,\n @Field(\"days\") int days,\n @Field(\"note\") String note);\n\n}", "public void deliverStone3() {\n }", "public void sendToWard(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "@Override\n public void onDelectFlightInfo(ServResrouce info)\n {\n }" ]
[ "0.565204", "0.5452077", "0.5429084", "0.5354828", "0.53445613", "0.5294804", "0.525865", "0.52586406", "0.52381945", "0.52285516", "0.5219641", "0.5214155", "0.52066576", "0.5198407", "0.51921237", "0.51879835", "0.51799506", "0.51699424", "0.5141236", "0.51346856", "0.508025", "0.50797033", "0.50795305", "0.5057332", "0.50444233", "0.50390595", "0.5038662", "0.50380754", "0.5010372", "0.50100386", "0.5008686", "0.498635", "0.49754483", "0.49689987", "0.49638796", "0.49603552", "0.4935579", "0.49329284", "0.4925024", "0.49219579", "0.4913789", "0.49122238", "0.49079973", "0.49064308", "0.49031043", "0.49000755", "0.48998484", "0.48984766", "0.48873982", "0.48844555", "0.4879439", "0.48793137", "0.4877299", "0.48544863", "0.48493093", "0.48451033", "0.48392367", "0.4828577", "0.48251876", "0.4821842", "0.48153257", "0.48148325", "0.4811038", "0.480681", "0.48065966", "0.4803927", "0.48035157", "0.4802717", "0.47999766", "0.47868067", "0.47862723", "0.47845432", "0.4780214", "0.4773963", "0.47727236", "0.47708246", "0.4767739", "0.4761271", "0.47597894", "0.47541678", "0.47509196", "0.4747993", "0.4747905", "0.47477633", "0.47476265", "0.47474575", "0.47468367", "0.474519", "0.47422794", "0.47414172", "0.47413114", "0.47400326", "0.47381467", "0.4738133", "0.4736066", "0.47286838", "0.47275826", "0.47261137", "0.47251403", "0.47238946" ]
0.5536155
1
Optional. Adds a custom balancer
public EventMapper onBalance(final Balancer balancer) { Validate.notNull(balancer); Balancer.Directory.addCustomBalancer(balancer); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean hasLoadBalancerSupport() {\n\t\treturn false;\r\n\t}", "public void addBuddy(IAwarenessUser user) {\n\t\tgetBuddies().add(user);\n\t\tthis.createBuddyIcon(user);\n\t}", "public void addBoat(Boat b){\r\n boats.add(b);\r\n }", "public Builder setLoadBalancer(\n com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo value) {\n if (loadBalancerBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n stepInfo_ = value;\n onChanged();\n } else {\n loadBalancerBuilder_.setMessage(value);\n }\n stepInfoCase_ = 16;\n return this;\n }", "public void setLoadBalancerAlgorithm(com.profitbricks.api.ws.LoadBalancerAlgorithm loadBalancerAlgorithm) {\r\n this.loadBalancerAlgorithm = loadBalancerAlgorithm;\r\n }", "public void addBcc(String... address) {\n\t\tbcc.addAll(java.util.Arrays.asList(address));\n\t}", "@java.lang.Override\n public boolean hasLoadBalancer() {\n return stepInfoCase_ == 16;\n }", "@java.lang.Override\n public boolean hasLoadBalancer() {\n return stepInfoCase_ == 16;\n }", "protected LoadBalancerMember(Context context) {\n super(context);\n }", "public void addBcc(List<String> addresses) {\n\t\tbcc.addAll(addresses);\n\t}", "public void addBalances(com.redknee.util.crmapi.soap.subscriptions.xsd._2009._04.SubscriptionBundleBalance param){\n if (localBalances == null){\n localBalances = new com.redknee.util.crmapi.soap.subscriptions.xsd._2009._04.SubscriptionBundleBalance[]{};\n }\n\n \n //update the setting tracker\n localBalancesTracker = true;\n \n\n java.util.List list =\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localBalances);\n list.add(param);\n this.localBalances =\n (com.redknee.util.crmapi.soap.subscriptions.xsd._2009._04.SubscriptionBundleBalance[])list.toArray(\n new com.redknee.util.crmapi.soap.subscriptions.xsd._2009._04.SubscriptionBundleBalance[list.size()]);\n\n }", "Future<GetLoadBalancerResponse> getLoadBalancer(\n GetLoadBalancerRequest request,\n AsyncHandler<GetLoadBalancerRequest, GetLoadBalancerResponse> handler);", "public LoadBalancerWRR(List<ServerUnit> _ListOfServers)\n\t{\n\t\tsuper(_ListOfServers);\n\t\ttypeOfLoadBalancer = typeOfLoadBalancer.WeightedRoundRobin;\n\t\tinitChosenServerIndex();\n\n\t/*\tinitTableOfServer();\n\t\tinitTempTableOfServer();*/\n\n\t}", "com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing();", "public void setLoadBalancerPolicy(String loadBalancerPolicy) {\n this.loadBalancerPolicy = loadBalancerPolicy;\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfoOrBuilder\n getLoadBalancerOrBuilder() {\n if (stepInfoCase_ == 16) {\n return (com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.getDefaultInstance();\n }", "public void setLoadBalancerName(java.lang.String loadBalancerName) {\r\n this.loadBalancerName = loadBalancerName;\r\n }", "Future<UpdateLoadBalancerResponse> updateLoadBalancer(\n UpdateLoadBalancerRequest request,\n AsyncHandler<UpdateLoadBalancerRequest, UpdateLoadBalancerResponse> handler);", "public com.profitbricks.api.ws.LoadBalancerAlgorithm getLoadBalancerAlgorithm() {\r\n return loadBalancerAlgorithm;\r\n }", "String addBalance(Integer clientAccountId, Integer balance) throws ServiceException;", "public LoadBalancer(int port) throws IOException {\n super(port);\n tabServerssout = new Vector();\n tabServerssin = new Vector();\n //On se connecte aux serveurs\n addServers(8010,8013);\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfoOrBuilder\n getLoadBalancerOrBuilder() {\n if ((stepInfoCase_ == 16) && (loadBalancerBuilder_ != null)) {\n return loadBalancerBuilder_.getMessageOrBuilder();\n } else {\n if (stepInfoCase_ == 16) {\n return (com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.getDefaultInstance();\n }\n }", "void addAdvisor(int pos, Advisor advisor) throws AopConfigException;", "public void addBalance()\n\t\t{\n\t\t\tthis.setBalance_acc2(this.getBalance_acc2() + this.getTemp_d_acc2());\n\t\t}", "public void addBoneRef(BoneRef ref){\n \t\tthis.boneRefs[bonePointer++] = ref;\n \t}", "private void setAddFriendBToServer(AddFriend.BToServer value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 2;\n }", "@Test(timeout = 10000L)\n public void testSetLoadBalancerInformation() throws Exception {\n CommonDriverAdminTests.testSetLoadBalancerInformation(client);\n }", "public void createBlueBanHighlight() {\n\t\tblueBanHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tblueBanHighlight.setBackground(new Color(255, 217, 0, 120));\n\t\tbottomPanel.add(blueBanHighlight, new Integer(1));\n\t\tblueBanHighlight.setBounds(23, 29, 245, 135);\n\t}", "public Builder setAddFriendBToServer(AddFriend.BToServer value) {\n copyOnWrite();\n instance.setAddFriendBToServer(value);\n return this;\n }", "void addBank(IBank bank) throws RemoteException;", "Future<ListLoadBalancersResponse> listLoadBalancers(\n ListLoadBalancersRequest request,\n AsyncHandler<ListLoadBalancersRequest, ListLoadBalancersResponse> handler);", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo getLoadBalancer() {\n if (stepInfoCase_ == 16) {\n return (com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.getDefaultInstance();\n }", "@Override\r\n\tpublic LoadBalancerSupport getLoadBalancerSupport() {\n\t\treturn null;\r\n\t}", "public Builder setLoadBalancer(\n com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.Builder builderForValue) {\n if (loadBalancerBuilder_ == null) {\n stepInfo_ = builderForValue.build();\n onChanged();\n } else {\n loadBalancerBuilder_.setMessage(builderForValue.build());\n }\n stepInfoCase_ = 16;\n return this;\n }", "public void add(Ball b) {\r\n balls.add(b);\r\n }", "public void setLoadBalancers(java.util.Collection<LoadBalancer> loadBalancers) {\n if (loadBalancers == null) {\n this.loadBalancers = null;\n return;\n }\n\n this.loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>(loadBalancers);\n }", "public void setLoadBalancers(java.util.Collection<LoadBalancer> loadBalancers) {\n if (loadBalancers == null) {\n this.loadBalancers = null;\n return;\n }\n\n this.loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>(loadBalancers);\n }", "public Builder mergeLoadBalancer(\n com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo value) {\n if (loadBalancerBuilder_ == null) {\n if (stepInfoCase_ == 16\n && stepInfo_\n != com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo\n .getDefaultInstance()) {\n stepInfo_ =\n com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.newBuilder(\n (com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo) stepInfo_)\n .mergeFrom(value)\n .buildPartial();\n } else {\n stepInfo_ = value;\n }\n onChanged();\n } else {\n if (stepInfoCase_ == 16) {\n loadBalancerBuilder_.mergeFrom(value);\n } else {\n loadBalancerBuilder_.setMessage(value);\n }\n }\n stepInfoCase_ = 16;\n return this;\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo getLoadBalancer() {\n if (loadBalancerBuilder_ == null) {\n if (stepInfoCase_ == 16) {\n return (com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.getDefaultInstance();\n } else {\n if (stepInfoCase_ == 16) {\n return loadBalancerBuilder_.getMessage();\n }\n return com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.getDefaultInstance();\n }\n }", "com.google.container.v1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder();", "public void addBrick(int x, int y, int w, int h)\n {\n Brick b = new Brick(x, y, w, h);\n bricks.add(b);\n }", "@Override\r\n\tpublic boolean addBankAccount(String name, String balance) {\n\t\treturn false;\r\n\t}", "private void addBluetoothUsage() {\n BatterySipper bs = new BatterySipper(BatterySipper.DrainType.BLUETOOTH, null, 0);\n mBluetoothPowerCalculator.calculateRemaining(bs, mStats, mRawRealtimeUs, mRawUptimeUs,\n mStatsType);\n aggregateSippers(bs, mBluetoothSippers, \"Bluetooth\");\n if (bs.totalPowerMah > 0) {\n mUsageList.add(bs);\n }\n }", "private void mergeAddFriendBToServer(AddFriend.BToServer value) {\n if (reqCase_ == 2 &&\n req_ != AddFriend.BToServer.getDefaultInstance()) {\n req_ = AddFriend.BToServer.newBuilder((AddFriend.BToServer) req_)\n .mergeFrom(value).buildPartial();\n } else {\n req_ = value;\n }\n reqCase_ = 2;\n }", "public AbstractLoadBalancer lb() {\n return lb;\n }", "@Override\n\tvoid addRedBroder() {\n\t\t\n\t}", "public com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo.Builder\n getLoadBalancerBuilder() {\n return getLoadBalancerFieldBuilder().getBuilder();\n }", "public java.lang.String getLoadBalancerName() {\r\n return loadBalancerName;\r\n }", "@WebMethod(operationName = \"addBank\")\n public Bank addBank(@WebParam(name = \"bic\") String bic, @WebParam(name = \"name\") String name) {\n return ejbRef.addBank(bic, name);\n }", "public CreateServiceRequest withLoadBalancers(java.util.Collection<LoadBalancer> loadBalancers) {\n setLoadBalancers(loadBalancers);\n return this;\n }", "private static void addBoatToList(Boat b) {\n\t\tboats.add(b);\n\t}", "@SuppressWarnings(\"unchecked\")\n @Test\n public void switchPolicy() {\n List<EquivalentAddressGroup> grpclbResolutionList =\n createResolvedServerAddresses(true, false, true);\n Attributes grpclbResolutionAttrs = Attributes.newBuilder()\n .set(GrpclbConstants.ATTR_LB_POLICY, LbPolicy.GRPCLB).build();\n deliverResolvedAddresses(grpclbResolutionList, grpclbResolutionAttrs);\n\n assertSame(LbPolicy.GRPCLB, balancer.getLbPolicy());\n assertNull(balancer.getDelegate());\n verify(helper).createOobChannel(eq(grpclbResolutionList.get(0)), eq(lbAuthority(0)));\n assertEquals(1, fakeOobChannels.size());\n ManagedChannel oobChannel = fakeOobChannels.poll();\n verify(mockLbService).balanceLoad(lbResponseObserverCaptor.capture());\n\n // Switch to PICK_FIRST\n List<EquivalentAddressGroup> pickFirstResolutionList =\n createResolvedServerAddresses(true, false, true);\n Attributes pickFirstResolutionAttrs = Attributes.newBuilder()\n .set(GrpclbConstants.ATTR_LB_POLICY, LbPolicy.PICK_FIRST).build();\n verify(pickFirstBalancerFactory, never()).newLoadBalancer(any(Helper.class));\n assertEquals(1, lbRequestObservers.size());\n StreamObserver<LoadBalanceRequest> lbRequestObserver = lbRequestObservers.poll();\n\n verify(lbRequestObserver, never()).onCompleted();\n assertFalse(oobChannel.isShutdown());\n deliverResolvedAddresses(pickFirstResolutionList, pickFirstResolutionAttrs);\n\n verify(pickFirstBalancerFactory).newLoadBalancer(same(helper));\n // Only non-LB addresses are passed to the delegate\n verify(pickFirstBalancer).handleResolvedAddressGroups(\n eq(Arrays.asList(pickFirstResolutionList.get(1))), same(pickFirstResolutionAttrs));\n assertSame(LbPolicy.PICK_FIRST, balancer.getLbPolicy());\n assertSame(pickFirstBalancer, balancer.getDelegate());\n // GRPCLB connection is closed\n verify(lbRequestObserver).onCompleted();\n assertTrue(oobChannel.isShutdown());\n\n // Switch to ROUND_ROBIN\n List<EquivalentAddressGroup> roundRobinResolutionList =\n createResolvedServerAddresses(true, false, false);\n Attributes roundRobinResolutionAttrs = Attributes.newBuilder()\n .set(GrpclbConstants.ATTR_LB_POLICY, LbPolicy.ROUND_ROBIN).build();\n verify(roundRobinBalancerFactory, never()).newLoadBalancer(any(Helper.class));\n deliverResolvedAddresses(roundRobinResolutionList, roundRobinResolutionAttrs);\n\n verify(roundRobinBalancerFactory).newLoadBalancer(same(helper));\n // Only non-LB addresses are passed to the delegate\n verify(roundRobinBalancer).handleResolvedAddressGroups(\n eq(roundRobinResolutionList.subList(1, 3)), same(roundRobinResolutionAttrs));\n assertSame(LbPolicy.ROUND_ROBIN, balancer.getLbPolicy());\n assertSame(roundRobinBalancer, balancer.getDelegate());\n\n // Special case: if all addresses are loadbalancers, use GRPCLB no matter what the NameResolver\n // says.\n grpclbResolutionList = createResolvedServerAddresses(true, true, true);\n grpclbResolutionAttrs = Attributes.newBuilder()\n .set(GrpclbConstants.ATTR_LB_POLICY, LbPolicy.PICK_FIRST).build();\n deliverResolvedAddresses(grpclbResolutionList, grpclbResolutionAttrs);\n\n assertSame(LbPolicy.GRPCLB, balancer.getLbPolicy());\n assertNull(balancer.getDelegate());\n verify(helper, times(2)).createOobChannel(eq(grpclbResolutionList.get(0)), eq(lbAuthority(0)));\n verify(helper, times(2)).createOobChannel(any(EquivalentAddressGroup.class), any(String.class));\n assertEquals(1, fakeOobChannels.size());\n oobChannel = fakeOobChannels.poll();\n verify(mockLbService, times(2)).balanceLoad(lbResponseObserverCaptor.capture());\n\n // Special case: PICK_FIRST is the default\n pickFirstResolutionList = createResolvedServerAddresses(true, false, false);\n pickFirstResolutionAttrs = Attributes.EMPTY;\n verify(pickFirstBalancerFactory).newLoadBalancer(any(Helper.class));\n assertFalse(oobChannel.isShutdown());\n deliverResolvedAddresses(pickFirstResolutionList, pickFirstResolutionAttrs);\n\n verify(pickFirstBalancerFactory, times(2)).newLoadBalancer(same(helper));\n // Only non-LB addresses are passed to the delegate\n verify(pickFirstBalancer).handleResolvedAddressGroups(\n eq(pickFirstResolutionList.subList(1, 3)), same(pickFirstResolutionAttrs));\n assertSame(LbPolicy.PICK_FIRST, balancer.getLbPolicy());\n assertSame(pickFirstBalancer, balancer.getDelegate());\n // GRPCLB connection is closed\n assertTrue(oobChannel.isShutdown());\n }", "Airbnb addAirbnb(Airbnb airbnb);", "public void addBalance(long balance) {\r\n this.balance += balance;\r\n }", "@Override\n public void onAddBreadRaised() {\n }", "public LinkLoadbalance(LinkPort srcPort, List<LinkPort> dstPorts){\n this.srcPort = srcPort;\n this.dstPorts.addAll(dstPorts);\n }", "public void receiveResultloadBalancer(\n loadbalance.LoadBalanceStub.LoadBalancerResponse result\n ) {\n }", "public void addBrew(Brew b) {\r\n\t\tbrews.add(b);\r\n\t\tb.setRecipe(this);\r\n\t}", "@Override\n public void addMenuBalance() {\n mMenuBalanceRepository.addMenuBalance(new Callback<MenuBalance>() {\n @Override\n public void onSuccess(MenuBalance data) {\n mView.addMenuBalanceSuccess(data);\n }\n\n @Override\n public void onFailed(String errorMsg) {\n mView.addMenuBalanceFailure(errorMsg);\n }\n });\n }", "public static void addBannedHeader(String header) {\n bannedHeaders.add(header);\n }", "@Override\n public void releasePermit() {\n balancer.release();\n }", "public void setUpBalancerPage() {\n\t\t// Reactant Side\n\t\t/* Creates the initial set of textfields that allows for the user to input the data required \n\t\tfor the reactant side */\n\t\treactantTextAmt.add(SpeedFormat.textField(new TextField(), balancerPage, 10, 150, 0, 35, \"#\"));\n\t\treactant.add(SpeedFormat.textField(new TextField(), balancerPage, 50, 150, 0, 100, \"Formula\"));\n\t\treactantMol.add(SpeedFormat.textField(new TextField(), balancerPage, 10, 185, 0, 140, \"Moles\"));\t\t\n\n\t\tButton addReactant = SpeedFormat.button(new Button(), balancerPage, 10, 80, \"Add\", \"\");\n\t\t\n\t\t/* Creates an add button that adds more sets of textfields that allow for \n\t\tthe user to input the data required for the reactant side */\n\t\taddReactant.setOnAction(action -> {\n\t\t\tif (intReactant < 5) {\n\t\t\t\treactantTextAmt.add(SpeedFormat.textField(new TextField(), balancerPage, 10 + (intReactant * 165), 150, 35, \"#\"));\n\t\t\t\treactant.add(SpeedFormat.textField(new TextField(), balancerPage, 50 + (intReactant * 165), 150, 100, \"Formula\"));\n\t\t\t\treactantMol.add(SpeedFormat.textField(new TextField(), balancerPage, 10 + (intReactant * 165), 185, 140, \"Moles\"));\n\n\t\t\t\tplusReactant.add(SpeedFormat.text(new Text(), balancerPage, 155 + ((intReactant - 1) * 165), 170, \"+\", \"\"));\n\t\t\t\tplusReactant.get(plusReactant.size() - 1).setFont(Font.font(\"verdana\", FontPosture.REGULAR, 20));\n\n\t\t\t\tintReactant++;\n\t\t\t}\n\t\t});\n\n\t\t// Creates a remove button that removes the sets of textfields from the reactant side\n\t\tButton removeReactant = SpeedFormat.button(new Button(), balancerPage, 60, 80, \"Remove\", \"\");\n\n\t\tremoveReactant.setOnAction(action -> {\n\t\t\tif (intReactant > 1) {\n\t\t\t\tremove();\n\t\t\t\tbalancerPage.getChildren().removeAll(reactantTextAmt.get(reactantTextAmt.size() - 1), reactant.get(reactant.size() - 1), \n\t\t\t\t\t\treactantMol.get(reactantMol.size() - 1), plusReactant.get(plusReactant.size() - 1));\n\t\t\t\treactantTextAmt.remove(reactantTextAmt.size() - 1);\n\t\t\t\treactant.remove(reactant.size() - 1);\n\t\t\t\treactantMol.remove(reactantMol.size() - 1);\n\t\t\t\tplusReactant.remove(plusReactant.size() - 1);\n\t\t\t\tintReactant--;\n\t\t\t}\n\t\t});\n\n\t\t// Creates the Equation Arrow Text\n\t\tText equationArrow = SpeedFormat.text(new Text(), balancerPage, 50, 290, \"↓\", \"\");\n\t\tequationArrow.setFont(Font.font(\"verdana\", FontWeight.BOLD, FontPosture.REGULAR, 40));\n\n\t\t// Product Side\n\t\t/* Creates the initial set of textfields that allows for the user to input the data required \n\t\tfor the product side */\n\t\tproductTextAmt.add(SpeedFormat.textField(new TextField(), balancerPage, 10, 400, 35, \"#\"));\n\t\tproduct.add(SpeedFormat.textField(new TextField(), balancerPage, 50, 400, 100, \"Formula\"));\n\t\tproductMol.add(SpeedFormat.textField(new TextField(), balancerPage, 10, 435, 140, \"Moles\"));\n\n\t\t/* Creates an add button that adds more sets of textfields that allow for \n\t\tthe user to input the data required for the product side */\n\t\tButton addProduct = SpeedFormat.button(new Button(), balancerPage, 10, 330, \"Add\", \"\");\n\n\t\taddProduct.setOnAction(action -> {\n\t\t\tif (intProduct < 5) {\n\t\t\t\tproductTextAmt.add(SpeedFormat.textField(new TextField(), balancerPage, 10 + (intProduct * 165), 400, 35, \"#\"));\n\t\t\t\tproduct.add(SpeedFormat.textField(new TextField(), balancerPage, 50 + (intProduct * 165), 400, 100, \"Formula\"));\n\t\t\t\tproductMol.add(SpeedFormat.textField(new TextField(), balancerPage, 10 + (intProduct * 165), 435, 140, \"Moles\"));\n\n\t\t\t\tplusProduct.add(SpeedFormat.text(new Text(), balancerPage, 155 + ((intProduct - 1) * 165), 420, \"+\", \"\"));\n\t\t\t\tplusProduct.get(plusProduct.size() - 1).setFont(Font.font(\"verdana\", FontPosture.REGULAR, 20));\n\n\t\t\t\tintProduct++;\n\t\t\t}\n\t\t});\n\n\t\t// Creates a remove button that removes the sets of textfields from the product side\n\t\tButton removeProduct = SpeedFormat.button(new Button(), balancerPage, 60, 330, \"Remove\", \"\");\n\n\t\tremoveProduct.setOnAction(action -> {\n\t\t\tif (intProduct > 1) {\n\t\t\t\tremove();\n\t\t\t\tbalancerPage.getChildren().removeAll(productTextAmt.get(productTextAmt.size() - 1), product.get(product.size() - 1), \n\t\t\t\t\t\tproductMol.get(productMol.size() - 1), plusProduct.get(plusProduct.size() - 1));\n\t\t\t\tproductTextAmt.remove(productTextAmt.size() - 1);\n\t\t\t\tproduct.remove(product.size() - 1);\n\t\t\t\tproductMol.remove(productMol.size() - 1);\n\t\t\t\tplusProduct.remove(product.size() - 1);\n\t\t\t\tintProduct--;\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Creates the calculated texts objects\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\trMol[i] = SpeedFormat.text(new Text(), balancerPage, 50 + (i * 165), 230, \"\", \"\");\n\t\t\trGrams[i] = SpeedFormat.text(new Text(), balancerPage, 50 + (i * 165), 250, \"\", \"\");\n\t\t\tpMol[i] = SpeedFormat.text(new Text(), balancerPage, 50 + (i * 165), 480, \"\", \"\");\n\t\t\tpGrams[i] = SpeedFormat.text(new Text(), balancerPage, 50 + (i * 165), 500, \"\", \"\");\n\t\t}\n\t\t\n\t\t/* Creates a button that will calculate the limiting moles and sets the end text \n\t\tto the moles and grams of a given formula */\n\t\tButton go = SpeedFormat.button(new Button(), balancerPage, 10, 520, \"Go\", \"\");\t\n\t\t\n\t\tgo.setOnAction(action -> {\n\t\t\treset();\n\t\t\tfor(int i = 0; i < intReactant; i++) {\n\t\t\t\tif(!intChecker(reactantTextAmt.get(i).getText()).equals(\"\")) {\n\t\t\t\t\treactantAmt[i] = Integer.parseInt(intChecker(reactantTextAmt.get(i).getText()));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < intReactant; i++) {\n\t\t\t\tChemical chemR = new Chemical(reactant.get(i).getText());\n\t\t\t\treactantMM[i] = chemR.getMolarMass();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < intReactant; i++) {\n\t\t\t\tif(!doubleChecker(reactantMol.get(i).getText()).equals(\"\")) {\n\t\t\t\t\treactantMoles[i] = Double.parseDouble(doubleChecker(reactantMol.get(i).getText()));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j = 0; j < intProduct; j++) {\n\t\t\t\tif(!intChecker(productTextAmt.get(j).getText()).equals(\"\")) {\n\t\t\t\t\tproductAmt[j] = Integer.parseInt(intChecker(productTextAmt.get(j).getText()));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j = 0; j < intProduct; j++) {\n\t\t\t\tChemical chemP = new Chemical(product.get(j).getText());\n\t\t\t\tproductMM[j] = chemP.getMolarMass();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j = 0; j < intProduct; j++) {\n\t\t\t\tif(!doubleChecker(productMol.get(j).getText()).equals(\"\")) {\n\t\t\t\t\tproductMoles[j] = Double.parseDouble(doubleChecker(productMol.get(j).getText()));\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tmolCalculator();\n\t\t\tend();\n\t\t});\n\t\t\n\t\t// Creates a button that will clear all of the textfields\n\t\tButton clear = SpeedFormat.button(new Button(), balancerPage, 50, 520, \"Clear\", \"\");\t\n\t\t\n\t\tclear.setOnAction(action -> {\n\t\t\treset();\n\t\t\tfor(int i = 0; i < intReactant; i++) {\n\t\t\t\treactantTextAmt.get(i).clear();\n\t\t\t\treactant.get(i).clear();\n\t\t\t\treactantMol.get(i).clear();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < intProduct; i++) {\n\t\t\t\tproductTextAmt.get(i).clear();\n\t\t\t\tproduct.get(i).clear();\n\t\t\t\tproductMol.get(i).clear();\n\t\t\t}\n\t\t});\n\t}", "private void setAddFriendBToServer(\n AddFriend.BToServer.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 2;\n }", "@Override\r\n\tpublic void addclient(Client client) {\n\t\t\r\n\t}", "public Builder mergeAddFriendBToServer(AddFriend.BToServer value) {\n copyOnWrite();\n instance.mergeAddFriendBToServer(value);\n return this;\n }", "public Builder setAddFriendBToServer(\n AddFriend.BToServer.Builder builderForValue) {\n copyOnWrite();\n instance.setAddFriendBToServer(builderForValue);\n return this;\n }", "Client addClient(Client client) throws BaseException;", "@RibbonClient(value = \"user-client\") // load balancer\n@FeignClient(value = \"user-client\", fallback = UserClientFallback.class)\npublic interface UserClient {\n\n @GetMapping(\"/user\")\n User getUser();\n\n}", "@Path(\"bank\")\n @Service({\"bank\"})\n public ResponseMessage addBank(Bank bank) {\n return bsi.addBank(bank);\n }", "@Override\n public void addLabelable(Corpus corp, cvac.Labelable[] addme, Ice.Current __current)\n {\n CorpusI cs = checkValidityAndLookup( corp );\n if (null==cs)\n {\n logger.log(Level.WARNING, \"nothing known about corpus {0}\", corp.name);\n return;\n }\n if ( cs.isImmutableMirror || !cs.localMirrorExists())\n {\n logger.log(Level.WARNING, \"corpus {0} is immutabel or still loading, cannot add labels\", cs.name);\n }\n// cs.addSample( addme );\n }", "void addAdvert(Advert advert);", "void addBalance(double amount) {\n\t\tbalance += amount;\n\t}", "public void addModule(IPModule module);", "boolean hasHttpLoadBalancing();", "public LbInstances addLbInstances(LbInstances lbInstances)\n throws JNCException {\n this.lbInstances = lbInstances;\n insertChild(lbInstances, childrenNames());\n return lbInstances;\n }", "void addBrick(int x, int y, int w, int h)\n {\n Brick b = new Brick(this, x, y, w, h);\n sprites.add(b);\n }", "@Override\n public void run() {\n try {\n while (true) {\n finalLB.addClient();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "void addAdvertCallback(AdvertCallback callback);", "public void add(AddrBean ad) {\n\t\taddrlist.add(ad);\n\t}", "@Override\n\tpublic void createBanque(Banque b) {\n\t\t\n\t}", "public PassiveLoadBalancer(LoadBalancerConnectionHandler connectionHandler,\n\t\t\tSet<RemoteLoadBalancer> remoteLoadBalancers, Set<Server> servers, int defaultTimeoutMillis) {\n\t\tif (remoteLoadBalancers == null || remoteLoadBalancers.isEmpty())\n\t\t\tthrow new IllegalArgumentException(\"Remote load balancer set cannot be null or empty.\");\n\t\tif (servers == null || servers.isEmpty())\n\t\t\tthrow new IllegalArgumentException(\"Servers set cannot be null or empty.\");\n\t\tif (defaultTimeoutMillis < 1)\n\t\t\tthrow new IllegalArgumentException(\"Default timeout value must be a positive, non-zero value.\");\n\n\t\tthis.connectionHandler = connectionHandler;\n\t\tthis.remoteLoadBalancers = remoteLoadBalancers;\n\t\tthis.servers = servers;\n\t\tthis.defaultTimeoutMillis = defaultTimeoutMillis;\n\t}", "@Override\n\tpublic Banner addBanner(Banner banner){\n\t\treturn bannerRepository.save(banner);\n\t}", "public void addBcc(String bcc) {\n if(this.bcc == null)\n this.bcc = new HashSet<>();\n if(StringUtils.hasLength(bcc))\n this.bcc.add(bcc);\n }", "BOp createBOp();", "@Override\n\tpublic boolean addBanIP(String ip) throws Exception {\n\t\treturn false;\n\t}", "void addLink(BlockChainLink link);", "public java.util.List<LoadBalancer> getLoadBalancers() {\n if (loadBalancers == null) {\n loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>();\n }\n return loadBalancers;\n }", "public java.util.List<LoadBalancer> getLoadBalancers() {\n if (loadBalancers == null) {\n loadBalancers = new com.amazonaws.internal.SdkInternalList<LoadBalancer>();\n }\n return loadBalancers;\n }", "public void customize(IBond bond, Object nodeToAdd) throws Exception {\n\t\t// nothing to do\n\t}", "void addOverLoad(SubroutineDescriptor subroutineDescriptor) {\n this.overloads.add(subroutineDescriptor);\n }", "public void registerANewBoat(Boat boat){boats.add(boat);}", "@Override\n public Pane getPage() {\n \t\treturn balancerPage;\n }", "public void addNode(NodeImpl node) {\n supervisedNodes.add(node);\n \n colorNodes();\n shortenNodeLabels();\n colorNodeLabels();\n colorNodeLabelBorders();\n }", "@Override\r\n\tpublic void addMe() {\n\t\t\r\n\t}", "@Override\n public Scene getScene() {\n \t\treturn balancer;\n }", "void add(RiceCooker riceCooker);", "public void addAgent(String layer, Agent a)\n/* 170: */ {\n/* 171:240 */ this.mapPanel.addAgent(layer, a);\n/* 172: */ }", "public void addSavingsBalance(BigDecimal toAdd) {\r\n setSavingsBalance(savingsBalance.add(toAdd));\r\n }", "@Override\n\tpublic Boolean loadBalance(BalanceDto balance) throws Exception {\n\t\tBoolean result = BalanceLoader.loadBalance();\n\t\t\n\t\tif(result) {\n\t\t\t\n\t\t\tbalance.setType(AccountTransactionType.ADD);\n\t\t\t\n\t\t\treturn addSubtractBalance(balance);\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public ReferenceBook[] addReferenceBook(ReferenceBook[] listRB, int index) throws IOException {\n\n if (index > 100) {\n throw new ArithmeticException(\"the number book higher default number\");\n } else {\n ReferenceBook rb = new ReferenceBook();\n rb.inputInformation();\n listRB[index] = rb;\n }\n\n return listRB;\n }" ]
[ "0.56708485", "0.562759", "0.53226256", "0.5269672", "0.5253811", "0.52448136", "0.5225676", "0.52211255", "0.52167404", "0.5176368", "0.5169182", "0.5147914", "0.5119277", "0.51104915", "0.50937927", "0.5065978", "0.5065583", "0.50628316", "0.50538737", "0.5002204", "0.4989072", "0.49689412", "0.49669942", "0.4958062", "0.4953886", "0.4944256", "0.49262807", "0.4917428", "0.49122843", "0.49116558", "0.49030885", "0.4893476", "0.48850602", "0.48697668", "0.48511177", "0.48507398", "0.48507398", "0.48297244", "0.4823319", "0.48233005", "0.48203737", "0.48110664", "0.4805649", "0.47735456", "0.47692987", "0.47664225", "0.47652343", "0.47576606", "0.47169", "0.4709213", "0.47072905", "0.47004756", "0.46858507", "0.46834287", "0.46792474", "0.46791714", "0.46645263", "0.4659503", "0.4650621", "0.46414652", "0.46399105", "0.46344408", "0.46339622", "0.46333626", "0.4632038", "0.46250167", "0.46059233", "0.45994595", "0.4593819", "0.45919725", "0.45824578", "0.45808882", "0.45782545", "0.4564361", "0.4560216", "0.4559861", "0.45576832", "0.45514023", "0.45495713", "0.45302898", "0.45259422", "0.45237082", "0.4516864", "0.45135975", "0.45022953", "0.4499511", "0.44900903", "0.44900903", "0.44891974", "0.44891024", "0.44790414", "0.44736353", "0.44568905", "0.44420162", "0.4440954", "0.44339967", "0.44328845", "0.44319037", "0.44285715", "0.44275147" ]
0.6788402
0
Optional. Map minka's service start to a consumer
public EventMapper onActivation(final Runnable runnable) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).putRunnable(MappingEvent.activation, runnable); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addStartListener(Consumer<JvmThread> consumer) {\n startListeners.add(consumer);\n }", "void externalProcessStarted(String command, String consumer);", "public Ice.AsyncResult begin_startService(String service, java.util.Map<String, String> __ctx, Callback_ServiceManager_startService __cb);", "public interface ConsumerService extends AbstractService<Consumer> {\n String sayHello(String name);\n}", "public interface MessageServiceInjector {\n public Consumer getConsumer() ;\n}", "public void start() {\n try {\n consumer.start();\n } catch (MQClientException e) {\n e.printStackTrace();\n }\n System.out.println(\"Consumer Started.\");\n }", "public Ice.AsyncResult begin_startService(String service, java.util.Map<String, String> __ctx, Ice.Callback __cb);", "public void configure() {\n\t\tfrom(\"seda:vxf.onboard?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"onBoardVxFToMANOProvider\") //returns exception or nothing\n\t\t.log(\"VNFD Onboarded Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"VNFD Onboarding failed!\");\n\n\t\tfrom(\"seda:nsd.onboard?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"onBoardNSDToMANOProvider\") //returns exception or nothing\n\t\t.log(\"NSD Onboarded Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NSD Onboarding failed!\");\t\t\n\n\t\t\n\t\tfrom(\"seda:nsd.deploy?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"deployNSDToMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS deployed Successfully\").stop()\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS deployment failed!\").stop();\t\t\n\n\t\tfrom(\"seda:nsd.deployment.complete?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"terminateNSFromMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS completed Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS completion failed!\").stop();\n\n\t\tfrom(\"seda:nsd.deployment.delete?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"deleteNSFromMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS deleted Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS deletion failed!\").stop();\n\t\t\n\t\t//from(\"timer://checkAndDeployTimer?delay=2m&period=120000\").bean(new MANOController(),\"checkAndDeployExperimentToMANOProvider\").stop();\n\t\t//from(\"timer://checkAndTerminateTimer?delay=2m&period=120000\").bean(new MANOController(),\"checkAndTerminateExperimentToMANOProvider\").stop();\n\t\t\n\t\tfrom(\"timer://checkAndUpdateRunningDeploymentDescriptors?delay=1m&period=120000\").bean(MANOController.class,\"checkAndUpdateRunningDeploymentDescriptors\").stop();\n\t\t\n\t}", "public Ice.AsyncResult begin_startService(String service, Callback_ServiceManager_startService __cb);", "public void start()\n/* 354: */ {\n/* 355:434 */ onStartup();\n/* 356: */ }", "public interface ProducerService {\n}", "RequestSender onInform(Consumer<Message> consumer);", "private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}", "public Ice.AsyncResult begin_startService(String service, Ice.Callback __cb);", "@Override\n\tpublic void onReceive(Context arg0, Intent arg1) {\n\t\tif(arg1==null || arg1.getAction()==null)\n\t\t\treturn;\n\t\tif (arg1.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {\n\t\t\tIntent startIntent = new Intent();\n\t\t\tstartIntent.setClass(arg0, MointorServices.class);\n\t\t\targ0.startService(startIntent);\n\t\t}\n\t}", "public void service() {\n\t}", "public Ice.AsyncResult begin_startService(String service, java.util.Map<String, String> __ctx);", "public void bootConsumer() throws Exception {\n\t\tmain = new Main();\r\n\t\t// bind MyBean into the registry\r\n\t\tmain.bind(\"foo\", new AsimpleBean());\r\n\t\t// add routes\r\n\t\tmain.addRouteBuilder(new SubRouteBuilder());\r\n\r\n\t\t// add event listener\r\n\t\tmain.addMainListener(new SubEvents());\r\n\t\t// run until you terminate the JVM\r\n\t\tSystem.out.println(\"Starting Camel. Use ctrl + c to terminate the JVM.\\n\");\r\n\t\tmain.run();\r\n\t}", "RequestSender onRefuse(Consumer<Message> consumer);", "public void handleStart()\n {\n }", "@Override\n\tpublic void streamingServiceStarted(int arg0) {\n\t\t\n\t}", "public StartedService() {\n super(\"StartedService\");\n }", "@Override\n\tprotected void doStart() {\n\t\tAssert.state(!this.consumerBatchEnabled || getMessageListener() instanceof BatchMessageListener\n\t\t\t\t|| getMessageListener() instanceof ChannelAwareBatchMessageListener,\n\t\t\t\t\"When setting 'consumerBatchEnabled' to true, the listener must support batching\");\n\t\tcheckListenerContainerAware();\n\t\tsuper.doStart();\n\t\tsynchronized (this.consumersMonitor) {\n\t\t\tif (this.consumers != null) {\n\t\t\t\tthrow new IllegalStateException(\"A stopped container should not have consumers\");\n\t\t\t}\n\t\t\tint newConsumers = initializeConsumers();\n\t\t\tif (this.consumers == null) {\n\t\t\t\tlogger.info(\"Consumers were initialized and then cleared \" +\n\t\t\t\t\t\t\"(presumably the container was stopped concurrently)\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (newConsumers <= 0) {\n\t\t\t\tif (logger.isInfoEnabled()) {\n\t\t\t\t\tlogger.info(\"Consumers are already running\");\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tSet<AsyncMessageProcessingConsumer> processors = new HashSet<AsyncMessageProcessingConsumer>();\n\t\t\tfor (BlockingQueueConsumer consumer : this.consumers) {\n\t\t\t\tAsyncMessageProcessingConsumer processor = new AsyncMessageProcessingConsumer(consumer);\n\t\t\t\tprocessors.add(processor);\n\t\t\t\tgetTaskExecutor().execute(processor);\n\t\t\t\tif (getApplicationEventPublisher() != null) {\n\t\t\t\t\tgetApplicationEventPublisher().publishEvent(new AsyncConsumerStartedEvent(this, consumer));\n\t\t\t\t}\n\t\t\t}\n\t\t\twaitForConsumersToStart(processors);\n\t\t}\n\t}", "public void setConsumer(Consumer consumer) {\n this.consumer = consumer;\n }", "public Ice.AsyncResult begin_startService(String service);", "void onServiceBegin(int taskCode);", "Consumer getConsumer();", "public boolean startService_async(AMI_ServiceManager_startService __cb, String service, java.util.Map<String, String> __ctx);", "@Override // io.reactivex.functions.Consumer\n public void accept(Disposable disposable) {\n StartRegistrationPresenterImpl.access$handleRequestStarted(this.a);\n }", "public void beginLoadingService(MVCCallback<MVCService> onServiceLoadedCallback);", "interface Consumer {\n /**\n * Consume a message.\n * \n * @param entry\n * A log entry converted to hash.\n */\n public void consume(Map<String, Object> entry);\n\n /**\n * Shutdown the consumer thread, waiting for it to finish.\n */\n public void shutdown();\n}", "@Override\r\n public void onStart(Intent intent, int startId) {\n }", "public interface AutoServiceRunningCallBack {\n void call();\n}", "public void onStart() {\n Configuration curatorDiscoveryConf = Configuration.root().getConfig(\"curator.service.discovery\");\n\n if (curatorDiscoveryConf == null) {\n Logger.info(\"Curator Discovery settings not found.\");\n } else {\n serviceName = curatorDiscoveryConf.getString(\"name\", \"Play2CuratorService\");\n serviceDescription = curatorDiscoveryConf.getString(\"description\", \"Play2 Curator Service\");\n servicePath = curatorDiscoveryConf.getString(\"path\", \"/play2-curator-service-discovery-plugin\");\n autoRegister = curatorDiscoveryConf.getBoolean(\"autoregister\", Boolean.TRUE);\n uriSpecParam = curatorDiscoveryConf.getString(\"uri.spec\", \"{scheme}://{address}:{port}\");\n uriSpecSslParam = curatorDiscoveryConf.getString(\"ssl.uri.spec\", \"{scheme}://{address}:{ssl-port}\");\n\n Logger.info(\"CuratorServiceDiscoveryPlugin Settings:\");\n Logger.info(\" * serviceName: \" + serviceName);\n Logger.info(\" * serviceDescription: \" + serviceDescription);\n Logger.info(\" * servicePath: \" + servicePath);\n Logger.info(\" * autoRegister: \" + autoRegister);\n Logger.info(\" * uriSpec: \" + uriSpecParam);\n Logger.info(\" * uriSpecSsl: \" + uriSpecSslParam);\n\n zooServers = curatorDiscoveryConf.getString(\"zooServers\", \"localhost:2181\");\n Logger.info(\" * zooKeeper servers: \" + zooServers);\n\n if (zooServers.toLowerCase().contains(\"mock\")) {\n try {\n mockZooKeeper = new TestingServer(2181);\n zooServers = mockZooKeeper.getConnectString();\n Logger.info(\"Mock ZooKeeper started at: \" + zooServers);\n } catch (Exception e) {\n Logger.error(\"Could not start mock ZooKeeper server on port 2181: \" + e.getMessage());\n return;\n }\n }\n\n Logger.info(\"Curator Discovery settings found. ZooKeeper servers: \" + zooServers);\n if (autoRegister) {\n int port = 0;\n String sPort = Configuration.root().getString(\"http.port\");\n if (sPort != null) {\n try {\n port = Integer.parseInt(sPort);\n Logger.info(\" * port: \" + port);\n } catch (NumberFormatException nfe) {\n Logger.debug(\"port is not valid\");\n }\n }\n\n sPort = Configuration.root().getString(\"https.port\");\n int sslPort = 0;\n if (sPort != null) {\n try {\n sslPort = Integer.parseInt(sPort);\n Logger.info(\" * sslPort: \" + sslPort);\n } catch (NumberFormatException nfe) {\n Logger.debug(\"ssl-port is not valid\");\n }\n }\n if (port == 0 && sslPort == 0) {\n Logger.error(\"Can't register service. Port / sslPort not set\");\n } else {\n register(serviceName, serviceDescription, port, sslPort);\n }\n }\n }\n }", "public void startService(String service, java.util.Map<String, String> __ctx)\r\n throws AlreadyStartedException,\r\n NoSuchServiceException;", "@Override\n public void onStart(Intent intent, int startid) {\n }", "public void startService() {\r\n Log.d(LOG, \"in startService\");\r\n startService(new Intent(getBaseContext(), EventListenerService.class));\r\n startService(new Intent(getBaseContext(), ActionService.class));\r\n getListenerService();\r\n\r\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n //开机启动\n if(action.equals(\"android.intent.action.BOOT_COMPLETED\")){\n// Intent intent0 = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());\n// intent0.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n// context.startActivity(intent0);\n Intent intent1 = new Intent(context ,ScanService.class);\n // 启动指定Server\n context.startService(intent1);\n }\n }", "private void startDiscovery() {\n client.startDiscovery(getResources().getString(R.string.service_id), endpointDiscoveryCallback, new DiscoveryOptions(STRATEGY));\n }", "@Override\n\tpublic Service duplexstreamReceiveMsgPluginManagerServiceInit() {\n\t\treturn null;\n\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n context.startService(new Intent(context, MyService.class));\n }", "@Override\n\t\t\t\t\tpublic void onStart(int what, Object[] params) {\n\n\t\t\t\t\t}", "@Override\n public void start() {\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n context.startService(new Intent(context, OnBootUpAlarmScheduler.class));\n }", "@Override\n\tprotected void initAsService() {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Initiating service...\");\n\t\t}\n\t\trunnerFuture = activityRunner.schedule(this::scanModulesHealth, 500, TimeUnit.MILLISECONDS);\n\t}", "public void onServiceRegistered() {\r\n \t// Nothing to do here\r\n }", "public interface Startup {\n\n\t/**\n\t * Starts the application.\n\t * \n\t * @param applicationManager\n\t * Application manager to start.\n\t */\n\tvoid start(ApplicationManager applicationManager);\n\n}", "public OrderRoutingConsumerInterceptor(OrderRoutingConsumer consumer)\n {\n cmiObject = consumer;\n }", "public static void main(String[] args) throws Exception {\n \tServiceConsumer consumer = new ServiceConsumer();\n \t \n while (true ) {\n HelloService helloService = consumer .lookup();\n String result = helloService .sayHello(\"Jack\");\n System. out.println(result );\n Thread. sleep(3000);\n }\n \n }", "@Override\n public void start() {}", "@Override\n\tpublic void onReceive(Context arg0, Intent arg1) {\n\t\tIntent tIntent = new Intent(arg0,WifiTimerService.class); \n //启动指定Service \n\t\targ0.startService(tIntent); \n\t}", "public AmazonPushListenerService() {\n super(AmazonPushListenerService.class.getName());\n // Measure singleton\n if(MEASURE_ACTIVE) {\n getMeasureProcessing();\n }\n }", "public boolean startService_async(AMI_ServiceManager_startService __cb, String service);", "@Override\n\tpublic Service duplexstreamReserveDeliverServiceInit() {\n\t\treturn null;\n\t}", "@Override\n public void onCreate() {\n HandlerThread thread = new HandlerThread(\"ServiceStartArguments\", THREAD_PRIORITY_BACKGROUND);\n thread.start();\n Log.d(\"LOG19\", \"DiscoveryService onCreate\");\n\n this.mLocalBroadCastManager = LocalBroadcastManager.getInstance(this);\n // Get the HandlerThread's Looper and use it for our Handler\n mServiceLooper = thread.getLooper();\n\n mServiceHandler = new ServiceHandler(mServiceLooper);\n }", "@Override\n public void onStart(Intent intent, int startid) {\n Log.d(\"ServiceTest\", \"Service started by user.\");\n }", "@Override\n\tpublic void onReceive(Context arg0, Intent arg1) {\n\t\t\n\t\tIntent intent = new Intent(arg0,AutoUpdateService.class);\n\t\targ0.startService(intent);\n\t}", "@Override\n protected void appStart() {\n }", "private void initService() {\r\n\t}", "@Override\n\tpublic void start() {\n\t}", "@Override\n\tpublic void start() {\n\t}", "@Override\n public void start() { }", "private static void addConsumer()\r\n\t{\r\n\t\tparsers++;\r\n\t\tParser consumer = new Parser();\r\n\t\tconsumer.start();\r\n\t}", "SourceBuilder createService();", "@Override\n public void serviceResolved(ServiceEvent serviceEvent) {\n // Test service info is resolved.\n String[] serviceUrls = serviceEvent.getInfo().getURLs();\n\n logger.info(\"Found kinect service \" + serviceEvent.getInfo().getURLs()[0].toString());\n\n if (serviceUrls.length > 0) {\n logger.info(\"Connecting to kinect service 2\");\n\n try {\n final URL url = new URL(serviceUrls[0]);\n logger.info(\"Connecting to kinect service \" + url.getHost() + \":\" + url.getPort());\n final KinectConnector connector = new KinectConnector(url.getHost(), url.getPort());\n connector.setDeviceListCallback(new DeviceCallback() {\n @Override\n public void onItemsChanged(List<KinectItem> devices) {\n logger.info(\"Found kinect objects\");\n for (KinectItem item : devices) {\n createDevice(url.getHost(), url.getPort(), item.getName().replace(\" \", \"\"));\n }\n connector.stop();\n }\n });\n connector.start();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n }\n }", "@Override\n\tpublic void serviceResolved(ServiceEvent arg0) {\n\n\t}", "public void boot() throws Exception {\n HazelcastInstance hz = Hazelcast.newHazelcastInstance();\n\n // setup the hazelcast idempontent repository which we will use in the route\n HazelcastIdempotentRepository repo = new HazelcastIdempotentRepository(hz, \"camel\");\n\n main = new Main();\n main.enableHangupSupport();\n // bind the hazelcast repository to the name myRepo which we refer to from the route\n main.bind(\"myRepo\", repo);\n // add the route and and let the route be named BAR and use a little delay when processing the files\n main.addRouteBuilder(new FileConsumerRoute(\"BAR\", 100));\n main.run();\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Intent intent1 = new Intent(context, CoreService.class);\n context.startService(intent1);\n Log.d(TAG, \"broadcast receive\");\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Override\n\tpublic Service duplexstreamDeliverMsgPluginManagerServiceInit() {\n\t\treturn null;\n\t}", "@Override\r public SpiServiceResult handle(SpiServiceProvider provider, SpiServiceRequest request) {", "@Override\n\tpublic void onStart(Intent intent, int startId) {\n\t\tSystem.out.println(\"onSTART\");\n\t\thandleIntent(intent);\n\t}", "public InitService() {\n super(\"InitService\");\n }", "@Override\n\tpublic void start() {\n\n\t}", "public void start() {\n if ( this.messageListenerContainer == null ) {\n logger.info( \"Listener container is still not assembled. Doing it now for topic {}\", this.topic );\n init();\n }\n logger.info( \"Starting listener: {}\", this.messageListenerContainer );\n this.messageListenerContainer.start();\n }", "public void service_INIT(){\n }", "@Override\n\tpublic void onStart(Intent intent, int startId) {\n\t\tLog.i(TAG, \"service on start id = \"+startId);\n\t\tsuper.onStart(intent, startId);\n\t}", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\r\n public void publishStart(Publisher publisher) {\n }", "@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n sServer = new BeamServer(NetworkUtils.getWifiIPAddress(), Constants.SERVER_PORT);\n\n return START_STICKY;\n }", "@Override\n protected void onStart() {\n\n try {\n\n executorService = Executors.newFixedThreadPool(1);\n\n cryptoAddressesNetworkServiceDatabaseFactory = new CryptoAddressesNetworkServiceDeveloperDatabaseFactory(pluginDatabaseSystem,pluginId);\n try {\n cryptoAddressesNetworkServiceDatabaseFactory.initializeDatabase();\n } catch (CantInitializeCryptoAddressesNetworkServiceDatabaseException e) {\n e.printStackTrace();\n }\n\n //DAO\n cryptoAddressesNetworkServiceDao = new CryptoAddressesNetworkServiceDao(pluginDatabaseSystem, pluginId);\n\n try {\n cryptoAddressesNetworkServiceDao.initialize();\n } catch (CantInitializeCryptoAddressesNetworkServiceDatabaseException e) {\n e.printStackTrace();\n }\n\n\n\n // change message state to process again first time\n reprocessPendingMessage();\n\n //declare a schedule to process waiting request message\n startTimer();\n\n }catch (Exception e){\n\n System.out.println(\" -- CRYPTO ADDRESS NS START ERROR \" + e.getMessage());\n e.printStackTrace();\n }\n\n\n\n\n }", "public abstract void addServiceListener(PhiDiscoverListener listener);", "@Override\r\n\tpublic void startService(ServerAgentParameters params) {\n\t\tString publishAddress = \"http://192.168.1.100:8080/meterReadingService\";\r\n\t\tlogger.info(\"launching MeterReadingService at address \" + publishAddress + \" ...\");\r\n\t\tMeterReadingServiceImpl meterReadingService = new MeterReadingServiceImpl();\r\n\t\tserviceEndpoint = Endpoint.publish(publishAddress, meterReadingService); // TODO check for java.net.BindException\r\n\t\tif(serviceEndpoint.isPublished()) {\r\n\t\t\tlogger.info(\"MeterReadingService launched successfully.\");\r\n\t\t} else {\r\n\t\t\tlogger.error(\"MeterReadingService could not be launched. Exiting to system\");\r\n\t\t\tSystem.exit(0); // no point in keeping the server agent running when no web service can be initialized\r\n\t\t}\r\n\t}", "public abstract void listen(ServiceConfig serviceConfig) throws IOException;", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t\thandleCommand(intent);\r\n\t}", "public void init() {\n initiateConfig();\n initiateKafkaStuffs();\n log.info(\"Kafka consumer and producer for topic [{}] started.\", topic);\n\n service.submit(() -> {\n while (true) {\n try {\n ConsumerRecords<String, byte[]> records = consumer.poll(3000);\n for (ConsumerRecord<String, byte[]> record : records) {\n log.info(\"Reveive kafka message from topic [{}] with key [{}]\", topic, record.key());\n repository.get(record.key()).offer(record.value());\n accounter.incrementAndGet();\n }\n while (accounter.get() != 0) {\n Thread.sleep(5);\n }\n consumer.commitSync();\n } catch (Exception e) {\n log.warn(\"Something wrong happened during message pulling process\", e);\n consumer.close();\n consumer = null;\n initiateConsumer();\n }\n }\n });\n }", "@Activate\n protected void start(BundleContext bundleContext) throws Exception {\n log.info(\"Service Component is activated\");\n\n // Create Stream Processor Service\n EditorDataHolder.setDebugProcessorService(new DebugProcessorService());\n EditorDataHolder.setSiddhiManager(new SiddhiManager());\n EditorDataHolder.setBundleContext(bundleContext);\n\n serviceRegistration = bundleContext.registerService(EventStreamService.class.getName(),\n new DebuggerEventStreamService(), null);\n }", "private static interface Service {}", "@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}", "@Override public void start() {\n }", "@Override\n\tpublic void onStart(Intent intent, int startId) {\n\t\tsuper.onStart(intent, startId);\n\t\tLog.e(\"androidtalk\", \"service started\") ;\n\t\tSystem.out.println(\"androidtalk-service started\") ;\n\t}", "@Override\n public Subscription addConsumer(ConnectionContext context,\n final ConsumerInfo info) throws Exception {\n if (++consumerCount == maxConsumers + (watchTopicAdvisories ? 1:0)) {\n context.setDontSendReponse(true);\n Executors.newSingleThreadExecutor().execute(new Runnable() {\n public void run() {\n LOG.info(\"Stopping broker on consumer: \" + info.getConsumerId());\n try {\n broker.stop();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }\n return super.addConsumer(context, info);\n }", "@Override\r\n public void start() {\r\n }", "ProgramActuatorService createProgramActuatorService();", "ConferenceScheduleBuilderService startEvent();", "public void startListening();" ]
[ "0.6108471", "0.6056366", "0.59910804", "0.59655416", "0.58945346", "0.5886848", "0.5863084", "0.5797085", "0.5790363", "0.5734282", "0.5718397", "0.5717211", "0.5708058", "0.57060957", "0.570064", "0.5692145", "0.5684307", "0.565887", "0.5651309", "0.56278074", "0.56118286", "0.5603188", "0.55999905", "0.5561866", "0.5545631", "0.5541773", "0.55379206", "0.5536056", "0.5534702", "0.5505797", "0.5477327", "0.5459514", "0.5450758", "0.54475546", "0.54353476", "0.5429568", "0.54213244", "0.53977597", "0.53935117", "0.5387801", "0.5384736", "0.53836995", "0.53831434", "0.5382556", "0.53819853", "0.53718716", "0.537143", "0.5362163", "0.53590256", "0.5355188", "0.535337", "0.534481", "0.5341861", "0.5338564", "0.5331561", "0.53275573", "0.53244597", "0.53056586", "0.5298906", "0.529674", "0.529674", "0.5296561", "0.5287982", "0.52868474", "0.5274649", "0.5270345", "0.5270324", "0.526735", "0.5266395", "0.5257252", "0.5253594", "0.52401686", "0.52354777", "0.52326596", "0.52326524", "0.5232095", "0.5226491", "0.5226491", "0.5226491", "0.5226491", "0.5226491", "0.5226491", "0.5226491", "0.5224061", "0.5214314", "0.52136403", "0.5211508", "0.5208028", "0.520781", "0.52076036", "0.5203247", "0.51972115", "0.51960963", "0.51921576", "0.51915336", "0.51875955", "0.5186649", "0.51838684", "0.5182442", "0.5181385", "0.5180774" ]
0.0
-1
Optional. Map minka's service shutdown to a consumer.
public EventMapper onDeactivation(final Runnable runnable) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).putRunnable(MappingEvent.deactivation, runnable); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface Consumer {\n /**\n * Consume a message.\n * \n * @param entry\n * A log entry converted to hash.\n */\n public void consume(Map<String, Object> entry);\n\n /**\n * Shutdown the consumer thread, waiting for it to finish.\n */\n public void shutdown();\n}", "@Override\n protected void shutdownService() {\n }", "@Override\r\n protected void shutdownInternal() {\r\n service.stop();\r\n }", "void removeConsumer(Consumer consumer);", "public interface ServiceDestroyReceiver {\n void onServiceDestroy();\n}", "public void setConsumer(Consumer consumer) {\n this.consumer = consumer;\n }", "public void shutdown() {\n // no-op\n }", "Consumer getConsumer();", "@Override\n public void shutdown() {\n }", "@Override\n public void shutdown() {\n }", "@Override\n public void shutdown() {\n }", "@Override\n\tpublic void handleShutdownSignal(String consumerTag,\n\t\t\tShutdownSignalException sig) {\n\t\t\n\t}", "public EventMapper onRelease(final Consumer<Set<Duty>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumer(consumer, MappingEvent.release);\n\t\treturn this;\n\t}", "public interface Consumer {\n\n public void createKafkaConsumer() throws Exception;\n\n public void subscribe(String... topic) throws Exception;\n\n\n public Object poll(long timeout);\n\n public void commitSync();\n\n public void close();\n\n}", "public void shutdown()\n {\n // todo\n }", "@Override\n public void shutdown() {\n }", "protected abstract void shutdown();", "public void shutdown()\n {\n // nothing to do here\n }", "@Override\n public void shutdownNow() {\n }", "@Override\r\n\tprotected void shutdownSpecific() {\n\r\n\t}", "public void shutdown() {\n/* 188 */ this.shutdown = true;\n/* */ }", "@Override\n public void shutdown()\n {\n // nothing to do\n }", "protected void onDispose() {\n\t\t/* Shutdown procedure */\n\t\tshutDown();\n\t}", "public synchronized void shutdown() {\n final String actionDescription = \"shutdown\";\n auditLog.logMessage(actionDescription, GovernanceEngineAuditCode.SERVICE_TERMINATING.getMessageDefinition());\n\n if (instance != null) {\n this.instance.shutdown();\n }\n\n auditLog.logMessage(actionDescription, GovernanceEngineAuditCode.SERVICE_SHUTDOWN.getMessageDefinition());\n }", "public void shutdown() {\n }", "public interface ConsumerService extends AbstractService<Consumer> {\n String sayHello(String name);\n}", "@Override\n\tpublic void shutdown() {\n\t}", "@Override\n\tpublic void shutdown() {\n\t}", "@Override\n\t\tpublic void endService() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void shutdown()\n\t{\n\t}", "@Override\n public void receiveMessageShutdown() {\n \n }", "@Override\n\t\tprotected void shutdown() {\n\n\t\t}", "@Override\n\tpublic void shutdown() {\n\t\t\n\t}", "public void shutdown();", "public void shutdown();", "public void shutdown();", "public void shutdown();", "public abstract void shutdown();", "public abstract void shutdown();", "public abstract void shutdown();", "public abstract void shutdown();", "@Override\n\tpublic void shutdown() {\n\n\t}", "public EventMapper onPalletRelease(final Consumer<Set<Pallet>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumerPallet(consumer, MappingEvent.releasePallet);\n\t\treturn this;\n\t}", "@Override\n\tpublic void onDestroy() {\n\t\tshutdown();\n\t\tLog.d(tag,\"service onDestroy\");\n\t\tsuper.onDestroy();\n\t}", "public interface ShutdownManager extends Runnable {\n\n}", "public void stop() {\n closed.set(true);\n consumer.wakeup();\n }", "public void shutdown(IMountShutdownObserver observer) throws RemoteException;", "public void shutdownNow() {\n }", "protected void shutdown() {\n\r\n }", "public void bridge$lambda$0$KswMcuListener() {\n SystemProperties.set(\"sys.powerctl\", \"shutdown\");\n }", "void disconnect_pull_consumer ();", "void registerDisposeHook(IBackgroundWorkerParamDelegate<IServiceContext> disposeCallback);", "public void shutdown()\n {\n log.info(\"Stop accepting new events\");\n\n // Disable realtime hook\n forwardDispatcher.stop();\n\n // Disable writer to disk\n spoolDispatcher.shutdown();\n }", "public void notifyShutdown();", "@Override\n public CompletableFuture<Void> doUnsubscribe(Consumer consumer) {\n CompletableFuture<Void> future = new CompletableFuture<>();\n try {\n if (dispatcher.canUnsubscribe(consumer)) {\n consumer.close();\n return delete();\n }\n future.completeExceptionally(\n new ServerMetadataException(\"Unconnected or shared consumer attempting to unsubscribe\"));\n } catch (BrokerServiceException e) {\n log.warn(\"Error removing consumer {}\", consumer);\n future.completeExceptionally(e);\n }\n return future;\n }", "private void shutdown() {\n log.info(\"Shutting down\");\n kafka.shutdown();\n zookeeper.shutdown();\n }", "void shutdown() throws IOException, SoapException;", "public synchronized void close() {\n\t\tSystem.out.println(\"Closing consumer.\");\n\t\tclosed = true;\n\t\tconsumer.close();\n\t}", "@Override\n public Subscription addConsumer(ConnectionContext context,\n final ConsumerInfo info) throws Exception {\n if (++consumerCount == maxConsumers + (watchTopicAdvisories ? 1:0)) {\n context.setDontSendReponse(true);\n Executors.newSingleThreadExecutor().execute(new Runnable() {\n public void run() {\n LOG.info(\"Stopping broker on consumer: \" + info.getConsumerId());\n try {\n broker.stop();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }\n return super.addConsumer(context, info);\n }", "@Override\r\n\tpublic void shutdown() {\n\t\tunRigisterMBean();\r\n\t}", "@Override\n\tprotected void onShutdown(ApplicationEvent event) {\n\t\t\n\t}", "public CompletableFuture<Void> unregisterEventProcessor() {\n TRACE_LOGGER.info(this.hostContext.withHost(\"Stopping event processing\"));\n\n if (this.unregistered == null) {\n // PartitionManager is created in constructor. If this object exists, then\n // this.partitionManager is not null.\n this.unregistered = this.partitionManager.stopPartitions();\n\n // If we own the executor, stop it also.\n // Owned executor is also created in constructor.\n if (this.weOwnExecutor) {\n this.unregistered = this.unregistered.thenRunAsync(() ->\n {\n // IMPORTANT: run this last stage in the default threadpool!\n // If a task running in a threadpool waits for that threadpool to terminate, it's going to wait a long time...\n\n // It is OK to call shutdown() here even if threads are still running.\n // Shutdown() causes the executor to stop accepting new tasks, but existing tasks will\n // run to completion. The pool will terminate when all existing tasks finish.\n // By this point all new tasks generated by the shutdown have been submitted.\n this.executorService.shutdown();\n\n try {\n this.executorService.awaitTermination(10, TimeUnit.MINUTES);\n } catch (InterruptedException e) {\n throw new CompletionException(e);\n }\n }, ForkJoinPool.commonPool());\n }\n }\n\n return this.unregistered;\n }", "Consumer<VoidMessage> outgoingConsumer();", "@Override\n public boolean release(ResourceConsumer consumer) {\n return false;\n }", "public interface MessageServiceInjector {\n public Consumer getConsumer() ;\n}", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "@Override\n protected void shutDown() {\n }", "@Override\n\tpublic void serviceRemoved(ServiceEvent arg0) {\n\n\t}", "public void shutdown() {\n // For now, do nothing\n }", "public void shutdown() {\n\t\t\n\t}", "protected abstract void doShutdown() throws JMSException;", "@Override\n protected void onStop() {\n if(scheduler != null)\n scheduler.doUnbindService();\n super.onStop();\n }", "@Override\n public void shutDown() {\n }", "public void shutdown() {\n Log.info(Log.FAC_NETMANAGER, formatMessage(\"Shutdown requested\"));\n _run = false;\n if (_periodicTimer != null) _periodicTimer.cancel();\n if (_thread != null) _thread.interrupt();\n if (null != _channel) {\n try {\n setTap(null);\n } catch (IOException io) {\n }\n try {\n _channel.close();\n } catch (IOException io) {\n }\n }\n }", "public Ice.AsyncResult begin_stopService(String service, java.util.Map<String, String> __ctx, Callback_ServiceManager_stopService __cb);", "@Override\n public void shutdown() {\n // Do nothing.\n }", "public Ice.AsyncResult begin_stopService(String service, java.util.Map<String, String> __ctx, Ice.Callback __cb);", "public Consumer getConsumer() {\n return consumer;\n }", "public static <T> ScopeFactory<T> onExit(Consumer<T> consumer) {\n return (T value) -> () -> consumer.accept(value);\n }", "public Ice.AsyncResult begin_stopService(String service, Ice.Callback __cb);", "public void runShutdown() {\n readCharacteristic(blecharMap, GattAttributes.SHUTDOWN);\n }", "@Override\r\n public void stopCrawling() {\n setState(ConnectorState.STOPPED);\r\n // shutdown the consumer\r\n consumer.close();\r\n // send a flush once the consumer is closed\r\n try {\r\n flush();\r\n } catch (Exception e) {\r\n log.warn(\"Error flushing last batch. {}\", e);\r\n }\r\n }", "void shutdown() throws Exception;", "@Override\n public void handleMessage(Message message) {\n // ...\n // When needed, stop the service with\n // stopSelf();\n }", "void release(Service service);" ]
[ "0.65970707", "0.6507539", "0.60224414", "0.5734905", "0.5732636", "0.572916", "0.56985945", "0.5638364", "0.55921906", "0.55921906", "0.55921906", "0.5586224", "0.5531342", "0.5517819", "0.5506917", "0.5506537", "0.54836756", "0.5476273", "0.5462985", "0.54525036", "0.5446429", "0.5438189", "0.5433357", "0.5431998", "0.54285586", "0.5421097", "0.5413101", "0.5413101", "0.54100335", "0.53857267", "0.53789735", "0.5367682", "0.536662", "0.53599834", "0.53599834", "0.53599834", "0.53599834", "0.5349389", "0.5349389", "0.5349389", "0.5349389", "0.53488964", "0.5343997", "0.5335883", "0.53296447", "0.5316864", "0.5313484", "0.5302304", "0.5301605", "0.5294867", "0.52912736", "0.5287838", "0.52727157", "0.52712256", "0.5270957", "0.5263951", "0.5224624", "0.5224433", "0.5212037", "0.5210079", "0.52096707", "0.52082795", "0.5207845", "0.5207759", "0.52000135", "0.5197654", "0.5197654", "0.5197654", "0.5197654", "0.5197654", "0.5197654", "0.5197654", "0.5197654", "0.5197654", "0.5197654", "0.5197654", "0.5197654", "0.5197654", "0.5197654", "0.5197654", "0.5197654", "0.5197654", "0.5187683", "0.51847625", "0.5169591", "0.5160785", "0.5158763", "0.5157945", "0.5139783", "0.51323146", "0.5120404", "0.51120794", "0.5108249", "0.5106437", "0.5103994", "0.50891834", "0.50817037", "0.5081469", "0.5073671", "0.5049214", "0.5048988" ]
0.0
-1
Mandatory for pallets using a weightedbalancer to be actually distributed. Explicitly set current shard's capacity for a given Pallet. Weight value's measure is not validated by Minka against duty weight measure.
public EventMapper setCapacity(final Pallet pallet, final double weight) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).putCapacity(pallet, weight); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWeight(final double pWeight){this.aWeight = pWeight;}", "public void setWeight(double pounds) {\n if (pounds >= 80 && pounds <= 280)\n this.weight = pounds;\n }", "public void setpWeight(int pWeight) {\n this.pWeight = pWeight;\n }", "public void setCapacity(int value) {\n this.capacity = value;\n }", "public void setWeight(int x)\n {\n weightCarried=x;\n }", "private void setWeight() {\n \tthis.trainWeight = (this.trainCars*TRAIN_WEIGHT) + (this.crew + this.numPassengers) * AVE_PASSENGER_WEIGHT;\n }", "public void setWeight(double w){\n weight = w;\n }", "@Override\r\n\tpublic void setWeight(double weight) {\n\t\t\r\n\t}", "public void setWeight(float value) {\n this.weight = value;\n }", "public void setWeight(int w){\n\t\tweight = w;\n\t}", "public void setWeightLimit(int weightLimit) {\n\t\tthis.weightLimit = weightLimit;\n\t}", "void setOrderCapacity(OrderCapacity inOrderCapacity);", "@Override\n public void setWeight(double w) {\n this.weight = w;\n\n }", "public void setWeightingsPerConstraint(final Map<String, Double> weightingsPerConstraint) {\r\n\t\tthis.weightingsPerConstraint = weightingsPerConstraint;\r\n\t}", "public Builder setAvailableCapacity(int value) {\n \n availableCapacity_ = value;\n onChanged();\n return this;\n }", "public void setMinWeight(double inMinWeight) {\n minWeight = inMinWeight;\n }", "private void setWeight(float weight){\n this.weight = weight;\n }", "public void setWeight(int w) {\n\t\tweight = w;\n\t}", "public double getWeight()\r\n {\r\n return this.weightCapacity;\r\n }", "public void setMaxWeight(String newValue);", "public void setWeight(double weight) {\r\n this.weight = weight;\r\n }", "public void testSetWeight()\n {\n WeightedKernel<Vector> instance = new WeightedKernel<Vector>();\n assertEquals(WeightedKernel.DEFAULT_WEIGHT, instance.getWeight());\n \n double weight = RANDOM.nextDouble();\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n weight = 0.0;\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n weight = 4.7;\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n boolean exceptionThrown = false;\n try\n {\n instance.setWeight(-1.0);\n }\n catch ( IllegalArgumentException ex )\n {\n exceptionThrown = true;\n }\n finally\n {\n assertTrue(exceptionThrown);\n }\n \n }", "public Boat(String name, double lengthOverAll, double beam, double weightCapacity) {\n this.name = name;\n this.lengthOverAll = lengthOverAll;\n this.beam = beam;\n this.weightCapacity = weightCapacity;\n }", "public void setWeight(float w) {\n weight = w;\n }", "public void setWeight(double weight) {\n this.weight = weight;\n }", "@Override\n\tpublic void setWeight(final double weight) {\n\n\t}", "public void setWeight(double weight){\n\t\tthis.weight = weight;\n\t}", "public void setWeight(String newValue);", "public void setWeight(int newWeight) {\n weight = newWeight;\n }", "public void setWeight(int weight){\n\t\tthis.weight = weight;\n\t}", "public void setCapacity(double capacity) {\n\t\tthis.capacity = capacity;\n\t}", "public synchronized int setPassengerWeight(){\n return random.nextInt((100-40)+1)+40;\n }", "public void setWeight(double weight){\n\t\tthis._weight = weight;\n\t}", "public void setWeight(float value) {\n\t\t\tthis.weight = value;\n\t\t}", "public void setCapacity(int capacity) \n {\n this.capacity = capacity;\n }", "public void setCargoWeight(int cargoWeight) { // set the cargo weight\n\t\tthis.cargoWeight = cargoWeight;\n\t}", "public Warehouse(int capacity) {\n\t\tsuper();\n\t\tthis.capacity = capacity;\n\t\twharehouseData = new Object[capacity];\n\t}", "public void setWeight(Integer weight) {\n this.weight = weight;\n }", "public void setWeight(Double weight) {\n this.weight = weight;\n }", "public void setCapacity(int capacity)\n {\n Validate.isTrue(capacity > 0, \"Capacity must be > 0\");\n capacity_ = capacity; \n }", "public void setCapacity( Resource.Type type, int capacity );", "public void upgradeCapacity()\r\n\t{\r\n\t\tcapacity++;\r\n\t}", "public Warehouse(final int capacity) {\n\t\tif (capacity <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"A warehouse must have a minimum capacity of 1.\");\n\t\t}\n\t\tthis.capacity = capacity;\n\t\tnumberOfItems = 0;\n\t\t//TODO: Initialize data structures for exercises 2a and 2c\n\t}", "public void setGradingWeight(double weight){\n \tgradingWeight = weight;\n }", "public void setWeight(final int weight) {\n this.weight = weight;\n }", "public void setWeight(double weight) {\n\t\tthis.weight = weight;\n\t}", "public synchronized void setWeight(int weight){\n\t\tthis.personWeight = weight; \n\t}", "public void setWeight(Item item, int value) {\n\t\tweight.put(item, value);\n\t}", "public SpaceWeights(int weight)\n {\n earthWeight = weight;\n }", "public void setObjectWeight(short weight) { this.objectWeight=weight; }", "public void setCapacity(int capacity) {\r\n this.capacity = capacity;\r\n }", "public void setCapacity(int capacity) {\r\n\r\n this.capacity = capacity;\r\n }", "public void setStrengthBoost(int boost) {\n mStrengthBoost = boost;\n }", "public void setCapacity(final int theCapacity) {\n\t\tif (theCapacity < 1) {\n\t\t\tthrow new IllegalArgumentException(\"Please supply a valid capacity.\");\n\t\t}\n\t\tthis.mCapcity = theCapacity;\n\t}", "public void setWeight(int weight) {\n\t\tif (weight > 0) {\n\t\t\tthis.weight = weight;\n\t\t} else {\n\t\t\tthis.weight = 0;\n\t\t}\n\t}", "public void setCapacity(int newCapacity) {\n\n\t\tif (newCapacity < 1) {\n\t\t\tsendWarning(\n\t\t\t\t\t\"The capacity of a transporter should be changed to zero or \"\n\t\t\t\t\t\t\t+ \"a negative value. The capacity will remain unchanged!\",\n\t\t\t\t\t\"Transporter : \" + getName()\n\t\t\t\t\t\t\t+ \" Method: void setCapacity(int newCapacity)\",\n\t\t\t\t\t\"A capacity which is zero or negative does not make sense.\",\n\t\t\t\t\t\"Make sure to provide a valid positive capacity \"\n\t\t\t\t\t\t\t+ \"when changing this attribute.\");\n\n\t\t\treturn; // forget that rubbish\n\t\t}\n\n\t\tthis.capacity = newCapacity;\n\t}", "public void setCapacity(int capacity) {\n this.capacity = capacity;\n }", "public double knapsack(double[] valuePass, double[] weightPass, double capacity) {\n\n if (valuePass.length == 0) { return 0; }\n value = valuePass;\n weight = weightPass;\n double[] subsets = new double[value.length];\n double takenValue = 0;\n double takenWeight = 0;\n double selection = 0;\n\n // look at each subset of the entire set\n for (int i = 0; i < Math.pow(2, value.length); i++) {\n\n /* INVARIANT: the value/weight values are greater than 0 */\n if (KnapsackMain.debug)\n assert assertionValueWeightGreaterThanZero(takenValue, takenWeight);\n\n // variables for the inner loop\n int itemToTake = value.length - 1;\n double temporaryValue = 0;\n double temporaryWeight = 0;\n\n // wh\n while (subsets[itemToTake] != 0 && itemToTake > 0) {\n subsets[itemToTake] = 0;\n itemToTake = itemToTake - 1;\n }\n\n subsets[itemToTake] = 1;\n\n for (int j = 0; j < value.length; j++) {\n\n // if the item is marked in the subset, then add it to the takenValue\n if (subsets[j] == 1 ) {\n temporaryValue = temporaryValue + value[j];\n temporaryWeight = temporaryWeight + weight[j];\n }\n }\n\n if (temporaryValue > takenValue && temporaryWeight <= capacity) {\n takenValue = temporaryValue;\n takenWeight = temporaryWeight;\n }\n }\n return takenValue;\n }", "public void setActualWeight(double actualWeight) {\n if(actualWeight >= 0.0){\n this.actualWeight = actualWeight;\n }\n else{\n this.actualWeight = 0.0;\n }\n }", "public void setWeight(String weight) {\n this.weight = weight;\n }", "public Crate(int cap){\r\n capacity = cap;\r\n }", "public void setWeight(Byte weight) {\n\t\tthis.weight = weight;\n\t}", "public void setSupplyReadinessRate(int value) {\n this.supplyReadinessRate = value;\n }", "void setSpawnsRequired(double spawnsRequired);", "public void addWeight(){\n\t\tweight++;\n\t}", "public int getWeightLimit() {\n\t\treturn this.weightLimit;\n\t}", "public void setBoreholeWaterSupplyPerDay(double w) {\n\n this.waterCapacityBorehole = w;\n }", "public void setWage(double wagePerPiece){\r\n wage = ( wagePerPiece <= 0 ) ? 0.0 : wagePerPiece; \r\n }", "public void setPenalty(short penalty) {\n this.penalty = penalty;\n }", "public void setThroughput(double throughput) {\n\t\tthis.throughputRequired = throughput;\n\t}", "ResourceSkuCapacity capacity();", "public void setRelativeWeight(int value) {\n this.relativeWeight = value;\n }", "public void setWeights(GraphNode pNode, double pWeight){\n ArrayList<ArcGraph> conections = pNode.getConections();\n \n for (int i = 0; i < conections.size(); i++){\n GraphNode destiny_node = conections.get(i).getDestiny();\n GraphNode source_node = conections.get(i).getSource();\n int pos_node = findNode(destiny_node); //returns the pos of the destiny node\n if (!MinDistanceStatus.get(pos_node)){ //if the weight isn't final we change it\n MinDistance.set(pos_node, conections.get(i).getWeight() + pWeight); // we change the min weight of the node\n References.set(pos_node, conections.get(i)); //Bueno\n }\n }\n }", "@JsonSetter(\"weight\")\n public void setWeight (int value) {\n this.weight = value;\n }", "@Override\n public void setCurrentLoadWeight(double mlw) {\n currentLoadWeight = mlw;\n }", "public float getCapacity();", "public Bag(String name, int weightCapacity) {\n\t\tthis.name = name;\n\t\tthis.weightCapacity = weightCapacity;\n\t}", "@Override\r\n\tpublic boolean canHaveAsWeight(int weight) {\r\n\t\treturn (weight >= 10 && weight <= 50);\r\n\t}", "protected byte[] getTankCapacity() {return null;}", "public void setEdgeCapacity(double capacity) {\n\t\tthis.capacity = capacity;\r\n\r\n\t}", "public void setUsageWeighted(boolean aUsageWeighted) {\n usageWeighted = aUsageWeighted; \n }", "public void setCapacity(int capacity) {\n\n\t\tthis.capacity = capacity;\n\t}", "public void setWeight(T3 eWeight) {\r\n\t\tthis.weight = eWeight;\r\n\t}", "public void setCapacity(final int capacity) {\n this.capacity = capacity;\n }", "abstract void setWeight(int i, int j, Double weight);", "public WeightingModel(){}", "int knapsack01(int[] v, int[] w, int capacity) {\n return knapsack01(v, w, capacity, 0, 0);\n }", "public Battery(double initialCapacity) {\r\n capacity = initialCapacity;\r\n originalCapacity = initialCapacity;\r\n }", "@Test\n\tpublic void overrideDefaultCapacity() {\n\t\tcst = new Airport(2, weatherMock);\n\t\tassertEquals(2, cst.capacity);\n\t}", "public void setLiterAllocation (BigDecimal LiterAllocation);", "public void setCapacity(Integer capacity) {\n this.capacity = capacity;\n }", "public Builder setCapacity(com.cantor.drop.aggregator.model.CFTrade.Capacity value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n capacity_ = value.getNumber();\n onChanged();\n return this;\n }", "public void setshippingcost() {\r\n\t\tshippingcost = getweight() * 3;\r\n\t}", "public ConditionTargetWeight(int weight)\n\t{\n\t\t_weight = weight;\n\t}", "com.cantor.drop.aggregator.model.CFTrade.Capacity getCapacity();", "public void setWeight (java.lang.Double weight) {\r\n\t\tthis.weight = weight;\r\n\t}", "public void setCapacity(int n) {\n\t\tcapacity = n;\n\t}", "public Informer reqInformTankCapacity() {\n\t\t\taddProperty(EPC_TANK_CAPACITY);\n\t\t\treturn this;\n\t\t}", "public void ensureCapacity(int minCapacity);", "void setWagerMinimum(java.math.BigDecimal wagerMinimum);" ]
[ "0.62665033", "0.6082986", "0.6035973", "0.59427613", "0.588503", "0.5873244", "0.58373666", "0.582665", "0.58249986", "0.582287", "0.5819054", "0.5798533", "0.5795787", "0.57775956", "0.5768123", "0.5767553", "0.56946653", "0.56864625", "0.5686157", "0.56280106", "0.5625474", "0.5612829", "0.56048775", "0.55998844", "0.5573242", "0.55624455", "0.5562224", "0.55555564", "0.55492437", "0.5535953", "0.55351675", "0.54995555", "0.54819846", "0.5480171", "0.5476162", "0.5466716", "0.54585165", "0.54410774", "0.54350245", "0.5424859", "0.5424723", "0.5419531", "0.54098666", "0.5394133", "0.5382979", "0.5372621", "0.535868", "0.53426534", "0.5325568", "0.5324378", "0.53016806", "0.5300199", "0.5296401", "0.5292364", "0.52748793", "0.5261001", "0.525202", "0.5247436", "0.5229891", "0.52113235", "0.5202656", "0.5199392", "0.5199153", "0.5192124", "0.5172054", "0.51691204", "0.51581717", "0.51562864", "0.51542765", "0.51517403", "0.5147235", "0.5141842", "0.5141383", "0.5137023", "0.51328534", "0.51182306", "0.51169944", "0.51121676", "0.5105114", "0.5096643", "0.50936365", "0.5089938", "0.50841594", "0.50814945", "0.507582", "0.50736445", "0.50648105", "0.50628936", "0.5058876", "0.5056431", "0.50510925", "0.5049515", "0.5047561", "0.502832", "0.50128555", "0.5012541", "0.50095785", "0.5009563", "0.5006097", "0.49974054" ]
0.70960224
0
Tells the Server to release the bootstrapping process that fires leader and follower agents. Mandatory when mapping only required events like: duties::capture/release. Not required when mapping all events, which will release the bootstrap by itself.
public EventMapper done() { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).setExplicitlyReady(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void postBootSetup() {\n }", "public EventMapper onPalletRelease(final Consumer<Set<Pallet>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumerPallet(consumer, MappingEvent.releasePallet);\n\t\treturn this;\n\t}", "public EventMapper onRelease(final Consumer<Set<Duty>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumer(consumer, MappingEvent.release);\n\t\treturn this;\n\t}", "@OnThread(Tag.Any)\n private void bootBluej()\n {\n initializeBoot();\n try {\n URLClassLoader runtimeLoader = new URLClassLoader(runtimeClassPath, bootLoader);\n \n // Construct a bluej.Main object. This starts BlueJ \"proper\".\n Class<?> mainClass = Class.forName(\"bluej.Main\", true, runtimeLoader);\n mainClass.getDeclaredConstructor().newInstance();\n \n } catch (ClassNotFoundException | InstantiationException | NoSuchMethodException \n | InvocationTargetException | IllegalAccessException exc) {\n throw new RuntimeException(exc);\n }\n }", "public void boot() throws Exception {\n main = new Main();\n // add routes\n main.addRouteBuilder(this.getRouteBuilder());\n // add event listener\n main.addMainListener(this.getMainListener(getClass()));\n // run until you terminate the JVM\n System.out.println(\"Starting Camel. Use ctrl + c to terminate the JVM.\\n\");\n main.run();\n }", "void prepareForShutdown();", "private void startBootstrapServices() {\n traceBeginAndSlog(\"StartWatchdog\");\n Watchdog watchdog = Watchdog.getInstance();\n watchdog.start();\n traceEnd();\n if (MAPLE_ENABLE) {\n this.mPrimaryZygotePreload = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$UyrPns7R814gZEylCbDKhe8It4.INSTANCE, \"PrimaryZygotePreload\");\n }\n Slog.i(TAG, \"Reading configuration...\");\n traceBeginAndSlog(\"ReadingSystemConfig\");\n SystemServerInitThreadPool.get().submit($$Lambda$YWiwiKm_Qgqb55C6tTuq_n2JzdY.INSTANCE, \"ReadingSystemConfig\");\n traceEnd();\n traceBeginAndSlog(\"StartInstaller\");\n this.installer = (Installer) this.mSystemServiceManager.startService(Installer.class);\n traceEnd();\n traceBeginAndSlog(\"DeviceIdentifiersPolicyService\");\n this.mSystemServiceManager.startService(DeviceIdentifiersPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"UriGrantsManagerService\");\n this.mSystemServiceManager.startService(UriGrantsManagerService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartActivityManager\");\n ActivityTaskManagerService atm = this.mSystemServiceManager.startService(ActivityTaskManagerService.Lifecycle.class).getService();\n this.mActivityManagerService = ActivityManagerService.Lifecycle.startService(this.mSystemServiceManager, atm);\n this.mActivityManagerService.setSystemServiceManager(this.mSystemServiceManager);\n this.mActivityManagerService.setInstaller(this.installer);\n this.mWindowManagerGlobalLock = atm.getGlobalLock();\n traceEnd();\n traceBeginAndSlog(\"StartPowerManager\");\n try {\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(\"com.android.server.power.HwPowerManagerService\");\n } catch (RuntimeException e) {\n Slog.w(TAG, \"create HwPowerManagerService failed\");\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(PowerManagerService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartThermalManager\");\n this.mSystemServiceManager.startService(ThermalManagerService.class);\n traceEnd();\n try {\n Slog.i(TAG, \"PG Manager service\");\n this.mPGManagerService = PGManagerService.getInstance(this.mSystemContext);\n } catch (Throwable e2) {\n reportWtf(\"PG Manager service\", e2);\n }\n traceBeginAndSlog(\"InitPowerManagement\");\n this.mActivityManagerService.initPowerManagement();\n traceEnd();\n traceBeginAndSlog(\"StartRecoverySystemService\");\n this.mSystemServiceManager.startService(RecoverySystemService.class);\n traceEnd();\n RescueParty.noteBoot(this.mSystemContext);\n traceBeginAndSlog(\"StartLightsService\");\n try {\n this.mSystemServiceManager.startService(\"com.android.server.lights.LightsServiceBridge\");\n } catch (RuntimeException e3) {\n Slog.w(TAG, \"create LightsServiceBridge failed\");\n this.mSystemServiceManager.startService(LightsService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartSidekickService\");\n if (SystemProperties.getBoolean(\"config.enable_sidekick_graphics\", false)) {\n this.mSystemServiceManager.startService(WEAR_SIDEKICK_SERVICE_CLASS);\n }\n traceEnd();\n traceBeginAndSlog(\"StartDisplayManager\");\n this.mDisplayManagerService = (DisplayManagerService) this.mSystemServiceManager.startService(DisplayManagerService.class);\n traceEnd();\n try {\n this.mSystemServiceManager.startService(\"com.android.server.security.HwSecurityService\");\n Slog.i(TAG, \"HwSecurityService start success\");\n } catch (Exception e4) {\n Slog.e(TAG, \"can't start HwSecurityService service\");\n }\n traceBeginAndSlog(\"WaitForDisplay\");\n this.mSystemServiceManager.startBootPhase(100);\n traceEnd();\n String cryptState = (String) VoldProperties.decrypt().orElse(\"\");\n if (ENCRYPTING_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Detected encryption in progress - only parsing core apps\");\n this.mOnlyCore = true;\n } else if (ENCRYPTED_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Device encrypted - only parsing core apps\");\n this.mOnlyCore = true;\n }\n HwBootCheck.bootSceneEnd(100);\n HwBootFail.setBootTimer(false);\n HwBootCheck.bootSceneStart(105, 900000);\n if (!this.mRuntimeRestart) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_start\", (int) SystemClock.elapsedRealtime());\n }\n traceBeginAndSlog(\"StartPackageManagerService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"packagemanagermain\");\n this.mPackageManagerService = PackageManagerService.main(this.mSystemContext, this.installer, this.mFactoryTestMode != 0, this.mOnlyCore);\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n this.mFirstBoot = this.mPackageManagerService.isFirstBoot();\n this.mPackageManager = this.mSystemContext.getPackageManager();\n Slog.i(TAG, \"Finish_StartPackageManagerService\");\n traceEnd();\n if (!this.mRuntimeRestart && !isFirstBootOrUpgrade()) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_ready\", (int) SystemClock.elapsedRealtime());\n HwBootCheck.addBootInfo(\"[bootinfo]\\nisFirstBoot: \" + this.mFirstBoot + \"\\nisUpgrade: \" + this.mPackageManagerService.isUpgrade());\n HwBootCheck.bootSceneStart(101, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n }\n HwBootCheck.bootSceneEnd(105);\n if (!this.mOnlyCore && !SystemProperties.getBoolean(\"config.disable_otadexopt\", false)) {\n traceBeginAndSlog(\"StartOtaDexOptService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"moveab\");\n OtaDexoptService.main(this.mSystemContext, this.mPackageManagerService);\n } catch (Throwable th) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n throw th;\n }\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n }\n traceBeginAndSlog(\"StartUserManagerService\");\n this.mSystemServiceManager.startService(UserManagerService.LifeCycle.class);\n traceEnd();\n traceBeginAndSlog(\"InitAttributerCache\");\n AttributeCache.init(this.mSystemContext);\n traceEnd();\n traceBeginAndSlog(\"SetSystemProcess\");\n this.mActivityManagerService.setSystemProcess();\n traceEnd();\n traceBeginAndSlog(\"InitWatchdog\");\n watchdog.init(this.mSystemContext, this.mActivityManagerService);\n traceEnd();\n this.mDisplayManagerService.setupSchedulerPolicies();\n traceBeginAndSlog(\"StartOverlayManagerService\");\n this.mSystemServiceManager.startService(new OverlayManagerService(this.mSystemContext, this.installer));\n traceEnd();\n traceBeginAndSlog(\"StartSensorPrivacyService\");\n this.mSystemServiceManager.startService(new SensorPrivacyService(this.mSystemContext));\n traceEnd();\n if (SystemProperties.getInt(\"persist.sys.displayinset.top\", 0) > 0) {\n this.mActivityManagerService.updateSystemUiContext();\n ((DisplayManagerInternal) LocalServices.getService(DisplayManagerInternal.class)).onOverlayChanged();\n }\n this.mSensorServiceStart = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$oG4I04QJrkzCGs6IcMTKU2211A.INSTANCE, START_SENSOR_SERVICE);\n } catch (Throwable th2) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n throw th2;\n }\n }", "public abstract void bootArchitecture(boolean emptyMMap);", "public void run() {\n Runtime.getRuntime().addShutdownHook(new MNOSManagerShutdownHook(this));\n\n OFNiciraVendorExtensions.initialize();\n\n this.startDatabase();\n\n try {\n final ServerBootstrap switchServerBootStrap = this\n .createServerBootStrap();\n\n this.setServerBootStrapParams(switchServerBootStrap);\n\n switchServerBootStrap.setPipelineFactory(this.pfact);\n final InetSocketAddress sa = this.ofHost == null ? new InetSocketAddress(\n this.ofPort) : new InetSocketAddress(this.ofHost,\n this.ofPort);\n this.sg.add(switchServerBootStrap.bind(sa));\n }catch (final Exception e){\n throw new RuntimeException(e);\n }\n\n }", "private void shutDown() {\r\n\t\t\r\n\t\t// send shutdown to children\r\n\t\tlogger.debug(\"BagCheck \"+ this.lineNumber+\" has sent an EndOfDay message to it's Security.\");\r\n\t\tthis.securityActor.tell(new EndOfDay(1));\r\n\r\n\t\t// clear all references\r\n\t\tthis.securityActor = null;\r\n\t}", "public void rebootToBootloader() {\n mPowerManager.reboot(\"bootloader\");\n }", "private void initialDeploy() {\n }", "@Override\n public void prepare() {\n applicationDeployer.initialize();\n this.initialize();\n }", "public void boot() throws Exception {\n HazelcastInstance hz = Hazelcast.newHazelcastInstance();\n\n // setup the hazelcast idempontent repository which we will use in the route\n HazelcastIdempotentRepository repo = new HazelcastIdempotentRepository(hz, \"camel\");\n\n main = new Main();\n main.enableHangupSupport();\n // bind the hazelcast repository to the name myRepo which we refer to from the route\n main.bind(\"myRepo\", repo);\n // add the route and and let the route be named BAR and use a little delay when processing the files\n main.addRouteBuilder(new FileConsumerRoute(\"BAR\", 100));\n main.run();\n }", "@AfterClass\n public static void afterClass() throws Exception\n {\n Ejb3McRegistrarTestCase.setBootstrap(null);\n }", "protected void firePostAgentScheduling() {\n\t\tJaakEnvironmentListener[] list;\n\t\tsynchronized (this.listeners) {\n\t\t\tlist = new JaakEnvironmentListener[this.listeners.size()];\n\t\t\tthis.listeners.toArray(list);\n\t\t}\n\t\tfor (JaakEnvironmentListener listener : list) {\n\t\t\tlistener.postAgentScheduling();\n\t\t}\n\t}", "protected void takeDown() {\n // Deregister from the yellow pages\n try {\n DFService.deregister(this);\n } catch (FIPAException fe) {\n fe.printStackTrace();\n }\n\n // Printout a dismissal message\n System.out.println(\"Dataset-agent \" + getAID().getName() + \" terminating.\");\n }", "private void cleanup(ActorRef tromboneHCD, ActorRef... a) {\n TestProbe monitor = new TestProbe(system);\n for(ActorRef actorRef : a) {\n monitor.watch(actorRef);\n system.stop(actorRef);\n monitor.expectTerminated(actorRef, timeout.duration());\n }\n\n monitor.watch(tromboneHCD);\n tromboneHCD.tell(HaltComponent, self());\n monitor.expectTerminated(tromboneHCD, timeout.duration());\n }", "public FinishDeploy() {\n addSequential(new AbortAll());\n addSequential(new HatchEject());\n }", "protected void takeDown() {\n\t\tSystem.out.println(\"TIAgent \" + getAID().getName() + \" terminating.\");\r\n\t}", "protected void after() {\n System.clearProperty(DandelionConfig.BUNDLE_PRE_LOADERS.getName());\n }", "@Override\n public void releasePermit() {\n balancer.release();\n }", "public void bootConsumer() throws Exception {\n\t\tmain = new Main();\r\n\t\t// bind MyBean into the registry\r\n\t\tmain.bind(\"foo\", new AsimpleBean());\r\n\t\t// add routes\r\n\t\tmain.addRouteBuilder(new SubRouteBuilder());\r\n\r\n\t\t// add event listener\r\n\t\tmain.addMainListener(new SubEvents());\r\n\t\t// run until you terminate the JVM\r\n\t\tSystem.out.println(\"Starting Camel. Use ctrl + c to terminate the JVM.\\n\");\r\n\t\tmain.run();\r\n\t}", "protected void firePreAgentScheduling() {\n\t\tJaakEnvironmentListener[] list;\n\t\tsynchronized (this.listeners) {\n\t\t\tlist = new JaakEnvironmentListener[this.listeners.size()];\n\t\t\tthis.listeners.toArray(list);\n\t\t}\n\t\tfor (JaakEnvironmentListener listener : list) {\n\t\t\tlistener.preAgentScheduling();\n\t\t}\n\t}", "@Override\n public void exit() {\n player.steeringBehaviorsManager.removeBehavior(ballPursuit);\n }", "@Test\n\tpublic void issue_1152() {\n\n\t\tProjectFactory.newProject(\"cbr-blueprint\").version(CAMEL_2_17_0_REDHAT_630254).template(CBR).type(BLUEPRINT).create();\n\t\tString server = serverRequirement.getConfig().getName();\n\t\tFuseServerManipulator.startServer(server);\n\t\tFuseServerManipulator.addModule(server, \"cbr-blueprint\");\n\t\tAbstractWait.sleep(TimePeriod.NORMAL);\n\t\tFuseServerManipulator.removeAllModules(server);\n\t\tnew WaitUntil(new FuseLogContainsText(\"(CamelContext: cbr-example-context) is shutdown\"), TimePeriod.VERY_LONG);\n\t}", "@Override\n\tprotected void onShutdown(ApplicationEvent event) {\n\t\t\n\t}", "public void configure() {\n\t\tfrom(\"seda:vxf.onboard?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"onBoardVxFToMANOProvider\") //returns exception or nothing\n\t\t.log(\"VNFD Onboarded Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"VNFD Onboarding failed!\");\n\n\t\tfrom(\"seda:nsd.onboard?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"onBoardNSDToMANOProvider\") //returns exception or nothing\n\t\t.log(\"NSD Onboarded Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NSD Onboarding failed!\");\t\t\n\n\t\t\n\t\tfrom(\"seda:nsd.deploy?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"deployNSDToMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS deployed Successfully\").stop()\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS deployment failed!\").stop();\t\t\n\n\t\tfrom(\"seda:nsd.deployment.complete?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"terminateNSFromMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS completed Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS completion failed!\").stop();\n\n\t\tfrom(\"seda:nsd.deployment.delete?multipleConsumers=true\")\n\t\t.doTry()\n\t\t.bean(new MANOController(),\"deleteNSFromMANOProvider\") //returns exception or nothing\n\t\t.log(\"NS deleted Successfully\")\n\t\t.doCatch(Exception.class)\n\t\t.log(\"NS deletion failed!\").stop();\n\t\t\n\t\t//from(\"timer://checkAndDeployTimer?delay=2m&period=120000\").bean(new MANOController(),\"checkAndDeployExperimentToMANOProvider\").stop();\n\t\t//from(\"timer://checkAndTerminateTimer?delay=2m&period=120000\").bean(new MANOController(),\"checkAndTerminateExperimentToMANOProvider\").stop();\n\t\t\n\t\tfrom(\"timer://checkAndUpdateRunningDeploymentDescriptors?delay=1m&period=120000\").bean(MANOController.class,\"checkAndUpdateRunningDeploymentDescriptors\").stop();\n\t\t\n\t}", "@Override\r\n\tprotected void shutdownSpecific() {\n\r\n\t}", "@Override\n\tpublic void releasePreActivity() {\n\t\t\n\t}", "protected void takeDown() {\n\t\ttry {\r\n\t\t\tDFService.deregister(this);\r\n\t\t}\r\n\t\tcatch (FIPAException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n\r\n // connec.desconectar();\r\n\t\t// Printout a dismissal message\r\n\t\tSystem.out.println(\"Supplier-agent \"+getAID().getName()+\" terminating.\");\r\n\t}", "protected void bootstrap() throws KikahaException {\n\t\ttry {\n\t\t\tval deploymentContext = createDeploymentContext();\n\t\t\trunDeploymentHooks(deploymentContext);\n\t\t\tdeployWebResourceFolder(deploymentContext);\n\t\t\tthis.deploymentContext = deploymentContext;\n\t\t} catch (final ServiceProviderException cause) {\n\t\t\tthrow new KikahaException(cause);\n\t\t}\n\t}", "private ActorSystemBootstrapTools() {}", "public void abnormalShutDown() {\n\t}", "public void bootPublisher() throws Exception {\n\t\tmain = new Main();\r\n\t\t// bind MyBean into the registry\r\n\t\tmain.bind(\"foo\", new AsimpleBean());\r\n\t\tmain.addRouteBuilder(new PubRouteBuilder());\r\n\t\t// add event listener\r\n\t\tPubEvents pubEvt = new PubEvents();\r\n\t\tpubEvt.setMessage(this.getMessage());\r\n\t\tmain.addMainListener(pubEvt);\r\n\t\t// run until you terminate the JVM\r\n\t\tmain.run();\r\n\t\tSystem.out.println(\"Starting Camel. Use ctrl + c to terminate the JVM.\\n\");\r\n\r\n\t}", "private void realBootstrap() {\r\n\t\tString inputMsg = \"{\"\r\n\t\t\t\t+ \"'id': 0, \"\r\n\t\t\t\t+ \"'players': [\"\r\n\t\t\t\t+ \"{'id': 0, 'name': 'TestPlayer0'}, \"\r\n\t\t\t\t+ \"{'id': 1, 'name': 'TestPlayer1'},\"\r\n\t\t\t\t+ \"{'id': 2, 'name': 'TestPlayer2'},\"\r\n\t\t\t\t+ \"{'id': 3, 'name': 'TestPlayer3'},\"\r\n\t\t\t\t+ \"{'id': 4, 'name': 'TestPlayer4'},\"\r\n\t\t\t\t+ \"{'id': 5, 'name': 'TestPlayer5'},\"\r\n\t\t\t\t+ \"{'id': 6, 'name': 'TestPlayer6'},\"\r\n\t\t\t\t+ \"{'id': 7, 'name': 'TestPlayer7'},\"\r\n\t\t\t\t+ \"],\"\r\n\t\t\t\t+ \" 'playerId': 0\"\r\n\t\t\t\t+ \"}\";\r\n\t\tclient.processingMsg(new JSONObject(inputMsg));\r\n\t}", "@Override\n public void postEnvCall() {\n shutdown(this.getEnvironment());\n }", "@PostConstruct // bcoz of java 9 and higher version i need to download jar file\r\n\tpublic void doMyStartupStuff() {\r\n\t\tSystem.out.println(\">> TennisCoach: inside of doMyStrtupStuff()\");\r\n\t}", "@Override\n\t\tprotected void shutdown() {\n\n\t\t}", "void jmiExit_actionPerformed(ActionEvent e) {\n System.out.println(\"Exiting Carrier Agent \");\n unregisterWithMasterServer(); //unregister when exited\n logWriter.writeLog(\"Terminating agent.\");\n System.exit(0);\n }", "public static void main(String args[]) {\n\t\t\r\n\t\t@PostConstruct\r\n\t\tpublic void doMyStartupStuff() {\r\n\t\t\tSystem.out.println(\"TennisCoach: inside of doMyStartupStuff()\");\r\n\t\t}\r\n\t\t\r\n\t\t// define my destroy method\r\n\t\t\r\n\t\t@PreDestroy\r\n\t\tpublic void doMyCleanupStuff() {\r\n\t\t\tSystem.out.println(\"TennisCoach: inside of doMyCleanupStuff()\");\t\t\r\n\t\t}\r\n\t }", "@Override\r\n\tprotected void takeDown() {\r\n\t\t// Deregister from the yellow pages\r\n\t\ttry {\r\n\t\t\tDFService.deregister(this);\r\n\t\t}\r\n\t\tcatch (FIPAException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n\t\t// Close the GUI\r\n\t\tmyGui.dispose();\r\n\t\t// Printout a dismissal message\r\n\t\tSystem.out.println(\"Seller-agent \"+getAID().getName()+\" terminating.\");\r\n\t}", "protected void takeDown() {\n\t\t// Deregister from the yellow pages\n\t\ttry {\n\t\t\tDFService.deregister(this);\n\t\t}\n\t\tcatch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\t\t// Close the GUI\n\t\tmyGui.dispose();\n\t\t// Printout a dismissal message\n\t\tSystem.out.println(\"agent \"+getAID().getName()+\" terminating.\");\n\t}", "@Override\n public void exit(EventObject event)\n {\n shutdown();\n }", "protected void takeDown() {\n\t\t// Deregister from the yellow pages\n\t\ttry {\n\t\t\tDFService.deregister(this);\n\t\t}\n\t\tcatch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\n\t\t// Close the GUI\n\t\tmyGui.dispose();\n\n\t\t// Printout a dismissal message\n\t\tSystem.out.println(\"Bidder \"+getAID().getName()+\" terminating.\");\n\t}", "public static void someApplicationBootupMethod() {\n if (!AgentLoader.loadAgentFromClasspath(\"avaje-ebeanorm-agent\", \"debug=1;packages=model.**\")) {\n System.out.println(\"avaje-ebeanorm-agent not found in classpath - not dynamically loaded\");\n }\n\n System.out.println(\"avaje-ebeanorm-agent loaded\");\n }", "@Override\n public void saveBootstrapState ()\n {\n service.getServerConfiguration().saveBootstrapState(evCustomers);\n }", "void onSetup(ProcessingSetup processingSetup);", "@Override\r\n\tpublic void startup()\r\n\t{\n\t\tif (LOG.isDebugEnabled())\r\n\t\t{\r\n\t\t\tLOG.debug(\"starting broker by plugging configured engines\");\r\n\t\t}\r\n\t\tconfigure(broker);\r\n\t\t\r\n\t\t// register this engine for handling new (Un)PlugEvents\r\n\t\tProcessingEngine processing = broker.getEngine(ProcessingEngine.class);\r\n\t\tif (processing == null)\r\n\t\t{\r\n\t\t\tLOG.error(\"no processing engine available for registering event \"\r\n\t\t\t\t\t+ \"handlers\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tprocessing.registerEventClass(PlugEvent.class, this);\r\n\t}", "private void bootstrap() throws LoginFailedException {\n\t\ttry {\n\t\t\tInetAddress bootstrapAddress = InetAddress.getByName(BOOTSTRAP_ADDRESS);\n\t\t\tFutureBootstrap bootstrap = peer.peer().bootstrap().inetAddress(bootstrapAddress).ports(BOOTSTRAP_PORT).start();\n\t\t\tbootstrap.addListener(new BaseFutureAdapter<FutureBootstrap>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void operationComplete(FutureBootstrap future) throws Exception {\n\t\t\t\t\tif (future.isSuccess()) {\n\t\t\t\t\t\tSystem.out.println(\"Successfully bootstrapped to server!\");\n\n\t\t\t\t\t\tbyte[] peerData = peerInfo.toByteArray();\n\t\t\t\t\t\tData dataToStore = new Data(peerData);\n\t\t\t\t\t\tdataToStore.ttlSeconds(USER_DATA_TTL);\n\t\t\t\t\t\tPutBuilder userDataPut = peer.put(peerInfo.getUsernameKey()).data(dataToStore);\n\t\t\t\t\t\tuserDataUploader = new JobScheduler(peer.peer());\n\t\t\t\t\t\tuserDataUploader.start(userDataPut, (USER_DATA_TTL/6) * 1000, -1, new AutomaticFuture() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void futureCreated(BaseFuture future) {\n\t\t\t\t\t\t\t\tfuture.addListener(new BaseFutureAdapter<FuturePut>() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void operationComplete(FuturePut future) throws Exception {\n\t\t\t\t\t\t\t\t\t\tif(future.isSuccess()) {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Added data to DHT for peer \" + peerInfo.getUsername());\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.err.println(\"Failed adding data to DHT for peer \" + peerInfo.getUsername() + \"!\");\n\t\t\t\t\t\t\t\t\t\t\tSystem.err.println(future.failedReason());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\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});\n\n\t\t\t\t\t\tif (delegate != null) {\n\t\t\t\t\t\t\tdelegate.didLogin(peerInfo, null);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(\"Failed to bootstrap!\");\n\t\t\t\t\t\tSystem.err.println(\"Reason is \" + future.failedReason());\n\t\t\t\t\t\tif (delegate != null) {\n\t\t\t\t\t\t\tdelegate.didLogin(null, P2PLoginError.BOOTSTRAP_ERROR);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t});\n\t\t} catch (UnknownHostException uhe) {\n\t\t\tSystem.err.println(\"Invalid host specified: \" + BOOTSTRAP_ADDRESS + \"!\");\n\t\t\tif (delegate != null) {\n\t\t\t\tdelegate.didLogin(null, P2PLoginError.BOOTSTRAP_ERROR);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t}", "public void activate() {\n\n serviceTracker = new ServiceTracker<>(bundleContext, BlueprintContainer.class,\n new CustomBlueprintContainerServiceTrackerCustomizer());\n serviceTracker.open();\n\n CustomBlueprintListener blueprintListener = new CustomBlueprintListener();\n listenerSR = bundleContext.registerService(BlueprintListener.class, blueprintListener,\n new Hashtable<String, Object>());\n }", "@Test\n public void testBundleStatePreserved() throws Exception {\n \t{\n final Object listener = this.startObservingBundleEvents();\n installer.updateResources(URL_SCHEME, getInstallableResource(\n getTestBundle(BUNDLE_BASE_NAME + \"-testA-1.0.jar\")), null);\n this.waitForBundleEvents(\"Bundle must be installed\", listener,\n new BundleEvent(\"osgi-installer-testA\", \"1.0\", org.osgi.framework.BundleEvent.INSTALLED),\n new BundleEvent(\"osgi-installer-testA\", \"1.0\", org.osgi.framework.BundleEvent.STARTED));\n \t}\n {\n final Object listener = this.startObservingBundleEvents();\n installer.updateResources(URL_SCHEME, getInstallableResource(\n getTestBundle(BUNDLE_BASE_NAME + \"-testB-1.0.jar\")), null);\n this.waitForBundleEvents(\"Bundle must be installed\", listener,\n new BundleEvent(\"osgi-installer-testB\", \"1.0\", org.osgi.framework.BundleEvent.INSTALLED),\n new BundleEvent(\"osgi-installer-testB\", \"1.0\", org.osgi.framework.BundleEvent.STARTED));\n final Bundle b = findBundle(\"osgi-installer-testB\");\n assertNotNull(\"Test bundle B must be found\", b);\n b.stop();\n }\n\n assertBundle(\"Bundle A must be started\", \"osgi-installer-testA\", null, Bundle.ACTIVE);\n assertBundle(\"Bundle B must be stopped\", \"osgi-installer-testB\", null, Bundle.RESOLVED);\n\n \t// Execute some OsgiController operations\n Object listener = this.startObservingBundleEvents();\n installer.updateResources(URL_SCHEME, getInstallableResource(getTestBundle(BUNDLE_BASE_NAME + \"-testbundle-1.0.jar\")), null);\n sleep(150);\n installer.updateResources(URL_SCHEME, getInstallableResource(getTestBundle(BUNDLE_BASE_NAME + \"-testbundle-1.2.jar\")), null);\n sleep(150);\n installer.updateResources(URL_SCHEME, getInstallableResource(getTestBundle(BUNDLE_BASE_NAME + \"-testbundle-1.1.jar\")), null);\n this.waitForBundleEvents(\"Bundle must be installed\", listener,\n new BundleEvent(\"osgi-installer-testbundle\", \"1.0\", org.osgi.framework.BundleEvent.INSTALLED),\n new BundleEvent(\"osgi-installer-testbundle\", \"1.2\", org.osgi.framework.BundleEvent.UPDATED),\n new BundleEvent(\"osgi-installer-testbundle\", \"1.2\", org.osgi.framework.BundleEvent.STARTED));\n assertBundle(\"After installing testbundle\", \"osgi-installer-testbundle\", \"1.2\", Bundle.ACTIVE);\n\n listener = this.startObservingBundleEvents();\n installer.updateResources(URL_SCHEME, null, getNonInstallableResourceUrl(getTestBundle(BUNDLE_BASE_NAME + \"-testbundle-1.0.jar\")));\n sleep(150);\n this.assertNoBundleEvents(\"Update to same version should generate no OSGi tasks.\", listener, \"osgi-installer-testbundle\");\n\n listener = this.startObservingBundleEvents();\n installer.updateResources(URL_SCHEME, null, getNonInstallableResourceUrl(getTestBundle(BUNDLE_BASE_NAME + \"-testbundle-1.1.jar\")));\n sleep(150);\n this.assertNoBundleEvents(\"Update to same version should generate no OSGi tasks.\", listener, \"osgi-installer-testbundle\");\n\n listener = this.startObservingBundleEvents();\n installer.updateResources(URL_SCHEME, null, getNonInstallableResourceUrl(getTestBundle(BUNDLE_BASE_NAME + \"-testbundle-1.2.jar\")));\n this.waitForBundleEvents(\"Bundle must be uninstalled\", listener,\n new BundleEvent(\"osgi-installer-testbundle\", \"1.2\", org.osgi.framework.BundleEvent.STOPPED),\n new BundleEvent(\"osgi-installer-testbundle\", \"1.2\", org.osgi.framework.BundleEvent.UNINSTALLED));\n\n assertNull(\"testbundle must be gone at end of test\", findBundle(\"osgi-installer-testbundle\"));\n\n \t// Now check that bundles A and B have kept their states\n assertBundle(\"Bundle A must still be started\", \"osgi-installer-testA\", null, Bundle.ACTIVE);\n assertBundle(\"Bundle B must still be stopped\", \"osgi-installer-testB\", null, Bundle.RESOLVED);\n }", "public void bridge$lambda$0$KswMcuListener() {\n SystemProperties.set(\"sys.powerctl\", \"shutdown\");\n }", "@Override\n protected void setup() {\n // exception handling for invoke the main2();\n try {\n main2();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n // create central agent of the application\n try {\n AgentController Main = main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n try {\n showResualt();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public synchronized void release(int id)\r\n\t{\r\n\t\tSystem.out.println(\"Process_\" + id + \" released SR1.\");\r\n\t\tnotify();\r\n\t\t//releases one of the available instances\r\n\t\tavail1++;\r\n\t}", "public void shutDown()\n {\n // Runtime.getRuntime().removeShutdownHook(shutdownListener);\n //shutdownListener.run();\n }", "public void onWakeUp() {\n\t\tbehaviour.onWakeUp();\n\t}", "public void start()\n/* 354: */ {\n/* 355:434 */ onStartup();\n/* 356: */ }", "private void registerShutdownHook() {\n Runtime.getRuntime().addShutdownHook(new Thread(\"Metastore Janitor Shutdown Hook\"){\n\n @Override\n public void run() {\n log.info(\"Shutting down all threads\");\n \n synchronized(tasks) {\n for(AbstractDynamoDBTask task : tasks) {\n task.running = false;\n }\n }\n \n synchronized(futures) {\n for(Future future: futures) {\n try {\n future.get();\n } catch (Exception ex) {\n log.error(\"\",ex);\n }\n }\n }\n \n executor.shutdown();\n }\n \n });\n }", "public void Shutdown()\n {\n eventLoopGroup.shutdownGracefully();\n }", "@Override\n protected void shutDown() {\n }", "public static final void m1042a() {\n SystemClock.sleep(FakeSplitInstallManager.f1473b);\n }", "public void afterDownstream() {\n }", "@Override\n public void waitShutdown() {\n // Do nothing.\n }", "@Override\n public final void onActivation() {\n eventManager.addListener(strokeConfigListener);\n eventBus.addSubscriber(regenerateShapeSubscriber);\n }", "public static void main(String[] args) \n {\n \t\t\t\t int pid;\n \t\t/* I create a PID object to processed */\n Pid_manager2 pm = new Pid_manager2();\n if(pm.allocate_map() != -1)\n {\n pid = pm.allocate_pid();\n if(pid!=-1){\n System.out.println(\"Process allocated with PID :\"+ pid);\n pm.release_pid(pid);\n System.out.println(\"Process with PID :\" + pid + \" released\");\n }\n else\n {\n System.out.println(\"Process cannot be allocated\");\n }\n }\n else{\n System.out.println(\"Error in allocating PID map\");\n }\n int sleep(int z){\n \t\n }\n\n }", "public static synchronized void bootstrap() {\n ImplementingClassResolver.clearCache();\n if (bootstrapedNeeded) {\n reflectionsModel.rescann(\"\");\n }\n bootstrapedNeeded = false;\n }", "private static void boot() {\n\t\tEJB3StandaloneBootstrap.boot(null);\r\n\r\n\t\t// Deploy custom stateless beans (datasource, mostly)\r\n\t\tEJB3StandaloneBootstrap.deployXmlResource(\"META-INF/superStar-beans.xml\");\r\n\r\n\t\t// Deploy all EJBs found on classpath (slow, scans all)\r\n\t\t// EJB3StandaloneBootstrap.scanClasspath();\r\n\r\n\t\t// Deploy all EJBs found on classpath (fast, scans only build\r\n\t\t// directory)\r\n\t\t// This is a relative location, matching the substring end of one of\r\n\t\t// java.class.path locations!\r\n\t\t// Print out System.getProperty(\"java.class.path\") to understand\r\n\t\t// this...\r\n\t\tEJB3StandaloneBootstrap.scanClasspath(\"SuperStar/build\".replace(\"/\", File.separator));\r\n\t}", "public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, LOG_NAME, \"Shut down instruction received...\");\n\n for(LaunchServerSession session : Sessions.values())\n {\n LaunchLog.Log(COMMS, LOG_NAME, \"Closing session...\");\n session.Close();\n }\n \n LaunchLog.Log(COMMS, LOG_NAME, \"...All sessions are closed.\");\n }", "private void postRun() {\n // remove all GPIO listeners\n GpioFactory.getInstance().removeAllListeners();\n this.isRunning = false;\n IoTLogger.getInstance().info(\"Post RUN\");\n }", "@Override\n public void run() {\n CuratorLocker locker = new CuratorLocker(schedulerBuilder.getServiceSpec());\n\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n LOGGER.info(\"Shutdown initiated, releasing curator lock\");\n locker.unlock();\n }));\n locker.lock();\n\n SchedulerConfig schedulerConfig = SchedulerConfig.fromEnv();\n Metrics.configureStatsd(schedulerConfig);\n AbstractScheduler scheduler = schedulerBuilder.build();\n scheduler.start();\n Optional<Scheduler> mesosScheduler = scheduler.getMesosScheduler();\n if (mesosScheduler.isPresent()) {\n SchedulerApiServer apiServer = new SchedulerApiServer(schedulerConfig, scheduler.getResources());\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n scheduler.markApiServerStarted();\n }\n });\n\n runScheduler(\n scheduler.frameworkInfo,\n mesosScheduler.get(),\n schedulerBuilder.getServiceSpec(),\n schedulerBuilder.getSchedulerConfig(),\n schedulerBuilder.getStateStore());\n } else {\n /**\n * If no MesosScheduler is provided this scheduler has been deregistered and should report itself healthy\n * and provide an empty COMPLETE deploy plan so it may complete its UNINSTALL.\n *\n * See {@link UninstallScheduler#getMesosScheduler()}.\n */\n Plan emptyDeployPlan = new Plan() {\n @Override\n public List<Phase> getChildren() {\n return Collections.emptyList();\n }\n\n @Override\n public Strategy<Phase> getStrategy() {\n return new SerialStrategy<>();\n }\n\n @Override\n public UUID getId() {\n return UUID.randomUUID();\n }\n\n @Override\n public String getName() {\n return Constants.DEPLOY_PLAN_NAME;\n }\n\n @Override\n public List<String> getErrors() {\n return Collections.emptyList();\n }\n };\n\n PlanManager emptyPlanManager = DefaultPlanManager.createProceeding(emptyDeployPlan);\n PlansResource emptyPlanResource = new PlansResource();\n emptyPlanResource.setPlanManagers(Arrays.asList(emptyPlanManager));\n\n schedulerBuilder.getStateStore().clearAllData();\n\n SchedulerApiServer apiServer = new SchedulerApiServer(\n schedulerConfig,\n Arrays.asList(\n emptyPlanResource,\n new HealthResource()));\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n LOGGER.info(\"Started trivially healthy API server.\");\n }\n });\n }\n }", "@PostConstruct\r\n\tpublic void doMyStartUpStuff() {\r\n\t\t\r\n\t\tSystem.out.println(\"TennisCoach : -> Inside of doMyStartUpStuff()\");\r\n\t}", "@Override\n protected void shutdown() {\n super.shutdown();\n // Now perform any other shutdown tasks you need.\n // ...\n }", "public void unload() {\n releasePressureToReturn();\n releasePressureToShooter();\n latch(false);\n// reloaded = false;\n }", "@After\n public void teardown() throws Exception{\n localScribenginCluster.shutdown();\n }", "@Override\n\tpublic void onRelease(RobotAPI arg0) {\n\n\t}", "protected void takeDown(){\n\n\t}", "protected void takeDown(){\n\n\t}", "@SubscribeEvent\n public void onServerStarting(FMLServerStartingEvent event) {\n LOGGER.log(Level.INFO, \"starting fabric server mods\");\n FabricLoaderImpl.INSTANCE.getEntrypoints(\"server\", DedicatedServerModInitializer.class).forEach(DedicatedServerModInitializer::onInitializeServer);\n }", "@Override\r\n\tpublic void run() {\n\t\tIntent intent = new Intent(\"android.intent.action.BOOT_COMPLETED\"); \r\n\t\tresolveInfo = context.getPackageManager().queryBroadcastReceivers(intent, 0);\r\n\t}", "public void releaseManualCommand() {\n try {\n RequestUtils.writeProperty(DeviceService.localDevice,bacnetDevice,getObjectIdentifier(),\n PropertyIdentifier.presentValue,null,new PriorityValue(new Null()),\n new UnsignedInteger(8));\n LOG.info(\"Release: \" + getObjectIdentifier());\n } catch (BACnetException bac) {\n LOG.warn(\"Cant release: \" + getObjectIdentifier().toString());\n }\n }", "@Override\n public void onApplicationEvent(final ApplicationReadyEvent event) {\n if (environment.equalsIgnoreCase(\"PROD\")) {\n logger.info(\"Application event start up\");\n\n List<UpdateFile> clientFileList = getClientFileList();\n ResponseEntity<UpdateFilesRQ> updateFileResponse = fileUpdaterRequestSender.getServerFileList();\n\n rSyncFileUpdaterProvider\n .setRemoteMainFolder(Objects.requireNonNull(updateFileResponse.getBody()).getMainFolder())\n .processComparing(updateFileResponse.getBody().getUpdateFile(), clientFileList);\n\n fileSystemWatcher.start();\n logger.info(\"Started fileSystemWatcher service\");\n\n filePoolerServerListener.initiateSynchronizeTime();\n filePoolerServerListener.triggerPoolerService();\n logger.info(\"Triggered filePoolerServerListener service\");\n }\n }", "@Override\n\tpublic void onRelease(RobotAPI arg0) {\n\t\t\n\t}", "private void prepareAgents() {\n\t\tGodsProperties.setGodsStatus(GodsStatus.PREPARING);\n\n\t\t// Send prepare events to all agents\n\t\tfor (String host : GodsProperties.getHosts()) {\n\n\t\t\tPrepareEvent prepareEvent = new PrepareEvent(1);\n\n\t\t\tint[] slotsRange = getSlotRangeFor(host);\n\t\t\tprepareEvent.setSlotsRange(slotsRange);\n\n\t\t\tControlCenter.getInstance().notifyAgent(host, prepareEvent);\n\t\t\tlog.info(\"Sent Prepare Event to:\" + host + \" with slots range: [\"\n\t\t\t\t\t+ slotsRange[0] + \" - \" + slotsRange[1] + \"]\");\n\t\t}\n\t}", "public KafkaBacksideEnvironment() {\n\t\tConfigPullParser p = new ConfigPullParser(\"kafka-props.xml\");\n\t\tproperties = p.getProperties();\n\t\tconnectors = new HashMap<String, IPluginConnector>();\n\t\t//chatApp = new SimpleChatApp(this);\n\t\t//mainChatApp = new ChatApp(this);\n\t\t//elizaApp = new ElizaApp(this);\n\t\tbootPlugins();\n\t\t//TODO other stuff?\n\t\tSystem.out.println(\"Booted\");\n\t\t//Register a shutdown hook so ^c will properly close things\n\t\tRuntime.getRuntime().addShutdownHook(new Thread() {\n\t\t public void run() { shutDown(); }\n\t\t});\n\t}", "public void shutDown(){\n sequence128db.shutDown();\n }", "public static void main(String[] args) throws InterruptedException, IOException, ClassNotFoundException {\n\t\tbyte[] id = new byte[160];\r\n\t\tif (args[0].equals(\"bootstraper\")) {\r\n\t\t\tfor (int i = 0; i < id.length; i++)\r\n\t\t\t\tid[i] = 0;\r\n\t\t\tint port = Integer.parseInt(args[1]);\r\n\t\t\tNode n = new Node(id, port);\r\n\t\t\tRouting.initialize(n);\r\n//\t\t\tbyte[] bid = new byte[160];\r\n//\t\t\tfor (int i = 0; i < 160; i++)\r\n//\t\t\t\tbid[i] = 0;\r\n//\t\t\tbid[159] = 1;\r\n//\t\t\tRouting.insert(b);\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tbyte[] bid = new byte[160];\r\n\t\t\tfor (int i = 0; i < id.length; i++)\r\n\t\t\t\tbid[i] = 0;\r\n\t\t\tfor (int i = 0; i < id.length; i++)\r\n\t\t\t{\r\n\t\t\t\t\tid[i] = 0;\r\n\t\t\t}\r\n\t\t\tid[2] = 1;\r\n\t\t\tint port = Integer.parseInt(args[0]);\r\n\t\t\tmyPort = port;\r\n\t\t\tNode n = new Node(id, port);\r\n\t\t\tRouting.initialize(n);\r\n\t\t\tNode b = new Node(bid, InetAddress.getByName(args[1]), Integer.parseInt(args[2]));\r\n\t\t\tRouting.insert(b);\r\n\r\n\t\t\tPing p = new Ping(bid, b.getIP(), b.getPort());\r\n\t\t\tThread t = new Thread(p);\r\n\t\t\tt.start();\r\n\t\t}\r\n\r\n\t\tbyte[] id1 = new byte[160];\r\n\t\tfor (int i = 0; i < id1.length; i++)\r\n\t\t\tid1[i] = 0;\r\n\t\tid1[159]=1;\r\n\t\t\r\n\t\tbyte[] id2 = new byte[160];\r\n\t\tfor (int i = 0; i < id1.length; i++)\r\n\t\t\tid2[i] = 0;\r\n\r\n\t\tid2[158]=1;\r\n\t\t\r\n\t\tbyte[] id3 = new byte[160];\r\n\t\tfor (int i = 0; i < id1.length; i++)\r\n\t\t\tid3[i] = 0;\r\n\r\n\t\tid3[158]=1;\r\n\t\tid3[159]=1;\r\n\t\t\r\n\t\tbyte[] id4 = new byte[160];\r\n\t\tfor (int i = 0; i < id1.length; i++)\r\n\t\t\tid4[i] = 0;\r\n\r\n\t\tid4[157]=1;\r\n\t\t\r\n\t\tbyte[] id5= new byte[160];\r\n\t\tfor (int i = 0; i < id1.length; i++)\r\n\t\t\tid5[i] = 0;\r\n\r\n\t\tid5[157]=1;\r\n\t\tid5[159]=1;\r\n\t\t\r\n\t\tNode n1 = new Node(id1, InetAddress.getByName(\"192.168.2.134\"), 8000);\r\n\t\tNode n2 = new Node(id2, InetAddress.getByName(\"192.168.2.146\"), 8000);\r\n\t\tNode n4 = new Node(id4, InetAddress.getByName(\"192.168.34.154\"), 8000);\r\n\t\tNode n3 = new Node(id3, InetAddress.getByName(\"192.168.34.146\"), 8000);\r\n\t\tNode n5 = new Node(id5, InetAddress.getByName(\"192.168.34.147\"), 8000);\r\n\t\t\r\n\r\n\t\tRouting.insert(n1);\r\n//\t\tRouting.insert(n2);\r\n//\t\tRouting.insert(n4);\r\n//\t\tRouting.insert(n3);\r\n//\t\tRouting.insert(n5);\r\n\t\t\r\n\t\tReceivingThread thread;\r\n\t\tif (args[0].equals(\"bootstraper\"))\r\n\t\t\tthread = new ReceivingThread(Integer.parseInt(args[1]));\r\n\t\telse\r\n\t\t\tthread = new ReceivingThread(Integer.parseInt(args[0]));\r\n\t\tThread real = new Thread(thread);\r\n\t\treal.start();\r\n\t\t//\r\n\t\tTextInterface.main(null);\r\n\r\n\t}", "public void runShutdown() {\n readCharacteristic(blecharMap, GattAttributes.SHUTDOWN);\n }", "private void shutdown() {\n log.info(\"Shutting down\");\n kafka.shutdown();\n zookeeper.shutdown();\n }", "@Override\n public void shutDown() {\n }", "private void waitForBootstrappedNodeToBeReady(OzoneManager newOM,\n long leaderSnapshotIndex) throws Exception {\n // Wait for bootstrapped nodes to catch up with others\n GenericTestUtils.waitFor(() -> {\n try {\n if (newOM.getRatisSnapshotIndex() >= leaderSnapshotIndex) {\n return true;\n }\n } catch (IOException e) {\n return false;\n }\n return false;\n }, 1000, waitForClusterToBeReadyTimeout);\n }", "public void shutdown() {\n/* 188 */ this.shutdown = true;\n/* */ }", "@Override\n public void shutdownNow() {\n }", "@Override\n public void onDiscoveryComplete() {\n BusProvider.getInstance().post(new DiscoveryCompleteEvent());\n }", "public void shutdown() {\n\tif (publisher != null)\n\t publisher.shutdown();\n\n\tif (handle != null) {\n\t handle.shutdown();\n\t}\n }", "AutoShutdownProfile autoShutdownProfile();", "@Override\n public void shutdown() {\n log.debug(\"Shutting down Ebean ..\");\n\n // TODO: Verificar si es necesario des-registrar el driver\n this.ebeanServer.shutdown(true, false);\n }", "@Override\n public void startup() {\n }", "@Override\n public void ready() {\n Entity en = ce();\n\n if ((en instanceof Dropship) && !en.isAirborne()) {\n ArrayList<Coords> crushedBuildingLocs = new ArrayList<Coords>();\n ArrayList<Coords> secondaryPositions = new ArrayList<Coords>();\n secondaryPositions.add(en.getPosition());\n for (int dir = 0; dir < 6; dir++) {\n secondaryPositions.add(en.getPosition().translated(dir));\n }\n for (Coords pos : secondaryPositions) {\n Building bld = clientgui.getClient().getGame().getBoard()\n .getBuildingAt(pos);\n if (bld != null) {\n crushedBuildingLocs.add(pos);\n }\n }\n if (!crushedBuildingLocs.isEmpty()) {\n JOptionPane\n .showMessageDialog(\n clientgui,\n Messages.getString(\"DeploymentDisplay.dropshipBuildingDeploy\"), //$NON-NLS-1$\n Messages.getString(\"DeploymentDisplay.alertDialog.title\"), //$NON-NLS-1$\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n }\n\n disableButtons();\n\n clientgui.getClient().deploy(cen, en.getPosition(), en.getFacing(),\n en.getElevation(), en.getLoadedUnits(), assaultDropPreference);\n en.setDeployed(true);\n\n if (ce().isWeapOrderChanged()) {\n clientgui.getClient().sendEntityWeaponOrderUpdate(ce());\n }\n endMyTurn();\n }", "@Override\n public void shutdown() {\n }", "@Override\n public void shutdown() {\n }" ]
[ "0.60370797", "0.5324785", "0.5153314", "0.5147544", "0.5147538", "0.5128502", "0.51260537", "0.5124746", "0.5051611", "0.5002657", "0.4993519", "0.49900705", "0.498848", "0.49796", "0.48926005", "0.48780498", "0.48621383", "0.4860568", "0.48457855", "0.48444062", "0.48290417", "0.48061374", "0.47719944", "0.47535673", "0.47456005", "0.47428256", "0.47402915", "0.47281942", "0.4725217", "0.47127938", "0.47119102", "0.46952116", "0.46860626", "0.46829796", "0.46747512", "0.4668495", "0.46590653", "0.46491638", "0.46438938", "0.46410644", "0.4640353", "0.46354905", "0.46205187", "0.46182194", "0.46171558", "0.46131468", "0.46037376", "0.4593221", "0.4575056", "0.45517215", "0.4548485", "0.45479986", "0.45474532", "0.45396146", "0.4529645", "0.45295447", "0.45249218", "0.45246333", "0.45244467", "0.45178246", "0.45128185", "0.45092896", "0.44999364", "0.44908544", "0.44838935", "0.4479446", "0.44774365", "0.44772464", "0.44753057", "0.447412", "0.44725052", "0.44717786", "0.44696847", "0.446213", "0.44579372", "0.4456854", "0.44445813", "0.44445813", "0.44445515", "0.44389808", "0.44338343", "0.44310066", "0.44308782", "0.4415758", "0.4414752", "0.44108438", "0.440829", "0.44056267", "0.43996903", "0.43994892", "0.4397257", "0.43965384", "0.43950927", "0.43914428", "0.43908677", "0.4385281", "0.4384993", "0.4384863", "0.4383965", "0.43831706", "0.43831706" ]
0.0
-1
exclude the namespace imports and definitions, taking care of those elsewhere
public String readFileExcludeNamespace(final String filePath) throws IOException { final XQuery.Predicate<String> excludeNamespaceLine = new XQuery.Predicate<String>() { @Override boolean eval(final String line) { if (!line.contains("namespace")) { return true; } String str = line.replace(" ", ""); // using startsWith in case these words appear in the code elsewhere // e.g. strings, comments, xml tags return !(str.startsWith("modulenamespace") || str.startsWith("importmodulenamespace") || str.startsWith("declarenamespace")); } }; return readFile(filePath, excludeNamespaceLine); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void ignore() {\n }", "private XIncluder() {}", "public void remDefinedInModule(){\n ((MvwDefinitionDMO) core).remDefinedInModule();\n }", "public void clear()\n {\n normalImports.clear();\n wildcardImports.clear();\n }", "public void importGraphUndirective() {\n }", "public void removeIneffectiveDeclarations()\n\t{\n\t\t_declarations.removeIf((p) -> !p.isIgnored() && !p.isEffective());\n\t}", "void unsetNamespace();", "private NamespaceHelper() {}", "boolean ignoreExternal();", "protected abstract void undefineNamespace(int index);", "protected void createIgnoreAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Ignore\";\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "@Override\n\tpublic void suppress() {\n\n\t}", "@Override\n\tpublic void ignorePackage(String packageName) {\n\t\tignorePackages.add(packageName);\n\t}", "@Override\n\tpublic void namespace() {\n\t\t\n\t}", "public void removeInvalidUndoDeclarations()\n\t{\n\t\t_declarations.removeIf((p) -> !p.isIgnored() && p.isInvalidUndo());\n\t}", "@Ignore\n @Test\n public void discoverNoTypes() throws Exception {\n }", "public void dontWantToInstall() {\n\t\tpackageList.removeAll(packageList);\n\t}", "@Test\n public void testPackageFileOverviewVisibilityAppliesToNameWithoutExplicitVisibility_googModule() {\n disableRewriteClosureCode();\n testNoWarning(\n srcs(\n SourceFile.fromCode(\n Compiler.joinPathParts(\"foo\", \"bar.js\"),\n lines(\n \"/**\",\n \" * @fileoverview\",\n \" * @package\",\n \" */\",\n \"goog.module('Foo');\",\n \"/** @constructor */\",\n \"var Foo = function() {};\",\n \"exports = Foo;\")),\n SourceFile.fromCode(\n Compiler.joinPathParts(\"baz\", \"quux.js\"),\n \"goog.module('client'); const Foo = goog.require('Foo'); new Foo();\")));\n }", "void unsetNextrun();", "@Test public void excludeWithoutInclude() throws Exception {\n Schema schema = new RepoBuilder()\n .add(\"service.proto\", \"\"\n + \"message MessageA {\\n\"\n + \" optional string b = 1;\\n\"\n + \" optional string c = 2;\\n\"\n + \"}\\n\")\n .schema();\n Schema pruned = schema.prune(new IdentifierSet.Builder()\n .exclude(\"MessageA#c\")\n .build());\n assertThat(((MessageType) pruned.getType(\"MessageA\")).field(\"b\")).isNotNull();\n assertThat(((MessageType) pruned.getType(\"MessageA\")).field(\"c\")).isNull();\n }", "private StandardGrammars() {\n // do nothing\n }", "private IgnoreListHelper() {\n\t}", "@Override\n public String visit(ImportDeclaration n, Object arg) {\n return null;\n }", "String getImportedNamespace();", "public boolean shouldIncludeInGlobalSearch() {\n/* 255 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void excludeFromWarPackaging() {\n getLog().info(\"excludeFromWarPackaging\");\n String pluginGroupId = \"org.apache.maven.plugins\";\n String pluginArtifactId = \"maven-war-plugin\";\n if (project.getBuildPlugins() != null) {\n for (Object o : project.getBuildPlugins()) {\n Plugin plugin = (Plugin) o;\n\n if (pluginGroupId.equals(plugin.getGroupId()) && pluginArtifactId.equals(plugin.getArtifactId())) {\n Xpp3Dom dom = (Xpp3Dom) plugin.getConfiguration();\n if (dom == null) {\n dom = new Xpp3Dom(\"configuration\");\n plugin.setConfiguration(dom);\n }\n Xpp3Dom excludes = dom.getChild(\"packagingExcludes\");\n if (excludes == null) {\n excludes = new Xpp3Dom(\"packagingExcludes\");\n dom.addChild(excludes);\n excludes.setValue(\"\");\n } else if (excludes.getValue().trim().length() > 0) {\n excludes.setValue(excludes.getValue() + \",\");\n }\n\n Set<Artifact> dependencies = getArtifacts();\n getLog().debug(\"Size of getArtifacts: \" + dependencies.size());\n String additionalExcludes = \"\";\n for (Artifact dependency : dependencies) {\n getLog().debug(\"Dependency: \" + dependency.getGroupId() + \":\" + dependency.getArtifactId() + \"type: \" + dependency.getType());\n if (!dependency.isOptional() && Types.JANGAROO_TYPE.equals(dependency.getType())) {\n getLog().debug(\"Excluding jangaroo dependency form war plugin [\" + dependency.toString() + \"]\");\n // Add two excludes. The first one is effective when no name clash occurs\n additionalExcludes += \"WEB-INF\" + File.separator + \"lib\" + File.separator + dependency.getArtifactId() + \"-\" + dependency.getVersion() + \".jar,\";\n // the second when a name clash occurs (artifact will hav groupId prepended before copying it into the lib dir)\n additionalExcludes += \"WEB-INF\" + File.separator + \"lib\" + File.separator + dependency.getGroupId() + \"-\" + dependency.getArtifactId() + \"-\" + dependency.getVersion() + \".jar,\";\n }\n }\n excludes.setValue(excludes.getValue() + additionalExcludes);\n }\n }\n }\n }", "@Ignore\r\n\tpublic void ignoreTest() {\r\n\t\tSystem.out.println(\"in ignore test\");\r\n\t}", "@Ignore\n\t public void ignoreTest() {\n\t System.out.println(\"in ignore test\");\n\t }", "private void removeOrphanClasspaths() {\n Set<String> allRecordedRemotePaths = new HashSet<String>(localPathTranslation.keySet());\n for (String remotePath : localClasspathProcessor.getLocalClasspath().values()) {\n allRecordedRemotePaths.remove(remotePath);\n }\n localPathTranslation.keySet().removeAll(allRecordedRemotePaths);\n\n // Now add new translations\n for (String remotePath : localClasspathProcessor.getLocalClasspath().values()) {\n if (!localPathTranslation.containsKey(remotePath)) {\n localPathTranslation.put(remotePath, UNDEFINED);\n }\n }\n }", "@DSSafe(DSCat.SAFE_OTHERS)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.362 -0500\", hash_original_method = \"1F62AD2938072A93E19EAFFCDA555D07\", hash_generated_method = \"E522C6EE17CC779935F0D04DE1F1F350\")\n \npublic NamespaceSupport ()\n {\n reset();\n }", "private void removeModifiers(AttributeInstance ins) {\n\t\tfor (Iterator<AttributeModifier> iterator = ins.getModifiers().iterator(); iterator.hasNext();) {\n\t\t\tAttributeModifier attribute = iterator.next();\n\t\t\tif (attribute.getName().startsWith(\"mmolib.\") || attribute.getName().startsWith(\"mmoitems.\"))\n\t\t\t\tins.removeModifier(attribute);\n\t\t}\n\t}", "@Test\n public void testPackageFileOverviewVisibilityAppliesToNameWithoutExplicitVisibility_esModule() {\n testNoWarning(\n srcs(\n SourceFile.fromCode(\n Compiler.joinPathParts(\"foo\", \"bar.js\"),\n lines(\n \"/**\",\n \" * @fileoverview\",\n \" * @package\",\n \" */\",\n \"/** @constructor */\",\n \"var Foo = function() {};\",\n \"export {Foo};\")),\n SourceFile.fromCode(\n Compiler.joinPathParts(\"baz\", \"quux.js\"),\n \"import {Foo} from '/foo/bar.js'; new Foo();\")));\n }", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t */\n\tpublic void removedComment() {\n\t}", "private boolean isPackageExcluded(final FullIdent fullIdent) {\n Boolean result = null;\n final String packageName = fullIdent.getText();\n for (final String excludesPackageName : excludePackages) {\n if (packageName.startsWith(excludesPackageName)) {\n result = true;\n break;\n }\n }\n if (result == null) {\n for (final String includePackageName : packages) {\n if (packageName.startsWith(includePackageName)) {\n result = false;\n break;\n }\n }\n }\n if (result == null) {\n result = true;\n }\n return result;\n }", "public void suppress() {\r\n\t\tsuppressed = true;\r\n\t}", "public void suppress() {\r\n\t\tsuppressed = true;\r\n\t}", "@Override\n\tpublic void excluir() {\n\t\t\n\t}", "private NaturePackage() {}", "public void imprimirHijos(){\n\t\tmodCons.imprimirHijos();\n\t}", "default HtmlFormatter removePackages() {\n return replace(\n PACKAGE_PATTERN,\n \"\"\n );\n }", "public void suppress() {\n\t\tstop = true;\n\t}", "public void removeAllPackages() {\r\n myPackages.clear();\r\n }", "public void disableAccessRules() {\n\t\tm_parser.disableAccessRules();\n\t}", "public boolean isNamespaceAware () {\n return true;\n }", "@Test\n\tpublic void testExcludeGeneratedClasses() throws Exception {\n\t\tnew $$ExcludeGeneratedClasses().bar();\n\t\tassertNull(spanCapturingReporter.get());\n\t}", "@Override\n\tpublic String getNamespace() {\n\t\treturn null;\n\t}", "boolean processUsagesInNonJavaFiles( PsiElement originalElement,\n String qName,\n PsiNonJavaFileReferenceProcessor processor,\n GlobalSearchScope searchScope);", "private NettyHttpUtil() {\n\t\t// do nothing.\n\t}", "public static String removeNamespace(String name) {\r\n\t\tString returnValue;\r\n\t\t\r\n\t\treturnValue = name.replaceFirst(\".*#\",\"\");\r\n\t\treturn returnValue;\r\n\t}", "@Override\n\tpublic void suppress() {\n\t\tsuppressed = true;\n\t}", "@Override\n\tpublic void suppress() {\n\t\tsuppressed = true;\n\t}", "@Override\n\tpublic void suppress() {\n\t\tsuppressed = true;\n\t}", "public void setExcludePackages(final String... packageNames) {\n excludePackages = transformToUnique(packageNames);\n }", "TypeConstraintMappingContext<C> ignoreAllAnnotations();", "private Unescaper() {\n\n\t}", "public void unsetImport()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(IMPORT$0, 0);\n }\n }", "protected void skipTestIfScopesNotSupported() {\n\t}", "private static void stripUnlikelyCandidates(Document doc) {\n if (true) {\n return; // Temporarily disabled; see comment above.\n }\n\n for (Element child : doc.select(\"body\").select(\"*\")) {\n String className = child.className().toLowerCase();\n String id = child.id().toLowerCase();\n if (ExtractionHelpers.NEGATIVE_CSS_CLASSES_AND_IDS.matcher(className).find() || ExtractionHelpers.NEGATIVE_CSS_CLASSES_AND_IDS.matcher(id).find()) {\n Log.printAndRemove(child, \"stripUnlikelyCandidates\");\n }\n }\n }", "@Override\n\tpublic boolean isIgnored(String fullname) {\n\t\treturn ignorePackages.stream().anyMatch(p -> \n\t\t\tfullname.startsWith(p + DOT) ||\n\t\t\tfullname.equals(p)\n\t\t);\n\t}", "@Override\r\n\tpublic String getNamespace() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic String[] OnExclusions() {\n\t\treturn new String[] {\"sqlid\", \"item\"};\n\t}", "private InterpreterDependencyChecks() {\r\n\t\t// Hides default constructor\r\n\t}", "@Override\n\tpublic void acceptPackage(String packageName) {\n\t\tignorePackages.removeIf(p -> packageName.startsWith(p + DOT));\n\t}", "ExcludeType createExcludeType();", "private ApplicationConstants(){\n\t\t//not do anything \n\t}", "public boolean ignoreService() {\n if (\"undef\".equalsIgnoreCase(type) || \"undef,1.0\".equalsIgnoreCase(type))\n return true;\n return false;\n }", "public void addImpliedNamespace(NamespaceDefinition def) {\n if (!checkDuplicateNamespace(def)) {\n internalAddNamespace(def);\n }\n }", "public void testShaderWithoutExcludesShouldRemoveReferencesOfOriginalPattern() throws Exception {\n shaderWithPattern(\"org/shaded/plexus/util\", new File(\"target/foo-custom-without-excludes.jar\"), new String[]{});\n }", "protected boolean isImport() {\n\t\t// Overrides\n\t\treturn false;\n\t}", "boolean processUsagesInNonJavaFiles( String qName,\n PsiNonJavaFileReferenceProcessor processor,\n GlobalSearchScope searchScope);", "public void disableImplementationUpdates()\n {\n disableUpdates = true;\n }", "private boolean isSourceExcluded(IClasspathEntry entry) {\n IPath[] exclusionPatterns = entry.getExclusionPatterns();\n if (exclusionPatterns != null) {\n for (IPath exclusionPattern : exclusionPatterns) {\n if (\"**\".equals(exclusionPattern.toString())) {\n return true;\n }\n }\n }\n return false;\n }", "@Override\n protected boolean ignoreAnnotatedElement(Element element, AnnotationMirror mirror) {\n return hasElement(mirror, \"implicitMember\");\n }", "Imports createImports();", "public static void hideWarnings() {\n\t\tenableWarn = false;\n\t}", "private PrintUtilities()\n {\n // Do nothing.\n }", "public IScope scope_IncludeDeclaration_importedNamespace(Declaration context, EReference ref) {\n\t\tIScope result = delegateGetScope(context, ref);\n\t\treturn new FilteringScope(result, new Predicate<IEObjectDescription>() {\n\t\t\tpublic boolean apply(IEObjectDescription input) {\n\t\t\t\tif (input != null) {\n\t\t\t\t\treturn input.getEObjectURI().fileExtension().equals(\"idd\");\n\t\t\t\t}\n\t\t\t\treturn false;\n\n\t\t\t}\n\t\t});\n\t}", "public void disableDomainBasedUnfixing() { this.exec = this.exec.withProperty(\"sm.domainUnfix\", false); }", "private WeblogicMojoUtilities()\n {\n super();\n }", "void unsetComplianceCheckResult();", "private XMLUtils() {\n }", "private SparkseeUtils()\n {\n /*\n * Intentionally left empty.\n */\n }", "private Environment getEnvironmentExcluded(State lower, State upper) throws Exception {\n if(!upper.isAncestor(lower)) {\n throw new Exception(\"Analyser.getEnvironmentExcluded : upper should be an ancestor of lower.\");\n }\n if(upper != lower.getSuperstate()) {\n return new Environment(lower.declarations, getEnvironmentExcluded(lower.getSuperstate(), upper));\n }\n else {\n return new Environment(lower.declarations, null);\n }\n }", "public void testSubgraphsDontPolluteDefaultPrefix() \n {\n String imported = \"http://imported#\", local = \"http://local#\";\n g1.getPrefixMapping().setNsPrefix( \"\", imported );\n poly.getPrefixMapping().setNsPrefix( \"\", local );\n assertEquals( null, poly.getPrefixMapping().getNsURIPrefix( imported ) );\n }", "@Override\r\n\tpublic List<String> getXMLNamespaces() {\n\t\treturn null;\r\n\t}", "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 }", "@Override\n public void validateSubtree(ComponentDeclaration decl, boolean excludeStylesheet) throws XPathException {\n if (reportingCircumstances == OnFailure.IGNORED_INSTRUCTION || (isTopLevel() && forwardsCompatibleModeIsEnabled())) {\n // do nothing\n } else {\n super.validateSubtree(decl, excludeStylesheet);\n }\n }", "private void initReservedAttributes()\n {\n addIgnoreProperty(ATTR_IF_NAME);\n addIgnoreProperty(ATTR_REF);\n addIgnoreProperty(ATTR_UNLESS_NAME);\n addIgnoreProperty(ATTR_BEAN_CLASS);\n addIgnoreProperty(ATTR_BEAN_NAME);\n }", "public void writeNoPackage(StringBuffer buffer) {\n String p = containingPackage;\n containingPackage = null;\n writeNameString(buffer);\n buffer.append('{');\n left.writeNoPackage(buffer);\n buffer.append(\", \");\n right.writeNoPackage(buffer);\n buffer.append('}');\n containingPackage = p;\n }", "@Test\n public void testNonSpecifiedImports() throws Exception {\n final DefaultConfiguration checkConfig =\n createModuleConfig(CustomImportOrderCheck.class);\n checkConfig.addAttribute(\"thirdPartyPackageRegExp\", \"org.\");\n checkConfig.addAttribute(\"customImportOrderRules\",\n \"STATIC###STANDARD_JAVA_PACKAGE###THIRD_PARTY_PACKAGE###SAME_PACKAGE(3)\");\n checkConfig.addAttribute(\"sortImportsInGroupAlphabetically\", \"true\");\n final String[] expected = {\n \"4: \" + getCheckMessage(MSG_LEX, \"java.awt.Button.ABORT\",\n \"java.io.File.createTempFile\"),\n \"5: \" + getCheckMessage(MSG_LEX, \"java.awt.print.Paper.*\",\n \"java.io.File.createTempFile\"),\n \"10: \" + getCheckMessage(MSG_LEX, \"java.awt.Dialog\", \"java.awt.Frame\"),\n \"15: \" + getCheckMessage(MSG_LEX, \"java.io.File\", \"javax.swing.JTable\"),\n \"16: \" + getCheckMessage(MSG_LEX, \"java.io.IOException\", \"javax.swing.JTable\"),\n \"17: \" + getCheckMessage(MSG_LEX, \"java.io.InputStream\", \"javax.swing.JTable\"),\n \"18: \" + getCheckMessage(MSG_LEX, \"java.io.Reader\", \"javax.swing.JTable\"),\n \"20: \" + getCheckMessage(MSG_ORDER, SAME, THIRD, \"com.puppycrawl.tools.*\"),\n \"22: \" + getCheckMessage(MSG_NONGROUP_IMPORT, \"com.google.common.collect.*\"),\n \"23: \" + getCheckMessage(MSG_LINE_SEPARATOR, \"org.junit.*\"),\n };\n\n verify(checkConfig, getPath(\"InputCustomImportOrderDefault.java\"), expected);\n }", "public static void registerWithoutAliases() {\n\t\tConfigurationSerialization.registerClass(SwapEffect.class);\n\t}", "@Test\n public void testIgnore_excludedClasses() throws Throwable {\n RunNotifier notifier = spy(new RunNotifier());\n RunListener listener = mock(RunListener.class);\n notifier.addListener(listener);\n Bundle ignores = new Bundle();\n ignores.putString(LongevityClassRunner.FILTER_OPTION, FailingTest.class.getCanonicalName());\n mRunner = spy(new LongevityClassRunner(FailingTest.class, ignores));\n mRunner.run(notifier);\n verify(listener, times(1)).testIgnored(any());\n }", "public void testSchemaNotVisible()\r\n {\r\n MockControl ehControl = newControl(ErrorHandler.class);\r\n ErrorHandler errorHandler = (ErrorHandler) ehControl.getMock();\r\n\r\n Log log = LogFactory.getLog(XmlExtensionResolver.class);\r\n\r\n SchemaImpl schema = new SchemaImpl(\"foo.bar\");\r\n schema.setId(\"Baz\");\r\n schema.setVisibility(Visibility.PRIVATE);\r\n\r\n RegistryDefinition definition = new RegistryDefinitionImpl();\r\n\r\n Location l = newLocation();\r\n\r\n errorHandler.error(\r\n log,\r\n XmlImplMessages.schemaNotVisible(\"foo.bar.Baz\", \"zip.zoop\"),\r\n l,\r\n null);\r\n\r\n replayControls();\r\n\r\n ModuleDescriptor fooBar = new ModuleDescriptor(null, errorHandler);\r\n fooBar.setModuleId(\"foo.bar\");\r\n\r\n fooBar.addSchema(schema);\r\n\r\n ModuleDescriptor zipZoop = new ModuleDescriptor(null, errorHandler);\r\n zipZoop.setModuleId(\"zip.zoop\");\r\n\r\n ConfigurationPointDescriptor cpd = new ConfigurationPointDescriptor();\r\n cpd.setId(\"Zap\");\r\n cpd.setContributionsSchemaId(\"foo.bar.Baz\");\r\n cpd.setLocation(l);\r\n\r\n zipZoop.addConfigurationPoint(cpd);\r\n\r\n XmlModuleDescriptorProcessor processor = new XmlModuleDescriptorProcessor(definition,\r\n errorHandler);\r\n processor.processModuleDescriptor(fooBar);\r\n processor.processModuleDescriptor(zipZoop);\r\n \r\n XmlExtensionResolver extensionResolver = new XmlExtensionResolver(definition, errorHandler);\r\n extensionResolver.resolveSchemas();\r\n\r\n verifyControls();\r\n }", "@Test\n public void testPackagePrivateAccessForNames_googModule() {\n disableRewriteClosureCode();\n testNoWarning(\n srcs(\n SourceFile.fromCode(\n Compiler.joinPathParts(\"foo\", \"bar.js\"),\n lines(\n \"goog.module('Foo');\",\n \"/** @package */\",\n \"var name = 'foo';\",\n \"exports = name;\")),\n SourceFile.fromCode(\n Compiler.joinPathParts(\"baz\", \"quux.js\"),\n \"goog.module('client'); const name = goog.require('Foo'); name;\")));\n }", "private XMLUtil() {\n\t}", "private WolUtil() {\n }", "protected void uninstallComponents() {\n }", "public Set<String> getImportedNamespaces() {\n Set<EndpointInterface> endpointInterfaces = getEndpointInterfaces();\n if ((endpointInterfaces == null) || (endpointInterfaces.size() == 0)) {\n throw new IllegalStateException(\"WSDL for \" + getTargetNamespace() + \" has no endpoint interfaces!\");\n }\n\n HashSet<String> importedNamespaces = new HashSet<String>();\n //always import the list of known namespaces.\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/http/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/mime/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/soap/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/soap12/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/soap/encoding/\");\n importedNamespaces.add(\"http://www.w3.org/2001/XMLSchema\");\n\n for (EndpointInterface endpointInterface : endpointInterfaces) {\n importedNamespaces.addAll(endpointInterface.getReferencedNamespaces());\n }\n\n if (isInlineSchema()) {\n SchemaInfo associatedSchema = getAssociatedSchema();\n if (associatedSchema != null) {\n importedNamespaces.addAll(associatedSchema.getReferencedNamespaces());\n }\n }\n\n return importedNamespaces;\n }", "protected void uninstallComponents() {\n\t}", "public void setIgnore( DockSituationIgnore ignore ) {\r\n this.ignore = ignore;\r\n }" ]
[ "0.63323003", "0.62314934", "0.6008611", "0.59806275", "0.58704376", "0.5817084", "0.5761653", "0.5752839", "0.570955", "0.5616154", "0.5575982", "0.55620974", "0.55525887", "0.5541127", "0.5540083", "0.5417441", "0.5332036", "0.5303911", "0.5282705", "0.52733356", "0.5262712", "0.5238001", "0.5221388", "0.5191675", "0.51878494", "0.51783174", "0.5148326", "0.5113919", "0.5100625", "0.51004034", "0.50978845", "0.50878626", "0.50764114", "0.50755554", "0.5068123", "0.5068123", "0.504604", "0.50452566", "0.50389516", "0.5036966", "0.50272083", "0.5011208", "0.50062805", "0.4988338", "0.4977342", "0.4975953", "0.4974343", "0.49720275", "0.49705055", "0.49647233", "0.49647233", "0.49647233", "0.4962049", "0.49427527", "0.49424666", "0.493675", "0.49290833", "0.4919581", "0.49190444", "0.49130645", "0.49092284", "0.4894631", "0.48812813", "0.4881043", "0.48740414", "0.48710492", "0.4870699", "0.48692", "0.48606724", "0.48570535", "0.48567867", "0.48474059", "0.48464948", "0.4821007", "0.4819193", "0.48103064", "0.48062935", "0.48023826", "0.48000702", "0.47999495", "0.47994635", "0.47984236", "0.47950307", "0.47942147", "0.47899732", "0.47896025", "0.4788125", "0.4787354", "0.4779639", "0.47768366", "0.47666213", "0.4762948", "0.4762702", "0.47619632", "0.47546348", "0.47522086", "0.47474128", "0.47456467", "0.47454956", "0.47411874" ]
0.5544405
13
Gets the value of the bonusAwarded property.
public double getBonusAwarded() { return bonusAwarded; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBonusAwarded(double value) {\n this.bonusAwarded = value;\n }", "public java.lang.Integer getAward () {\n\t\treturn award;\n\t}", "public int getBonus() {\n\t\treturn bonus;\n\t}", "@Override\n\tpublic BonusInterface getBonus() {\n\t\treturn bonus;\n\t}", "public int getBonusMoney() {\n return bonusMoney_;\n }", "public int getBonusMoney() {\n return bonusMoney_;\n }", "public double getDiscountAwarded() {\n return discountAwarded;\n }", "public long getBonusAmount() {\r\n return bonusAmount;\r\n }", "public com.rpg.framework.database.Protocol.BonusStats getBonusStats() {\n return bonusStats_;\n }", "public double getBonus(){\r\n return bonus;\r\n }", "public int getBonus(){\n return bonus;\n }", "public String getAwardNumber() {\n return awardNumber;\n }", "public int getBonusHP() {\n return bonusHP_;\n }", "public int getValueOfBonus() {\n return valueOfBonus;\n }", "public int getBonusHP() {\n return bonusHP_;\n }", "public Integer getAwardId() {\n return awardId;\n }", "public Float getBonusReference() {\n return bonusReference;\n }", "public String getAwardName() {\n return awardName;\n }", "public Long getAwardID() {\n return awardID;\n }", "public Float getBonusBole() {\n return bonusBole;\n }", "public BigDecimal getReward() {\n return reward;\n }", "public int getBonusExp() {\n return bonusExp_;\n }", "public int getBonusExp() {\n return bonusExp_;\n }", "public int getBonusExp() {\n return bonusExp_;\n }", "public int getBonusExp() {\n return bonusExp_;\n }", "public float getBonusExp() {\n return bonusExp_;\n }", "public int getYearlyBonus(){\n return this.yearlyBonus;\n }", "public float getBonusExp() {\n return bonusExp_;\n }", "public boolean getAchieved() {\n return this.achieved;\n }", "public double getReward() {\n return reward;\n }", "public com.rpg.framework.database.Protocol.BonusStats getBonusStats() {\n if (bonusStatsBuilder_ == null) {\n return bonusStats_;\n } else {\n return bonusStatsBuilder_.getMessage();\n }\n }", "public BigDecimal getBalanceBonus() {\n return balanceBonus;\n }", "public BigDecimal getRewardMoney() {\r\n return rewardMoney;\r\n }", "public double getReward() {\n if (inGoalRegion()) {\n return REWARD_AT_GOAL;\n } else {\n return REWARD_PER_STEP;\n }\n }", "@Override\n\tpublic double getBalanta() {\n\t\treturn this.balanta;\n\t}", "public Float getBonusRepurchase() {\n return bonusRepurchase;\n }", "public float getBonusPercentHP() {\n return bonusPercentHP_;\n }", "public float getBonusPercentHP() {\n return bonusPercentHP_;\n }", "public double getIdealAmount() {\n\t\treturn this.amountGoal;\n\t}", "public int getAchievements() {\n return achievements;\n }", "public BigDecimal getRewardPoint() {\n return rewardPoint;\n }", "public com.rpg.framework.database.Protocol.BonusStatsOrBuilder getBonusStatsOrBuilder() {\n return bonusStats_;\n }", "public Pokemon.DailyBonus getDailyBonus() {\n return dailyBonus_;\n }", "public Float getBonusRank() {\n return bonusRank;\n }", "public int getBonusMoneyID() {\n return bonusMoneyID_;\n }", "public int getBonusMoneyID() {\n return bonusMoneyID_;\n }", "public void setDiscountAwarded(double value) {\n this.discountAwarded = value;\n }", "@Override\n public int getBasicValue() {\n return minBonus;\n }", "public Integer getRewardStar() {\n return rewardStar;\n }", "public int getDamage () {\n\t\treturn (this.puissance + stuff.getDegat());\n\t}", "public String getBonusUrl() {\n return bonusUrl;\n }", "public int giveRaise(int bonus) {\n if (bonus >= 0) {\n this.salary += bonus;\n }\n return this.salary;\n }", "com.rpg.framework.database.Protocol.BonusStats getBonusStats();", "public int getBonus() {\n throw new UnsupportedOperationException(\"TODO: Implement\");\n\n }", "public int getExperienceGained() {\r\n return experienceGained;\r\n }", "@Override\r\n\tpublic final int getSaludBonus() {\r\n\t\treturn BONUSSALUD;\r\n\t}", "public BonusList getBonusList() {\r\n/* 159 */ return this._bonusList;\r\n/* */ }", "public int getDamageTaken() {\n return this.damageTaken;\n }", "@Basic @Immutable\n\tpublic int getDamage() {\n\t\treturn this.damage;\n\t}", "public int getGoal()\n {\n return goal;\n }", "@Override\n protected int getBonusPoints() {\n return leadership + experience;\n }", "public com.rpg.framework.database.Protocol.BonusStatsOrBuilder getBonusStatsOrBuilder() {\n if (bonusStatsBuilder_ != null) {\n return bonusStatsBuilder_.getMessageOrBuilder();\n } else {\n return bonusStats_;\n }\n }", "int getBonusHP();", "@Override\n public int getSpecialValue() {\n return maxBonus;\n }", "public WeightedPoint getGoal()\n {\n return map.getGoal();\n }", "public abstract int getBonus();", "public int getDamage() {\r\n\t\treturn myDamage;\r\n\t}", "public void setBonus(double bonus){\r\n this.bonus = bonus;\r\n }", "public Point getGoal() {\n return mGoal;\n }", "@java.lang.Override\n public int getBattlesWon() {\n return battlesWon_;\n }", "public float getBatt() {\n return batt_;\n }", "public int getDamage() {\n //TODO\n return 1;\n }", "@java.lang.Override\n public int getBattlesWon() {\n return battlesWon_;\n }", "public void getBonusPoints(){\n\t\tif((this.player[Dominoes.getPlayerIndex()].hand.size() == 0) && (Dominoes.missedRounds == 0)){\n\t\t\tshort bonusScore = 0;\n\t\t\tfor(byte i = 0; i < this.player.length; i++){\n\t\t\t\tif(i != Dominoes.getPlayerIndex()){\n\t\t\t\t\tbonusScore += (this.player[i].hand.size() * 5);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.player[Dominoes.getPlayerIndex()].score += bonusScore;\n\t\t}\n\t}", "public Float getBonusGroup() {\n return bonusGroup;\n }", "@Override\n\tpublic double bonus() {\n\t\treturn 0;\n\t}", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "@Override\r\n public int getBasicValue() {\n return this.getCombatLevel();\r\n }", "public int getBonusKeys() {\n return getStat(bonusKeys);\n }", "public float getBatt() {\n return batt_;\n }", "public Pokemon.DailyBonus getDailyBonus() {\n if (dailyBonusBuilder_ == null) {\n return dailyBonus_;\n } else {\n return dailyBonusBuilder_.getMessage();\n }\n }", "public int getGetDamage() {\r\n\t\treturn getDamage;\r\n\t}", "int getBonusMoney();", "public int bonusScore(Player p){\n int score = p.getBombRange() + p.getNumberBombRemaining() + p.getNumberMoveRemaining();\n return score;\n }", "public int getGoal() {\n\t\treturn this.map.getGoal();\n\t}", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage()\n\t{\n\t\treturn Damage;\n\t}", "int getRewardTrackValue();", "float getBonusExp();", "public int getDamage() {\n\t\treturn this.damage;\n\t}", "float getBonusPercentHP();", "int getBonusExp();" ]
[ "0.7189342", "0.70261604", "0.6880821", "0.65786815", "0.64730996", "0.6471048", "0.6470825", "0.6464037", "0.6434611", "0.6427276", "0.6403603", "0.6389521", "0.6353184", "0.6352098", "0.634794", "0.6288218", "0.6272559", "0.6249184", "0.62306815", "0.62214375", "0.6187376", "0.61551523", "0.6154991", "0.6149805", "0.61493474", "0.6132572", "0.61174923", "0.6117067", "0.60804754", "0.6080429", "0.6021212", "0.5992475", "0.5978128", "0.5966004", "0.59461915", "0.59066904", "0.5885271", "0.5871649", "0.5859685", "0.58593017", "0.58538866", "0.5848414", "0.5846739", "0.5758727", "0.57237", "0.5703292", "0.56946594", "0.5677102", "0.56527936", "0.56267154", "0.56132734", "0.56060976", "0.55778074", "0.55768627", "0.55705065", "0.55644673", "0.5550649", "0.55455095", "0.5533508", "0.55261236", "0.5516254", "0.5514248", "0.5509739", "0.55091023", "0.55020916", "0.5487937", "0.5484861", "0.54798913", "0.54746807", "0.5470673", "0.5455644", "0.54540366", "0.5453172", "0.5452725", "0.54520595", "0.5449824", "0.5449355", "0.5449355", "0.5449355", "0.5449355", "0.5449355", "0.5446036", "0.54423827", "0.5442149", "0.5436865", "0.5436269", "0.542565", "0.54239696", "0.54212576", "0.5420431", "0.5420431", "0.5420431", "0.5420431", "0.5420431", "0.5415956", "0.5409487", "0.5408714", "0.53840214", "0.5375465", "0.5361795" ]
0.82670313
0
Sets the value of the bonusAwarded property.
public void setBonusAwarded(double value) { this.bonusAwarded = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getBonusAwarded() {\n return bonusAwarded;\n }", "public void setDiscountAwarded(double value) {\n this.discountAwarded = value;\n }", "public void setAward (java.lang.Integer award) {\n\t\tthis.award = award;\n\t}", "public synchronized void attributeReward(int reward) {\n attributeReward = true;\n this.reward = reward;\n }", "public void setBonus(double bonus){\r\n this.bonus = bonus;\r\n }", "public final void setBonus(LeaderKingdomModifier bonus) {\r\n\tremove();\r\n\tthis.bonus = bonus;\r\n\tapply();\r\n }", "public boolean setBonus(boolean bonus) {\r\n\t\tthis.bonus = bonus;\r\n\t\tif (bonus == true) {\r\n\t\t\tif (!deck.isEmpty()) {\r\n\t\t\t\thand[5] = deck.remove(0);\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tdeck.add(hand[5]);\r\n\t\t\thand[5] = null;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public void setReward(BigDecimal reward) {\n this.reward = reward;\n }", "public void setReward(BigDecimal reward)\n {\n this.reward = reward;\n }", "public void addAwards(Integer awardedYear, String awardName) {\n this.awards.put(awardedYear, awardName);\n }", "public void setAwardID(Long awardID) {\n this.awardID = awardID;\n }", "public void setAchieved(boolean achieved) {\n this.achieved = achieved;\n }", "public void setAwardId(Integer awardId) {\n this.awardId = awardId;\n }", "public void setBonusBole(Float bonusBole) {\n this.bonusBole = bonusBole;\n }", "public void updateArmorBonus(int value){\n\t\t//TODO do we want a negative value???\n\t\tthis.armorBonus = value;\n\t}", "public void setBonusReference(Float bonusReference) {\n this.bonusReference = bonusReference;\n }", "public void setYearlyBonus(int yearlyBonus){\n this.yearlyBonus = yearlyBonus;\n }", "public void setAwardName(String awardName) {\n this.awardName = awardName == null ? null : awardName.trim();\n }", "public void setBonusScore() {\r\n count = count+50;\r\n }", "public void setAwards(TreeMap<Integer, String> awards) {\n this.awards = awards;\n }", "public void setAwardNumber(String awardNumber) {\n this.awardNumber = awardNumber;\n }", "public void setBonusAmount(long value) {\r\n this.bonusAmount = value;\r\n }", "public Integer getAwardId() {\n return awardId;\n }", "public java.lang.Integer getAward () {\n\t\treturn award;\n\t}", "public void setRewardStar(Integer rewardStar) {\n this.rewardStar = rewardStar;\n }", "public void setRewardMoney(BigDecimal rewardMoney) {\r\n this.rewardMoney = rewardMoney;\r\n }", "public String getAwardNumber() {\n return awardNumber;\n }", "public String getAwardName() {\n return awardName;\n }", "public void setAwayScore(int a);", "public Long getAwardID() {\n return awardID;\n }", "public void givePlayerLevelBonus() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\t\tp.addScore(5 * (currentLevel-1));\n\t\t\t}\n\t\t}\n\t\tserver.updateHighscoreList();\n\t\tserver.addTextToLoggingWindow(\"Server gives all players level bonus\");\n\t}", "public Builder setBonusHP(int value) {\n bitField0_ |= 0x00000001;\n bonusHP_ = value;\n onChanged();\n return this;\n }", "Builder addAwards(String value);", "public void setRewardPoint(BigDecimal rewardPoint) {\n this.rewardPoint = rewardPoint;\n }", "public void setBonusList(BonusList bonusList) {\r\n/* 372 */ this._bonusList = bonusList;\r\n/* */ }", "public void awardPoints(int points)\n {\n score += points ;\n }", "public int giveRaise(int bonus) {\n if (bonus >= 0) {\n this.salary += bonus;\n }\n return this.salary;\n }", "public void setAchievements(int achievements) {\n this.achievements = achievements;\n }", "public void setBonusGroup(Float bonusGroup) {\n this.bonusGroup = bonusGroup;\n }", "public void setBonusRank(Float bonusRank) {\n this.bonusRank = bonusRank;\n }", "public void setScores(int id, int bonus) {\n scores.set(id, bonus);\n }", "public Builder setBonusStats(com.rpg.framework.database.Protocol.BonusStats value) {\n if (bonusStatsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n bonusStats_ = value;\n onChanged();\n } else {\n bonusStatsBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n return this;\n }", "Builder addAwards(Text value);", "@Override\n public void onRewarded(RewardItem reward) {\n\n // Reward the user.\n }", "public Builder setBonusMoney(int value) {\n bitField0_ |= 0x00000010;\n bonusMoney_ = value;\n onChanged();\n return this;\n }", "Builder addAward(String value);", "void awardPoints(){\n if (currentPoints <= 100 - POINTSGIVEN) {\n currentPoints += POINTSGIVEN;\n feedback = \"Your current rating is: \" + currentPoints + \"%\";\n }\n }", "public void setBonusUrl(String bonusUrl) {\n this.bonusUrl = bonusUrl == null ? null : bonusUrl.trim();\n }", "public void setGoal(Point point) {\n mGoal = point;\n }", "public void addBonus() {\r\n game.settings.setBonusDay(strDate);\r\n }", "public void setBonusRepurchase(Float bonusRepurchase) {\n this.bonusRepurchase = bonusRepurchase;\n }", "public void setBalanceBonus(BigDecimal balanceBonus) {\n this.balanceBonus = balanceBonus;\n }", "public double getDiscountAwarded() {\n return discountAwarded;\n }", "public void setBonusClient(RPCClient bonusClient) {\n\t\tthis.bonusClient = bonusClient;\n\t}", "public void setPromoBonusId(DBSequence value) {\n setAttributeInternal(PROMOBONUSID, value);\n }", "@Override\n\tprotected boolean on_bonus_taken(GfxObject bonus) {\n\t\treturn false;\n\t}", "public Builder setBonusMoneyID(int value) {\n bitField0_ |= 0x00000020;\n bonusMoneyID_ = value;\n onChanged();\n return this;\n }", "public final void setGoal(final int goal)\n {\n this.goal = goal;\n }", "@Override\n public void setAdjustedScore(final double theAdjustedScore) {\n this.adjustedScore = theAdjustedScore;\n }", "public void setCompleted(boolean achievementCompleted) {\n\t\t\n\t\tcompleted = achievementCompleted;\n\t\t\n\t}", "public int getBonus() {\n\t\treturn bonus;\n\t}", "public boolean checkBonus() {\r\n\t\tif (bonus) {\r\n\t\t\tbonus = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public final void setPenalty(LeaderKingdomModifier penalty) {\r\n\tremove();\r\n\tthis.penalty = penalty;\r\n\tapply();\r\n }", "public void setDamage() {\n\t\tRandom rand = new Random();\n\t\tint damage = rand.nextInt(getMaxDamage()) + 1;\n\t\tthis.damage = damage;\n\t}", "public void giveGold(int amtGiven) {\n\t\tsetGoldAmt(getGoldAmt() + amtGiven);\n\t}", "public void addScoreToAthlete(Athlete athlete, int score) {\n for (Athlete a : getAllAthletes()) {\n if (athlete.getId() == a.getId()) {\n a.setScore(score);\n }\n }\n }", "@Override\n\tpublic double bonus() {\n\t\treturn 0;\n\t}", "public void addPenaltyA(View view) {\n scoreTeamA = scoreTeamA + 3;\n displayForTeamA(scoreTeamA);\n }", "public void setRevealed(int revealed) { revealedShips = revealed;}", "@Override\n\tpublic void getAwardPointsResponse(String arg0, int arg1) {\n\t\t\n\t}", "public void addToScore(int id, int bonus){\n scores.set(id,scores.get(id) + bonus);\n }", "public synchronized void setGoldAmt(int newAmt) {\n\t\tgoldAmt = newAmt;\n\t\tif(goldAmt < 0) \n\t\t\tgoldAmt = 0;\n\t\tgameHud.setGold(goldAmt);\n\t\t\n\t}", "public void setExperienceGained(int experienceGained) {\r\n this.experienceGained = experienceGained;\r\n }", "public Builder setBonusPercentHP(float value) {\n bitField0_ |= 0x00000002;\n bonusPercentHP_ = value;\n onChanged();\n return this;\n }", "public Builder setBonusExp(int value) {\n bitField0_ |= 0x00000002;\n bonusExp_ = value;\n onChanged();\n return this;\n }", "public Saving bonusAmount(String bonusAmount) {\n this.bonusAmount = bonusAmount;\n return this;\n }", "public void setGoalsScored (int goalsScored ) {\r\n\t\tthis.goalsScored = goalsScored;\r\n\t}", "public void hit(int melee_dmg,int range_dmg) {\n melee_dmg=this.current_atk-30;\n range_dmg=this.current_atk-60;\n }", "public BigDecimal getReward() {\n return reward;\n }", "public Builder setBonusExp(int value) {\n bitField0_ |= 0x00000008;\n bonusExp_ = value;\n onChanged();\n return this;\n }", "void giveReward(BPlayer bPlayer, int tier, int status);", "public void addAwardKillerNotDead() {\n\t\tfor (int i = 0; i < killers.size(); i++) {\n\t\t\tif (killerHasNotDeath(killers.get(i).getName())) {\n\t\t\t\tint awards = killers.get(i).getAwardMatchWithoutDeath();\n\t\t\t\tkillers.get(i).setAwardMatchWithoutDeath(awards + 1);\n\t\t\t}\n\n\t\t}\n\t}", "Builder addAward(Text value);", "public double getBonus(){\r\n return bonus;\r\n }", "public void setAchieved(Boolean newValue);", "@Override\n\tpublic BonusInterface getBonus() {\n\t\treturn bonus;\n\t}", "public void setHungerDamage(float hunger);", "public long getBonusAmount() {\r\n return bonusAmount;\r\n }", "private void ustawienie_bonusu(String bonus)\n {\n switch (bonus)\n {\n case \"+10 naboi\":\n liczba_naboi+=10;\n break;\n case \"+zycie\":\n liczba_zyc+=1;\n break;\n case \"-zycie\":\n liczba_zyc-=1;\n break;\n case \"+wieksze pilki\":\n rozmiar_pilki+=1;\n break;\n case \"+5 naboi\":\n liczba_naboi+=5;\n case \"+40 punktow\":\n liczba_punktow+=40;\n break;\n case \"+duze pilki\":\n break;\n }\n }", "@Override\n\tpublic void landedOn() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(300);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 300 dollars by landing on Bonus Square\");\n\t\tMonopolyGameController.allowCurrentPlayerToEndTurn();\n\n\t}", "BonusResponse add(Long customerId, Long authorizedBy, BonusRequest bonus);", "public void addPointForTeamA(View view) {\n teamA_score = teamA_score + 1;\n if (ADVANTAGE == 1) {\n advantageMode(teamA_score, teamB_score);\n } else\n checkScore(teamA_score, teamB_score);\n }", "public Builder setBonusExp(float value) {\n bitField0_ |= 0x00000040;\n bonusExp_ = value;\n onChanged();\n return this;\n }", "public void setAllottedAmount (java.math.BigDecimal allottedAmount) {\n\t\tthis.allottedAmount = allottedAmount;\n\t}", "public void hitAlienScore() {\r\n //Add 5 to the score\r\n score += 5;\r\n System.out.println(\"Current Score = \"+score);\r\n }", "@Override\n public boolean isPointRequirementMet(final int awardedPoints) {\n totalPoints += awardedPoints;\n\n requirementMet = totalPoints >= requiredPoints;\n\n log.info(\"Points awarded: '{}', New total points: '{}', Required total points: '{}', met: '{}'\",\n new Object[] {awardedPoints, totalPoints, requiredPoints, requirementMet});\n\n return requirementMet;\n }", "public void setAveraged(int averaged) {\n\t\tthis.averaged = averaged;\n\t}", "public void setGoal(Goal goal) {\n this.put(\"goal\", goal);\n }", "public int getYearlyBonus(){\n return this.yearlyBonus;\n }", "public void setCurrentAbilityTarget(int enemyTargetIntentX, int enemyTargetIntentY, boolean hitOrSplat) {\n this.currentAbilityTargetX = enemyTargetIntentX;\n this.currentAbilityTargetY = enemyTargetIntentY;\n this.currentlyAbilityHit = hitOrSplat;\n }" ]
[ "0.66820145", "0.66467386", "0.65807694", "0.6580285", "0.6521594", "0.6315043", "0.6110546", "0.6038631", "0.60240316", "0.6005822", "0.58817124", "0.578412", "0.57101166", "0.5701424", "0.5679258", "0.5656165", "0.5553217", "0.55311877", "0.55192167", "0.55033857", "0.54906327", "0.54818183", "0.54226464", "0.5399533", "0.5386801", "0.53766525", "0.53753316", "0.53448254", "0.5343318", "0.53429544", "0.5322287", "0.5312838", "0.52971035", "0.5286996", "0.52192324", "0.52191883", "0.51718014", "0.51692724", "0.51639235", "0.51521456", "0.51359016", "0.51179856", "0.51115584", "0.50923955", "0.50815874", "0.50665563", "0.5035053", "0.50160295", "0.501423", "0.49633372", "0.4962027", "0.4954006", "0.49491957", "0.49476674", "0.49474502", "0.49404803", "0.49103934", "0.4897747", "0.48937577", "0.4886593", "0.48612785", "0.48595527", "0.48396164", "0.4811991", "0.48015735", "0.47955278", "0.47952884", "0.4783481", "0.47827175", "0.4779771", "0.47762388", "0.47722915", "0.4770509", "0.47665262", "0.4763381", "0.47599825", "0.47578084", "0.47532624", "0.47450727", "0.4744593", "0.47413832", "0.4738358", "0.47254068", "0.47160518", "0.4708925", "0.47016338", "0.47013694", "0.46971276", "0.4695808", "0.46900836", "0.46867925", "0.46829808", "0.46817505", "0.46732703", "0.46724778", "0.46599233", "0.4641977", "0.46401837", "0.46371982", "0.4634909" ]
0.80903953
0
Gets the value of the discountAwarded property.
public double getDiscountAwarded() { return discountAwarded; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDiscountAwarded(double value) {\n this.discountAwarded = value;\n }", "public double getBonusAwarded() {\n return bonusAwarded;\n }", "public java.lang.Integer getAward () {\n\t\treturn award;\n\t}", "public double getDiscountedAmt() {\n\t\t\treturn discountedAmt;\r\n\t\t}", "public int getDiscount() {\n\t\treturn discount;\n\t}", "Money getDiscountValue();", "public java.math.BigDecimal getDiscount () {\n\t\treturn discount;\n\t}", "public String getDiscount() {\n return discount;\n }", "public double discountRate () {\n return discountRate;\n }", "public MMDecimal getDiscountAmount() {\r\n return this.discountAmount;\r\n }", "public double getDiscountRate() {\n\t return discountRate;\n\t}", "@Override\n\tpublic double calcDiscount() {\n\t\treturn discount;\n\t}", "public double getDiscountedAmount()\n\t{\n\t\treturn purchase.getPayment().getDiscountedAmount();\n\t}", "public void setBonusAwarded(double value) {\n this.bonusAwarded = value;\n }", "public double getDiscount();", "float getDiscount();", "public ArmCurrency getPromotionalDiscountAmount() {\n ArmCurrency rtnVal = promoAmt;\n if (isReturn && rtnVal != null) {\n rtnVal = rtnVal.multiply( -1).round();\n }\n return (rtnVal);\n }", "@Override\n public double getDiscount() {\n return (30 /(1 + Math.exp(-1 * (this.years - 2) )))/100;\n }", "public Float getDiscountPrice() {\n return this.DiscountPrice;\n }", "public BigDecimal getDiscountPrice() {\n return discountPrice;\n }", "@Override\n\tpublic float getDiscount() {\n\t\treturn 0.0f;\n\t}", "public int getPaymentDiscountID() {\n return paymentDiscountID_;\n }", "@Override\n\tpublic double getDiscount() {\n\t\treturn 0.0;\n\t}", "public int getPaymentDiscountID() {\n return paymentDiscountID_;\n }", "public BigDecimal getReward() {\n return reward;\n }", "BigDecimal getDiscount();", "public double getIdealAmount() {\n\t\treturn this.amountGoal;\n\t}", "public double getDamage() {\r\n\t\treturn damage;\r\n\t}", "@Basic @Immutable\n\tpublic int getDamage() {\n\t\treturn this.damage;\n\t}", "public Long getAwardID() {\n return awardID;\n }", "public Float getBonusRepurchase() {\n return bonusRepurchase;\n }", "public Integer getAwardId() {\n return awardId;\n }", "public double getReward() {\n return reward;\n }", "public int getDamage() {\r\n\t\treturn myDamage;\r\n\t}", "public double getDamage() {\n return damage;\n }", "public double getDiscount()\n\t{\n\t\tif(customerPurchase >= 2000)\n\t\t\treturn 0.1;\n\t\telse if(customerPurchase >= 1500)\n\t\t\treturn 0.07;\n\t\telse if(customerPurchase >= 1000)\n\t\t\treturn 0.06;\n\t\telse if(customerPurchase >= 500)\n\t\t\treturn 0.05;\n\t\telse\n\t\t\treturn 0;\n\t}", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n\t\treturn this.damage;\n\t}", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public int getDamage() {\n return damage_;\n }", "public double discountedPrice (){\n return basePrice - basePrice * discountRate;\n }", "public double getIncome() {\n\n return gross;\n }", "public String getAwardNumber() {\n return awardNumber;\n }", "public int getAlcance() {\n return alcance;\n }", "@Override\n\tpublic float discount() {\n\t\treturn 5.0f;\n\t}", "public abstract double getDiscountRate();", "public BigDecimal getRewardMoney() {\r\n return rewardMoney;\r\n }", "@Override\n\tpublic void get(Discount discount) {\n\t\t\n\t}", "public int getDamageTaken() {\n return this.damageTaken;\n }", "public int getDamage() {\r\n\t\treturn damage;\r\n\t}", "@Override\n\tpublic double getBalanta() {\n\t\treturn this.balanta;\n\t}", "public Number getPercentage() {\n return (Number) getAttributeInternal(PERCENTAGE);\n }", "public ArmCurrency getManualDiscountAmount() {\n ArmCurrency rtnVal = manualAmt;\n if (isReturn && rtnVal != null) {\n rtnVal = rtnVal.multiply( -1).round();\n }\n return (rtnVal);\n }", "public int getDamage() {\n return damage;\n }", "public int getDamage()\n\t{\n\t\treturn Damage;\n\t}", "public double getAccruedInterest() {\n return _accruedInterest;\n }", "public double getAccruedInterest() {\n return _accruedInterest;\n }", "public double get_family_discountcost() {\n\t\treturn familydiscount;\n\t}", "public int getDamage() {\n\t\t\treturn damage;\n\t\t}", "public String getAwardName() {\n return awardName;\n }", "public int getGetDamage() {\r\n\t\treturn getDamage;\r\n\t}", "public float getDamage() {\n return damage;\n }", "public int getDamage() {\n\t\treturn itemDamage;\n\t}", "public double getPaid() {\n return paid_;\n }", "@ApiModelProperty(value = \"The amount of discount money refunded. This amount is always positive.\")\n public V1Money getRefundedDiscountMoney() {\n return refundedDiscountMoney;\n }", "public double getBonus(){\r\n return bonus;\r\n }", "public double getReward() {\n if (inGoalRegion()) {\n return REWARD_AT_GOAL;\n } else {\n return REWARD_PER_STEP;\n }\n }", "public double getPaid() {\n return paid_;\n }", "public Integer getCargodamaged() {\n return cargodamaged;\n }", "@Override\n public double getDefenseAmount() {\n return this.getDefense().getAbilityValue();\n }", "public double getDiscount(){\n\t\tdouble sub_tot = getSubTotal();\n\t\tdouble discount_rate = getDiscountRate();\n\t\tdouble discount = sub_tot * discount_rate;\n\t\t//this should round the discount to 2 decimal places\n\t\tdouble rounded_discount = Math.round(discount * 100.0) / 100.0;\n\t\treturn rounded_discount;\n\t}", "public int getDamage () {\n\t\treturn (this.puissance + stuff.getDegat());\n\t}", "public long getBonusAmount() {\r\n return bonusAmount;\r\n }", "public int getDamageDealt () {\r\n\t\treturn this.damageDealt;\r\n\t}", "public BigDecimal getGlobalDiscount() {\n\t\treturn globalDiscount;\n\t}", "public int getYearlyBonus(){\n return this.yearlyBonus;\n }", "public int getDamage() {\n //TODO\n return 1;\n }", "public int getBonusHP() {\n return bonusHP_;\n }", "public int getBonus() {\n\t\treturn bonus;\n\t}", "@Override\n public double getDamageAmount() {\n return this.getStrength().getAbilityValue();\n }", "public int getBonusHP() {\n return bonusHP_;\n }", "public ArmCurrency getSettlementDiscountAmount() {\n ArmCurrency rtnVal = settleAmt;\n if (isReturn && rtnVal != null) {\n rtnVal = rtnVal.multiply( -1).round();\n }\n return (rtnVal);\n }", "public double getAmountPaid() {\r\n\t\treturn amountPaid;\r\n\t}", "public float getPayableAmount() {\n /**\n * { var_description }.\n */\n float dscnt = NUM3 * coupon;\n /**\n * { item_description }.\n */\n return (getTotalAmount() * (1f - dscnt)) * NUM5;\n }", "public int getDamageTaken () {\r\n\t\treturn this.damageTaken;\r\n\t}", "public int getAnnualIncome() {\n return annualIncome;\n }", "public int getExperienceGained() {\r\n return experienceGained;\r\n }", "public Integer getAllowance() {\n Integer allowanceTemp = initialAllowance + sales + deliverSales - purchases - deliverPurchases;\n return allowanceTemp;\n }", "public Pokemon.DailyBonus getDailyBonus() {\n return dailyBonus_;\n }", "abstract double calculateCurrentDiscountRate();", "public int getValueOfBonus() {\n return valueOfBonus;\n }", "public double getSettlementDiscountPercent() {\n return (settlePct);\n }", "public int getBonusMoney() {\n return bonusMoney_;\n }" ]
[ "0.74287915", "0.720102", "0.6478244", "0.64147425", "0.6413798", "0.63921577", "0.63708216", "0.635931", "0.63301885", "0.63034314", "0.6255045", "0.62100613", "0.61481243", "0.6140662", "0.61160797", "0.60599136", "0.60250854", "0.5994084", "0.5901607", "0.58884233", "0.58022696", "0.57971513", "0.5790569", "0.57267135", "0.5695078", "0.5669043", "0.56502205", "0.5639511", "0.56345457", "0.56112826", "0.5609598", "0.55988026", "0.55972797", "0.55969864", "0.5596577", "0.5576944", "0.55748296", "0.55748296", "0.55748296", "0.55748296", "0.55748296", "0.55604845", "0.5558489", "0.5558489", "0.5558489", "0.5558489", "0.5558489", "0.5540781", "0.5536148", "0.5530394", "0.55108243", "0.5483643", "0.5477997", "0.54772824", "0.54740137", "0.5470575", "0.5467813", "0.5459946", "0.5458384", "0.545591", "0.5454432", "0.5447881", "0.5441653", "0.5441653", "0.54350114", "0.54252005", "0.5420781", "0.54165006", "0.540547", "0.54010415", "0.53992385", "0.5395013", "0.5394724", "0.5394422", "0.5393274", "0.53896475", "0.53778857", "0.5350531", "0.53483385", "0.5343707", "0.5336441", "0.5332842", "0.5331861", "0.5324342", "0.5312097", "0.53117406", "0.5308607", "0.52937186", "0.5278602", "0.5259804", "0.5251378", "0.52485895", "0.52414465", "0.52399224", "0.52368504", "0.52265745", "0.52226573", "0.5221568", "0.5220023", "0.521368" ]
0.8248119
0
Sets the value of the discountAwarded property.
public void setDiscountAwarded(double value) { this.discountAwarded = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBonusAwarded(double value) {\n this.bonusAwarded = value;\n }", "public double getDiscountAwarded() {\n return discountAwarded;\n }", "public void setAward (java.lang.Integer award) {\n\t\tthis.award = award;\n\t}", "public synchronized void attributeReward(int reward) {\n attributeReward = true;\n this.reward = reward;\n }", "public void setDiscount(int discountValue) {\n\t\tthis.discount = discountValue;\n\t}", "public double getBonusAwarded() {\n return bonusAwarded;\n }", "public abstract void setDiscountRate(double discountRate);", "void setDiscount(BigDecimal discount);", "public void setDiscountedAmt(double discountedAmt) {\n\t\t\tthis.discountedAmt = discountedAmt;\r\n\t\t\t\r\n\t\t}", "public void setDiscount (java.math.BigDecimal discount) {\n\t\tthis.discount = discount;\n\t}", "public void setReward(BigDecimal reward) {\n this.reward = reward;\n }", "public void setReward(BigDecimal reward)\n {\n this.reward = reward;\n }", "public void addAwards(Integer awardedYear, String awardName) {\n this.awards.put(awardedYear, awardName);\n }", "public void changeDiscountRate (double value) {\n this.discountRate = value;\n }", "public void setDiscountAmount(MMDecimal discountAmount) {\r\n this.discountAmount = discountAmount;\r\n }", "public void setAwardID(Long awardID) {\n this.awardID = awardID;\n }", "private void setDiscount(double initDiscount){\n\t\tdiscount = initDiscount;\n\t}", "void setDiscount(float sconto);", "@Override\n\tpublic void update(Discount discount) {\n\t\t\n\t}", "void update(Discount discount) throws ServiceException;", "@Override\n\t\tpublic void setTotalDocumentDiscount(BigDecimal discountAmount) {\n\t\t\tsetChargeAmt(discountAmount.negate());\n\t\t\tif (discountAmount.compareTo(BigDecimal.ZERO) == 0) {\n\t\t\t\tsetC_Charge_ID(0);\n\t\t\t}\n\t\t\tupdateAmounts();\n\t\t}", "public void setAwardId(Integer awardId) {\n this.awardId = awardId;\n }", "public void setBonus(double bonus){\r\n this.bonus = bonus;\r\n }", "public void setStatisticalAdvice(Advice coachAdvice){\n\t\tSystem.out.println(\"Inside setter method\");\n\t\tthis.statisticalAdvice = coachAdvice;\n\t}", "public java.lang.Integer getAward () {\n\t\treturn award;\n\t}", "protected void handleDiscount(int index, float discount)\n\t{\n\t\tif (discount < 0.0 || discount > 100.0)\n\t\t{\n\t\t\tSystem.out.println(discount + \" is an invalid amount to set - exitting program\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tindex -= 1;\n\t\tList_Discounts.set(index, discount);\n\t\tSystem.out.println(\"Successfully set \" + List_ParkingLots.get(index).parkingLotName + \" Discount to : \" + discount);\n\t}", "public void setDiscount(String discount) {\n this.discount = discount == null ? null : discount.trim();\n }", "@Override\n\tpublic double calcDiscount() {\n\t\treturn discount;\n\t}", "public void setAwardName(String awardName) {\n this.awardName = awardName == null ? null : awardName.trim();\n }", "public void setDiscountPrice(BigDecimal discountPrice) {\n this.discountPrice = discountPrice;\n }", "@Override\n\tpublic void get(Discount discount) {\n\t\t\n\t}", "public void setDamage(double d) {\n damage = d;\n }", "public Builder setPaymentDiscountID(int value) {\n \n paymentDiscountID_ = value;\n onChanged();\n return this;\n }", "@Override\r\n\tpublic void makeDiscount() {\n\t\t\r\n\t}", "public Long getAwardID() {\n return awardID;\n }", "public Integer getAwardId() {\n return awardId;\n }", "public void setDiscounts(ArrayList<Integer> discounts) {\n\t\tthis.discounts = discounts;\n\t}", "public String getDiscount() {\n return discount;\n }", "@Override\n\tpublic void add(Discount discount) {\n\t\t\n\t}", "public void setDamage(int d) {\r\n this.damage = d;\r\n }", "public void setRewardMoney(BigDecimal rewardMoney) {\r\n this.rewardMoney = rewardMoney;\r\n }", "public int getDiscount() {\n\t\treturn discount;\n\t}", "public void setDiscountFactor(double discountFactor) {\n this.discountFactor = Math.max(0.0, Math.min(1.0, discountFactor));\n }", "public void setDiscountPrice(Float DiscountPrice) {\n this.DiscountPrice = DiscountPrice;\n }", "public void setBonusScore() {\r\n count = count+50;\r\n }", "public void setAwardNumber(String awardNumber) {\n this.awardNumber = awardNumber;\n }", "public double discountRate () {\n return discountRate;\n }", "public MMDecimal getDiscountAmount() {\r\n return this.discountAmount;\r\n }", "@Override\n public void setAdjustedScore(final double theAdjustedScore) {\n this.adjustedScore = theAdjustedScore;\n }", "public void clickSetDiscount() {\n waitFor(20);\n if (isElementVisible(\"set_diskon_menu_lainnya\", 10)) {\n tapElement(\"set_diskon_menu_lainnya\");\n } else {\n deleteDiscount();\n editWithMenuLainnya();\n clickSetDiscount();\n }\n }", "public double getDiscountRate() {\n\t return discountRate;\n\t}", "public double getDiscountedAmt() {\n\t\t\treturn discountedAmt;\r\n\t\t}", "public void setBonusRepurchase(Float bonusRepurchase) {\n this.bonusRepurchase = bonusRepurchase;\n }", "@Override\n\tpublic float discount() {\n\t\treturn 5.0f;\n\t}", "public String getAwardNumber() {\n return awardNumber;\n }", "public void setAveraged(int averaged) {\n\t\tthis.averaged = averaged;\n\t}", "public void setAwayScore(int a);", "void updateVariableDiscount(int acc_no, Double discount_rate, String catalog_name);", "public void setLastDamage ( double damage ) {\n\t\texecute ( handle -> handle.setLastDamage ( damage ) );\n\t}", "@Override\n public double getDiscount() {\n return (30 /(1 + Math.exp(-1 * (this.years - 2) )))/100;\n }", "float getDiscount();", "public String getAwardName() {\n return awardName;\n }", "static float addDiscount(float originalPrice, String discountName, float discountPercentage) {\n float discountedPrice = originalPrice * (1 - discountPercentage);\n float discount = discountedPrice - originalPrice;\n printEntry(discountName, discount);\n return discountedPrice;\n }", "public void adjustPay(double percentage){\r\n this.commission = getCommission() + getCommission() * percentage;\r\n }", "public void setYearlyBonus(int yearlyBonus){\n this.yearlyBonus = yearlyBonus;\n }", "Order modifyDiscountToOrder(Order order, int discountToAppply);", "public void setDamage(double newDamage) {\n Validations.nonNegative(newDamage, \"newDamage\");\n damage = newDamage;\n }", "@Override\n\tpublic float getDiscount() {\n\t\treturn 0.0f;\n\t}", "Money getDiscountValue();", "public void setAnnualIncome(int value) {\n this.annualIncome = value;\n }", "public void setAdviceResponse(com.ipcommerce.schemas.CWS.v2_0.Transactions.Bankcard.AdviceResponse adviceResponse) {\n this.adviceResponse = adviceResponse;\n }", "public void setPaid() {\n isPaid = true;\n }", "public double getDiscount();", "public void setRewardPoint(BigDecimal rewardPoint) {\n this.rewardPoint = rewardPoint;\n }", "public void setDamage(double damage) {\r\n\t\tthis.damage = damage;\r\n\t}", "public synchronized void setGoldAmt(int newAmt) {\n\t\tgoldAmt = newAmt;\n\t\tif(goldAmt < 0) \n\t\t\tgoldAmt = 0;\n\t\tgameHud.setGold(goldAmt);\n\t\t\n\t}", "@Override\n\tpublic double getDiscount() {\n\t\treturn 0.0;\n\t}", "public void setAchieved(boolean achieved) {\n this.achieved = achieved;\n }", "public void setAwards(TreeMap<Integer, String> awards) {\n this.awards = awards;\n }", "@Override\n\tpublic void setAttack(double attack) {\n\n\t}", "public java.math.BigDecimal getDiscount () {\n\t\treturn discount;\n\t}", "public int getPaymentDiscountID() {\n return paymentDiscountID_;\n }", "public void takeDamage(int dmg){ \r\n\t\tif(hitPoints - dmg >= 0){\r\n\t\t\tSystem.out.print(this.getName() + \" took \" + dmg + \" damage! \\n\");\r\n\t\t\tSystem.out.print(this.name + \"'s Hit Points: \" + hitPoints + \" ---> \" + (hitPoints-dmg) + \"\\n\");\r\n\t\t\thitPoints -= dmg;\r\n\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.print(this.getName() + \" took \" + dmg + \" damage! \\n\");\r\n\t\t\tSystem.out.print(this.name + \"'s Hit Points: \" + hitPoints + \" ---> \" + 0 + \"\\n\");\r\n\t\t\thitPoints = 0;\r\n\t\t}\r\n\t\tif(hitPoints == 0){\r\n\t\t\tthis.isAlive = false;\r\n\t\t\tSystem.out.print(this.name + \" has been incapacitated.\\n\");\r\n\t\t}\r\n\r\n\t}", "public final void setBonus(LeaderKingdomModifier bonus) {\r\n\tremove();\r\n\tthis.bonus = bonus;\r\n\tapply();\r\n }", "@RequestMapping(value = \"/adddiscount\", method = RequestMethod.POST)\r\n\tpublic DiscountBean addDiscount(DiscountBean discount) throws DiscountDateExceedException {\r\n\t\r\n\t\t\treturn service.addDiscount(discount);\r\n\t\t\r\n\t}", "public void setNextCycleDiscount(Double nextCycleDiscount)\t{\n\t\tif(nextCycleDiscount !=null)\n\t\t mNextCycleDiscount = nextCycleDiscount;\n\t}", "public void setReputation(double reputation) {\n if(reputation >= 0.0 && reputation <= 100.0){\n this.reputation = reputation;\n }\n else if(reputation > 100.0){\n this.reputation = 100.0;\n }\n else{\n this.reputation = 0.0;\n }\n}", "public void setAspiration(Aspiration aspiration) {\r\n this.aspiration = aspiration;\r\n }", "public int getPaymentDiscountID() {\n return paymentDiscountID_;\n }", "public BigDecimal getDiscountPrice() {\n return discountPrice;\n }", "public void setRewardStar(Integer rewardStar) {\n this.rewardStar = rewardStar;\n }", "public void setAttack(double attack) {\n this.attack = attack;\n }", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "public BigDecimal getReward() {\n return reward;\n }", "abstract double calculateCurrentDiscountRate();", "public void setDamage() {\n\t\tRandom rand = new Random();\n\t\tint damage = rand.nextInt(getMaxDamage()) + 1;\n\t\tthis.damage = damage;\n\t}", "private void setDiscountedPrice() {\n seekbarNewprice.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n tvDiscountPerc.setText(progress * 5 + \"%\");\n try {\n double originalPrice = Double.parseDouble(etOriginalPrice.getText().toString());\n double sp = (progress * 5 * originalPrice) / 100;\n\n tvNewPrice.setText(String.format(Locale.US, \"%.2f\", originalPrice - sp));\n } catch (NumberFormatException ne) {\n ne.printStackTrace();\n }\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n }", "boolean checkActiveDiscount(Discount discount) throws ServiceException;", "public void giveGold(int amtGiven) {\n\t\tsetGoldAmt(getGoldAmt() + amtGiven);\n\t}", "@Override\n\tpublic void setDefense(double defense) {\n\n\t}" ]
[ "0.6855145", "0.6849902", "0.60852325", "0.6073895", "0.57727367", "0.5770046", "0.568689", "0.5602707", "0.558396", "0.556591", "0.5560585", "0.5551131", "0.548662", "0.5468516", "0.5465939", "0.53499764", "0.5330526", "0.53012085", "0.51290184", "0.5090893", "0.50801784", "0.5067989", "0.5043832", "0.50272983", "0.50168246", "0.5009966", "0.50088966", "0.4994386", "0.49425542", "0.4913306", "0.4911383", "0.4907635", "0.4898073", "0.4892009", "0.48815796", "0.48706624", "0.48686072", "0.48529205", "0.48482478", "0.48464698", "0.48251784", "0.4818104", "0.48157555", "0.48149955", "0.48104107", "0.48057795", "0.47558516", "0.4749263", "0.47334817", "0.47283146", "0.47222388", "0.47203726", "0.4685055", "0.4682756", "0.4677964", "0.4652197", "0.46470296", "0.46255672", "0.46214405", "0.46197674", "0.46112674", "0.46069092", "0.46007738", "0.45996073", "0.45960763", "0.45900503", "0.45848352", "0.45843038", "0.45782423", "0.45752844", "0.45557204", "0.45526233", "0.4548666", "0.4541786", "0.4541028", "0.45349306", "0.45027536", "0.44968486", "0.4495569", "0.44945282", "0.4486682", "0.44834155", "0.44829842", "0.44792545", "0.44770032", "0.4476836", "0.4454111", "0.44508582", "0.44398645", "0.4438065", "0.44336757", "0.44224322", "0.4422229", "0.441717", "0.4415871", "0.4409119", "0.43950883", "0.43937784", "0.43861818", "0.43848863" ]
0.82557416
0
Gets the value of the conversionRate property.
public double getConversionRate() { return conversionRate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getRate() {\r\n return Integer.parseInt(RATES[Rate]);\r\n }", "public Integer getRate() {\r\n return rate;\r\n }", "public Double getConversionValue() {\r\n return conversionValue;\r\n }", "public float getRate() {\n\t\treturn rate;\n\t}", "public void setConversionRate(double value) {\n this.conversionRate = value;\n }", "public int getRate() {\n return rate_;\n }", "public float getByteRate() {\n return byteMonitor.getRate();\n }", "public int getRate() {\n return rate_;\n }", "public double getRate() {\n\t\treturn rate;\n\t}", "public double getRate() {\n return rate;\n }", "public double getRate() {\n return rate;\n }", "public float getRate(){\r\n return rate;\r\n }", "public BigDecimal getExchangeRate() {\n return exchangeRate;\n }", "public Float getCploadRate() {\r\n return cploadRate;\r\n }", "public Double getConversionRateManyPerClick() {\r\n return conversionRateManyPerClick;\r\n }", "public Double getClickConversionRate() {\r\n return clickConversionRate;\r\n }", "public String getTransmitRate()\r\n\t{\r\n\t\treturn transmitRate;\r\n\t}", "double getRate();", "public float getRate() {\n\treturn durationStretch * nominalRate;\n }", "Integer getBitRate() {\n return bitRate;\n }", "public String getRegularRate() {\n return regularRate;\n }", "public Rate rate() {\n _initialize();\n return rate;\n }", "double getTransRate();", "public double getRate() {\r\n\t\treturn (getRate(0)+getRate(1))/2.0;\r\n\t}", "static double chooseRate(String selectedRate){\n JsonObject listRates = conversionRates.get(\"rates\").getAsJsonObject();\n return listRates.get(selectedRate).getAsDouble();\n\n }", "public double getCouponRate() {\n return _couponRate;\n }", "public int getChargeRate();", "public static float getConsumeRate() {\n return consumerate;\n }", "public java.lang.Integer getRatetype() {\n\treturn ratetype;\n}", "public BigDecimal getEXCH_RATE() {\r\n return EXCH_RATE;\r\n }", "public double getPayRate()\r\n\t{\r\n\treturn payRate;\r\n\t}", "public int getConversionPenalty() {\n/* 277 */ return getConversionPenalty(null).getValue();\n/* */ }", "public Integer getSampleRate() {\n return this.sampleRate;\n }", "public Double getReturnRate() {\r\n return returnRate;\r\n }", "@Field(7) \n\tpublic int sample_rate() {\n\t\treturn this.io.getIntField(this, 7);\n\t}", "public float getCountRate() {\n return countMonitor.getRate();\n }", "public float getPeriodicRateChange() {\n return periodicRateChange;\n }", "@Override protected double convertRate(double rate) {\n return super.convertRate(rate);\n }", "public final int getRotationRate() {\r\n return rotationRate;\r\n }", "public int getThisDataRate(){\r\n\t\tString option = (String) comboBox.getSelectedItem();\r\n\t\tif (option.equals(\"250kbs\")){\r\n\t\t\tdataRate = 0;\r\n\t\t}else if(option.equals(\"1mbs\")){\r\n\t\t\tdataRate = 1;\r\n\t\t}else{\r\n\t\t\tdataRate = 2;\r\n\t\t}\r\n\t\treturn dataRate;\r\n\t}", "public Double getVatRate() {\n return new Double(vatRate);\n }", "public double getReturnRate() {\n return returnRate;\n }", "public String getExchangeRateType() {\n return this.exchangeRateType;\n }", "public int getSamplingRate( ) {\r\n return samplingRate;\r\n }", "public Double getImpressionAssistedConversionValue() {\r\n return impressionAssistedConversionValue;\r\n }", "public int getCustomInformationTransferRate();", "public int getSamplingRate() {\n return samplingRate;\n }", "public String getReceiverChargesCurrency() {\r\n\t\treturn receiverChargesCurrency;\r\n\t}", "public java.math.BigDecimal getOriginalExchangeRate() {\r\n return originalExchangeRate;\r\n }", "public java.math.BigDecimal getIndicativeExchangeRate() {\r\n return indicativeExchangeRate;\r\n }", "private BigDecimal getConversion(String toCurrency) {\n Map<String, String> urlPathVariable = new HashMap<>();\n urlPathVariable.put(\"from\", baseCurrency);\n urlPathVariable.put(\"to\", toCurrency);\n\n ResponseEntity<CurrencyConversion> responseEntity = restTemplate.getForEntity(\"http://currency-conversion/api/v1/from/{from}/to/{to}\", CurrencyConversion.class, urlPathVariable);\n return responseEntity.getBody().getConversionRate();\n }", "int getSmpRate();", "public java.lang.String getReceiveCurrency() {\r\n return receiveCurrency;\r\n }", "public java.lang.String getReceiveCurrency() {\r\n return receiveCurrency;\r\n }", "public double getConvertedValue() {\n return value;\n }", "public Double getValuePerConversionManyPerClick() {\r\n return valuePerConversionManyPerClick;\r\n }", "@Override\n\tpublic double getRate() {\n\t\treturn 7;\n\t}", "public Integer getSupervisoryTransmitRate()\r\n\t{\r\n\t\treturn supervisoryTransmitRate;\r\n\t}", "public Integer getBuyerRateStatus() {\n return buyerRateStatus;\n }", "public Integer getBitrate() {\n return this.bitrate;\n }", "public float getSpeechRate() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n return Float.valueOf(preferences.getString(\"speech_rate\", \"\"));\n }", "@Transient\n\tpublic double getPurchaseRate()\t{\n\t\treturn mPurchaseRate;\n\t}", "@Field(5) \n\tpublic AVRational frame_rate() {\n\t\treturn this.io.getNativeObjectField(this, 5);\n\t}", "public int getEngineeringRate() {\n return engineeringRate;\n }", "public double getCoolingRate() {\r\n\t\treturn this.coolingRate;\r\n\t}", "public java.lang.String getChargecurrency() {\n\treturn chargecurrency;\n}", "public float getEnergyRate() { return EnergyRate; }", "public final int getRefreshRate() {\r\n return settings.getRefreshRate();\r\n }", "public com.vsp.bl.product.dto.rate.v002.CompositeRate getCompositeRate() {\n return compositeRate;\n }", "public static String getHeartRateValue() {\n return heartRateValue;\n }", "public Double getBounceRate() {\r\n return bounceRate;\r\n }", "public java.lang.String getCurrency() {\r\n return currency;\r\n }", "public int getMoveRate() {\n return moveRate;\r\n }", "public String getCurrency()\n\t{\n\t\treturn this.currency;\n\t}", "public double getTurnRate() {\n return m_gyro.getRate() * (DriveConstants.kGyroReversed ? -1.0 : 1.0);\n }", "public String getRateId() {\n return rateId;\n }", "public int getHexConversionRate() {\n return hexConversionRate;\n }", "public float getRate(JsonObject ratesInfo, String currency){\n return ratesInfo.getAsJsonObject(\"rates\").get(currency).getAsFloat();\n }", "public String getExchangeRateUrl() {\n return exchangeRateUrl;\n }", "public Long get_cachebytesservedrate() throws Exception {\n\t\treturn this.cachebytesservedrate;\n\t}", "public double getValueOfTransceiver() {\n\t\treturn valueOfTransceiver;\n\t}", "public java.lang.String getCurrency() {\n return currency;\n }", "@ApiModelProperty(value = \"Rates that will be applied during the duration of the car rental requested. These rates are generally not inclusive of tax and are used by the car rental company to compute the total cost at the end of the rental period.\")\n public List<Rate> getRates() {\n return rates;\n }", "public BigDecimal getManageLyRate() {\n return manageLyRate;\n }", "public NM getVATRate() { \r\n\t\tNM retVal = this.getTypedField(45, 0);\r\n\t\treturn retVal;\r\n }", "public double getRightRate() {\n return rightEnc.getRate();\n }", "@Override\n\tpublic double calRate() {\n\t\treturn 0.9f;\n\t}", "public int getStarvationRate ( ) {\n\t\treturn extract ( handle -> handle.getStarvationRate ( ) );\n\t}", "public String getCurrency() {\n return this.currency;\n }", "public Double getValuePerConvertedClick() {\r\n return valuePerConvertedClick;\r\n }", "public String getCurrency() {\r\n return currency;\r\n }", "public de.htwg_konstanz.ebus.framework.wholesaler.vo.Currency getCurrency () {\r\n\t\treturn currency;\r\n\t}", "public double getInterestRate() {\n return interestRate;\n }", "public String getCurrency()\r\n {\r\n return currency;\r\n }", "public Currency getCurrency();", "Integer getFrameRate() {\n return frameRate;\n }", "public double getExchRate() {\n return _exchRate;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }" ]
[ "0.7043299", "0.7026188", "0.7005636", "0.6917527", "0.6871059", "0.68352896", "0.68225026", "0.6798246", "0.67819804", "0.67491513", "0.67491513", "0.66975176", "0.6681482", "0.6609658", "0.66031533", "0.6527552", "0.6443786", "0.64147377", "0.6411468", "0.63642865", "0.6364228", "0.63473684", "0.63374305", "0.63305974", "0.630262", "0.6291633", "0.62533295", "0.6231977", "0.62265444", "0.6216874", "0.621277", "0.62027687", "0.6161568", "0.61556137", "0.6142875", "0.6125768", "0.61097777", "0.609109", "0.608823", "0.60674685", "0.6020679", "0.60134053", "0.59724134", "0.5936943", "0.59209836", "0.5902016", "0.58860373", "0.5884682", "0.58681893", "0.5865554", "0.5840222", "0.5838573", "0.58299345", "0.58299345", "0.5829791", "0.58232534", "0.5814407", "0.581234", "0.58090585", "0.5805707", "0.58027333", "0.58008343", "0.57927305", "0.57899135", "0.5775603", "0.57498896", "0.57365596", "0.5729133", "0.57243204", "0.5714459", "0.5707738", "0.5705221", "0.5703556", "0.5702647", "0.5698402", "0.56925887", "0.5683098", "0.5680612", "0.5671726", "0.5671683", "0.5669653", "0.56640553", "0.5652278", "0.564939", "0.5632088", "0.5631077", "0.5629139", "0.5619053", "0.5618553", "0.56096566", "0.558694", "0.55857456", "0.5585324", "0.5585122", "0.55822355", "0.5576027", "0.557569", "0.5575236", "0.5575236", "0.5575236" ]
0.84872234
0
Sets the value of the conversionRate property.
public void setConversionRate(double value) { this.conversionRate = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void setUsdConversionRate(Currency currency, BigDecimal rate) {\n usdConversionRateMap.put(currency, rate);\n }", "public void setRate(Integer rate) {\r\n this.rate = rate;\r\n }", "public void setRate(int rate) { this.rate = rate; }", "public void setRate(float rate) {\n\t\tthis.rate = rate;\n\t}", "public void setRate(double newRate) {\n this.rate = newRate;\n }", "public void setRate();", "public double getConversionRate() {\n return conversionRate;\n }", "public void setTurnRate (float rate)\n {\n if (rate > 0) {\n _turnRate = rate;\n } else {\n clearTurnRate();\n }\n }", "public void setBitRate(Integer bitRate) {\n this.bitRate = bitRate;\n }", "public abstract void setRate();", "public void setClockRate(double clockRate) {\r\n CompUtils.checkLessThanEqZero(clockRate);\r\n this.clockRate = clockRate;\r\n }", "public void setClickConversionRate(Double clickConversionRate) {\r\n this.clickConversionRate = clickConversionRate;\r\n }", "@Override protected double convertRate(double rate) {\n return super.convertRate(rate);\n }", "public final void setRotationRate(final int aRotationRate) {\r\n this.rotationRate = aRotationRate;\r\n }", "public static void setInfectionRate(double newRate) {\n infectionRate = newRate;\n }", "public void setCploadRate(Float cploadRate) {\r\n this.cploadRate = cploadRate;\r\n }", "public void setConversionRateManyPerClick(Double conversionRateManyPerClick) {\r\n this.conversionRateManyPerClick = conversionRateManyPerClick;\r\n }", "public void setCoolingRate(final double coolingRate) {\r\n\t\tthis.coolingRate = coolingRate;\r\n\t}", "public Builder setRate(int value) {\n \n rate_ = value;\n onChanged();\n return this;\n }", "public void changeDiscountRate (double value) {\n this.discountRate = value;\n }", "public void setSamplingRate(int value) {\n this.samplingRate = value;\n }", "public void setTransmitRate(String transmitRate)\r\n\t{\r\n\t\tthis.transmitRate = transmitRate;\r\n\t}", "public void setEngineeringRate(int value) {\n this.engineeringRate = value;\n }", "protected void setMoveRate(long moveRate) {\r\n\t\tthis.moveRate = moveRate;\r\n\t}", "public void changeTaxRate (double value) {\n this.taxRate = value;\n }", "public void setExchangeRate(ExchangeRateVO exchangeRateVO)\n throws RemoteException, ExchangeRateException;", "public void setCurrencyRate(String currencyCode, BigDecimal value)\n {\n currencyRates.put(currencyCode, value);\n }", "public void setConversionValue(Double conversionValue) {\r\n this.conversionValue = conversionValue;\r\n }", "public void setSampleRate(int value) {\n this.sampleRate = value;\n }", "public void setFrameRate(Integer frameRate) {\n this.frameRate = frameRate;\n }", "public void setHexConversionRate(int value) {\n this.hexConversionRate = value;\n }", "public void setRate(String rate) {\r\n for (int index = 0; index < RATES.length; ++index){\r\n if (RATES[index].equals(rate)) {\r\n Rate = index;\r\n }\r\n }\r\n }", "void scaleSampleRate(float scaleFactor) {\n if (debugFlag)\n debugPrintln(\"JSChannel: scaleSampleRate\");\n if (ais == null) {\n if (debugFlag) {\n debugPrint(\"JSChannel: Internal Error scaleSampleRate: \");\n debugPrintln(\"ais is null\");\n }\n return;\n }\n\n AudioFormat audioFormat = ais.getFormat();\n float rate = audioFormat.getSampleRate();\n\n double newRate = rate * scaleFactor;\n if (newRate > 48000.0) // clamp to 48K max\n newRate = 48000.0;\n/****\n// NOTE: This doesn't work...\n/// audioStream.setSampleRate(newRate);\n\n// need to set FloatControl.Type(SAMPLE_RATE) to new value somehow...\n\n if (debugFlag) {\n debugPrintln(\"JSChannel: scaleSampleRate: new rate = \" +\n rate * scaleFactor);\n debugPrintln(\" >>>>>>>>>>>>>>> using scaleFactor = \" +\n scaleFactor);\n }\n****/\n }", "public int\n setBitRate(int bitRate);", "public void setPurchaseRate (double purchaseRate)\t{\n\t\t//REMEDY 5501\n\t\tint round_nth_decimal = 4;\n\n\t\tdouble rv = -1;\n\n\t\tif(ConfigProvider.getProperty(ROUND_NTH_DECIMAL)!=null){\n\t\t\tround_nth_decimal = Integer.parseInt(ConfigProvider.getProperty(ROUND_NTH_DECIMAL));\n\t\t}\n\n\t\trv = roundDouble(purchaseRate, round_nth_decimal);\n\n\t\tmPurchaseRate = rv;\n\t\t//END REMEDY 5501\n\t}", "@Override\n public void setBaudrate(int bitrate) throws SerialError{\n\n switch(bitrate)\n {\n case 300:\n baudrate=0x2710;\n break;\n case 600:\n baudrate=0x1388;\n break;\n case 1200:\n baudrate=0x09C4;\n break;\n case 2400:\n baudrate=0x0271;\n break;\n case 4800:\n baudrate=0x4138;\n break;\n case 9600:\n baudrate=0x4138;\n break;\n case 19200:\n baudrate=0x809C;\n break;\n case 38400:\n baudrate=0xC04E;\n break;\n case 57600:\n baudrate=0x0034;\n break;\n case 115200:\n baudrate=0x001A;\n break;\n case 460800:\n baudrate=0x4006;\n break;\n case 921600:\n baudrate=0x8003;\n break;\n default :\n throw new SerialError(\"The baudrate selected is out of scope \"+bitrate);\n }\n }", "public void setDefaultStandardRate(Rate rate)\r\n {\r\n m_defaultStandardRate = rate;\r\n }", "public void setRateLimiter(RateLimiter rateLimiter) {\n this.rateLimiter = rateLimiter;\n }", "public void setLearningRate(final double rate) {\n\t\tthis.learningRate = rate;\n\t}", "public void setLearningRate(double learningRate) {\n this.learningRate = Math.max(0.0, Math.min(1.0, learningRate));\n }", "public void setEntrenchmentRate(int value) {\n this.entrenchmentRate = value;\n }", "public void setPeriodicRateChange(float value) {\n this.periodicRateChange = value;\n }", "public void setSpeechRate(int speechRate) {\n mSelf.setSpeechRate(speechRate);\n }", "void setPWMRate(double rate);", "public void setLearningRate(double rate);", "public void setRate(double annualRate) {\nmonthlyInterestRate = annualRate / 100.0 / MONTHS;\n}", "public void setCommissionRate(double commissionRate) {\n if(commissionRate <= 0.0 || commissionRate >= 1.0)\n throw new IllegalArgumentException(\"Commsiion rate must be between 0.0 and 1.0\");\n\n this.commissionRate = commissionRate;\n }", "public void updateRate(double r){\r\n rate *= r;\r\n }", "public void setRateLimiter(RateLimiter rateLimiter) {\n this.rateLimiter = rateLimiter;\n }", "public void setShipmentRate(int shipmentRate) {\n this.shipmentRate = Float.valueOf(shipmentRate);\n }", "public void setSampleRate(float rate)\n {\n samplingDelay = (int)(ONE_SECOND/rate);\n }", "private void setCaptureRate(float captureRate) {\n float minDiff = Float.MAX_VALUE;\n int bestMatch = 0;\n for (int i = 0; i < frameRateList.size(); i++) {\n final float inListInterval = frameRateList.get(i);\n final float diff = Math.abs(inListInterval - captureRate);\n if (diff < minDiff) {\n minDiff = diff;\n bestMatch = i;\n }\n }\n numberPicker.setValue(bestMatch);\n }", "public void setInterest(double rate)\n {\n interestRate = rate;\n }", "void setCurrency(Currency currency);", "public int setRate(int rateToServer){\r\n\t\tint resultOfRate=1;\r\n\t\t//! send rate to server and check if ok.\r\n\t\tFLAG_RATED=true;\r\n\t\treturn resultOfRate;\r\n\t}", "public synchronized void setRampRate(Double rampRate)\n {\n this.rampRate = rampRate;\n }", "protected void onChange_VaccRate() {\n onChange_VaccRate_xjal( VaccRate );\n }", "public void setSensitivity(double voltsPerDegreePerSecond) {\r\n\t\tm_voltsPerDegreePerSecond = voltsPerDegreePerSecond;\r\n\t}", "public void setLearningRate(double learningRate) {\r\n\t\tthis.learningRate = learningRate;\r\n\t}", "public abstract void setDiscountRate(double discountRate);", "@SOAPMethod(\"ConversionRate\")\n String conversionRate(@SOAPProperty(\"FromCurrency\") String fromCurrency,\n @SOAPProperty(\"ToCurrency\") String toCurrency);", "public void setSupplyMovementRate(int value) {\n this.supplyMovementRate = value;\n }", "public void setStarvationRate ( int ticks ) {\n\t\texecute ( handle -> handle.setStarvationRate ( ticks ) );\n\t}", "Rate initRate(Rate iRate)\n {\n iRate.updateElementValue(\"Rate\");\n return iRate;\n }", "public void setEXCH_RATE(BigDecimal EXCH_RATE) {\r\n this.EXCH_RATE = EXCH_RATE;\r\n }", "public void setRatetype(java.lang.Integer newRatetype) {\n\tratetype = newRatetype;\n}", "public void setBitrate(int bitrate) {\n this.bitrate = bitrate;\n }", "public Converter(double aConversionFactor) {\n factor = aConversionFactor;\n }", "protected void onChange_EncounterRate() {\n onChange_EncounterRate_xjal( EncounterRate );\n }", "public FXImageSink requestFrameRate(double rate) {\n requestRate = (int) Math.round(rate);\n sink.setCaps(Caps.fromString(buildCapsString()));\n return this;\n }", "public void setRate(float wpm) {\n\tif (wpm > 0 && wpm < 1000) {\n\t setDurationStretch(nominalRate / wpm);\n\t}\n }", "public float getRate(){\r\n return rate;\r\n }", "public void setBitrate(Integer bitrate) {\n this.bitrate = bitrate;\n }", "public void setSamplingRate( int samplingRate ) {\r\n this.samplingRate = samplingRate;\r\n }", "public float getRate() {\n\t\treturn rate;\n\t}", "public void setDecayRate(double newDecayRate ){\n\n decayRate= newDecayRate;\n}", "public void setExchRate(double exchRate) {\n _exchRate = exchRate;\n }", "public void setTaxRate(double taxRate) {\n this.taxRate = taxRate;\n }", "public int getRate() {\n return rate_;\n }", "public void setBounceRate(Double bounceRate) {\r\n this.bounceRate = bounceRate;\r\n }", "public void setChangeRateFactor(double percent) {\r\n\t\tchangeRateFactor = Math.abs(percent);\r\n\t}", "public Integer getRate() {\r\n return rate;\r\n }", "public boolean setDefaultBitRate(String bitrate);", "public void setCurrency(CurrencyUnit currency) {\r\n this.currency = currency;\r\n }", "public void setSpeed(double multiplier);", "public void setInterestRate(double newInterestRate)\n {\n if (!(newInterestRate >= 0.0))\n {\n System.err.println(\"Interest rate must be positive.\");\n }\n else\n {\n this.interestRate = newInterestRate;\n }\n }", "public int getRate() {\n return rate_;\n }", "public void setExchangeRateType(final String exchangeRateType) {\n this.exchangeRateType = exchangeRateType;\n }", "public void setGrowthRate(int growthRate) {\n growthRate /= 100;\n this.growthRate = growthRate;\n }", "public void setCurrency(Currency usd) {\n\t\t\n\t}", "public void setSampleRate(int sampleRate) {\r\n\t\tthis.sampleRate = sampleRate;\r\n\t}", "public void setInterestRate(double interestRate) {\n this.interestRate = interestRate;\n }", "public void setSampleRate(int sR) {\n switch (sR) {\n case 8000:\n sampleRate.setSelectedIndex(0);\n break;\n case 11025:\n sampleRate.setSelectedIndex(1);\n break;\n case 16000:\n sampleRate.setSelectedIndex(2);\n break;\n case 22050:\n sampleRate.setSelectedIndex(3);\n break;\n default:\n }\n }", "public void setDefaultOvertimeRate(Rate rate)\r\n {\r\n m_defaultOvertimeRate = rate;\r\n }", "public void set2320MOA01ReimbursementRate$1(java.lang.CharSequence value) {\n this._2320MOA01ReimbursementRate = value;\n }", "public void setSampleRate(Integer sampleRate) {\n this.sampleRate = sampleRate;\n }", "public static void setTaxRate(double taxRateIn) {\n taxRate = taxRateIn;\n }", "void setValueRatio(org.hl7.fhir.Ratio valueRatio);", "public void setBitrate(long bitrate) {\n this.bitrate = bitrate;\n }", "public void setBaudRate(long baudRate) throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_SetBaudRate(ftHandle, (int) baudRate));\n }" ]
[ "0.68594456", "0.66279805", "0.6531446", "0.6503812", "0.6455682", "0.6443444", "0.6401868", "0.63744664", "0.6240754", "0.60993826", "0.6069227", "0.6061244", "0.60292524", "0.6019701", "0.5924941", "0.59094536", "0.5847987", "0.5841176", "0.5841024", "0.5824032", "0.58049977", "0.57917213", "0.5754028", "0.57539415", "0.57456017", "0.5740392", "0.5729063", "0.5720096", "0.570954", "0.5625049", "0.5612197", "0.56082714", "0.5580171", "0.5513313", "0.5493296", "0.5454323", "0.544382", "0.5438243", "0.5436855", "0.5436332", "0.54280657", "0.5427051", "0.54112756", "0.5405111", "0.5402476", "0.5396694", "0.53895795", "0.53762394", "0.5375255", "0.5371067", "0.53569555", "0.5352405", "0.53467804", "0.534002", "0.53292537", "0.53289753", "0.5326253", "0.52756834", "0.5267354", "0.5265891", "0.52497894", "0.52322954", "0.5227955", "0.5219417", "0.52124196", "0.5200838", "0.5174354", "0.51741683", "0.5163829", "0.5163745", "0.5159101", "0.5144282", "0.513996", "0.513559", "0.5133966", "0.511197", "0.51025736", "0.5093489", "0.50929624", "0.5092441", "0.5081557", "0.5071647", "0.50675416", "0.5065386", "0.5058461", "0.5049664", "0.5045877", "0.5027217", "0.50261617", "0.50259066", "0.5025172", "0.5015733", "0.5014659", "0.5014583", "0.5013041", "0.5006298", "0.5006174", "0.4981301", "0.4981059", "0.49766183" ]
0.80651975
0
Gets the value of the oldLoyaltyScale property.
public int getOldLoyaltyScale() { return oldLoyaltyScale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNewLoyaltyScale() {\n return newLoyaltyScale;\n }", "public void setOldLoyaltyScale(int value) {\n this.oldLoyaltyScale = value;\n }", "public void setNewLoyaltyScale(int value) {\n this.newLoyaltyScale = value;\n }", "public String getCurrentScale() {\n return currentScale;\n }", "public Integer getHoldscale() {\r\n return holdscale;\r\n }", "public float getScale() {\n\t\treturn getLifeStageHelper().getScale();\n\t}", "public Money getOldPrice() {\n\t\treturn oldPrice;\n\t}", "public BigDecimal getPriceLimitOld();", "public int getScaleValue() {\r\n return ScaleValue;\r\n }", "public Integer getScale() {\n return _scale;\n }", "public Integer getScale() {\n return _scale;\n }", "public double getScale() {\n return this.scale;\n }", "public double getScale(){\n\t\treturn scale;\n\t}", "public double getScale() {\r\n return scale;\r\n }", "public double getScale(\n )\n {return scale;}", "public Scale getScale() {\n return this.scale;\n }", "public Integer getScaleTo()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.scaleTo, null);\n }", "public double getScale() {\r\n\t\treturn scale;\r\n\t}", "public float getScale() {\n return this.scale;\n }", "public float getScale() {\n \t\treturn scale;\n \t}", "public int getScale() {\r\n return scale;\r\n }", "@Override\n public float getScale() {\n return scale;\n }", "public double getScale() {\n return scale;\n }", "public int getScale() {\n return scale_;\n }", "public double getHealthScale ( ) {\n\t\treturn extract ( handle -> handle.getHealthScale ( ) );\n\t}", "public double getScale() {\n return scale;\n }", "int getWrongScale();", "public byte[] getScale()\n {\n if (true)\n throw new UnsupportedOperationException(\"FIXME\");\n return (byte[]) getProperty(PropertyIDMap.PID_SCALE);\n }", "public int getScale(){\n return scale;\n }", "public float getScale() {\n\t\treturn scale;\n\t}", "public double getGnpOld() {\n\n return gnpOld;\n }", "public float getScale()\n\t{\n\t\treturn scale;\n\t}", "public int getHealthScaling()\r\n {\r\n return mHealthScaling;\r\n }", "public double getScaleEnd() {\n\t\treturn m_dScaleEnd;\n\t}", "int getScale();", "public float getScale();", "public double getMinScale() {\n return minScale;\n }", "public double getScaleY() {\n return 1.0;\n }", "public double getScale() {\n\t\treturn 0;\n\t}", "ScaleType getScale();", "public float getScaleMotionDeceleration() {\r\n\t\treturn scaleMotionDeceleration;\r\n\t}", "public final float getScale() {\n\treturn svd(null);\n }", "public float getGlobalScale() {\n // per convenzione se la scala deve essere su tutti e tre gli assi\n // allora si considera scale.x() per tutti gli assi\n return (float) scale.x();\n }", "public Vector2 getDrawScale() {\n \tscaleCache.set(drawScale);\n \treturn scaleCache; \n }", "public double getScale() {\n\t\treturn disp.getScale();\n\t}", "public BigDecimal getPriceStdOld();", "public double getMaxScale() {\n return maxScale;\n }", "public double getScaleStart() {\n\t\treturn m_dScaleStart;\n\t}", "public double getyChange() {\n\t\treturn yChange;\n\t}", "public double getScaleY() { return _rss==null? 1 : _rss.scaleY; }", "public double getMagicalProtectScaling()\r\n {\r\n return mMagicalProtectScaling;\r\n }", "public ImageScale getScale() {\n return this.scale;\n }", "public AxisScale getVScale() {\n return (_bvp!=null)?_bvp.getScale():AxisScale.LINEAR;\n }", "public double getPreviousZoomLevel() {\n\tfor (int i = 1; i < zoomLevels.length; i++)\n\t\tif (zoomLevels[i] >= zoom)\n\t\t\treturn zoomLevels[i - 1];\n\treturn getMinZoom();\n}", "public double confidenceLo() {\n\t\treturn confidenceLow;\n\t}", "public jkt.hms.masters.business.MasStoreMeScale getMeScale () {\n\t\treturn meScale;\n\t}", "public Money getLuggage() {\n\t\treturn luggage;\n\t}", "public BigDecimal getManageLyRate() {\n return manageLyRate;\n }", "public ScalePolicy getScalePolicy() {\n\t\treturn null;\n\t}", "int getMaxScale();", "public int getMaxOldProductPriceForUpdateInOurs() {\n return 24;\n }", "public Double getChange();", "public double confidenceLo() {\r\n\t\treturn confidenceLo;\r\n\t}", "public void setPriceLimitOld (BigDecimal PriceLimitOld);", "public Configuration getScale() {\n return scale;\n }", "public double getScaleY(double y) {\r\n return scalingFactorY*y;\r\n }", "@Deprecated\n public V1CrossVersionObjectReference getScaleTargetRef();", "@Override\n protected float getDownScaleFactor() {\n return (float) 5.0;\n }", "@Nullable Uint64 getScaleInThreshold();", "@Nullable Uint64 getScaleOutThreshold();", "protected float getDownScaleFactor() {\n return BlurDialogEngine.DEFAULT_BLUR_DOWN_SCALE_FACTOR;\n }", "public double getMaximumScale() {\n\t\treturn 0;\n\t}", "public int getYChange() {\r\n \treturn yChange;\r\n }", "public void setPriceStdOld (BigDecimal PriceStdOld);", "public double getScaleX() {\n return 1.0;\n }", "public TempScale getInputScale() {\n\t\treturn inputPanel.getScale();\n\t}", "public static int reScale(int num, int oldScale, int newScale){\n\t\tdouble dnum = new Double(num);\n\t\tdouble dold = new Double(oldScale);\n\t\tdouble dnew = new Double(newScale);\n\t\t\n\t\treturn (int)(dnum * (dnew / dold));\n\t}", "public double getOldPVal() { return this.pValBefore; }", "@Override\n\tpublic void setScaleForAge(boolean p_98054_1_) {\n\t\t// managed by DragonLifeStageHelper, so this is a no-op\n\t}", "public double lo() {\n return lo;\n }", "private int getScale(){\n Display display = ((WindowManager) Objects.requireNonNull(getContext())\n .getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();\n\n int width = display.getWidth();\n Double val = (double) width / 360d;\n val = val * 100d;\n return val.intValue();\n }", "public Float getOriginalPrice() {\n return this.OriginalPrice;\n }", "public TempScale getInputScale() {return inputScale;}", "public double getLoa() {\n\t\treturn _tempNoTiceShipMessage.getLoa();\n\t}", "public double getMinimumScale() {\n\t\treturn 0;\n\t}", "public double getScaleX() { return _rss==null? 1 : _rss.scaleX; }", "@Override\n public Double scalingFactor() {\n return 1.55d;\n }", "public void setOldPrice(Money oldPrice) {\n\t\tif (oldPrice == null) {\n\t\t\tthis.oldPrice = new Money(0, 0);\n\t\t} else {\n\t\t\tthis.oldPrice = oldPrice;\n\t\t}\n\t}", "public double getLoan()\r\n {\r\n return loan;\r\n }", "public double getPhysicalProtectScaling()\r\n {\r\n return mPhysicalProtectScaling;\r\n }", "float getCostScale();", "public double getxChange() {\n\t\treturn xChange;\n\t}", "public AxisScale getHScale() {\n return (_bhp!=null)?_bhp.getScale():AxisScale.LINEAR;\n }", "public double getLoyaltyBalance() {\n if (compositePOSTransaction.getLoyaltyCard() != null) {\n \t//Fix for US issue 886: Receipt for a sale involving a loyalty customer needs \n \t//to show that points were earned\n \tif (isSourceFromTxnDetailApplet() ||\n (com.chelseasystems.cr.swing.CMSApplet.theAppMgr!=null &&\n \t\t\t com.chelseasystems.cr.swing.CMSApplet.theAppMgr.getStateObject(\"THE_TXN\") != null)) {\n \t\treturn compositePOSTransaction.getLoyaltyCard().getCurrBalance();\n \t} else {\n return compositePOSTransaction.getLoyaltyCard().getCurrBalance()\n \t\t\t- compositePOSTransaction.getUsedLoyaltyPoints()\n \t\t\t+ this.getTxnLoyaltyPoints();\n \t}\n }\n else {\n return 0.0;\n }\n }", "private float getNewScale() {\n int width = getWidth() - (padding[0] + padding[2]);\n float scaleWidth = (float) width / (cropRect.right - cropRect.left);\n\n int height = getHeight() - (padding[1] + padding[3]);\n float scaleHeight = (float) height / (cropRect.bottom - cropRect.top);\n if (getHeight() > getWidth()) {\n return scaleWidth < scaleHeight ? scaleWidth : scaleHeight;\n }\n return scaleWidth < scaleHeight ? scaleWidth : scaleHeight;\n }", "@Override\n\tpublic int getGrowingAge() {\n\t\t// adapter for vanilla code to enable breeding interaction\n\t\treturn isAdult() ? 0 : -1;\n\t}", "public int getOldValue() {\n\t\treturn oldValue;\n\t}", "public int getOldValue() {\n\t\treturn oldValue;\n\t}", "public NM getInternalScalingFactorPP() { \r\n\t\tNM retVal = this.getTypedField(36, 0);\r\n\t\treturn retVal;\r\n }", "public BigDecimal getPriceListOld();" ]
[ "0.82466954", "0.8221902", "0.734525", "0.6749215", "0.6527093", "0.6456007", "0.63700527", "0.6365262", "0.63199705", "0.6273474", "0.6273474", "0.6247217", "0.62398344", "0.62324786", "0.62319994", "0.62271667", "0.6226673", "0.6218223", "0.6212738", "0.61825687", "0.61679024", "0.6165834", "0.6165768", "0.6136407", "0.6133952", "0.61326814", "0.6131215", "0.61112463", "0.6098329", "0.6079279", "0.6066805", "0.6056469", "0.5988025", "0.5986444", "0.5970693", "0.5965099", "0.59603745", "0.5959637", "0.5922471", "0.59004587", "0.58854574", "0.5883624", "0.58765554", "0.5867983", "0.58429503", "0.58334", "0.58111054", "0.5727259", "0.57221186", "0.5717017", "0.5709635", "0.56952393", "0.5677499", "0.5673471", "0.5672602", "0.56716317", "0.5653005", "0.56441444", "0.56139505", "0.5599499", "0.5583636", "0.55622846", "0.554313", "0.5540266", "0.55297565", "0.5497719", "0.54969156", "0.54698443", "0.5468175", "0.5459978", "0.5448338", "0.54407185", "0.54393816", "0.54378337", "0.54297477", "0.5427891", "0.5427467", "0.5424514", "0.5396326", "0.53957516", "0.5395522", "0.5394119", "0.5386221", "0.53826636", "0.53796184", "0.53776777", "0.53742695", "0.53541726", "0.5349534", "0.53483546", "0.5346254", "0.53447235", "0.53439444", "0.53408045", "0.534049", "0.5339949", "0.52967286", "0.52967286", "0.52964205", "0.52856344" ]
0.89263344
0
Sets the value of the oldLoyaltyScale property.
public void setOldLoyaltyScale(int value) { this.oldLoyaltyScale = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNewLoyaltyScale(int value) {\n this.newLoyaltyScale = value;\n }", "public int getOldLoyaltyScale() {\n return oldLoyaltyScale;\n }", "public int getNewLoyaltyScale() {\n return newLoyaltyScale;\n }", "public void setOldPrice(Money oldPrice) {\n\t\tif (oldPrice == null) {\n\t\t\tthis.oldPrice = new Money(0, 0);\n\t\t} else {\n\t\t\tthis.oldPrice = oldPrice;\n\t\t}\n\t}", "public void setPriceLimitOld (BigDecimal PriceLimitOld);", "@Override\n\tpublic void setScaleForAge(boolean p_98054_1_) {\n\t\t// managed by DragonLifeStageHelper, so this is a no-op\n\t}", "void setScale(ScaleSelector sensor, int scaleNo);", "private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }", "public void setGlobalScale(float newScale) {\n scale(new Vector3(newScale, newScale, newScale));\n }", "public void updatePowerScale(double powerScale) {\n m_powerScale = powerScale;\n }", "public void setHoldscale(Integer holdscale) {\r\n this.holdscale = holdscale;\r\n }", "void setMaxScale(int value);", "public void setScale(float scale);", "public static int reScale(int num, int oldScale, int newScale){\n\t\tdouble dnum = new Double(num);\n\t\tdouble dold = new Double(oldScale);\n\t\tdouble dnew = new Double(newScale);\n\t\t\n\t\treturn (int)(dnum * (dnew / dold));\n\t}", "public Scale(Scale newScale){\n \tsuper(newScale);\n }", "public void setCurrentScale(String currentScale) {\n this.currentScale = currentScale == null ? null : currentScale.trim();\n }", "@Override\n public void setScale(float scale) {\n this.scale = scale;\n }", "private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}", "public void setPriceStdOld (BigDecimal PriceStdOld);", "public void downgrade(){\n\n //downgrade a buildings stats \n this.setLevel(this.getLevel() - 1);\n this.setMaxHealth(this.getMaxHealth() - 500);\n this.setHealth(this.getHealth() - 500);\n this.maxCapacity -= 20;\n\n }", "public void setScale(double value) {\n this.scale = value;\n }", "public void setScale(Scale scale) {\n this.scale = scale;\n }", "public void setScale(float xScale, float yScale) {\n\t\tthis.xScale = xScale;\n\t\tthis.yScale = yScale;\n\t}", "public void setScale(double scale) {\r\n if (scale >= 0.1) {\r\n this.scale = scale;\r\n }\r\n }", "public void setDecayRate(double newDecayRate ){\n\n decayRate= newDecayRate;\n}", "@Override\r\n\tprotected void setHealth( double newHealth ) \r\n\t{\r\n\t\tthis._health = this._health - newHealth;\r\n\t}", "public RaiseToScale() {\n super(\"RaiseToScale\", kP, kI, kD);\n requires(this.elevator = Elevator.getInstance());\n requires(this.intake = Intake.getInstance());\n this.getPIDController().setOutputRange(-RobotMap.ELEVATOR_SPEED,\n RobotMap.ELEVATOR_SPEED);\n setInterruptible(true);\n }", "public void setScaleY(double aValue)\n{\n if(aValue==getScaleY()) return;\n repaint();\n firePropertyChange(\"ScaleY\", getRSS().scaleY, getRSS().scaleY = aValue, -1);\n}", "public void setMaxLifeUsage (BigDecimal MaxLifeUsage)\n\t{\n\t\tset_Value (COLUMNNAME_MaxLifeUsage, MaxLifeUsage);\n\t}", "public void rescale()\r\n\t{\n\t}", "public void setScaled(long _scaled) {\n\t\tscaled = _scaled;\n\t}", "public void setScale(float scale) {\n this.scale = scale;\n }", "public void setScaleFactor(float scale){\n scaleFactor = scale;\n }", "public void setScale(final double scale) {\r\n\t\tthis.scale = scale;\r\n\t}", "public void setScale(float scale) {\n \t\tthis.scale = scale;\n \t\tupdateTransform();\n \t\tfireEvent(new ScalingEvent(scale));\n \t}", "public void setScale( float scale ) {\n\t\tthis.scale = scale;\n\t}", "public void setScaleTo(Integer scaleTo)\n {\n getStateHelper().put(PropertyKeys.scaleTo, scaleTo);\n }", "public void setHourlyRate(double newPayRate){\r\n if(newPayRate>=MINIMUMWAGE)\r\n hourlyRate = newPayRate;\r\n else\r\n throw new IllegalArgumentException(\"The hourly rate must be greater than or equal to\"+MINIMUMWAGE);\r\n }", "public void decreaseTimescale() {\n\t\ttimeScaler = timeScaler<=1 ? 1 : timeScaler - TIMESCLALER_FACTOR;\n\t}", "void onScaleChange(float scaleFactor, float focusX, float focusY);", "public void setLuggage(Money luggage) {\n\t\tif (luggage == null) {\n\t\t\tthis.luggage = new Money(0, 0);\n\t\t} else {\n\t\t\tthis.luggage = luggage;\n\t\t}\n\t}", "public void setDamage(double newDamage) {\n Validations.nonNegative(newDamage, \"newDamage\");\n damage = newDamage;\n }", "public void setLoanAmount(double loanAmount)\n {\n if (loanAmount <= 0)\n {\n throw new IllegalArgumentException(\"The loan amount has to be greater than 0.\");\n }\n\n this.loanAmount = loanAmount;\n }", "private void setScale() {\n this.particleScale = (1 - ((float) slowTime / 50)) * (1.5f * (float) offset);\n }", "public void setHealthScaling(int healthScaling)\r\n {\r\n this.mHealthScaling = healthScaling;\r\n }", "public void setScale(float scale) {\n setLocalScale(scale);\n }", "public void setScale(double s){\n\t\tsetParameters(location, s);\n\t}", "public void setAge(double theAge)\n\t{\n\t\tthis.theAge=theAge;\n\n\t\tif(theAge<0.0)\n\t\t{\n\t\t\tthis.theAge=0.0;\n\t\t}\n\t}", "public void setNewickLength(Double newnewicklength)\n {\n newicklength = newnewicklength; \n }", "@Override\r\n\tpublic void setAge(int newAge) \r\n\t{\r\n\t\tthis._age = newAge;\r\n\t}", "public void setScaleY(double yscale)\r\n\t{\tyScale = yscale;\t}", "public void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);", "public void adjustZoomLvl(double scale){\n zoomLevel = ZoomCalculator.calculateZoom(scale);\n scale = ZoomCalculator.setScale(zoomLevel);\n transform.setToScale(scale, -scale);\n }", "public void decreasePrice() {\n //price halved\n //is it okay if the price becomes 0?\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() / 2);\n }", "void setQuantizerScale(int value)\n {\n quantizerScale = value;\n }", "public void setScale(double n) {\n\n\t}", "@Override\r\n\tpublic void reset() {\n\t\tsuper.reset();\r\n\t\tthis.setScale(0.75f);\r\n\t}", "public void setDrawScale(float x, float y) {\n \tdrawScale.set(x,y);\n }", "@Override\n\tpublic void setGrowingAge(int age) {\n\t\t// managed by DragonLifeStageHelper, so this is a no-op\n\t}", "public void setMaxAge(int age) {\n long old = getMaxAge();\n this.maxAge = age;\n firePropertyChange(\"maxAge\", old, getMaxAge());\n }", "public void setScale(double scale) {\n\t\tdouble tx = this.transform.getTranslateX();\n\t\tdouble ty = this.transform.getTranslateY();\n\t\tthis.transform.setToScale(scale, scale);\n\t\tthis.transform.translate(tx, ty);\n\t}", "public void rescale(double newFactor) {\n\t\tthis.branchScale = branchScale*newFactor;\n\t\t\n\t\tfor(Node n : root.getOffspring()) {\n\t\t\trescale( (DrawableNode)n);\n\t\t}\n\t}", "public void setGrowthRate(int growthRate) {\n growthRate /= 100;\n this.growthRate = growthRate;\n }", "public void setScaleXY(double sx, double sy) { setScaleX(sx); setScaleY(sy); }", "public void setMeScale (jkt.hms.masters.business.MasStoreMeScale meScale) {\n\t\tthis.meScale = meScale;\n\t}", "public void setMaxHealth(int newMaxHealth)\r\n\t{\r\n\t\tMaxHealth = newMaxHealth;\r\n\t}", "public void setLossRateEnergy(int lossRateEnergy) {\n\t\tif (lossRateEnergy < 0) {\n\t\t\tSystem.out.println(\"lossRateEnergy should be positive! It is set to \" + LOSS_RATE_ENERGY + \".\");\n\t\t\tlossRateEnergy = LOSS_RATE_ENERGY;\n\t\t}\n\t\tthis.lossRateEnergy = lossRateEnergy;\n\t\tupdatePanel();\n\t}", "public void setBuyPrice(double buyPrice) {\n double oldPrice = this.buyPrice;\n this.buyPrice = buyPrice;\n if(oldPrice == -1) {\n originalPrice = buyPrice;\n } else {\n fluctuation += (buyPrice - oldPrice);\n }\n }", "public final void setScale(float scale) {\n\t\n \tthis.svd(this);\n \tthis.mul(scale);\n }", "public void setOriginalPrice(Float OriginalPrice) {\n this.OriginalPrice = OriginalPrice;\n }", "public final void setScale(float scalarX, float scalarY) {\n\t\tfinal Vector2 oldScale = this.scale();\n\t\tthis.scale(scalarX/oldScale.x, scalarY/oldScale.y);\n\t}", "public void setScaleX(double aValue)\n{\n if(aValue==getScaleX()) return;\n repaint();\n firePropertyChange(\"ScaleX\", getRSS().scaleX, getRSS().scaleX = aValue, -1);\n}", "public void setyChange(double d) {\n\t\tthis.yChange = d;\n\t}", "public void setManageLyRate(BigDecimal manageLyRate) {\n this.manageLyRate = manageLyRate;\n }", "private void setZoomLevel() {\n final float oldMaxScale = photoView.getMaximumScale();\n photoView.setMaximumScale(oldMaxScale *2);\n photoView.setMediumScale(oldMaxScale);\n }", "public static synchronized void setMetricsLevel(String newMetricsLevel) {\n\n if (overrideLogbackLevel) {\n if (\"OFF\".equalsIgnoreCase(newMetricsLevel)) {\n PolicyLogger.metricsLevel = Level.OFF;\n metricsLogger.setLevel(metricsLevel);\n } else {\n // --- set default value\n metricsLogger.setLevel(Level.INFO);\n PolicyLogger.metricsLevel = Level.INFO;\n }\n }\n\n }", "private void setEliteMobLevel(int newLevel) {\n if (newLevel < 1)\n newLevel = 1;\n this.eliteMobLevel = newLevel;\n }", "public void setHightPrice(final float newHightPrice)\r\n{\r\n\tthis.hightPrice = newHightPrice;\r\n}", "public void setScale(float scaleXY) {\n internalGroup.setScale(scaleXY);\n dataTrait.scaleX = scaleXY;\n dataTrait.scaleY = scaleXY;\n resetSprite();\n }", "public void restoreHealth()\r\n {\r\n health = maxHealth;\r\n \r\n say(\"Yay my health is now \" + maxHealth + \"!\");\r\n }", "public void setSensitivity(float newSensitivity)\n\t{\n\t\tthis.sensitivity = newSensitivity;\n\t}", "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "public double getScale(){\n\t\treturn scale;\n\t}", "@Override\n public void scaleStats() {\n this.damage = BASE_DMG + (this.getLevel() * 3);\n }", "public void setPriceListOld (BigDecimal PriceListOld);", "void initScale(){\n samplingScale = getScaleAdaptive(x);\n }", "public void setScale(final float scale) {\n if (equal(mScale, scale) != true) {\n Log.d(TAG, \"setScale(): old: %.2f, new: %.2f\", mScale, scale);\n mScale = scale;\n setScale(mSceneRootObject, scale);\n setScale(mMainCameraRootObject, scale);\n setScale(mLeftCameraRootObject, scale);\n setScale(mRightCameraRootObject, scale);\n for (OnScaledListener listener : mOnScaledListeners) {\n try {\n listener.onScaled(scale);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(TAG, e, \"setScale()\");\n }\n }\n }\n }", "public void setPrice(double price){\r\n Random chance = new Random();\r\n int crashChance = chance.nextInt(100);\r\n double droppedPrice = price * ThreadLocalRandom.current().nextDouble(0.6, 0.8);\r\n if (crashChance > 95) {\r\n setPlusMinus(\"Down\");\r\n System.out.println(\"This stock has crashed.\");\r\n super.setPrice(price - droppedPrice);\r\n } else if(crashChance < 5){\r\n setPlusMinus(\"Up\");\r\n System.out.println(\"This stock has surged.\");\r\n super.setPrice(price + droppedPrice);\r\n } else {\r\n super.setPrice(price);\r\n }\r\n }", "public Integer getHoldscale() {\r\n return holdscale;\r\n }", "public void setAge(double age) {\r\n\t\tif (age <= 2) setAge(age * 10.5);\r\n\t\telse setAge(21 + (4 * (age - 2)));\r\n\t}", "public String getCurrentScale() {\n return currentScale;\n }", "public static Rectangle reScale(Rectangle rect, int oldScale, int newScale){\n\t\tRectangle res = new Rectangle();\n\t\tres.x = reScale(rect.x, oldScale, newScale);\n\t\tres.y = reScale(rect.y, oldScale, newScale);\n\t\tres.width = reScale(rect.width, oldScale, newScale);\n\t\tres.height = reScale(rect.height, oldScale, newScale);\n\t\treturn res;\n\t}", "public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }", "@Override\n protected float getDownScaleFactor() {\n return (float) 5.0;\n }", "public void setMaxValue(double x) {\r\n\t\tmaxValue = x;\r\n\t}", "public void setScale(Integer scale) throws DBException {\n _scale = scale;\n }", "public void setScale(Integer scale) throws DBException {\n _scale = scale;\n }", "public void setSrcFlipScale(float x, float y) {\n if(mNativeAddress != 0)\n nativeSetSrcFlipScale(mNativeAddress, x, y);\n }", "@Override\n public float getScale() {\n return scale;\n }", "public void setPrice(int newPrice){\n productRelation.setCost(newPrice);\n }" ]
[ "0.7902694", "0.74899864", "0.7215144", "0.61454725", "0.6131452", "0.6101974", "0.58649105", "0.58496666", "0.5823518", "0.5803876", "0.57902133", "0.57153773", "0.5707951", "0.5698236", "0.5697748", "0.5665505", "0.5665179", "0.56464356", "0.56206894", "0.56098497", "0.5598309", "0.5585589", "0.55829126", "0.5581142", "0.55772346", "0.5576591", "0.5510677", "0.5492038", "0.5464864", "0.5449169", "0.5429215", "0.5423167", "0.5404694", "0.53836244", "0.53687406", "0.5368178", "0.5336945", "0.5330479", "0.5329172", "0.5326977", "0.53204554", "0.5309016", "0.5289394", "0.52877504", "0.5280616", "0.52791995", "0.52719754", "0.52652276", "0.526088", "0.52525985", "0.525005", "0.5246164", "0.5230442", "0.5224368", "0.52231574", "0.5214584", "0.5210616", "0.5201262", "0.5187427", "0.51804495", "0.51733893", "0.51639766", "0.5163402", "0.5155252", "0.5151971", "0.51492554", "0.51479995", "0.5140567", "0.5139149", "0.5138997", "0.5124789", "0.51196015", "0.5116893", "0.51074725", "0.5106523", "0.5106185", "0.5104552", "0.50971645", "0.5095105", "0.50894225", "0.50891036", "0.50862265", "0.5085033", "0.5085002", "0.5078405", "0.5076934", "0.5059236", "0.5057367", "0.5049347", "0.5047402", "0.50466156", "0.5044226", "0.5038744", "0.50317055", "0.5031413", "0.5028888", "0.5028888", "0.5019258", "0.5009161", "0.5008455" ]
0.88105875
0
Gets the value of the newLoyaltyScale property.
public int getNewLoyaltyScale() { return newLoyaltyScale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getOldLoyaltyScale() {\n return oldLoyaltyScale;\n }", "public void setNewLoyaltyScale(int value) {\n this.newLoyaltyScale = value;\n }", "public void setOldLoyaltyScale(int value) {\n this.oldLoyaltyScale = value;\n }", "public String getCurrentScale() {\n return currentScale;\n }", "public float getScale() {\n\t\treturn getLifeStageHelper().getScale();\n\t}", "public Integer getHoldscale() {\r\n return holdscale;\r\n }", "public double getScale(\n )\n {return scale;}", "public int getScaleValue() {\r\n return ScaleValue;\r\n }", "public Integer getScale() {\n return _scale;\n }", "public Integer getScale() {\n return _scale;\n }", "public double getScale() {\n return this.scale;\n }", "public float getScale() {\n return this.scale;\n }", "public double getScale() {\r\n\t\treturn scale;\r\n\t}", "public double getScale(){\n\t\treturn scale;\n\t}", "public double getScale() {\r\n return scale;\r\n }", "public float getScale() {\n \t\treturn scale;\n \t}", "public Scale getScale() {\n return this.scale;\n }", "public int getScale() {\r\n return scale;\r\n }", "public double getScale() {\n return scale;\n }", "public float getScale() {\n\t\treturn scale;\n\t}", "public float getScale()\n\t{\n\t\treturn scale;\n\t}", "public float getScale();", "@Override\n public float getScale() {\n return scale;\n }", "ScaleType getScale();", "public double getMaxScale() {\n return maxScale;\n }", "public int getScale() {\n return scale_;\n }", "public double getScale() {\n return scale;\n }", "public double getHealthScale ( ) {\n\t\treturn extract ( handle -> handle.getHealthScale ( ) );\n\t}", "int getScale();", "public int getHealthScaling()\r\n {\r\n return mHealthScaling;\r\n }", "public Integer getScaleTo()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.scaleTo, null);\n }", "public BigDecimal getPriceLimitOld();", "public int getScale(){\n return scale;\n }", "public byte[] getScale()\n {\n if (true)\n throw new UnsupportedOperationException(\"FIXME\");\n return (byte[]) getProperty(PropertyIDMap.PID_SCALE);\n }", "public BigDecimal getManageLyRate() {\n return manageLyRate;\n }", "public double getScaleY() {\n return 1.0;\n }", "public double getScaleEnd() {\n\t\treturn m_dScaleEnd;\n\t}", "public double getMinScale() {\n return minScale;\n }", "public double getScale() {\n\t\treturn disp.getScale();\n\t}", "int getMaxScale();", "public double getScale() {\n\t\treturn 0;\n\t}", "public float getGlobalScale() {\n // per convenzione se la scala deve essere su tutti e tre gli assi\n // allora si considera scale.x() per tutti gli assi\n return (float) scale.x();\n }", "public final float getScale() {\n\treturn svd(null);\n }", "public AxisScale getVScale() {\n return (_bvp!=null)?_bvp.getScale():AxisScale.LINEAR;\n }", "public ImageScale getScale() {\n return this.scale;\n }", "float getCostScale();", "public Vector2 getDrawScale() {\n \tscaleCache.set(drawScale);\n \treturn scaleCache; \n }", "@Nullable Uint64 getScaleInThreshold();", "int getWrongScale();", "public Configuration getScale() {\n return scale;\n }", "public jkt.hms.masters.business.MasStoreMeScale getMeScale () {\n\t\treturn meScale;\n\t}", "public double getMaximumScale() {\n\t\treturn 0;\n\t}", "public ScalePolicy getScalePolicy() {\n\t\treturn null;\n\t}", "public double getScaleStart() {\n\t\treturn m_dScaleStart;\n\t}", "public float getScaleMotionDeceleration() {\r\n\t\treturn scaleMotionDeceleration;\r\n\t}", "public double getMagicalProtectScaling()\r\n {\r\n return mMagicalProtectScaling;\r\n }", "@Override\n protected float getDownScaleFactor() {\n return (float) 5.0;\n }", "@Override\n\tpublic int getGrowingAge() {\n\t\t// adapter for vanilla code to enable breeding interaction\n\t\treturn isAdult() ? 0 : -1;\n\t}", "protected float getDownScaleFactor() {\n return BlurDialogEngine.DEFAULT_BLUR_DOWN_SCALE_FACTOR;\n }", "@Override\n public Double scalingFactor() {\n return 1.55d;\n }", "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "private static int fireballDamageScale(int fireballDamage, int playerLevel){\r\n int totalDamage = 0;\r\n totalDamage = fireballDamage + (2 * playerLevel);\r\n return totalDamage;\r\n }", "public BigDecimal getMaxLifeUsage () \n\t{\n\t\tBigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MaxLifeUsage);\n\t\tif (bd == null)\n\t\t\t return Env.ZERO;\n\t\treturn bd;\n\t}", "public double getScaleY() { return _rss==null? 1 : _rss.scaleY; }", "public double getNextZoomLevel() {\n\tfor (int i = 0; i < zoomLevels.length; i++)\n\t\tif (zoomLevels[i] > zoom)\n\t\t\treturn zoomLevels[i];\n\treturn getMaxZoom();\n}", "public BigDecimal getPriceStdOld();", "public double getScaleX() {\n return 1.0;\n }", "@Nullable Uint64 getScaleOutThreshold();", "public double getLoyaltyBalance() {\n if (compositePOSTransaction.getLoyaltyCard() != null) {\n \t//Fix for US issue 886: Receipt for a sale involving a loyalty customer needs \n \t//to show that points were earned\n \tif (isSourceFromTxnDetailApplet() ||\n (com.chelseasystems.cr.swing.CMSApplet.theAppMgr!=null &&\n \t\t\t com.chelseasystems.cr.swing.CMSApplet.theAppMgr.getStateObject(\"THE_TXN\") != null)) {\n \t\treturn compositePOSTransaction.getLoyaltyCard().getCurrBalance();\n \t} else {\n return compositePOSTransaction.getLoyaltyCard().getCurrBalance()\n \t\t\t- compositePOSTransaction.getUsedLoyaltyPoints()\n \t\t\t+ this.getTxnLoyaltyPoints();\n \t}\n }\n else {\n return 0.0;\n }\n }", "private static int devilGoldScale(int devilGold, int playerLevel){\r\n if(playerLevel > 4){\r\n devilGold = devilGold + ( 1* playerLevel);\r\n return devilGold;\r\n }else{\r\n return devilGold;\r\n }\r\n }", "public boolean isLoyal()\r\n \t{\r\n \t\treturn loyalty > LOYAL_STEP;\r\n \t}", "public Float getNextInstructionDistanceScale(){\n\t\treturn getFloat(KEY_NEXT_INSTRUCTION_DISTANCE_SCALE);\n\t}", "public double getMaxHealthPerLevel()\r\n\t{\treturn this.maxHealthPerLevel;\t}", "public Money getLuggage() {\n\t\treturn luggage;\n\t}", "private float getNewScale() {\n int width = getWidth() - (padding[0] + padding[2]);\n float scaleWidth = (float) width / (cropRect.right - cropRect.left);\n\n int height = getHeight() - (padding[1] + padding[3]);\n float scaleHeight = (float) height / (cropRect.bottom - cropRect.top);\n if (getHeight() > getWidth()) {\n return scaleWidth < scaleHeight ? scaleWidth : scaleHeight;\n }\n return scaleWidth < scaleHeight ? scaleWidth : scaleHeight;\n }", "public boolean hasScale() { return hasScale; }", "public String getParamScale() {\n return paramScale;\n }", "public double getMinimumScale() {\n\t\treturn 0;\n\t}", "public BigDecimal getSellingPrice() {\n return sellingPrice;\n }", "public double getScaleY(double y) {\r\n return scalingFactorY*y;\r\n }", "public double getGnpOld() {\n\n return gnpOld;\n }", "public void setGlobalScale(float newScale) {\n scale(new Vector3(newScale, newScale, newScale));\n }", "public double getPhysicalProtectScaling()\r\n {\r\n return mPhysicalProtectScaling;\r\n }", "public static Double LargeY() {\n return LargeY;\n }", "private int getScale(){\n Display display = ((WindowManager) Objects.requireNonNull(getContext())\n .getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();\n\n int width = display.getWidth();\n Double val = (double) width / 360d;\n val = val * 100d;\n return val.intValue();\n }", "public double confidenceLo() {\n\t\treturn confidenceLow;\n\t}", "public int getMaxOldProductPriceForUpdateInOurs() {\n return 24;\n }", "public Money getOldPrice() {\n\t\treturn oldPrice;\n\t}", "public AxisScale getHScale() {\n return (_bhp!=null)?_bhp.getScale():AxisScale.LINEAR;\n }", "private static int skeletonGoldScale(int skeletonGold, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonGold = skeletonGold + ( 1* playerLevel);\r\n return skeletonGold;\r\n }else{\r\n return skeletonGold;\r\n }\r\n }", "public void setPriceLimitOld (BigDecimal PriceLimitOld);", "public BigDecimal getLEL_PERCENTAGE() {\r\n return LEL_PERCENTAGE;\r\n }", "public double getMaxValue() {\r\n\t\treturn maxValue;\r\n\t}", "public abstract float getMaxValue();", "@Deprecated\n public V1CrossVersionObjectReference getScaleTargetRef();", "public TempScale getInputScale() {\n\t\treturn inputPanel.getScale();\n\t}", "public float getDscale() {\r\n\t\treturn dscale;\r\n\t}", "@Override\n\tpublic void setScaleForAge(boolean p_98054_1_) {\n\t\t// managed by DragonLifeStageHelper, so this is a no-op\n\t}", "public BigDecimal getAMOUNT_NEW() {\r\n return AMOUNT_NEW;\r\n }", "public double confidenceLo() {\r\n\t\treturn confidenceLo;\r\n\t}" ]
[ "0.8479017", "0.80772203", "0.7710645", "0.6678086", "0.6604531", "0.63344806", "0.6331329", "0.63198715", "0.63155013", "0.63155013", "0.6306771", "0.629518", "0.62938607", "0.6276469", "0.62639344", "0.6260233", "0.62556857", "0.62116325", "0.6201393", "0.6196552", "0.6171569", "0.6163816", "0.6156656", "0.61455536", "0.61369747", "0.6119339", "0.61000276", "0.6099041", "0.60792786", "0.6077265", "0.60694593", "0.6037308", "0.6028178", "0.5995551", "0.5985875", "0.5982739", "0.5947119", "0.5937134", "0.5931902", "0.58838564", "0.58354974", "0.58191013", "0.58112687", "0.58027875", "0.58024395", "0.5795931", "0.57677925", "0.57330704", "0.5715515", "0.5711889", "0.5683235", "0.56510544", "0.56233215", "0.56156754", "0.56025785", "0.5601312", "0.5587181", "0.5527915", "0.5525001", "0.55153185", "0.5504498", "0.54970396", "0.54888606", "0.54875267", "0.54748416", "0.54739267", "0.5462927", "0.54462355", "0.5443838", "0.5441528", "0.5440964", "0.54209846", "0.5418218", "0.53980815", "0.5395579", "0.5392297", "0.5376497", "0.5367981", "0.53625506", "0.5360766", "0.5350797", "0.5345655", "0.53441954", "0.53407985", "0.532181", "0.5316778", "0.53155696", "0.5293513", "0.52804756", "0.5279207", "0.5273629", "0.5273266", "0.526463", "0.5259571", "0.5252869", "0.52528244", "0.5249376", "0.52483994", "0.52344024", "0.5232694" ]
0.8607207
0
Sets the value of the newLoyaltyScale property.
public void setNewLoyaltyScale(int value) { this.newLoyaltyScale = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOldLoyaltyScale(int value) {\n this.oldLoyaltyScale = value;\n }", "public int getNewLoyaltyScale() {\n return newLoyaltyScale;\n }", "public int getOldLoyaltyScale() {\n return oldLoyaltyScale;\n }", "public void setGlobalScale(float newScale) {\n scale(new Vector3(newScale, newScale, newScale));\n }", "public void setScale(float scale);", "@Override\n\tpublic void setScaleForAge(boolean p_98054_1_) {\n\t\t// managed by DragonLifeStageHelper, so this is a no-op\n\t}", "void setMaxScale(int value);", "public void setPriceLimitOld (BigDecimal PriceLimitOld);", "@Override\n public void setScale(float scale) {\n this.scale = scale;\n }", "public void updatePowerScale(double powerScale) {\n m_powerScale = powerScale;\n }", "public void setScale(double value) {\n this.scale = value;\n }", "public void setScale(Scale scale) {\n this.scale = scale;\n }", "void setScale(ScaleSelector sensor, int scaleNo);", "public void setHoldscale(Integer holdscale) {\r\n this.holdscale = holdscale;\r\n }", "private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }", "public void setScale(double scale) {\r\n if (scale >= 0.1) {\r\n this.scale = scale;\r\n }\r\n }", "public void setScale(float scale) {\n this.scale = scale;\n }", "public Scale(Scale newScale){\n \tsuper(newScale);\n }", "public void setMaxLifeUsage (BigDecimal MaxLifeUsage)\n\t{\n\t\tset_Value (COLUMNNAME_MaxLifeUsage, MaxLifeUsage);\n\t}", "public void setScaleFactor(float scale){\n scaleFactor = scale;\n }", "public void setCurrentScale(String currentScale) {\n this.currentScale = currentScale == null ? null : currentScale.trim();\n }", "public void setScale( float scale ) {\n\t\tthis.scale = scale;\n\t}", "public void setHourlyRate(double newPayRate){\r\n if(newPayRate>=MINIMUMWAGE)\r\n hourlyRate = newPayRate;\r\n else\r\n throw new IllegalArgumentException(\"The hourly rate must be greater than or equal to\"+MINIMUMWAGE);\r\n }", "public void setScale(final double scale) {\r\n\t\tthis.scale = scale;\r\n\t}", "public void setGrowthRate(int growthRate) {\n growthRate /= 100;\n this.growthRate = growthRate;\n }", "public void setScaleTo(Integer scaleTo)\n {\n getStateHelper().put(PropertyKeys.scaleTo, scaleTo);\n }", "public void setManageLyRate(BigDecimal manageLyRate) {\n this.manageLyRate = manageLyRate;\n }", "public void setScale(float xScale, float yScale) {\n\t\tthis.xScale = xScale;\n\t\tthis.yScale = yScale;\n\t}", "public void setDecayRate(double newDecayRate ){\n\n decayRate= newDecayRate;\n}", "private void setEliteMobLevel(int newLevel) {\n if (newLevel < 1)\n newLevel = 1;\n this.eliteMobLevel = newLevel;\n }", "public RaiseToScale() {\n super(\"RaiseToScale\", kP, kI, kD);\n requires(this.elevator = Elevator.getInstance());\n requires(this.intake = Intake.getInstance());\n this.getPIDController().setOutputRange(-RobotMap.ELEVATOR_SPEED,\n RobotMap.ELEVATOR_SPEED);\n setInterruptible(true);\n }", "public void setScale(float scale) {\n setLocalScale(scale);\n }", "public void setScale(float scale) {\n \t\tthis.scale = scale;\n \t\tupdateTransform();\n \t\tfireEvent(new ScalingEvent(scale));\n \t}", "public void setNewickLength(Double newnewicklength)\n {\n newicklength = newnewicklength; \n }", "public void setScaled(long _scaled) {\n\t\tscaled = _scaled;\n\t}", "public void setHealthScaling(int healthScaling)\r\n {\r\n this.mHealthScaling = healthScaling;\r\n }", "private void setScale() {\n this.particleScale = (1 - ((float) slowTime / 50)) * (1.5f * (float) offset);\n }", "public void setScale(double s){\n\t\tsetParameters(location, s);\n\t}", "public void setSensitivity(float newSensitivity)\n\t{\n\t\tthis.sensitivity = newSensitivity;\n\t}", "public void setScale(double n) {\n\n\t}", "public void setRate(double newRate) {\n this.rate = newRate;\n }", "public static int reScale(int num, int oldScale, int newScale){\n\t\tdouble dnum = new Double(num);\n\t\tdouble dold = new Double(oldScale);\n\t\tdouble dnew = new Double(newScale);\n\t\t\n\t\treturn (int)(dnum * (dnew / dold));\n\t}", "public void setSalePrice(final double newSalePrice) {\n this.salePrice = newSalePrice;\n }", "public void setDrawScale(float x, float y) {\n \tdrawScale.set(x,y);\n }", "public void setLiterAllocation (BigDecimal LiterAllocation);", "void setQuantizerScale(int value)\n {\n quantizerScale = value;\n }", "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "public void setMaxHealth(int newMaxHealth)\r\n\t{\r\n\t\tMaxHealth = newMaxHealth;\r\n\t}", "public static synchronized void setMetricsLevel(String newMetricsLevel) {\n\n if (overrideLogbackLevel) {\n if (\"OFF\".equalsIgnoreCase(newMetricsLevel)) {\n PolicyLogger.metricsLevel = Level.OFF;\n metricsLogger.setLevel(metricsLevel);\n } else {\n // --- set default value\n metricsLogger.setLevel(Level.INFO);\n PolicyLogger.metricsLevel = Level.INFO;\n }\n }\n\n }", "public void setScaleY(double yscale)\r\n\t{\tyScale = yscale;\t}", "public void setScalePolicy(ScalePolicy policy) {\n\n\t}", "public void setDamage(double newDamage) {\n Validations.nonNegative(newDamage, \"newDamage\");\n damage = newDamage;\n }", "void initScale(){\n samplingScale = getScaleAdaptive(x);\n }", "public final void setScale(float scale) {\n\t\n \tthis.svd(this);\n \tthis.mul(scale);\n }", "void onScaleChange(float scaleFactor, float focusX, float focusY);", "public void setPriceStdOld (BigDecimal PriceStdOld);", "public void setMeScale (jkt.hms.masters.business.MasStoreMeScale meScale) {\n\t\tthis.meScale = meScale;\n\t}", "public double getScale(){\n\t\treturn scale;\n\t}", "public void setPrice(int newPrice){\n productRelation.setCost(newPrice);\n }", "@Override\r\n\tprotected void setHealth( double newHealth ) \r\n\t{\r\n\t\tthis._health = this._health - newHealth;\r\n\t}", "public PointDetails setScaling(DoubleSupplier scale){\n\t\t\tthis.scale = scale;\n\t\t\treturn this;\n\t\t}", "public void rescale(double newFactor) {\n\t\tthis.branchScale = branchScale*newFactor;\n\t\t\n\t\tfor(Node n : root.getOffspring()) {\n\t\t\trescale( (DrawableNode)n);\n\t\t}\n\t}", "public void setCapacity(int newCapacity) {\r\n Validate.positive(newCapacity, \"new capacity\");\r\n\r\n capacity = newCapacity;\r\n cull(capacity);\r\n }", "public void setCoolingRate(final double coolingRate) {\r\n\t\tthis.coolingRate = coolingRate;\r\n\t}", "public void setScaleY(double aValue)\n{\n if(aValue==getScaleY()) return;\n repaint();\n firePropertyChange(\"ScaleY\", getRSS().scaleY, getRSS().scaleY = aValue, -1);\n}", "public void setNextInstructionDistanceScale(Float nextInstructionDistanceScale){\n\t\tsetValue(KEY_NEXT_INSTRUCTION_DISTANCE_SCALE, nextInstructionDistanceScale);\n\t}", "public void setBuyPrice(double buyPrice) {\n double oldPrice = this.buyPrice;\n this.buyPrice = buyPrice;\n if(oldPrice == -1) {\n originalPrice = buyPrice;\n } else {\n fluctuation += (buyPrice - oldPrice);\n }\n }", "private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}", "public void setScale(double scale) {\n\t\tdouble tx = this.transform.getTranslateX();\n\t\tdouble ty = this.transform.getTranslateY();\n\t\tthis.transform.setToScale(scale, scale);\n\t\tthis.transform.translate(tx, ty);\n\t}", "public final void setScale(float scalarX, float scalarY) {\n\t\tfinal Vector2 oldScale = this.scale();\n\t\tthis.scale(scalarX/oldScale.x, scalarY/oldScale.y);\n\t}", "public double getScale(\n )\n {return scale;}", "public void setScaleFactor(float scaleFactor) {\n\t\ttrueCoreRadius *= scaleFactor;\n\t\ttruePetalRadius *= scaleFactor;\n\t\tcoreRadius = (int) trueCoreRadius;\n\t\tpetalRadius = (int) truePetalRadius;\n\t\tthis.scaleFactor *= scaleFactor;\n\t}", "public void setLBR_LatePaymentPenaltyAP (BigDecimal LBR_LatePaymentPenaltyAP);", "@Override\r\n\tpublic void setCost(double newCost) {\n\r\n\t}", "private void setZoomLevel() {\n final float oldMaxScale = photoView.getMaximumScale();\n photoView.setMaximumScale(oldMaxScale *2);\n photoView.setMediumScale(oldMaxScale);\n }", "public ScaleFactorSuggestion(double scaleFactor) {\n this.scaleFactor = new ScaleFactor(scaleFactor, scaleFactor);\n }", "public void setInterestRate(double newInterestRate)\n {\n if (!(newInterestRate >= 0.0))\n {\n System.err.println(\"Interest rate must be positive.\");\n }\n else\n {\n this.interestRate = newInterestRate;\n }\n }", "public void setOldPrice(Money oldPrice) {\n\t\tif (oldPrice == null) {\n\t\t\tthis.oldPrice = new Money(0, 0);\n\t\t} else {\n\t\t\tthis.oldPrice = oldPrice;\n\t\t}\n\t}", "public void setMaxWeight(String newValue);", "public void setFuelCapacity(int newCapacity) {\r\n this.fuelCapacity = newCapacity;\r\n }", "@Override\n\tpublic void setScale(Vector3d scale) {\n\t\t\n\t}", "public void setMaxValue(double x) {\r\n\t\tmaxValue = x;\r\n\t}", "@Override\n public float getScale() {\n return scale;\n }", "@Override\n protected float getDownScaleFactor() {\n return (float) 5.0;\n }", "public double getScale() {\r\n return scale;\r\n }", "public void setScaleEnd(double scaleEnd) {\n\t\tm_dScaleEnd = scaleEnd;\n\t}", "public void setScale(float scaleXY) {\n internalGroup.setScale(scaleXY);\n dataTrait.scaleX = scaleXY;\n dataTrait.scaleY = scaleXY;\n resetSprite();\n }", "public void rescale()\r\n\t{\n\t}", "public double getScale() {\r\n\t\treturn scale;\r\n\t}", "public float getScale() {\n return this.scale;\n }", "public void setHightPrice(final float newHightPrice)\r\n{\r\n\tthis.hightPrice = newHightPrice;\r\n}", "public static void setPickupSpawnCooldown(int pickupSpawnCooldown) {\n LevelManager.pickupSpawnCooldown = pickupSpawnCooldown;\n }", "public void setHealthCoefficient(double newHealthCoefficient) {\n if (newHealthCoefficient >= MINIMUM_HEALTH_COEFFICIENT && newHealthCoefficient <= MAXIMUM_HEALTH_COEFFICIENT) {\n this.healthCoefficient = newHealthCoefficient;\n }\n }", "public InterestScale interestRateofScale(String interestRateofScale) {\n this.interestRateofScale = interestRateofScale;\n return this;\n }", "public void setScale(double d) {\n\t\tdisp.setScale(d);\n\t\texactZoom.setText(disp.getScale() + \"\");\n\t\tresize();\n\t\trepaint();\n\t}", "public void setGravityScale (float scale) {\n\t\tbody.setGravityScale(scale);\n\t}", "public void setScaleXY(double sx, double sy) { setScaleX(sx); setScaleY(sy); }", "public String getCurrentScale() {\n return currentScale;\n }", "public double getScale() {\n return this.scale;\n }", "ScaleType getScale();" ]
[ "0.8318336", "0.7547538", "0.70224804", "0.6369118", "0.6098569", "0.60595775", "0.5982766", "0.59477067", "0.59461105", "0.5945656", "0.5907373", "0.5907044", "0.5896521", "0.58373916", "0.582233", "0.5819745", "0.58114874", "0.5809969", "0.57994926", "0.57982635", "0.5752954", "0.5707286", "0.56794107", "0.56769115", "0.5675892", "0.5668458", "0.56610525", "0.56501746", "0.5647393", "0.5608644", "0.5599414", "0.55862504", "0.5541037", "0.55317557", "0.55241674", "0.5516448", "0.5513534", "0.5505312", "0.54932463", "0.5469928", "0.5459557", "0.5448646", "0.54431266", "0.54136884", "0.5378388", "0.5354807", "0.533882", "0.53358793", "0.5335137", "0.53307176", "0.53201896", "0.5319704", "0.5316323", "0.53044", "0.53020906", "0.52971405", "0.5295729", "0.5289321", "0.52861017", "0.5282369", "0.5281408", "0.5276187", "0.5265402", "0.52516997", "0.52467746", "0.52246046", "0.52126354", "0.52078927", "0.52062124", "0.5198716", "0.51973724", "0.51947105", "0.51888996", "0.5186075", "0.51851696", "0.5167493", "0.5166731", "0.51635265", "0.51620466", "0.5158796", "0.51552504", "0.51510113", "0.5148884", "0.5148296", "0.51452816", "0.5135203", "0.5130973", "0.51295143", "0.51290333", "0.5128953", "0.512585", "0.5123076", "0.5122502", "0.5121451", "0.5119975", "0.51176053", "0.5117213", "0.50995195", "0.5098538", "0.5097169" ]
0.8655176
0
Assert property has specified value
public void assertValue(T value) { Requirements.notNull(value, "value"); Assert.assertEquals(getValue(), value, this + " value"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasValue(PropertyValue<?, ?> value);", "boolean hasProperty();", "boolean hasProperty();", "boolean hasProperty();", "boolean containsProperty(String name);", "boolean hasSetProperty();", "public void checkAssert(final Consumer<T> property);", "Object getPropertyexists();", "<T> boolean containsValue(Property<T> property);", "boolean hasPropertyLike(String name);", "boolean hasProperty2();", "String getPropertyExists();", "boolean hasProperty(String propertyName);", "@Test\n\tpublic void testPropertyInSuper() {\n\t\tfinal Valuable valuable = context.mock(Valuable.class);\n\t\tcontext.checking(new PropertyEnabledExpectations() {\n\t\t\t{\n\t\t\t\tallowingProperty(valuable).getId();\n\t\t\t\twill(returnValue(INITIAL));\n\t\t\t}\n\t\t});\n\n\t\tassertEquals(\"Initial value not set\", INITIAL, valuable.getId());\n\t}", "public void testGetProperty() {\n assertEquals(rootBlog.getName(), rootBlog.getProperty(Blog.NAME_KEY));\n }", "@Test\n public void testBooleanPropertyQuick() {\n Assertions.assertTrue(classObject.getBoolean(\"Started\"));\n }", "boolean hasProperty1();", "boolean hasProperty0();", "private boolean isValueAProperty(String name)\n {\n int openIndex = name.indexOf(\"${\");\n\n return openIndex > -1;\n }", "boolean hasProperty(String key);", "public void testGetProperty()\n {\n assertEquals(\"MSM Extension not present, or incorrect specification version -\", MSM_SPECIFICATION_VERSION,\n System.getProperty(MSM_PROPERTY_NAME));\n }", "public void _hasPropertyByName() {\n requiredMethod(\"getProperties()\");\n tRes.tested(\"hasPropertyByName()\",\n (\n (oObj.hasPropertyByName(IsThere.Name)) &&\n (!oObj.hasPropertyByName(\"Jupp\")) )\n );\n }", "boolean hasGetProperty();", "public boolean hasProperty( String key );", "public boolean isProperty();", "@Test\n public void testBooleanProperty() {\n try (ReleasableVariant started = classObject.get(\"Started\")) {\n Assertions.assertTrue(started.booleanValue());\n }\n }", "public void verify()\n\t{\n\t\ttry\n\t\t{\n\t\t\tClass<?> propertyType = descriptor.getPropertyType();\n\t\t\t// delegate first to the provided type factory to create a type\n\t\t\t// instance\n\t\t\tObject propertyInstance = typeFactory.create(propertyType);\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\tpropertyInstance = createInstanceOfType(propertyType);\n\t\t\t}\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\t// Use Mockito to mock the property\n\t\t\t\t// TODO Use the Reflection API's Proxy instead\n\t\t\t\tpropertyInstance = mock(propertyType);\n\t\t\t}\n\t\t\tif (propertyInstance == null)\n\t\t\t{\n\t\t\t\tfail(\"Failed to create a mock object of type\" + propertyType.getName());\n\t\t\t}\n\n\t\t\t// Setup\n\t\t\tObject system = typeFactory.create(type);\n\t\t\tif (system == null)\n\t\t\t{\n\t\t\t\tsystem = type.newInstance();\n\t\t\t}\n\n\t\t\t// Execute\n\t\t\tMethod writeMethod = descriptor.getWriteMethod();\n\t\t\tMethod readMethod = descriptor.getReadMethod();\n\t\t\twriteMethod.invoke(system, propertyInstance);\n\t\t\tObject actualObject = readMethod.invoke(system, (Object[]) null);\n\n\t\t\t// Verify\n\t\t\tassertEquals(String.format(\"Verification failed for property %s\", descriptor.getName()), propertyInstance,\n\t\t\t\t\tactualObject);\n\t\t}\n\t\tcatch (IllegalAccessException illegalEx)\n\t\t{\n\t\t\tlogger.error(null, illegalEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t\tcatch (InstantiationException instanceEx)\n\t\t{\n\t\t\tlogger.error(null, instanceEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t\tcatch (InvocationTargetException invokeEx)\n\t\t{\n\t\t\tlogger.error(null, invokeEx);\n\t\t\tfail(\"Verification failed for property:\" + descriptor.getName());\n\t\t}\n\t}", "@Test\n void getByPropertySuccess() {\n List<User> users = genericDao.findByPropertyEqual(\"userName\", \"BigAl\");\n // should only find one entry with the username \"BigAl\"\n assertEquals(users.size(), 1);\n }", "public void testAssertPropertyReflectionEquals_equals() {\r\n assertPropertyReflectionEquals(\"stringProperty\", \"stringValue\", testObject);\r\n }", "@Test\n void getByPropertyExactSuccess() {\n List<Car> carList = carDao.getByPropertyEqual(\"make\", \"Jeep\");\n assertEquals(1, carList.size());\n }", "boolean hasCustomValue();", "@Test\n @org.junit.Ignore\n public void shouldBeAbleToCallPropertyIfThereIsASingleProperty() {\n }", "@Test\n void testAssertPropertyLenientEquals_equals() {\n assertPropertyLenientEquals(\"stringProperty\", \"stringValue\", testObject);\n }", "@Test\n\tpublic void testPropertyStateful() {\n\t\tfinal Base base = context.mock(Base.class);\n\t\tcontext.checking(new PropertyEnabledExpectations() {\n\t\t\t{\n\t\t\t\tallowingProperty(base).getId();\n\t\t\t}\n\t\t});\n\n\t\tfinal String key1 = \"something\";\n\t\tfinal String key2 = \"another\";\n\n\t\tbase.setId(key1);\n\t\tassertEquals(key1, base.getId());\n\t\tbase.setId(key2);\n\t\tassertEquals(key2, base.getId());\n\t}", "@Test\n public void mainTests(){\n assertTrue(property1.getPropertyId() == id1);\n if(property1.getPropertyId() != id1) {\n property2.setPropertyId(id1);\n }\n else {\n assertTrue(property2.getPropertyId() == id2);\n }\n //Getter works Correct for ID\n }", "@Test\n void testAssertPropertyReflectionEquals_equals() {\n assertPropertyReflectionEquals(\"stringProperty\", \"stringValue\", testObject);\n }", "abstract boolean hasXMLProperty(XMLName name);", "@Override\n\tpublic boolean hasProperty(String fieldName, String value) {\n\t\tString[] fields = doc.getValues(fieldName);\n\t\tif (fields != null) {\n\t\t\tfor (String field : fields) {\n\t\t\t\tif (value.equals(field)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public Object expectProperty(String name) {\n return getProperty(name).orElseThrow(() -> new IllegalArgumentException(String.format(\n \"Property `%s` is not part of %s, `%s`\", name, getClass().getSimpleName(), this)));\n }", "public abstract boolean getProperty(String propertyName);", "public void testGetNewValue_Accuracy() {\r\n String newValue = \"newValue\";\r\n UnitTestHelper.setPrivateField(AuditDetail.class, auditDetail, \"newValue\", newValue);\r\n assertEquals(\"The newValue value should be got properly.\", newValue, auditDetail.getNewValue());\r\n }", "@Test\n public void testGetPropertyValueSet(){\n List<User> list = toList(//\n new User(2L),\n new User(5L),\n new User(5L));\n\n Set<Integer> set = CollectionsUtil.getPropertyValueSet(list, \"id\", Integer.class);\n assertThat(set, contains(2, 5));\n }", "@Test\n void getByPropertyEqualSuccess() {\n List<UserRoles> roles = genericDAO.getByPropertyEqual(\"userName\", \"admin\");\n assertEquals(1, roles.size());\n assertEquals(1, roles.get(0).getUserRoleId());\n }", "public void testAssertPropertyLenientEquals_equals() {\r\n assertPropertyLenientEquals(\"stringProperty\", \"stringValue\", testObject);\r\n }", "@Test\n void testAssertPropertyReflectionEquals_notEqualsDifferentValues() {\n assertFailing(() ->\n assertPropertyReflectionEquals(\"stringProperty\", \"xxxxxx\", testObject)\n );\n }", "public void testAssertPropertyReflectionEquals_notEqualsDifferentValues() {\r\n try {\r\n assertPropertyReflectionEquals(\"stringProperty\", \"xxxxxx\", testObject);\r\n fail(\"Expected AssertionFailedError\");\r\n } catch (AssertionFailedError a) {\r\n // expected\r\n }\r\n }", "private void verifyValueForCredential(CredentialsPage cp, Control element, String expected) {\n cp.configure();\n assert(element.exists());\n assertThat(element.resolve().getAttribute(\"value\"), containsString(expected));\n }", "@SuppressWarnings({ \"static-method\", \"nls\" })\n @Test\n public final void testGetProperty()\n {\n TestEasyPropertiesObject object = new TestEasyPropertiesObject();\n Assert.assertEquals(\"1.2.3\", object.getVersion());\n }", "@Test\n\tpublic void testPropertyIntegralType() {\n\t\tfinal Base base = context.mock(Base.class);\n\t\tcontext.checking(new PropertyEnabledExpectations() {\n\t\t\t{\n\t\t\t\tallowingProperty(base).isValid();\n\t\t\t\twill(returnValue(true));\n\t\t\t}\n\t\t});\n\n\t\tassertTrue(\"Initial value was not set\", base.isValid());\n\t\tbase.setValid(false);\n\t\tassertFalse(\"Value didn't change\", base.isValid());\n\t}", "@Test\n void getByPropertyLikeSuccess() {\n List<UserRoles> usersRoles = genericDao.getPropertyByName(\"roleName\", \"user\");\n assertEquals(2, usersRoles.size());\n }", "public boolean equalsTo(String property) {\n\t\t\treturn this.value.equals(property);\n\t\t}", "Object getPropertytrue();", "@Test\n void testAssertPropertyReflectionEquals_equalsMessage() {\n assertPropertyReflectionEquals(\"a message\", \"stringProperty\", \"stringValue\", testObject);\n }", "private void assertInvalid(Object obj, String expectedProperty, String expectedErrMsg, Object expectedValue){\n //run validator on car object and store the resulting violations in a collection\n Set<ConstraintViolation<Object>> constraintViolations = validator.validate( obj );\n\n //count how many violations - SHOULD ONLY BE 1\n assertEquals( 1, constraintViolations.size() );\n\n //get first violation from constraintViolations collection\n ConstraintViolation<Object> violation = constraintViolations.iterator().next();\n\n //ensure that expected property has the violation\n assertEquals( expectedProperty, violation.getPropertyPath().toString() );\n\n //ensure error message matches what is expected\n assertEquals( expectedErrMsg, violation.getMessage() );\n\n //ensure the invalid value is what was set\n assertEquals( expectedValue, violation.getInvalidValue() );\n }", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "public void testAssertPropertyReflectionEquals_equalsMessage() {\r\n assertPropertyReflectionEquals(\"a message\", \"stringProperty\", \"stringValue\", testObject);\r\n }", "public void verifyNoMatching(AcProperty e)\n {\n }", "@Test(expected = IllegalStateException.class)\n @org.junit.Ignore\n public void shouldNotBeAbleToCallPropertyIfThereAreMultipleProperties() {\n }", "@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName1(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \" \", Integer.class);\n }", "@Override\n\t\tpublic void validate() throws ValidationError {\n\t\t\tif (newValueOfPropertyToChange < 0) {\n\t\t\t\tthrow new TestFailure(\"propertyToChange is not ok\");\n\t\t\t}\n\t\t}", "public <T> T expectProperty(String name, Class<T> type) {\n return getProperty(name, type).orElseThrow(() -> new IllegalArgumentException(String.format(\n \"Property `%s` is not part of %s, `%s`\", name, getClass().getSimpleName(), this)));\n }", "@Test\n void testAssertPropertyLenientEquals_equalsMessage() {\n assertPropertyLenientEquals(\"a message\", \"stringProperty\", \"stringValue\", testObject);\n }", "boolean hasAnnotationValue();", "boolean propertyExists(Object name) throws JMSException;", "@Override\n public boolean equals(Object o) {\n if (o instanceof TestElementProperty) {\n if (this == o) {\n return true;\n }\n if (value != null) {\n return value.equals(((JMeterProperty) o).getObjectValue());\n }\n }\n return false;\n }", "private static boolean hasProperty(int settings, int property){\n\t\tint bit = 0; // log2(property)\n\t\twhile ((property >>= 1) > 0) bit ++;\n\t\treturn ItFromBit.getTheBit(settings, bit);\n\t}", "@Test\n public void testBuyProperty() throws IOException, InvalidFormatException, NotAProperty {\n GameController controller = new GameController(2,0);\n controller.getActivePlayer().setLocation(6);\n ColouredProperty cp = (ColouredProperty) controller.getBoard().getBoardLocations().get(controller.getActivePlayer().getLocation());\n controller.buyProperty(controller.getBoard().getBoardLocations().get(controller.getActivePlayer().getLocation()));\n Assert.assertTrue(controller.getActivePlayer().getName().equals(cp.getOwnedBuy()));\n }", "public final void checkAssert(final BiConsumer<A, B> property) {\n check((a, b) -> {\n property.accept(a, b);\n return true;\n });\n }", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n public void testIntPropertyQuick() {\n Assertions.assertNotEquals(0, classObject.getInt(\"ProcessId\"));\n }", "private void checkProperties(Configuration compositeConfiguration)\n {\n assertTrue(\"Make sure we have loaded our key\", compositeConfiguration\n .getBoolean(\"test.boolean\"));\n assertEquals(\"I'm complex!\", compositeConfiguration\n .getProperty(\"element2.subelement.subsubelement\"));\n assertEquals(\"property in the XMLPropertiesConfiguration\", \"value1\",\n compositeConfiguration.getProperty(\"key1\"));\n }", "public void assertValue(String elementLocator, String valuePattern);", "@Test\n void getByPropertyEqualSuccess() {\n List<Order> orders = dao.getByPropertyEqual(\"description\", \"February Large Long-Sleeve\");\n assertEquals(1, orders.size());\n assertEquals(2, orders.get(0).getId());\n }", "@Test\n void getByPropertyEqualSuccess() {\n List<UserRoles> usersRoles = genericDao.getByPropertyEqual(\"roleName\", \"admin\");\n assertEquals(1, usersRoles.size());\n assertEquals(3, usersRoles.get(0).getId());//not sure about this one\n }", "@Override\n\t\tpublic boolean hasProperty(String key) {\n\t\t\treturn false;\n\t\t}", "@Test\n public void tc_VerifyExists_MemorizedValue() throws Exception\n {\n EN.BeginTest( TestName );\n\n // Testscript in Schlüsselwort-Notation\n EN.SelectWindow( \"Rechner\" );\n\n // Soll/Ist-Vergleich: Ist das Richtige Fenster gesetzt?\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( \"NO VALUE\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n assertEquals( \"Rechner\", myClipBoard.getObjectName() );\n assertEquals( \"SelectWindow()\", myClipBoard.getMethod() );\n\n // Set Value in \"Memory\"\n OKW_Memorize_Sngltn.getInstance().set( \"Key1\", \"YES\" );\n\n // Wert in \"All_MethodsObj\" setzen.\n EN.SetValue( \"All_MethodsObj\", \"YES\" );\n // Prüfung des Schlüsselwortes?\n EN.VerifyExists( \"All_MethodsObj\", \"${Key1}\" );\n\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( \"YES\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n\n assertEquals( \"Rechner.All_MethodsObj\", myClipBoard.getObjectName() );\n assertEquals( \"VerifyExists()\", myClipBoard.getMethod() );\n }", "@Test\n public void testGetValues(){\n assertTrue(vector.x == 1 && vector.z == 1);\n }", "public boolean setProperty(String attName, Object value);", "Property getProperty();", "Property getProperty();", "boolean isSetValue();", "boolean isSetValue();", "boolean hasVal();", "boolean hasVal();", "@Test(expected = IllegalArgumentException.class)\n public void testGetPropertyValueSetEmptyPropertyName(){\n List<User> list = toList(new User(2L), new User(5L), new User(5L));\n CollectionsUtil.getPropertyValueSet(list, \"\", Integer.class);\n }", "@Test\n public void testIntProperty() {\n try (ReleasableVariant procId = classObject.get(\"ProcessId\")) {\n Assertions.assertNotEquals(0, procId.intValue());\n }\n }", "@Test\n public void test_setStatus() {\n UserStatus value = new UserStatus();\n instance.setStatus(value);\n\n assertSame(\"'setStatus' should be correct.\",\n value, TestsHelper.getField(instance, \"status\"));\n }" ]
[ "0.6896201", "0.674073", "0.674073", "0.674073", "0.66229343", "0.66039336", "0.6597842", "0.6575507", "0.6540855", "0.64439154", "0.6405773", "0.6378083", "0.6334482", "0.6328575", "0.6318928", "0.63108945", "0.6304612", "0.628304", "0.6251629", "0.62435055", "0.61996865", "0.6196501", "0.6192233", "0.61577284", "0.6155364", "0.6154791", "0.6127169", "0.61009073", "0.60449445", "0.59777266", "0.59666514", "0.595533", "0.5952928", "0.59478307", "0.59464407", "0.59348285", "0.5928273", "0.5921788", "0.59088516", "0.5906207", "0.58899724", "0.5879483", "0.5878128", "0.5873102", "0.58435094", "0.58384764", "0.58120584", "0.5797103", "0.57932323", "0.57627016", "0.57600594", "0.57588065", "0.57524455", "0.5748915", "0.5746773", "0.5746773", "0.5746773", "0.5746773", "0.5746773", "0.5746773", "0.5746773", "0.5746773", "0.5746773", "0.5746773", "0.5746773", "0.5746773", "0.5746773", "0.5746773", "0.5741122", "0.57405096", "0.57169724", "0.5690643", "0.56730944", "0.56674725", "0.56607306", "0.5660009", "0.5653176", "0.5652014", "0.5647649", "0.56442595", "0.5635789", "0.56314105", "0.5621985", "0.5614355", "0.55629396", "0.55543613", "0.55384016", "0.55317795", "0.5531698", "0.5524477", "0.55172515", "0.5507011", "0.5507011", "0.5504772", "0.5504772", "0.54808974", "0.54808974", "0.54727477", "0.54694515", "0.5458146" ]
0.56112754
84
Wait property has specified value
public void waitValue(TimeSpan timeout, final T value) { Requirements.notNull(timeout, "timeout"); Requirements.notNull(value, "value"); new Wait() { @Override public boolean until() { return value.equals(getValue()); } }.wait(TEST_EXPECTED_VALUE.getValue(this, value), timeout.toMilliseconds()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean mustWait() {\n return mustWait;\n }", "public boolean operationWaiting(){\n\t\tif (var2Set) return true; else return false;\n\t}", "boolean hasWaitTime();", "protected int getWait() \t\t\t\t{\treturn wait;\t\t}", "public boolean isBIsWait() {\n return bIsWait;\n }", "boolean isWaiting()\n {\n return waitFlags != 0;\n }", "public void setWaitForEver(boolean set){\r\n waitForEverFlag=set;\r\n }", "public static boolean wait(BooleanSupplier condition) {\n\t\treturn wait(condition, DEFAULT_WAIT_TIMEOUT);\n\t}", "public Status waitUntilFinished();", "@Override\n public boolean waitToProceed() {\n return false;\n }", "int waitFor(String variable);", "public void CondWait(){\n try {\r\n trainCond.await();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Area.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "int waitFor(String variable, int count);", "@java.lang.Override\n public boolean getWaitExpired() {\n return waitExpired_;\n }", "public void doWait() {\n\t\tsynchronized(lock) {\n\t\t\twhile(!wasSignalled) {\n\t\t\t\ttry {\n\t\t\t\t\tlock.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\twasSignalled = false;\n\t\t}\n\t}", "@java.lang.Override\n public boolean getWaitExpired() {\n return waitExpired_;\n }", "boolean isCompleted();", "public boolean isBIsWaitHis() {\n return bIsWaitHis;\n }", "public int explicitWait(){\n\t\tString time_out = null;\n\t\ttry {\n\t\t\ttime_out = new AutomationConfigurator().getTimeOut();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (time_out == null){\n\t\t\treturn default_timeout;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Integer.parseInt(time_out);\n\t\t}\n\t}", "public Object waitForValueObject() throws Exception {\n\t\t\n\t\twaitingForCode = DebugConstants.WAIT_FOR_OBJECT;\n\t\tthread.waitOnCompletion(this);\n\t\treturn oval;\n\t}", "public boolean wait(final String title) {\n\t\treturn wait(title, (String) null);\n\t}", "boolean isValueLocked();", "public boolean GetWaitingFlag() { return this.mWaitingF; }", "private static void waitChanged() throws InterruptedException {\n synchronized (CONNECTIONS_CHANGE_FIRED) {\n if (!CONNECTIONS_CHANGE_FIRED.get()) {\n CONNECTIONS_CHANGE_FIRED.wait(10000);\n }\n }\n // reset property\n CONNECTIONS_CHANGE_FIRED.set(false);\n }", "protected void waitUntilCommandFinished() {\n }", "protected void afterLockWaitingForBooleanCondition() {\n }", "public void waitForDecision(){\n if(gameOver) {\n return;\n }\n if(!decisionActive) {\n try {\n uiWaiting = true;\n synchronized(uiWait) {\n uiWait.wait();\n }\n } catch (Exception e) { logger.log(\"\"+e); }\n }\n }", "@Override\n\tprotected boolean until() {\n\t\treturn true;\n\t}", "public abstract boolean isCompleted();", "@Override\n public Duration getWait() {\n return duration;\n }", "private void customWait() throws InterruptedException {\n while (!finished) {\n Thread.sleep(1);\n }\n finished = false;\n }", "public void waitUntilTrainPasses(Train train) {\n\t\tthis.wait = train;\n\t}", "public boolean hasWaitTime() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "static boolean waitStatus(final long timeout, final TimeUnit unit, final Condition condition) throws InterruptedException {\n // until condition is signaled\n\n final long timeoutNanos = TimeUnit.NANOSECONDS.convert(timeout, unit);\n final long expireTime = System.nanoTime() + timeoutNanos;\n // the queue is empty or full wait for something to change\n while (condition.test()) {\n final long now = System.nanoTime();\n if (now > expireTime) {\n return false;\n }\n\n condition.awaitNanos(expireTime - now - PARK_TIMEOUT);\n\n }\n\n return true;\n }", "protected <T extends HelixProperty> T pollForProperty(Class<T> clazz, HelixDataAccessor accessor,\n PropertyKey key, boolean shouldExist) throws InterruptedException {\n final int POLL_TIMEOUT = 5000;\n final int POLL_INTERVAL = 50;\n T property = accessor.getProperty(key);\n int timeWaited = 0;\n while (((shouldExist && property == null) || (!shouldExist && property != null))\n && timeWaited < POLL_TIMEOUT) {\n Thread.sleep(POLL_INTERVAL);\n timeWaited += POLL_INTERVAL;\n property = accessor.getProperty(key);\n }\n return property;\n }", "void waitToRead();", "public void doWait() {\n\t\tsynchronized(lockObject){\n\t\t\t//Now even if the notify() is called earlier without a pre-wait() call then it will check the condition\n\t\t\t//and will found \"resumeSignal\" to be true hence, will not enter the waiting state.\n\t\t\tif(!resumeSignal){\n\t\t\t\ttry{\n\t\t\t\t\tlockObject.wait();\n\t\t\t\t} catch(InterruptedException e){}\n\t\t\t}\n\t\t\t//Waiting state is over. So, clear the signal flag and continue running.\n\t\t\tresumeSignal = false;\n\t\t}\n\t}", "protected void setWait(int _wait)\t\t{\twait = _wait;\t\t}", "private void waitForStateChange(int maxTTW) throws MqttException {\n synchronized (caller) {\n if (!donext) {\n try {\n caller.wait(maxTTW);\n } catch (InterruptedException e) {\n Debug.logError(\"Timed out.\" + e.getMessage(), MODULE);\n }\n\n if (ex != null) {\n throw (MqttException) ex;\n }\n }\n donext = false;\n }\n }", "public void doWait(){\n\t\tsynchronized(m){\n\t\t\ttry{\n\t\t\t\tm.wait(32000,0);\n\t\t\t} catch(InterruptedException e){}\n\t\t}\n\t}", "public synchronized boolean testAndSet() {\n boolean oldValue = value_;\n value_ = true;\n return oldValue;\n }", "public boolean hasWaitTime() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public void set_completed();", "public abstract void onWait();", "@Test\n\tpublic void checkReady_test()\n\t{\n\t\tb.set(1,1, 'x');\n\t\tb.set(1,2, 'o');\n\t\tassertFalse(b.checkReady());\n\t}", "protected abstract void beforeWait();", "@Override public void run() {\n waitUntil(\"message\", new Condition() {\n @Override public boolean isMet() {\n return false;\n }\n }, 0);\n }", "public void setBIsWait(boolean bIsWait) {\n this.bIsWait = bIsWait;\n }", "public void wait(Integer id) throws DynamicCallException, ExecutionException{\n call(\"wait\", id).get();\n }", "public boolean isWaitingFor( int clientId )\n {\n return clientId != myId && waitList.contains( clientId );\n }", "@Override\n\tpublic int getXWait() {\n\t\treturn 0;\n\t}", "public Boolean wait(Integer id, Integer timeoutPeriod) throws DynamicCallException, ExecutionException {\n return (Boolean)call(\"wait\", id, timeoutPeriod).get();\n }", "public boolean is_completed();", "public void waitUntilStarted() {\n mStarted.block();\n }", "public void waitUntil(long x) {\n\n\tlong wakeTime = Machine.timer().getTime() + x;\n\tboolean intrState = Machine.interrupt().disable();\n\tKThread.currentThread().time = wakeTime;\n\tsleepingThreads.add(KThread.currentThread());\n\tKThread.currentThread().sleep();\n Machine.interrupt().restore(intrState);\n \n }", "int getWaitTime();", "@Override // com.google.common.util.concurrent.AbstractFuture.AtomicHelper\n public boolean casValue(AbstractFuture<?> future, Object expect, Object update) {\n return this.valueUpdater.compareAndSet(future, expect, update);\n }", "@And(\"^I wait for page to load completely$\")\n\tpublic void waitForCompleteLoading(){\n\t\tString result=selenium.synchronize();\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t}", "@Override\n public boolean isDone() {\n // boolean result = true;\n // try {\n // result = !evaluateCondition();\n // } catch (Exception e) {\n // logger.error(e.getMessage(), e);\n // }\n // setDone(true);\n // return result;\n // setDone(false);\n return false;\n }", "public static void fluentWaitPredicate()\n\t{\n\t\t\n\t\t//Locating an element by polling the dom frequently with timeout wait also given \n\t\t\n\t\t//So as a first step ,give the timeout wait,polling seconds ,exception name \n\t FluentWait<WebDriver> fluentwait = new FluentWait<WebDriver>(driver);\n\t fluentwait.withTimeout(5000, TimeUnit.MILLISECONDS);\n\t fluentwait.pollingEvery(250, TimeUnit.MILLISECONDS);\n\t //fluentwait.withTimeout(2, TimeUnit.MINUTES);\n\t fluentwait.ignoring(NoSuchElementException.class);\n\t\t\n\t \n\t //Declaring function with \n\t //WebDriver as input ,WebElement as output\n\t FluentWait<WebDriver> wait = new FluentWait<WebDriver>(driver);\n\t\twait.pollingEvery(250, TimeUnit.MILLISECONDS);\n\t\twait.withTimeout(2, TimeUnit.MINUTES);\n\t\twait.ignoring(NoSuchElementException.class); //make sure that this exception is ignored\n \n\t\tPredicate<WebDriver> predicate = new Predicate<WebDriver>()\n\t\t\t\t{\n \n\t\t\t\t\tpublic boolean apply(WebDriver arg0) \n\t\t\t\t\t{\n\t\t\t\t\t\tWebElement element = arg0.findElement(By.id(\"colorVar\"));\n\t\t\t\t\t\tString color = element.getAttribute(\"color\");\n\t\t\t\t\t\tSystem.out.println(\"The color if the button is \" + color);\n\t\t\t\t\t\tif(color.equals(\"red\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t \n\t}", "@Override\n\tpublic boolean isReady() {\n\t\treturn (this.baseTime == this.timeRemaining);\n\t}", "public boolean isReady(){\n return !result.equals(\"\");\n }", "public boolean checkComplete(){\n return Status;\n }", "@Test\n public void testIsInWaitList() {\n }", "public String waitThread() throws InterruptedException {\n return \"Not Waiting Yet\";\n }", "public boolean hasFuture();", "public boolean waitActive(final String title) {\n\t\treturn waitActive(title, (String) null);\n\t}", "boolean isComplete();", "boolean isComplete();", "public boolean wait(final String title, final String text) {\n\t\treturn wait(title, text, null);\n\t}", "boolean hasIsComplete();", "boolean hasIsComplete();", "public void waitForElement(WebElement element) {\n WebDriverWait wait = new WebDriverWait(driver, 30);\n wait.until(ExpectedConditions.visibilityOf(element));\n }", "boolean isComplete() {\n return complete.get();\n }", "public static void waitToGo() {\r\n try {\r\n sendMessageToMaster(SocketMessage.SLAVE_READY_TO_GO);\r\n wait_to_run.acquire();\r\n } catch (InterruptedException e) {\r\n }\r\n }", "public static void waitForCondition (String condition) {\n BValue cond = getCond (condition);\n synchronized (cond) {\n if (!cond.v) {\n try {\n cond.wait();\n } catch (InterruptedException e) {}\n }\n }\n }", "public String getWaitType() {\r\n return waitType;\r\n }", "public boolean waitforelement(int timeout,By by){\n\t\twhile(timeout>0){\n\t\t\tsleep(1);\n\t\t\tList<WebElement> list = driver.findElements(by);\n\t\t\tif(list.size()!=0){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\ttimeout--;\n\t\t}\n\t\tSystem.out.println(\"waiting timeout.... Element not found \" +by.toString());\n\t\treturn false;\n\t}", "public boolean conditionFulfilled();", "public synchronized void waitForDone() {\n\twhile (!done) myWait();\n }", "private synchronized boolean waitResume() {\n return true;\n }", "boolean isSet(int flag)\n {\n return (waitFlags & flag) != 0;\n }", "boolean getIsComplete();", "@Test\n public void testBooleanProperty() {\n try (ReleasableVariant started = classObject.get(\"Started\")) {\n Assertions.assertTrue(started.booleanValue());\n }\n }", "public static void assertConditionIsTrueWithinTime(int wait, TimeUnit waitingUnit, BooleanSupplier condition, String message) {\n CountDownLatch countDownLatch = new CountDownLatch(1);\n\n final Disposable subscribe = Flux\n .interval(ofMillis(100))\n .publishOn(Schedulers.boundedElastic())\n .takeUntil(aLong -> {\n final boolean result = condition.getAsBoolean();\n\n if (result) {\n countDownLatch.countDown();\n }\n\n return result;\n })\n .subscribe();\n\n try {\n final boolean await = countDownLatch.await(wait, waitingUnit);\n if (!await) {\n Assertions.fail(message);\n }\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n Assertions.fail();\n } finally {\n subscribe.dispose();\n }\n }", "@Override\n\tpublic boolean ready() {\n\t\treturn this.ok;\n\t}", "public void setCompleted(){\r\n\t\tisCompleted = true;\r\n\t}", "public void callTheWaiter();", "public boolean isComplete();", "protected abstract long waitToTravel();", "public static void awaitFor (By by, int timer)\n\t{\n\t\tawait ().\n\t\t\t\tatMost (timer, SECONDS).\n\t\t\t\tpollDelay (1, SECONDS).\n\t\t\t\tpollInterval (1, SECONDS).\n\t\t\t\tignoreExceptions ().\n\t\t\t\tuntilAsserted (() -> assertThat (getDriver ().findElement (by).isDisplayed ()).\n\t\t\t\t\t\tas (\"Wait for Web Element to be displayed.\").\n\t\t\t\t\t\tisEqualTo (true));\n\t}", "public boolean wait(final String title, final Integer timeout) {\n\t\treturn wait(title, null, timeout);\n\t}", "public synchronized int take(){\n while(!isPut){\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n System.out.println(\"Took from a ground \" + n);\n isPut = false;\n notify();\n return n;\n }", "protected boolean waitBeforeExecution() throws InterruptedException {\n/* 112 */ Integer mx = ((IncomingSearchRequest)getInputMessage()).getMX();\n/* */ \n/* 114 */ if (mx == null) {\n/* 115 */ log.fine(\"Invalid search request, did not contain MX header: \" + getInputMessage());\n/* 116 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 122 */ if (mx.intValue() > 120 || mx.intValue() <= 0) mx = MXHeader.DEFAULT_VALUE;\n/* */ \n/* */ \n/* 125 */ if (getUpnpService().getRegistry().getLocalDevices().size() > 0) {\n/* 126 */ int sleepTime = this.randomGenerator.nextInt(mx.intValue() * 1000);\n/* 127 */ log.fine(\"Sleeping \" + sleepTime + \" milliseconds to avoid flooding with search responses\");\n/* 128 */ Thread.sleep(sleepTime);\n/* */ } \n/* */ \n/* 131 */ return true;\n/* */ }", "public static boolean wait(BooleanSupplier condition, int seconds) {\n\t\tlong endTime = getCurrentTime() + seconds;\n\t\tdo {\n\t\t\tif (condition.getAsBoolean()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} while (getCurrentTime() < endTime);\n\t\treturn false;\n\t}", "private boolean hasWaiters()\r\n/* 438: */ {\r\n/* 439:526 */ return this.waiters > 0;\r\n/* 440: */ }", "public void setWaitingToGo(boolean waitingToGo) {\n this.waitingToGo = waitingToGo;\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAutoStandBy() {\n\t\tboolean flag = oTest.checkAutoStandBy();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public boolean clicklnkClickonLinkafterSettingValue() throws InterruptedException\n\t{\n\t\t\tThread.sleep(2000);\n\t\t\t// utils.PressEnter(this.lnkClickonLinkafterSettingValue, \"Member Composite\", \"Text Box Add Task Options\");\n\t\t\treturn utils.clickAnelemnt(this.lnkClickonLinkafterSettingValue, \"Member Composite\", \"Text Box Add Task Options\");\n\t}", "protected boolean isFinished() {\n \t// wait for a time out\n return false;\n }" ]
[ "0.69700515", "0.6915354", "0.6537824", "0.64871776", "0.6365594", "0.634979", "0.6293039", "0.6249649", "0.6169256", "0.6166861", "0.61498344", "0.6099731", "0.6066701", "0.60214406", "0.6021421", "0.5970987", "0.5951053", "0.59305686", "0.59275097", "0.5913248", "0.5894696", "0.58471835", "0.58039576", "0.57901484", "0.5786209", "0.57475156", "0.5734587", "0.57252985", "0.57157356", "0.56933373", "0.56887984", "0.568111", "0.56800425", "0.5673642", "0.56685954", "0.56684744", "0.5653812", "0.5651601", "0.5650779", "0.5647599", "0.564207", "0.5641938", "0.56358", "0.56252956", "0.5621885", "0.56182146", "0.56002575", "0.5598557", "0.5574584", "0.55712235", "0.5570963", "0.5565105", "0.5563751", "0.5563273", "0.55627173", "0.55584997", "0.5557862", "0.5555781", "0.5553671", "0.55502343", "0.5545757", "0.5540086", "0.55371255", "0.5529317", "0.5527582", "0.551765", "0.5511787", "0.55114895", "0.55114895", "0.55063736", "0.55060744", "0.55060744", "0.5501193", "0.5488236", "0.5485924", "0.54854834", "0.5478045", "0.54755384", "0.54753846", "0.5468638", "0.5456609", "0.5446735", "0.54458207", "0.54433316", "0.54351825", "0.542129", "0.5420401", "0.5417857", "0.5417473", "0.54163814", "0.53933537", "0.5390409", "0.53871864", "0.53858787", "0.5384776", "0.5380171", "0.5376123", "0.5373638", "0.53646994", "0.5363268" ]
0.5901684
20
Wait property doesn't have specified value
public void waitNoValue(TimeSpan timeout, final T value) { Requirements.notNull(timeout, "timeout"); Requirements.notNull(value, "value"); new Wait() { @Override public boolean until() { return !value.equals(getValue()); } }.wait(TEST_UNEXPECTED_VALUE.getValue(this, value), timeout.toMilliseconds()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean mustWait() {\n return mustWait;\n }", "@Override\n public boolean waitToProceed() {\n return false;\n }", "protected int getWait() \t\t\t\t{\treturn wait;\t\t}", "public boolean operationWaiting(){\n\t\tif (var2Set) return true; else return false;\n\t}", "public boolean acquireNoWait() {\r\n return true;\r\n }", "boolean isWaiting()\n {\n return waitFlags != 0;\n }", "public void setWaitForEver(boolean set){\r\n waitForEverFlag=set;\r\n }", "public boolean isBIsWait() {\n return bIsWait;\n }", "protected abstract void beforeWait();", "public int explicitWait(){\n\t\tString time_out = null;\n\t\ttry {\n\t\t\ttime_out = new AutomationConfigurator().getTimeOut();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (time_out == null){\n\t\t\treturn default_timeout;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Integer.parseInt(time_out);\n\t\t}\n\t}", "protected void setWait(int _wait)\t\t{\twait = _wait;\t\t}", "@Override\n\tpublic int getXWait() {\n\t\treturn 0;\n\t}", "boolean hasWaitTime();", "public Status waitUntilFinished();", "private void customWait() throws InterruptedException {\n while (!finished) {\n Thread.sleep(1);\n }\n finished = false;\n }", "public void CondWait(){\n try {\r\n trainCond.await();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Area.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@java.lang.Override\n public boolean getWaitExpired() {\n return waitExpired_;\n }", "public String waitThread() throws InterruptedException {\n return \"Not Waiting Yet\";\n }", "@java.lang.Override\n public boolean getWaitExpired() {\n return waitExpired_;\n }", "public abstract void onWait();", "protected void waitUntilCommandFinished() {\n }", "public void doWait() {\n\t\tsynchronized(lock) {\n\t\t\twhile(!wasSignalled) {\n\t\t\t\ttry {\n\t\t\t\t\tlock.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\twasSignalled = false;\n\t\t}\n\t}", "private void waitForStateChange(int maxTTW) throws MqttException {\n synchronized (caller) {\n if (!donext) {\n try {\n caller.wait(maxTTW);\n } catch (InterruptedException e) {\n Debug.logError(\"Timed out.\" + e.getMessage(), MODULE);\n }\n\n if (ex != null) {\n throw (MqttException) ex;\n }\n }\n donext = false;\n }\n }", "public boolean isBIsWaitHis() {\n return bIsWaitHis;\n }", "@Override\n public Duration getWait() {\n return duration;\n }", "private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}", "private static void waitChanged() throws InterruptedException {\n synchronized (CONNECTIONS_CHANGE_FIRED) {\n if (!CONNECTIONS_CHANGE_FIRED.get()) {\n CONNECTIONS_CHANGE_FIRED.wait(10000);\n }\n }\n // reset property\n CONNECTIONS_CHANGE_FIRED.set(false);\n }", "@Override public void run() {\n waitUntil(\"message\", new Condition() {\n @Override public boolean isMet() {\n return false;\n }\n }, 0);\n }", "public void waitForDecision(){\n if(gameOver) {\n return;\n }\n if(!decisionActive) {\n try {\n uiWaiting = true;\n synchronized(uiWait) {\n uiWait.wait();\n }\n } catch (Exception e) { logger.log(\"\"+e); }\n }\n }", "protected abstract void afterWait();", "@Override\n\tprotected boolean until() {\n\t\treturn true;\n\t}", "public void doWait(){\n\t\tsynchronized(m){\n\t\t\ttry{\n\t\t\t\tm.wait(32000,0);\n\t\t\t} catch(InterruptedException e){}\n\t\t}\n\t}", "public void implicitWait(){\r\n\t\tdriver.manage().timeouts().implicitlyWait(Integer.parseInt(FilesAndFolders.getPropValue(\"implicitWaitTime\")), TimeUnit.SECONDS);\r\n\t}", "private void waitFor() {\n if (done) {\n return;\n }\n\n synchronized (waitObj) {\n while (!done) {\n try {\n waitObj.wait();\n } catch (InterruptedException ex) {\n ex.printStackTrace(System.err);\n }\n }\n }\n if (excpetion != null) {\n throw excpetion;\n }\n }", "int waitFor(String variable);", "protected void afterLockWaitingForBooleanCondition() {\n }", "void waitToRead();", "public void waitUntil(long x) {\n\n\tlong wakeTime = Machine.timer().getTime() + x;\n\tboolean intrState = Machine.interrupt().disable();\n\tKThread.currentThread().time = wakeTime;\n\tsleepingThreads.add(KThread.currentThread());\n\tKThread.currentThread().sleep();\n Machine.interrupt().restore(intrState);\n \n }", "private void await() {\n try {\n Thread.sleep(10 * 1000L);\n } catch (InterruptedException e) {\n // ignore\n }\n }", "int waitFor(String variable, int count);", "int getWaitTime();", "public void waitUntilStarted() {\n mStarted.block();\n }", "public void waitForNotificationOrFail() {\n new PollingCheck(5000) {\n @Override\n protected boolean check() {\n return mContentChanged;\n }\n }.run();\n mHT.quit();\n }", "public final void waitFor() {\r\n for (;;) {\r\n synchronized (this) {\r\n if (this.m_b)\r\n return;\r\n try {\r\n this.wait();\r\n } catch (Throwable tt) {\r\n tt.printStackTrace();\r\n }\r\n }\r\n }\r\n }", "public void setBIsWait(boolean bIsWait) {\n this.bIsWait = bIsWait;\n }", "@Override\n\tpublic int getYWait() {\n\t\treturn 0;\n\t}", "public Object waitForValueObject() throws Exception {\n\t\t\n\t\twaitingForCode = DebugConstants.WAIT_FOR_OBJECT;\n\t\tthread.waitOnCompletion(this);\n\t\treturn oval;\n\t}", "public void wait(Integer id) throws DynamicCallException, ExecutionException{\n call(\"wait\", id).get();\n }", "public static void longWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(15);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}", "public static boolean wait(BooleanSupplier condition) {\n\t\treturn wait(condition, DEFAULT_WAIT_TIMEOUT);\n\t}", "@Override\n\tpublic boolean isSleeping() {\n\t\treturn false;\n\t}", "private synchronized boolean waitResume() {\n return true;\n }", "@Test\n\tpublic void checkReady_test()\n\t{\n\t\tb.set(1,1, 'x');\n\t\tb.set(1,2, 'o');\n\t\tassertFalse(b.checkReady());\n\t}", "public void doWait() {\n\t\tsynchronized(lockObject){\n\t\t\t//Now even if the notify() is called earlier without a pre-wait() call then it will check the condition\n\t\t\t//and will found \"resumeSignal\" to be true hence, will not enter the waiting state.\n\t\t\tif(!resumeSignal){\n\t\t\t\ttry{\n\t\t\t\t\tlockObject.wait();\n\t\t\t\t} catch(InterruptedException e){}\n\t\t\t}\n\t\t\t//Waiting state is over. So, clear the signal flag and continue running.\n\t\t\tresumeSignal = false;\n\t\t}\n\t}", "public boolean wait(final String title) {\n\t\treturn wait(title, (String) null);\n\t}", "public void waitUntilTrainPasses(Train train) {\n\t\tthis.wait = train;\n\t}", "@Override\n public long timeUserWaitedMs() {\n return 0 ;\n }", "public static void myWait()\n {\n try \n {\n System.in.read();\n \n System.in.read();\n //pause\n }\n catch(Exception e)\n {\n }\n }", "public void waitForElement(WebElement element) {\n WebDriverWait wait = new WebDriverWait(driver, 30);\n wait.until(ExpectedConditions.visibilityOf(element));\n }", "static void onSpinWait() {\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAutoStandBy() {\n\t\tboolean flag = oTest.checkAutoStandBy();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public void waitForData() {\n waitForData(1);\n }", "protected abstract long waitToTravel();", "public boolean GetWaitingFlag() { return this.mWaitingF; }", "void waitTilHalted() throws NotConnectedException\n\t{\n\t\tif (!haveConnection())\n\t\t\tthrow new IllegalStateException();\n\n\t\tint timeout = propertyGet(HALT_TIMEOUT);\n\t\tint update = propertyGet(UPDATE_DELAY);\n\t\tboolean wait = (propertyGet(NO_WAITING) == 1) ? false : true;\n\n\t\tif (wait)\n\t\t{\n\t\t\t// spin for a while waiting for a halt; updating trace messages as we get them\n\t\t\twaitForSuspend(timeout, update);\n\n\t\t\tif (!m_session.isSuspended())\n\t\t\t\tthrow new IllegalMonitorStateException();\n\t\t}\n\t}", "public String getWaitType() {\r\n return waitType;\r\n }", "default void setWaitForStartPoint() {\n\t\t// only relevant for vectors\n\t}", "public void setWaitingToGo(boolean waitingToGo) {\n this.waitingToGo = waitingToGo;\n }", "public synchronized void waitForDone() {\n\twhile (!done) myWait();\n }", "public boolean hasWaitTime() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public void callTheWaiter();", "default boolean pollOnExecutionFailed() {\n return false;\n }", "public boolean hasWaitTime() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private boolean hasWaiters()\r\n/* 438: */ {\r\n/* 439:526 */ return this.waiters > 0;\r\n/* 440: */ }", "@Test\n public void testIsInWaitList() {\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "public static ExpectedCondition<WebElement> explicitWaitForElement(final By by) throws WebDriverException {\n uiBlockerTest(\"\", \"\");\n \treturn new ExpectedCondition<WebElement>() {\n public WebElement apply(WebDriver driver) {\n WebElement element = driver.findElement(by);\n return element.isDisplayed()?element:null;\n }\n };\n }", "public void waitingForPartner();", "public void wait(int time) {\r\n\t\t\tsuper.sleep(time);\r\n\t\t}", "public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "protected void beforeUnlockWaitingForBooleanCondition() {\n }", "private void waitForBuyersAction() throws InterruptedException\n {\n while(waiting)\n {\n Thread.sleep(100);\n }\n waiting = true;\n }", "@Override\n public boolean isBusy() {\n return false;\n }", "protected boolean waitBeforeExecution() throws InterruptedException {\n/* 112 */ Integer mx = ((IncomingSearchRequest)getInputMessage()).getMX();\n/* */ \n/* 114 */ if (mx == null) {\n/* 115 */ log.fine(\"Invalid search request, did not contain MX header: \" + getInputMessage());\n/* 116 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 122 */ if (mx.intValue() > 120 || mx.intValue() <= 0) mx = MXHeader.DEFAULT_VALUE;\n/* */ \n/* */ \n/* 125 */ if (getUpnpService().getRegistry().getLocalDevices().size() > 0) {\n/* 126 */ int sleepTime = this.randomGenerator.nextInt(mx.intValue() * 1000);\n/* 127 */ log.fine(\"Sleeping \" + sleepTime + \" milliseconds to avoid flooding with search responses\");\n/* 128 */ Thread.sleep(sleepTime);\n/* */ } \n/* */ \n/* 131 */ return true;\n/* */ }", "private void setWaitState() {\r\n state = WAITFORBALL;\r\n game.waitingForBall.addFirst(this);\r\n }", "synchronized void askForCritical() {\n\nSC=true;\n\nwhile(!Jeton){\n\ttry{\nthis.wait();\n\t}catch( InterruptedException ie ){\n\t\t\n\t}\n}\n}", "@Override\n\tpublic boolean isBusy() {\n\t\treturn false;\n\t}", "public void waitSleep(int pTime)\n{\n\n try {Thread.sleep(pTime);} catch (InterruptedException e) { }\n\n}", "public synchronized void p() \n {\n while (value <=0) {\n try \n { \n waiting++;\n wait(); \n waiting--;\n } // attende\n catch(InterruptedException e){}\n }\n value--;\n }", "public static void shortWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(5);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}", "@Test\n public void explicitWait() {\n WebDriverWait wait = new WebDriverWait(driver, 10);\n driver.get(\"https://the-internet.herokuapp.com/dynamic_controls\");\n WebElement removeButton = driver.findElement(By.xpath(\"//button[@type='button']\"));\n removeButton.click();\n //WebElement goneMessage=driver.findElement(By.id(\"message\"));\n WebElement goneMessage = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(\"message\")));\n String expectedMessage = \"It's gone!\";\n Assert.assertEquals(goneMessage.getText(), expectedMessage);\n\n }", "public void waitToFinish()\n {\n while(!this.finished)\n {\n try\n {\n Thread.sleep(1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n }", "final void waitFinished() {\n if (selectionSyncTask != null) {\n selectionSyncTask.waitFinished();\n }\n }", "public UsbRequest asyncRequestWait() {\n return mUsbConnection.requestWait();\n }", "public void waitUntilReady() throws IOException, InterruptedException {\n while (ready() == 0) {\n Thread.sleep(10);\n }\n }", "public static void waitToGo() {\r\n try {\r\n sendMessageToMaster(SocketMessage.SLAVE_READY_TO_GO);\r\n wait_to_run.acquire();\r\n } catch (InterruptedException e) {\r\n }\r\n }", "public static void waitForCondition (String condition) {\n BValue cond = getCond (condition);\n synchronized (cond) {\n if (!cond.v) {\n try {\n cond.wait();\n } catch (InterruptedException e) {}\n }\n }\n }", "public void sleepCheck() {\n if (area() == null)\n stopActing();\n if (area().closed || area().closeRequested)\n stopActing();\n if (commander.player() == null || commander.player().area() != area()) {\n if (!area().getLabel().equals(\"TITLE\"))\n stopActing();\n } else {\n wakeCheck(commander.player().areaX(), commander.player().areaY());\n }\n }", "public boolean waitNotActive(final String title) {\n\t\treturn waitNotActive(title, (String) null);\n\t}", "@Test\n public void implicitWait(){\n //3. https://the-internet.herokuapp.com/dynamic_controls adresine gidin.\n driver.get(\"https://the-internet.herokuapp.com/dynamic_controls\");\n //4. Remove butonuna basin.\n WebElement removeButton = driver.findElement(By.xpath(\"//button[@type='button']\"));\n removeButton.click();\n //mesajin yuklenmesi biraz zaman aldigi icin wait kullanmamiz gerekir.\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);// ==>>> TestBase'e de koyabilirim\n //5. “It’s gone!” mesajinin goruntulendigini dogrulayin.\n WebElement goneMessage = driver.findElement(By.id(\"message\"));\n Assert.assertEquals(goneMessage.getText(),\"It's gone!\");\n }" ]
[ "0.7254081", "0.70297766", "0.6888103", "0.669744", "0.6547964", "0.65223736", "0.65188414", "0.6516369", "0.64984596", "0.6381118", "0.635784", "0.6357778", "0.6341742", "0.6341456", "0.63351595", "0.63123924", "0.6279598", "0.6254275", "0.62319016", "0.621772", "0.62142754", "0.62019384", "0.61648536", "0.6120983", "0.61102647", "0.6075965", "0.6067841", "0.6066097", "0.6047051", "0.604601", "0.6035624", "0.6018555", "0.60167575", "0.6012087", "0.5993844", "0.5985404", "0.59579885", "0.59273684", "0.5926696", "0.58829594", "0.5879499", "0.58777845", "0.5875819", "0.5857327", "0.584385", "0.5839503", "0.5838721", "0.582091", "0.58159775", "0.5803889", "0.5800725", "0.57966584", "0.5795642", "0.57752216", "0.5762976", "0.5762517", "0.5759744", "0.57545084", "0.5751932", "0.57477707", "0.57240266", "0.56934506", "0.5688737", "0.5686932", "0.5685997", "0.5685471", "0.56849647", "0.5683297", "0.5674083", "0.5668665", "0.5665624", "0.566254", "0.5659588", "0.5658303", "0.56520677", "0.5637358", "0.56305104", "0.5628798", "0.562299", "0.56080604", "0.56050557", "0.560013", "0.55947155", "0.5588727", "0.55775374", "0.5570912", "0.55648583", "0.5563146", "0.553844", "0.55377555", "0.553468", "0.55290157", "0.55206484", "0.5520101", "0.5514162", "0.5513675", "0.5508039", "0.5505152", "0.5504999", "0.54968756" ]
0.59723014
36
/ JADX INFO: super call moved to the top of the method (can break code semantics)
KMutableProperty2Impl$_setter$1(KMutableProperty2Impl kMutableProperty2Impl) { super(0); this.this$0 = kMutableProperty2Impl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_6349() {\r\n super.method_6349();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_6191() {\r\n super.method_6191();\r\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "@Override\n\tpublic void inorder() {\n\n\t}", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void dosomething2() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void c(int paramInt)\r\n/* 101: */ {\r\n/* 102:122 */ this.b = false;\r\n/* 103:123 */ super.c(paramInt);\r\n/* 104: */ }", "public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }", "protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "@Override\n protected void init() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void some() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "@Override\n public void b() {\n }", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "@Override\r\n public void salir() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void preorder() {\n\n\t}", "private stendhal() {\n\t}", "public void doSomething() {\n Outer.this.doSomething();\r\n // this stops the pretty printer and gives an\r\n //parser exception (stumbling over the .super)\r\n Outer.super.doSomething();\r\n }", "@Override\n\tpublic void deneme() {\n\t\tsuper.deneme();\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void preRun() {\n super.preRun();\n }", "public abstract void mo70713b();", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void laught() {\n\r\n\t}", "@Override\n\tpublic void imprimir() {\n\t\t\n\t}", "public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }", "protected void h() {}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public void method_4270() {}", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "@Override\n\tpublic void call() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tprotected void logic() {\n\n\t}", "public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }", "public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }", "@Override\n protected void initialize() \n {\n \n }", "public void callP(){\n super.walks(\"called parent method\");\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "void berechneFlaeche() {\n\t}", "@Override\n protected void initialize() {\n\n \n }" ]
[ "0.7415376", "0.7120564", "0.7120564", "0.7120564", "0.71153504", "0.70223135", "0.7006699", "0.6959695", "0.69354844", "0.68295795", "0.6789057", "0.6759874", "0.6727165", "0.6727165", "0.6680012", "0.6670413", "0.6636899", "0.66286534", "0.6619911", "0.6605483", "0.6603786", "0.65827864", "0.6582374", "0.6549963", "0.65440935", "0.6521893", "0.65033007", "0.64430153", "0.6418491", "0.6415374", "0.6402436", "0.6399175", "0.63874805", "0.6380345", "0.63703823", "0.636628", "0.6361068", "0.63538253", "0.6352187", "0.63364285", "0.6320418", "0.63070816", "0.63070816", "0.6295037", "0.629354", "0.629354", "0.6286359", "0.6273603", "0.6262495", "0.62398976", "0.622353", "0.6220281", "0.62041765", "0.61982226", "0.61772496", "0.6173603", "0.61712366", "0.6169294", "0.6160802", "0.6130551", "0.61259943", "0.61221814", "0.6102809", "0.60933787", "0.6091748", "0.6089609", "0.6085169", "0.60627353", "0.6061544", "0.6055915", "0.60450166", "0.60438436", "0.60397464", "0.60341513", "0.60323876", "0.60323876", "0.60323876", "0.60323876", "0.60323876", "0.60323876", "0.60318136", "0.60297084", "0.6026534", "0.6025891", "0.6024079", "0.6018422", "0.6014384", "0.6010973", "0.60091984", "0.6001627", "0.5998774", "0.599578", "0.5995695", "0.5991061", "0.59895426", "0.59802836", "0.5971288", "0.5970281", "0.5967115", "0.59662133", "0.59614575" ]
0.0
-1
TODO: Autogenerated Javadoc The Interface CountryService.
public interface CountryService { /** * Gets the Country by id. * * @param id the id * @return the country by id * @throws Exception */ public Country getById(Integer id) throws Exception; /** * Gets all the Countries. * * @return all the Countries * @throws Exception */ public List<Country> getAll() throws Exception; /** * Insert. * * @param name the name * @return the country * @throws TransactionException the transaction exception */ public Country insert(String name) throws TransactionException; /** * Update. * * @param country the country * @return Country country * @throws TransactionException the transaction exception */ public Country update(Country country) throws TransactionException; /** * Delete. * * @param country the country * @throws TransactionException the transaction exception */ public void delete(Country country) throws TransactionException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CountryService {\n\t\n\t/**\n\t * Gets the countries.\n\t *\n\t * @return the countries\n\t */\n\tpublic List<Country> getCountries();\n\t\n\t/**\n\t * Find by id.\n\t *\n\t * @param id the id\n\t * @return the country\n\t */\n\tpublic Country findById(Long id);\n\t\n\t/**\n\t * Find by name.\n\t *\n\t * @param name the name\n\t * @return the list\n\t */\n\tpublic List<Country> findByName(String name);\n\t\n\t\n\t\n\t/**\n\t * Gets the country by id or name.\n\t *\n\t * @param id the id\n\t * @param name the name\n\t * @return the country by id or name\n\t */\n\tpublic Object getCountryByIdOrName(Long id, String name);\n}", "Country getCountry();", "public CountryCode getCountry() {\n return country;\n }", "public Country getCountry() {\r\n return country;\r\n }", "public Country getCountry() {\n return country;\n }", "@Override\n\tpublic Country getCountryById(Long countryId) {\n\t\treturn null;\n\t}", "public String getCountry() {\r\n return this.country;\r\n }", "public void setCountryId(String countryId) {\r\n this.countryId = countryId;\r\n }", "public void setCountry(Country country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public String getCountryId() {\r\n return countryId;\r\n }", "public interface CountryService {\n\n List<City> getCitiesByRegion(int rig_id);\n List<Region> getRegionsByCountry(int con_id);\n List<Country> getCountries();\n List<CityData> searchCities(String name, int limit, int pageNo);\n CityData addCityData(PostCityData postCityData);\n\n}", "Country getAvailableCountryById(int countryId);", "public int getCountryId() {\n return countryId;\n }", "public Long getCountryId() {\n return this.countryId;\n }", "public String getCountry() {\r\n return country;\r\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public Integer getCountryId() {\n return countryId;\n }", "public com.google.protobuf.ByteString\n getCountryBytes() {\n java.lang.Object ref = country_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n country_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getCountry() {\n return country;\n }", "public void setCountry(Integer country) {\n this.country = country;\n }", "public void setCountry(Integer country) {\n this.country = country;\n }", "@Nonnull public CountryCode getCountry() { return country; }", "public Integer getCountry() {\n return country;\n }", "public Integer getCountry() {\n return country;\n }", "public CountryType getCountry() {\r\n\t\treturn country;\r\n\t}", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public com.google.protobuf.ByteString\n getCountryBytes() {\n java.lang.Object ref = country_;\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 country_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Country getById(Integer id) throws Exception;", "public void setCountry(java.lang.String country) {\n this.country = country;\n }", "public IsoCountry getCountry() {\n return country;\n }", "public Country(int id, String CountryName) {\n this.id = id;\n this.countryName = CountryName;\n }", "public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}", "public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}", "public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}", "public void setCountry(java.lang.String country) {\r\n this.country = country;\r\n }", "public void setCountryId(java.lang.String countryId) {\r\n this.countryId = countryId;\r\n }", "com.google.protobuf.ByteString\n getCountryBytes();", "public String getCountry()\n {\n return country;\n }", "public String getCountry() {\n return country;\n }", "public String getCountry() {\r\n\t\treturn country;\r\n\t}", "public String getCountry() {\r\n\t\treturn country;\r\n\t}", "public String getCountry() {\r\n\t\treturn country;\r\n\t}", "public String getCountryName();", "public void setCountry(String country) {\n\t\tthis.country = country;\n\t}", "public void setCountryId(long countryId) {\n this.countryId = countryId;\n }", "public void setCountry(java.lang.String Country) {\n this.Country = Country;\n }", "public String getCountry(){\n\t\treturn country;\n\t}", "public String getCountry(){\n\t\treturn country;\n\t}", "public String getCountry() {\n return Country;\n }", "public long getCountryId() {\n return countryId;\n }", "com.google.protobuf.ByteString\n getCountryBytes();", "java.lang.String getCountry();", "java.lang.String getCountry();", "public Country() {}", "public int getCountryId();", "public java.lang.String getCountryId() {\r\n return countryId;\r\n }", "public Builder setCountry(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n country_ = value;\n onChanged();\n return this;\n }", "public Country(String countryName) {\n\t\tthis.countryName = countryName.toLowerCase();\n\t}", "List<Country> listCountries();", "public void setCountry (java.lang.String country) {\n\t\tthis.country = country;\n\t}", "void fetchCountryInformation();", "@RequestMapping(value = \"/countries\", method = RequestMethod.GET)\n public List<Country> countries() {\n return dictionaryService.findAllCountries();\n }", "public void setCountryName(String value);", "public void setCountry_id(String country_id) {\n this.country_id = country_id;\n }", "public java.lang.String getCountry() {\r\n return country;\r\n }", "public String getCountryName() {\n return countryName;\n }", "public String getCountryName() {\n return countryName;\n }", "public String getCountryName() {\n return countryName;\n }", "public Builder setCountryBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n country_ = value;\n onChanged();\n return this;\n }", "boolean addCountry(Country country);", "public List<Country> getCountries()\n {\n return countries;\n }", "public Address country(String country) {\n this.country = country;\n return this;\n }", "public String getCountry_id() {\n return country_id;\n }", "public java.lang.String getCountry() {\n return country;\n }", "@Override\n\tpublic List<Country> getCountries() {\n\t\tCountryRootObject countryRootObject = restTemplate.getForObject(urlForDatabaseCountries(), CountryRootObject.class);\n\n\t\treturn countryRootObject.getResponse().getItems();\n\t}", "public Country findByName(String name);", "@ApiModelProperty(example = \"null\", value = \"Country resource corresponding to the dial-in number\")\n public DialInNumbersCountryInfo getCountry() {\n return country;\n }", "public void setCountry(java.lang.CharSequence value) {\n this.country = value;\n }", "public String getCountryID() {\n return countryID;\n }", "public void setCountryName(String countryName) {\n this.countryName = countryName;\n }", "public void setCountryName(String countryName) {\n this.countryName = countryName;\n }", "public void setAddressCountry(String addressCountry) {\n this.addressCountry = addressCountry;\n }", "public void addCountry(Country p_country) {\n\t\td_countriesSet.add(p_country);\n\t}", "boolean hasCountry();", "public void setCountryId(int value);", "public final String getCountry() {\n\t\treturn country;\n\t}", "@Override\n public Country findOne(Integer id) {\n\n return countryRepository.findById(id).get();\n }", "public int getCountryId(){\n return ID;\n }" ]
[ "0.784916", "0.7317964", "0.7177536", "0.7148425", "0.70781684", "0.70479226", "0.70281327", "0.70254683", "0.7013639", "0.70049626", "0.70049626", "0.70049626", "0.70049626", "0.70049626", "0.70049626", "0.69923306", "0.69632196", "0.6962165", "0.6946107", "0.69164056", "0.6909359", "0.6907921", "0.6906564", "0.6906105", "0.6902779", "0.68890095", "0.68890095", "0.68790054", "0.6871005", "0.6871005", "0.6867081", "0.6853577", "0.6853577", "0.6853577", "0.6853577", "0.6853577", "0.6853577", "0.6853577", "0.68495715", "0.68437624", "0.6840573", "0.6839887", "0.6829256", "0.68239987", "0.68239987", "0.68239987", "0.6822353", "0.6807563", "0.6806525", "0.68005013", "0.67883986", "0.6773261", "0.6773261", "0.6773261", "0.67665744", "0.67590415", "0.6757076", "0.67557204", "0.6729164", "0.6729164", "0.67195356", "0.671178", "0.6710782", "0.6702367", "0.6702367", "0.67021805", "0.66842484", "0.6684042", "0.6661941", "0.66237915", "0.6618265", "0.6605667", "0.6585001", "0.6569321", "0.6568786", "0.65535617", "0.6553489", "0.6553103", "0.6553103", "0.6553103", "0.6546652", "0.6545932", "0.65388584", "0.6534589", "0.6525435", "0.64777696", "0.64682376", "0.64418364", "0.64242655", "0.6421541", "0.6421431", "0.6408327", "0.6408327", "0.6398353", "0.6397545", "0.63847965", "0.6380269", "0.6365974", "0.63502365", "0.6349658" ]
0.7436085
1
Gets the Country by id.
public Country getById(Integer id) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Country findOne(Integer id) {\n\n return countryRepository.findById(id).get();\n }", "@Override\n @Transactional\n public Country getCountry(long id) {\n Optional<Country> result = countryRepository.findById(id);\n Country country = null;\n if (result.isPresent()) {\n country = result.get();\n }\n else {\n throw new NotFoundException(\"Did not find country id: \" + id);\n }\n return country;\n }", "public Object getCountryByIdOrName(Long id, String name);", "public List<Country_Language> getcountry(String id) {\n \tIterable<Country_Language> countries=new ArrayList<>();\n \tList<Country_Language> countr=new ArrayList<>();\n \tcountries=country_Language_Repository.findAll();\n \tfor (Country_Language s :countries)\n \t{ \n\t\t if (s.getCountry_code().equals(id) && s.isIs_official())\n\t\t\t{countr.add(s);\n\t\t return countr;\n\t\t\t}\n \t}\n\t\t return countr;\n \t \n \t\n }", "private Country getCountryByID(int countryID) {\n ResultSet rs = DatabaseConnection.performQuery(\n session.getConn(),\n Path.of(Constants.QUERY_SCRIPT_PATH_BASE + \"SelectCountryByID.sql\"),\n Collections.singletonList(String.valueOf(countryID)));\n\n Country country = null;\n try {\n if (rs != null) {\n while (rs.next()) {\n int id = rs.getInt(\"Country_ID\");\n String name = rs.getString(\"Country\");\n country = new Country(id, name);\n }\n }\n } catch (Exception e) {\n Common.handleException(e);\n }\n\n return country;\n }", "@Override\n\tpublic Country getCountryById(Long countryId) {\n\t\treturn null;\n\t}", "Country getAvailableCountryById(int countryId);", "public static Country getCountryByID(int countryID) {\n Country country = null;\n\n try {\n String sql = \"SELECT * from countries WHERE Country_ID = \" + countryID;\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(sql);\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n int id = rs.getInt(\"Country_ID\");\n String name = rs.getString(\"Country\");\n country = new Country(id, name);\n }\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n return country;\n }", "private String getCountry(String id) {\n\t\tif(Utility.keyLevel(id) == 0 ) // It's a country\n\t\t\treturn id;\n\t\telse if(Utility.keyLevel(id) == -1 ) // ZZZ\n\t\t\t return id;\n\t\telse {\n\t\t\t// It's higher admin than level 0. We need to find the country the code is in\n\t\t\tString ctrcode = GeographicMapper.getAlpha3(id.substring(0, 2));\n\t\t\treturn ctrcode;\n\t\t}\n\t}", "String getCountryOfOrigin(long id) throws RemoteException;", "@Transactional(readOnly = true) \n public CountryState findOne(Long id) {\n log.debug(\"Request to get CountryState : {}\", id);\n CountryState countryState = countryStateRepository.findOne(id);\n return countryState;\n }", "public Country(int id, String CountryName) {\n this.id = id;\n this.countryName = CountryName;\n }", "public int getCountryId();", "public String getCountryId() {\r\n return countryId;\r\n }", "public Integer getCountryId() {\n return countryId;\n }", "public String getCountry_id() {\n return country_id;\n }", "public java.lang.String getCountryId() {\r\n return countryId;\r\n }", "private Country findCountryById(String countryCode) {\n return countries.stream()\n .filter(country -> country.getCode().equals(countryCode))\n .findFirst()\n .orElseThrow(com.olgaivancic.apdhibernate.controller.NotFoundException::new);\n }", "Country getCountryByIdAndStatus(int countryId, int status);", "Country getCountry();", "public int getCountryId() {\n return countryId;\n }", "public Long getCountryId() {\n return this.countryId;\n }", "public int getId() {\n\t\treturn (m_country_id);\n\t}", "public long getCountryId() {\n return countryId;\n }", "public Country getCountry(int index){\n\t\treturn countries.get(index);\n\t}", "public int getCountryId(){\n return ID;\n }", "public CountryEntry getCountry(){\n\t\treturn (CountryEntry)this.entryMap.get(ObjectGeoKeys.OBJ_GEO_COUNTRY_LINK);\n\t}", "public String getCountryID() {\n return countryID;\n }", "public HProvinceFb selectByPrimaryKey(Integer id) {\r\n HProvinceFb key = new HProvinceFb();\r\n key.setId(id);\r\n HProvinceFb record = (HProvinceFb) getSqlMapClientTemplate().queryForObject(\"H_PROVINCE_FB.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "@RequestMapping(method = RequestMethod.GET, path = \"/admin/editCountry/{id}\")\n public String editCountry(@PathVariable int id, Model model) {\n model.addAttribute(\"country\", adminRepository.getCountry(id));\n return \"editCountry\";\n }", "public Country findByName(String name);", "public Landmark get(Integer id) {\n\t\t// Retrieve session from Hibernate\n\t\tSession session = sessionFactory.getCurrentSession();\n\n\t\t// Retrieve existing Landmark first\n\t\tLandmark landmark = (Landmark) session.get(Landmark.class, id);\n\n\t\treturn landmark;\n\t}", "public Country(int id, String CountryName, String ContinentName) {\n this.id = id;\n this.countryName = CountryName;\n this.ParentContinent = ContinentName;\n }", "TrackerCity getTrackerCity(final Integer id);", "@Override\n\tpublic Culture findById(String id) {\n\t\treturn (Culture) session.getCurrentSession().createCriteria(Culture.class).add(Restrictions.eq(\"id\", id)).uniqueResult();\n\t}", "@SuppressWarnings(\"rawtypes\")\n\tpublic Census getById(String id) {\n\t\t\n\t\topen();\n\t\ttry\n\t\t{\n\t\t\tCensus census=new Census();\n\t\t\tcensus.setId(id);\n\t\t\tObjectSet result=DB.queryByExample(census);\n\t\t\t\n\t\t\tif(result.hasNext())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"[DB4O]\");\n\t\t\t\treturn (Census) result.next();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"[DB4O]ERROR:Census does not exist\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"[DB4O]ERROR:Census could not be retrieved\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose();\n\t\t}\n\t\treturn null;\n\t\t\n\t\t\n\t\t\n\t}", "public Country findByCode(String code);", "public Country(String name, int id) {\n\t\tcountryName = name;\n\t\tcountryID = id;\n\t\tnumBorder = 0;\n\t\tsumBorder = 0;\n\t\tallBorder = new ArrayList<Border>();\n\t}", "@Override\n\tpublic long getCountryId() {\n\t\treturn _candidate.getCountryId();\n\t}", "java.lang.String getCountry();", "java.lang.String getCountry();", "@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_COUNTRIES, key=\"{#type, #id}\")\n public List<ApiCountryDTO> getCountriesForMetadata(MetaDataType type, Long id) {\n return currentSession().getNamedQuery(\"metadata.country.\"+type.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }", "public static String getCountryName(int countryId){\n String userCountry;\n switch (countryId){\n case 1:\n userCountry = \"India\";\n break;\n case 2:\n userCountry = \"Italy\";\n break;\n case 3:\n userCountry = \"Germany\";\n break;\n default:\n userCountry = null;\n }\n return userCountry;\n }", "@Override\n @Transactional\n public List<State> getStatesByCountry(long countryId) {\n return stateRepository.findByCountryId(countryId).orElseThrow(()->new NotFoundException(\"Country not found\"));\n }", "public Country getCountry() throws TorqueException\n {\n if (aCountry == null && (this.custCountryId != 0))\n {\n aCountry = CountryPeer.retrieveByPK(SimpleKey.keyFor(this.custCountryId));\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 Country obj = CountryPeer.retrieveByPK(this.custCountryId);\n obj.addNewsletters(this);\n */\n }\n return aCountry;\n }", "@Override\n\tpublic Langues find(int id) {\n\t\tLangues langue = new Langues();\n\t\tString query = \"SELECT * FROM langues WHERE ID = ? \";\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement statement = this.connect.prepareStatement(query);\n\t\t\tstatement.setInt(1, id);\n\t\t\tResultSet result = statement.executeQuery();\n\n\t\t\tif (result.first()) {\n\t\t\t\t\n\t\t\t\tlangue = new Langues(id, result.getString(\"Langue\"),result.getString(\"Iso6391\"));\n\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn langue;\n\t}", "@Override\n\tpublic Town getById(String id) {\n\t\treturn townDAO.searchUniqueByPropertyEqual(\"id\", id);\n\t}", "public Cource getCource(int id) {\n Cource cource = null;\n SQLiteDatabase db = this.getReadableDatabase(); // On veut lire dans la BD\n Cursor cursor = db.query(TABLE_COURCE, new String[]{COURCE_ID,\n COURCE_ID_USER, COURCE_PAS, COURCE_CALORIES, COURCE_TEMPS, COURCE_DISTANCE,\n COURCE_TYPE, COURCE_DATE}, COURCE_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n if (cursor != null && cursor.getCount()>0) {\n cursor.moveToFirst();\n cource = new Cource(cursor.getInt(0), cursor.getInt(1), cursor.getInt(2),\n cursor.getDouble(3), cursor.getString(4), cursor.getString(5),\n cursor.getString(6), cursor.getString(7));\n }\n cursor.close();\n db.close(); // Fermer la connexion\n// Retourner l'cource\n return cource;\n }", "public List<Country> getAll() {\n\t\tif (countries != null) {\n\t\t\treturn countries;\n\t\t}\n\t\telse {\n\t\t\tcountries = new ArrayList<>();\n\n\t\t\tif (Files.exists(countriesPath)) {\n\t\t\t\ttry (BufferedReader in = new BufferedReader(\n\t\t\t\t\t\t\t\t\t\t new FileReader(countriesFile))) {\n\t\t\t\t\tString line = in.readLine();\n\t\t\t\t\twhile (line != null) {\n\t\t\t\t\t\tString[] fields = line.split(FIELD_SEP);\n\t\t\t\t\t\tString idStr = fields[0];\n\t\t\t\t\t\tString code = fields[1];\n\t\t\t\t\t\tString name = fields[2];\n\t\t\t\t\t\tint id = Integer.parseInt(idStr);\n\t\t\t\t\t\tCountry country = new Country(id, code, name);\n\t\t\t\t\t\tcountries.add(country);\n\t\t\t\t\t\tline = in.readLine();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (IOException ioe) {\n\t\t\t\t\tSystem.out.println(ioe);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\treturn countries;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(countriesPath.toAbsolutePath()+\" doesn't exist.\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "public CountryNotFoundException(Long id) {\n super(\"Could not find country\");\n }", "public User getUserById(int id) {\n Cursor cursor = sqLiteDatabase.rawQuery(\"SELECT * FROM user WHERE id = ?\", new String[]{String.valueOf(id)});\n if (cursor != null) {\n User user = new User();\n cursor.moveToFirst();\n // int userid = cursor.getInt(0);\n String name = cursor.getString(1);\n int age = cursor.getInt(2);\n\n String countryCode = cursor.getString(3);\n\n Country country = new Country();\n country.setCode(countryCode);\n\n user.setName(name);\n user.setAge(age);\n user.setId(id);\n user.setCountry(country);\n\n cursor.close();\n return user;\n\n } else {\n Log.e(getClass().getName(), \"getUserById() cursor is null\");\n return null;\n }\n }", "@Override\n\tpublic car getById(int id) {\n\t\ttry{\n\t\t\tcar so=carDataRepository.getById(id);\n\t\t\t\n\t\t\treturn so;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tex.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t}", "private void handleActionGetCountry(String id) {\n\n Log.i(\"getcountry\",\"Thread service name : \"+Thread.currentThread().getName());\n URL url = null;\n\n try {\n\n url = new URL(\"http://binouze.fabrigli.fr/countries/\"+id+\".json\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.connect();\n\n if(HttpURLConnection.HTTP_OK == conn.getResponseCode()){\n copyInputStreamToFile(conn.getInputStream(), new File(getCacheDir(),\"country.json\"));\n Log.d(\"getcountry\",\"Country json downloaded\");\n }\n else{\n Log.d(\"getcountry\",\"Country json NOT downloaded. HttpURLConnection.HTTP_OK = \"+HttpURLConnection.HTTP_OK+ \" et conn.getResponseCode() = \"+conn.getResponseCode());\n }\n\n //lance un intent pour signaler l'update\n LocalBroadcastManager.getInstance(this).sendBroadcast(new Intent(SecondeActivity.COUNTRY_UPDATE));\n\n }catch(MalformedURLException e){\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "RefZoneGeoDTO findOne(Long id);", "public Bank find(Integer id) {\n return em.find(Bank.class, id);\n }", "public void load(int p_id) {\n\t\tCachedRowSet l_rs;\n\t\tString sqlString;\n\n\t\ttry {\n\t\t\tStatement stmt = m_db.m_conn.createStatement();\n\n\t\t\tsqlString = \"SELECT * FROM country WHERE \" + \"countryid=\" + p_id;\n\t\t\tl_rs = m_db.runSQL(sqlString, stmt);\n\n\t\t\tif (l_rs.next()) {\n\t\t\t\t// Reset the object\n\t\t\t\tinitialise();\n\n\t\t\t\t// Setup the new data\n\t\t\t\tm_country_id = l_rs.getInt(\"countryid\");\n\t\t\t\tm_country_name = l_rs.getString(\"countryname\");\n\n\t\t\t}\n\t\t\tl_rs.close();\n\t\t\tstmt.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\">>>>>>>> EXCEPTION <<<<<<<<\");\n\t\t\tSystem.out.println(\"An Exception occured in loadResource().\");\n\t\t\tSystem.out.println(\"MESSAGE: \" + e.getMessage());\n\t\t\tSystem.out.println(\"LOCALIZED MESSAGE: \" + e.getLocalizedMessage());\n\t\t\tSystem.out.println(\"CLASS.TOSTRING: \" + e.toString());\n\t\t\tSystem.out.println(\">>>>>>>>>>>>>-<<<<<<<<<<<<<\");\n\t\t}\n\t}", "public void setCountryId(String countryId) {\r\n this.countryId = countryId;\r\n }", "@Override\n\tpublic Address getAddressById(int id) {\n\t\treturn sqlSessionTemplate.selectOne(sqlId(\"getAddressById\"),id);\n\t}", "public Contact getContact(UUID id) {\n\t\treturn this.contacts.get(id);\n\t}", "TrackerCity loadTrackerCity(final Integer id);", "public CountryCode getCountry() {\n return country;\n }", "@Override\r\n\tpublic Food getFoodById(int id) {\n\t\tString sql=\"select * from food where id=?\";\r\n\t\tList<Food> list=(List<Food>) BaseDao.select(sql, Food.class,id);\r\n\t\tif(list.size()>0) {\r\n\t\t\treturn list.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public User getById(String id){\n List<User> users = userRepo.findAll();\n for (User user : users){\n if(user.getGoogleId().equals(id)){\n return user;\n }\n }\n throw new UserNotFoundException(\"\");\n }", "@Override\r\n\tpublic Code get(int id) {\n\t\treturn this.getHibernateTemplate().get(Code.class, id);\r\n\t}", "public void setCountry_id(String country_id) {\n this.country_id = country_id;\n }", "public State getStateWithID(final int id) {\n\t\tfinal Iterator<State> it = states.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tfinal State state = it.next();\n\t\t\tif (state.getID() == id) {\n\t\t\t\treturn state;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Paciente get( Long id ) {\r\n\t\t\tlogger.debug(\"Retrieving codigo with id: \" + id);\r\n\t\t\t\r\n\t\t\t/*for (Paciente paciente:codigos) {\r\n\t\t\t\tif (paciente.getId().longValue() == id.longValue()) {\r\n\t\t\t\t\tlogger.debug(\"Found record\");\r\n\t\t\t\t\treturn paciente;\r\n\t\t\t\t}\r\n\t\t\t}*/\r\n\t\t\t\r\n\t\t\tlogger.debug(\"No records found\");\r\n\t\t\treturn null;\r\n\t\t}", "public Integer getCountry() {\n return country;\n }", "public Integer getCountry() {\n return country;\n }", "public Person get( Integer id ) {\n\t\t\n\t\tSession session = sessionFactory.getCurrentSession();\t\t\n\t\t\n\t\treturn(Person) session.get(Person.class,id);\n\t}", "public interface CountryService {\n\t\n\t/**\n\t * Gets the countries.\n\t *\n\t * @return the countries\n\t */\n\tpublic List<Country> getCountries();\n\t\n\t/**\n\t * Find by id.\n\t *\n\t * @param id the id\n\t * @return the country\n\t */\n\tpublic Country findById(Long id);\n\t\n\t/**\n\t * Find by name.\n\t *\n\t * @param name the name\n\t * @return the list\n\t */\n\tpublic List<Country> findByName(String name);\n\t\n\t\n\t\n\t/**\n\t * Gets the country by id or name.\n\t *\n\t * @param id the id\n\t * @param name the name\n\t * @return the country by id or name\n\t */\n\tpublic Object getCountryByIdOrName(Long id, String name);\n}", "public void setCountryId(java.lang.String countryId) {\r\n this.countryId = countryId;\r\n }", "@Override\r\n\tpublic Hotel getById(int Id) {\n\t\tfor(Hotel Hotel : showHotelList() ) {\r\n\t\t\tif(Hotel.getHotelId()==Id)\r\n\t\t\t\t\treturn Hotel;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public T getByID(int id) {\n\t\treturn this.data.get(id);\n\t}", "@Override\n\tpublic UserCookieDTO getbyUserId(Long id) {\n\t\treturn userCookieFacade.getbyUserId(id);\n\t}", "Country selectByPrimaryKey(String code);", "public Country getCountry() {\n return country;\n }", "@Override\r\n\tpublic UserAccount get(int id) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tUserAccount ua = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetById);\r\n\t\t\tps.setInt(1, id);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tua = generate(rs);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ua;\r\n\t}", "public Country getCountry() {\r\n return country;\r\n }", "@Override\n\tpublic Category getById(long id) {\n\t\treturn getById(id);\n\t}", "public Person get( Integer id ) {\n\t\t// Retrieve existing person\n\t\tPerson person = (Person) entityManager.createQuery(\"FROM Person p where p.id = :id\")\n \t.setParameter(\"id\", id).getSingleResult();\n\t\treturn person;\n\t}", "@Nonnull public CountryCode getCountry() { return country; }", "@Override\n\tpublic Category getCategory(int id) {\n\t\treturn categoryRepository.getOne(id);\n\t}", "@Override\n @Transactional\n public void deleteCountry(long id) {\n countryRepository.deleteById(id);\n }", "public Coupon getCoupon(long id) {\n\t\treturn Validations.verifyNotNull(couponRepository.findOne(id));\n\t}", "public CountryType getCountry() {\r\n\t\treturn country;\r\n\t}", "public Category get(int id) {\n\t\treturn (Category) this.getCurrentSession().get(Category.class, id);\r\n\t}", "public void setCountryId(long countryId) {\n this.countryId = countryId;\n }", "public Coupon getCoupon(int id) throws DbException;", "public ClanPaket findById(Long id) {\n\r\n\t\tClanPaket clanPaket = clanPaketDao.findById(id)\r\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"ClanPaket\", \"id\", id));\r\n\r\n\t\treturn clanPaket;\r\n\r\n\t}", "@Override\n\tpublic Factura findById(Integer id) {\n\t\treturn facturaRepository.findById(id).orElse(null);\n\t}", "@Transactional\n\tpublic Speciality get(String id) {\n\t\treturn session.getCurrentSession().get(Speciality.class, Integer.parseInt(id));\n\t}", "public Cd getById(int id) {\n\t\tString sql = \" from Cd where id=:id\";\n\t\tQuery query = HibernateUtil.getSession().createQuery(sql).setParameter(\"id\", id);\n\t\treturn (Cd)findOne(query);\n\t\t\n\t}", "@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}", "public List<Country> getAll() throws Exception;", "MasterZipcode getById(int id);", "@Override\n\tpublic Campagne getCampagneById(int id) {\n\t\treturn null;\n\t}", "public Citas getCita(int id) {\n Citas c = new Citas();\n try {\n PreparedStatement pstm = null;\n ResultSet rs = null;\n String query = \"SELECT *FROM paciente WHERE id_paciente=?\";\n pstm = con.prepareStatement(query);\n pstm.setInt(1, id);\n rs = pstm.executeQuery();\n while (rs.next()) {\n c.setId(rs.getInt(\"id_paciente\"));\n c.setName(rs.getString(\"name\"));\n c.setDoctor(rs.getString(\"doctor\"));\n c.setFecha(rs.getString(\"fecha\"));\n c.setHora(rs.getString(\"hora\"));\n c.setTel(rs.getString(\"tel\"));\n c.setCorreo(rs.getString(\"correo\"));\n c.setGenero(rs.getString(\"genero\"));\n c.setMotivo(rs.getString(\"motivo\"));\n c.setSintomas(rs.getString(\"sintomas\"));\n } \n }catch (SQLException ex) {\n ex.printStackTrace();\n }\n return c;\n }", "public Optional<Coach> findById(Long id) {\n\t\treturn Optional.ofNullable(get(id));\n\t}", "public com.google.protobuf.ByteString\n getCountryBytes() {\n java.lang.Object ref = country_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n country_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }" ]
[ "0.80695206", "0.78367615", "0.7377091", "0.7371756", "0.73447317", "0.7073305", "0.7058668", "0.7020768", "0.69746816", "0.6964239", "0.6757445", "0.66647655", "0.65605015", "0.65192646", "0.64766926", "0.6416109", "0.6408302", "0.6397952", "0.6394955", "0.63821036", "0.6360531", "0.6357685", "0.63478976", "0.6274957", "0.6271536", "0.61208373", "0.61097175", "0.6102779", "0.6081604", "0.60665387", "0.60162807", "0.59903646", "0.59836173", "0.5979562", "0.59731084", "0.59421706", "0.59199166", "0.5919424", "0.59183717", "0.58860725", "0.58860725", "0.585421", "0.5847785", "0.5831585", "0.57548696", "0.5747656", "0.572631", "0.57218134", "0.57140565", "0.5680827", "0.5674873", "0.5672276", "0.5671371", "0.5663612", "0.56399924", "0.56314564", "0.5622646", "0.56087345", "0.5603732", "0.56031615", "0.56002194", "0.559836", "0.55812377", "0.5559905", "0.5556618", "0.5556533", "0.5544262", "0.5541448", "0.5541448", "0.5539967", "0.55338395", "0.5520923", "0.55121535", "0.5510601", "0.5507318", "0.5501735", "0.54999", "0.54997957", "0.54932386", "0.5493116", "0.54919714", "0.5490975", "0.5485447", "0.5470204", "0.54689866", "0.5468663", "0.54627085", "0.54563963", "0.5455161", "0.54523003", "0.54513747", "0.54484403", "0.54453444", "0.54381377", "0.5425407", "0.54246056", "0.5417842", "0.54162216", "0.5410937", "0.5410443" ]
0.8224409
0
Gets all the Countries.
public List<Country> getAll() throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<String> findAllCountries() {\n\t\treturn theCountryRepository.findAllCountries();\n\t}", "@Override\n\tpublic List<Country> getCountries() {\n\t\tCountryRootObject countryRootObject = restTemplate.getForObject(urlForDatabaseCountries(), CountryRootObject.class);\n\n\t\treturn countryRootObject.getResponse().getItems();\n\t}", "@RequestMapping(value = \"/countries\", method = RequestMethod.GET)\n public List<Country> countries() {\n return dictionaryService.findAllCountries();\n }", "@GET\r\n\t@Path(\"/countries\")\r\n\tpublic Response getAllCountries() {\r\n\t\ttry {\r\n\t\t\tList<CountryCreatedDto> countryCreatedDto = institutionService.getAllCountries();\r\n\t\t\treturn FarmsResponse.ok(countryCreatedDto);\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// logger.error(ErrorMessage.OPERATION_NOT_RESPONDING, ex);\r\n\t\t\tFarmsMail.sendMailText(\"[email protected]\", \"Erro\", ex.getMessage() + \" \" + ex.toString());\r\n\t\t\treturn FarmsResponse.error(ErrorMessage.OPERATION_NOT_RESPONDING);\r\n\t\t}\r\n\t}", "List<Country> listCountries();", "public List<Country> getAllAvailableCountry() {\n\t\treturn countryManager.getAllAvailable();\n\t}", "public ArrayList<String> getListOfCountries() {\n ArrayList<String> countries = new ArrayList<>(gameMap.getCountryHashMap().keySet());\n return countries;\n }", "public List<Country> getCountries()\n {\n return countries;\n }", "public List<Country> getAll() {\n\t\tif (countries != null) {\n\t\t\treturn countries;\n\t\t}\n\t\telse {\n\t\t\tcountries = new ArrayList<>();\n\n\t\t\tif (Files.exists(countriesPath)) {\n\t\t\t\ttry (BufferedReader in = new BufferedReader(\n\t\t\t\t\t\t\t\t\t\t new FileReader(countriesFile))) {\n\t\t\t\t\tString line = in.readLine();\n\t\t\t\t\twhile (line != null) {\n\t\t\t\t\t\tString[] fields = line.split(FIELD_SEP);\n\t\t\t\t\t\tString idStr = fields[0];\n\t\t\t\t\t\tString code = fields[1];\n\t\t\t\t\t\tString name = fields[2];\n\t\t\t\t\t\tint id = Integer.parseInt(idStr);\n\t\t\t\t\t\tCountry country = new Country(id, code, name);\n\t\t\t\t\t\tcountries.add(country);\n\t\t\t\t\t\tline = in.readLine();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (IOException ioe) {\n\t\t\t\t\tSystem.out.println(ioe);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\treturn countries;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(countriesPath.toAbsolutePath()+\" doesn't exist.\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "public static void getCountries() {\n\t\tJSONArray countries = (JSONArray) FileParser.dataSetter().get(\"countries\");\n\t\tfor(int i = 0, size = countries.size(); i < size; i++) {\n\t\t\tJSONObject objectInArray = (JSONObject) countries.get(i);\n\t\t\tSystem.out.println(objectInArray.get(\"name\"));\n\t\t}\n\t}", "@RequestMapping(value = \"/getCountries.abhi\")\n\tpublic List<CountryTO> getCountries(Model model, HttpServletRequest request) {\n\n\t\treturn addressService.getAllActiveCountries();\n\n\t}", "public ComboItem[] getCountries() {\r\n\t\treturn countries;\r\n\t}", "public List<Country> getCountries() {\r\n\t\tList<Country> country=new ArrayList<Country>();\r\n\t\tfor(Country c : graph.vertexSet()){\r\n\t\t\tcountry.add(c);\r\n\t\t}\r\n\t\treturn country;\r\n\t}", "List<Country> selectAll();", "public LiveData<List<CountryEntity>> getCountries() {\n return mObservableCountries;\n }", "@RequestMapping(value = \"/country\", method = RequestMethod.GET)\n public List<CountryCustomerCount> customersInCountry() {\n return customerRepository.customerInCountry();\n }", "void countries_init() throws SQLException {\r\n countries = DatabaseQuerySF.get_all_stations();\r\n }", "public List<String> getCountries() {\n\t\tif (countries == null) {\r\n\t\t\tcountries = new ArrayList<>();\r\n\t\t\tif (Files.exists(countriesPath)) {\r\n\t\t\t\ttry (BufferedReader in = new BufferedReader(\r\n\t\t\t\t\t\t new FileReader(countriesFile))) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//read countries from file into array list\r\n\t\t\t\t\tString line = in.readLine();\r\n\t\t\t\t\twhile (line != null) {\r\n\t\t\t\t\t countries.add(line);\r\n\t\t\t\t\t line = in.readLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tFiles.createFile(countriesPath);\r\n\t\t\t\t\tSystem.out.println(\"** countries file create!\");\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn countries;\r\n\t}", "public ArrayList<Country> getCountryList() throws LocationException;", "public String[] getCountryNames() {\r\n return countryNames;\r\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public ArrayList<String> getCountries() {\n\n JSONArray jsonArray = readFromJSON();\n\n ArrayList<String> cList=new ArrayList<String>();\n\n if (jsonArray != null) {\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n cList.add(jsonArray.getJSONObject(i).getString(\"name\")); //getting the name of the country and adding it to an arraylist\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n return cList;\n }", "public Set<Country> getCountriesSet() {\n\t\treturn d_countriesSet;\n\t}", "public static ObservableList<Country> getAllCountries() {\n ObservableList<Country> countries = FXCollections.observableArrayList();\n try {\n String sql = \"SELECT * from countries\";\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(sql);\n ResultSet rs = ps.executeQuery();\n\n while(rs.next()) {\n int countryID = rs.getInt(\"Country_ID\");\n String countryName = rs.getString(\"Country\");\n Country c = new Country(countryID,countryName);\n countries.add(c);\n }\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n return countries;\n }", "@GetMapping(\"/all\")\n public List<Country> getAll(){\n return countryRepository.findAll();\n }", "public List<CountryMasterDesc> getCountryListFromDB() {\n\t\t sessionStateManage = new SessionStateManage(); \n\t\tcountryList = new ArrayList<CountryMasterDesc>();\n\t\tcountryList.addAll( getGeneralService().getCountryList(new BigDecimal(sessionStateManage.isExists(\"languageId\")?sessionStateManage.getSessionValue(\"languageId\"):\"1\")));\n\t\tfor(CountryMasterDesc countryMasterDesc:countryList) {\n\t\t\tmapCountryList.put(countryMasterDesc.getFsCountryMaster().getCountryId(), countryMasterDesc.getCountryName());\n\t\t}\n \t\treturn countryList;\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\t public List<Country> listCountry(){\n\t Session session = factory.openSession();\n\t Transaction tx = null;\n\t List<Country> countries = null;\n\t \n\t tx = session.beginTransaction();\n\t Query query = session.createQuery(\"FROM Country\");\n\t //countries = (List<Country>)session.createQuery(\"FROM Country\");\n\t countries = (List<Country>)query.list();\n\t \n\t System.out.print(\"Currency: \" );\n\t \n\t tx.commit();\n\t return countries;\n\t }", "@RequestMapping(value = \"/getCountries\", method = RequestMethod.GET, produces = \"application/json\")\n @ResponseBody\n public SPResponse getCountries(@RequestParam(defaultValue = \"en_US\") String locale) {\n \n locale = LocaleHelper.isSupported(locale);\n \n String countryList = countryListMap.get(locale);\n \n if (countryList == null) {\n String fileName = null;\n if (Constants.DEFAULT_LOCALE.equalsIgnoreCase(locale)) {\n fileName = \"countryList.json\";\n } else {\n fileName = \"countryList_\" + locale.toString() + \".json\";\n }\n \n ObjectMapper mapper = new ObjectMapper();\n try {\n Resource resource = resourceLoader.getResource(\"classpath:\" + fileName);\n Countries readValue = mapper.readValue(resource.getFile(), Countries.class);\n countryList = mapper.writeValueAsString(readValue);\n } catch (Exception e) {\n LOG.error(\"error occurred retreving the country list for the locale \" + locale + \": file :\"\n + fileName, e);\n Resource resource = resourceLoader.getResource(\"classpath:countryList.json\");\n Countries readValue;\n try {\n readValue = mapper.readValue(resource.getFile(), Countries.class);\n countryList = mapper.writeValueAsString(readValue);\n } catch (IOException e1) {\n LOG.error(\"Error occurred while getting the country list\", e1);\n }\n }\n \n if (countryList == null) {\n countryList = MessagesHelper.getMessage(\"countries.list\");\n } else {\n countryListMap.put(locale, countryList);\n }\n }\n return new SPResponse().add(\"countries\", countryList);\n }", "List<GenericTypedGrPostal> getCountryNames();", "public ObservableList<String> queryAllCountries() {\n ObservableList<String> countries = FXCollections.observableArrayList();\n try (PreparedStatement stmt = this.conn.prepareStatement(\"SELECT DISTINCT country from country GROUP BY country\")) {\n\n ResultSet result = stmt.executeQuery();\n\n while (result.next()) {\n countries.add(result.getString(\"country\"));\n }\n\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n return countries;\n }", "public Map<Integer, HealthMapCountry> getCountryMap() {\n if (countryMap == null) {\n List<HealthMapCountry> countries = geometryService.getAllHealthMapCountries();\n countryMap = index(countries, on(HealthMapCountry.class).getId());\n }\n return countryMap;\n }", "@GetMapping(\"/country\")\n public List<ReadableCountry> getCountry(@ApiIgnore Language language, HttpServletRequest request) {\n MerchantStore merchantStore = storeFacade.getByCode(request);\n return countryFacade.getListCountryZones(language, merchantStore);\n }", "public LiveData<List<Countries>> getCountryList() {\n return this.countryLiveData;\n }", "void fetchCountryInformation();", "Observable<List<CountryEntity>> fetchAllCountries();", "@PostConstruct\r\n public void getCountriesKeysAndNamesAtApplicationStartUp() {\r\n ViewsController.countries = new HashMap<>();\r\n Object object = restTemplate.getForObject(\"https://api.covid19tracking.narrativa.com/api/countries\", Object.class);\r\n new HashMap<>();\r\n if (object != null) {\r\n ObjectMapper objectMapper = new ObjectMapper();\r\n Country data = objectMapper.convertValue(object, Country.class);\r\n for (Country_ country : data.getCountries()) {\r\n ViewsController.countries.put(country.getId(), country.getName());\r\n }\r\n }\r\n }", "public List<String> findIndiaStates(){\n\t\treturn null;\n\t}", "@Transactional(readOnly = true) \n public List<CountryState> findAll() {\n log.debug(\"Request to get all CountryStates\");\n List<CountryState> result = countryStateRepository.findAllByDelStatusIsFalse();\n\n return result;\n }", "@Override\n public Stream<City> getAll() {\n return idToCity.values().stream();\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<String> getAllProvince() {\n\t\treturn getSqlMapClientTemplate().queryForList(\"H_PROVINCE_FB.getAllProvince\");\r\n\t}", "public static ObservableList<String> getCountryList() throws SQLException{\r\n\r\n //connection and prepared statement set up\r\n countryList.clear();\r\n Connection conn = DBConnection.getConnection();\r\n String selectStatement = \"SELECT * FROM countries;\";\r\n DBQuery.setPreparedStatement(conn, selectStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n\r\n ps.execute();\r\n ResultSet rs = ps.getResultSet();\r\n\r\n //fills list with countries\r\n while(rs.next()){\r\n countryList.add(rs.getString(\"Country\"));\r\n }\r\n return countryList;\r\n }", "@GetMapping(\"/localisations\")\n @Timed\n public List<Localisation> getAllLocalisations() {\n log.debug(\"REST request to get all Localisations\");\n return localisationService.findAll();\n }", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "public Vector getListCountries(){\n Vector listCountries = new Vector();\n try{\n String sqlGet = \"SELECT * FROM country ORDER BY country_name\";\n\n ResultSet rsGet = this.queryData(sqlGet);\n int order = 0;\n while(rsGet.next()){\n order++;\n Vector dataSet = new Vector();\n dataSet.add(rsGet.getInt(\"country_id\"));\n dataSet.add(rsGet.getString(\"country_name\"));\n\n listCountries.add(dataSet);\n }\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n return listCountries;\n }", "public List<String> getAdjacentCountries() {\n return adjacentCountries;\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<Culture> findAllCulture() {\n\t\treturn session.openSession().createQuery(\" from Culture\").list();\n\t}", "public List<String> getCountryCounts() {\r\n\t\tList<String> ltemp=new ArrayList<String>();\r\n\t\tint cont=0;\r\n\t\tfor(Country c : graph.vertexSet()){\r\n\t\t\tcont=0;\r\n\t\t\tfor(DefaultEdge e : graph.edgesOf(c)){\r\n\t\t\t\tcont++;\r\n\t\t\t}\r\n\t\t\tString s=c+\" \"+cont;\r\n\t\t\tif(ltemp.indexOf(s)==-1)\r\n\t\t\t\tltemp.add(s);\r\n\t\t}\r\n\t\treturn ltemp;\r\n\t}", "public int countryCount(){\n\t\treturn this.countries.size();\n\t}", "public void populateAllCountries(SolrGazetteer gaz) {\n // SolrGazetteer has full Country metadata, like\n // GeonamesUtility lists offical countries (with TZ, region, aliases, codes)\n // SolrGazetteer lists more aliases/name variants.\n // So have Map( variant =&gt; Country ), where Country is official one.\n //\n allCountries = new HashMap<>();\n\n // Gather 'Official names'\n for (Country C : countries.getCountries()) {\n // NAME: 'United States of America'\n allCountries.put(C.getName().toLowerCase(), C);\n // ISO alpha-2 'US'\n allCountries.put(C.CC_ISO2.toLowerCase(), C);\n // ISO alpha-3 'USA'\n allCountries.put(C.CC_ISO3.toLowerCase(), C);\n }\n\n // Gather name variants from anything that looks like PCLI or PCLI* in\n // gazetteer:\n //\n for (String cc : gaz.getCountries().keySet()) {\n Country alt = gaz.getCountries().get(cc);\n Country C = countries.getCountry(cc);\n // NAME: 'United States of America'\n allCountries.put(alt.getName().toLowerCase(), C);\n // ISO alpha-2 'US'\n allCountries.put(alt.CC_ISO2.toLowerCase(), C);\n // ISO alpha-3 'USA'\n allCountries.put(alt.CC_ISO3.toLowerCase(), C);\n for (String a : alt.getAliases()) {\n // Aliases: 'U.S.A', 'US of A', 'America', etc.\n //\n allCountries.put(a.toLowerCase(), C);\n }\n }\n }", "static IdNameSelect<INameIdParent> getCountriesSelect() {\r\n\t\treturn new IdNameSelect<INameIdParent>() {\r\n\t\t\t\r\n\t\t\tList<INameIdParent> result = new ArrayList<INameIdParent>();\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected String getSqlString() {\r\n\t\t\t\treturn countrySelect;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tList<INameIdParent> getReuslt() {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected void retrieveResult(ResultSet rs) throws SQLException {\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tNameIdParent p = new NameIdParent();\r\n\t\t\t\t\tp.id = rs.getLong(\"id\");\r\n\t\t\t\t\tp.name = rs.getString(\"n\");\r\n\t\t\t\t\tresult.add(p);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public static URL getUrlForGetCountries()\r\n {\r\n String strUrl = getBaseURL() + \"account_services/api/1.0/static_content/countries/client_type/3/language/\"+\r\n \t\tA.getContext().getString( R.string.backend_language_code )+\"?brand=\"+Config.BRAND_NAME_URL;\r\n return str2url( strUrl );\r\n }", "public List<String> supportedCountries() {\n final List<String> countryCodes = new ArrayList<>(bbanStructures.size());\n for (BbanStructureDTO structure : this.bbanStructures) {\n countryCodes.add(structure.getCountry_coode());\n }\n return Collections.unmodifiableList(countryCodes);\n }", "public void createCountries() {\n\t\t\n\t\tcountryArray = new Country[Constants.NUM_COUNTRIES];\n\t\t\n\t\tfor(int i=0; i<Constants.NUM_COUNTRIES; i++) {\n\t\t\tcountryArray[i] = (new Country(i));\n\t\t}\n\t}", "@Override\n\tpublic List<Zone> getAll() {\n\t\treturn null;\n\t}", "@Override\n public List<String> getCities() {\n\n List<Rout> routs = routDAO.getAll();\n HashSet<String> citiesSet = new HashSet<>();\n for (Rout r : routs) {\n citiesSet.add(r.getCity1());\n }\n List<String> cities = new ArrayList<>(citiesSet);\n\n return cities;\n }", "@Override\n\tpublic ArrayList<CityPO> getAll() throws RemoteException {\n\t\t\n\t\t\n\t\treturn cities;\n\t}", "public JSONArray getCountry(Activity act)\n\t{\n\t\tJSONArray json = null;\n\n\t\tprefManager = new SharedPrefManager(act);\n\t\tHashMap<String, String> init = prefManager.getCountry();\n\t\tString dataCountry = init.get(SharedPrefManager.COUNTRY);\n\t\tLog.e(\"dataCountry\",dataCountry);\n\n\t\ttry {\n\t\t\tjson = new JSONArray(dataCountry);\n\t\t\tLog.e(\"json\",Integer.toString(json.length()));\n\t\t}catch (JSONException e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn json;\n\n\t\t/*Locale[] locales = Locale.getAvailableLocales();\n\t\tArrayList<String> countries = new ArrayList<String>();\n\n\t\tfor (Locale locale : locales) {\n\t\t\tString country = locale.getDisplayCountry();\n\t\t\tString countryCode = locale.getCountry();\n\n\n\t\t\tif (country.trim().length()>0 && !countries.contains(country)) {\n\t\t\t\tcountries.add(country+\"-\"+countryCode);\n\t\t\t}\n\t\t}\n\n\t\tCollections.sort(countries);\n\t\treturn countries;*/\n\t}", "public List<DirectoryCountryFormat> selectAll();", "public HashMap<ContinentName, CountryName[]> getContinents() { return continents; }", "List<Language> getAll();", "@GetMapping(\"/list\")\n\tpublic String findAllCountries(Model model ){\n\t List<countriesEntity> lista= countriesService.findAllCountries();\n\t model.addAttribute(\"lista\", lista);\n\t return \"countries/findAllCountries\";\n\t}", "public List<City> getAll() throws Exception;", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@GetMapping(path = \"/\", consumes = MediaType.APPLICATION_JSON_VALUE, produces = \"application/json; charset=UTF-8\")\n\tpublic ResponseEntity<?> getAllContinentFlag() {\n\t\treturn new ResponseEntity<List<ContinentDocument>>(continentCountriesFlagService.findAllContinent(), HttpStatus.OK);\n\t}", "public Collection<RegionLocations> getAll() {\n return Collections.unmodifiableCollection(cache.values());\n }", "public CountryList() {\n\t\tthis.totalCount = 0;\n\t\tthis.nextAvailable = 0;\n\t}", "private static Map<String, List<String>> loadCitiesByLanguage() {\n String resource = Config.get(\"generate.geography.foreign.birthplace.default_file\",\n \"geography/foreign_birthplace.json\");\n return loadCitiesByLanguage(resource);\n }", "public Set<Integer> getCountriesIds() {\n\t\tSet<Integer> l_countryNameSet = new HashSet<>();\n\t\tfor (Country l_country : d_countriesSet) {\n\t\t\tl_countryNameSet.add(l_country.getId());\n\t\t}\n\t\treturn l_countryNameSet;\n\t}", "@Query(\"select c from Country c order by c.name\")\n List<Country> getAllCountries();", "public List<Country_Language> getcountry(String id) {\n \tIterable<Country_Language> countries=new ArrayList<>();\n \tList<Country_Language> countr=new ArrayList<>();\n \tcountries=country_Language_Repository.findAll();\n \tfor (Country_Language s :countries)\n \t{ \n\t\t if (s.getCountry_code().equals(id) && s.isIs_official())\n\t\t\t{countr.add(s);\n\t\t return countr;\n\t\t\t}\n \t}\n\t\t return countr;\n \t \n \t\n }", "public ArrayList<String> getListOfContinents() {\n return new ArrayList<>(gameMap.getContinentHashMap().keySet());\n }", "public List<String> retrieveAllCurrencieNames() {\n List<String> currenciesAvailable = new ArrayList<>(2);\n getCurrencyBuilder()\n .getCurrencyModels()\n .forEach(currencyModel ->\n currenciesAvailable.add(currencyModel.getCurrencyName()));\n return currenciesAvailable;\n }", "private String urlForDatabaseCountries() {\n\t\tString token;\n\t\tStringBuilder builder = new StringBuilder(ConstantsForVkApi.URL);\n\n\t\ttoken = proxyServerService.getProxyServerByDestiny(\"user\").get(0).getToken();\n\n\t\tbuilder.append(ConstantsForVkApi.METHOD_GET_COUNTRIES);\n\t\tbuilder.append(ConstantsForVkApi.PARAMETERS_FOR_COUNTRIES);\n\t\tbuilder.append(ConstantsForVkApi.TOKEN);\n\t\tbuilder.append(token);\n\t\tbuilder.append(ConstantsForVkApi.VERSION);\n\n\t\treturn builder.toString();\n\t}", "@Override\r\n\tpublic List<City> getAllCitiesInCountry(String countryName) {\n\t\t\r\n\t\tSystem.out.println(\"getAllCitiesInCountry,countryName\");\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.beginTransaction();\r\n\r\n\t\tList<City> list=new ArrayList<City>();\r\n\t\tQuery query=session.createQuery(\"from City where country.name = :countryName\");\r\n\t\tquery.setParameter(\"countryName\", countryName);\r\n\t\tlist=query.list();\r\n\t\tsession.getTransaction().commit();\r\n\t\t//session.flush();\r\n\t\t//session.close();\r\n\t\treturn list;\r\n\t}", "@GetMapping(\"/findAllStateCountry/name\")\n\tpublic ResponseEntity<List<State>> stateNameCountry(@RequestParam String name) {\n\t\tList<State> STATES = stateService.stateNameCountry(name);\n\t\treturn new ResponseEntity<List<State>>(STATES, HttpStatus.OK);\n\t}", "public void populateBasicCountryNames() {\n basicCountryNames = new HashMap<>();\n for (Country c : countries.getCountries()) {\n basicCountryNames.put(c.getNamenorm(), c);\n }\n basicCountryNames.put(\"united states\", countries.getCountry(\"US\"));\n }", "public HashMap<CountryName, CountryName[]> getAdjCountries() { return adjCountries; }", "@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_COUNTRIES, key=\"{#type, #id}\")\n public List<ApiCountryDTO> getCountriesForMetadata(MetaDataType type, Long id) {\n return currentSession().getNamedQuery(\"metadata.country.\"+type.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }", "@RequestMapping(value = \"/charitys\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Charity> getAll() {\n log.debug(\"REST request to get all Charitys\");\n return charityRepository.findAll();\n }", "@RequestMapping(value = \"/current_location/all\", method = RequestMethod.GET)\n public ResponseEntity<List<CurrentLocation>> getAllFavoriteZones() {\n\n List<CurrentLocation> currentLocationList = currentLocationService.findAllCurrentLocation();\n\n if(currentLocationList.isEmpty()){\n return new ResponseEntity<List<CurrentLocation>>(HttpStatus.NO_CONTENT);\n }\n\n return new ResponseEntity<List<CurrentLocation>>(currentLocationList, HttpStatus.OK);\n }", "List<City> getCityList(Integer countryId)throws EOTException;", "public static String[] getDownloadedCountries(Context context){\n SharedPreferences sharedPreferences = context.getSharedPreferences(Values.PREFERENCES_NAME, Context.MODE_PRIVATE);\n File downloadPath = null;\n //We can save resources either in external sd or internal shared storage, we scan the last known download location\n switch (sharedPreferences.getString(Values.DOWNLOAD_LOCATION, Values.LOCATION_INTERNAL)){\n case Values.LOCATION_INTERNAL:\n downloadPath = context.getExternalFilesDir(null);\n break;\n case Values.LOCATION_EXTERNAL:\n if(hasWritableSd(context))\n downloadPath = context.getExternalFilesDirs(null)[1];\n break;\n //If the user has yet to download a package, we return null. This branch is repetitive but added for clarity\n case Values.NOT_YET_DECIDED:\n downloadPath = null;\n break;\n }\n if(downloadPath != null){\n String[] downloadedCountries;\n //Get list of directories, each corresponding to a different country\n File[] resFolders = downloadPath.listFiles(new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n return pathname.isDirectory();\n }\n });\n if(resFolders != null){\n if(resFolders.length == 0)\n return null;\n //countriesNames contains the english name of all supported countries\n //All resFolders will always use the english names of the countries\n String[] countriesNames = Values.COUNTRIES_DEFAULT_NAMES;\n downloadedCountries = new String[resFolders.length];\n //Get folder name and translate country name\n for(int i = 0; i < resFolders.length; i++) {\n String[] folderPath = resFolders[i].getAbsolutePath().split(\"/\");\n String folderName = folderPath[folderPath.length - 1];\n for (String countryName : countriesNames) {\n //If found folder with name matching one country, add it to the list\n if (folderName.equals(countryName)) {\n downloadedCountries[i] = folderName;\n break;\n }\n }\n }\n return downloadedCountries;\n }\n }\n\n return null;\n }", "public List<String> getCities() {\n\t\treturn cities;\n\t}", "@SuppressWarnings(\"rawtypes\")\n\tpublic List<Census> retrieveAll()\n\t{\n\t\t\n\t\topen();\n\t\tList<Census> list=new LinkedList<Census>();\n\t\ttry\n\t\t{\n\t\t\tQuery query=DB.query();\n\t\t\tquery.constrain(Census.class);\n\t\t\t\n\t\t\tObjectSet result =query.execute();\n\t\t\t\n\t\t\twhile(result.hasNext())\n\t\t\t{\n\t\t\t\tlist.add((Census)result.next());\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose();\n\t\t}\n\t\t\n\t\t\n\t\treturn list;\n\t}", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public List<Ubigeo> getUbigeoFindAll() {\n return em.createNamedQuery(\"Ubigeo.findAll\", Ubigeo.class).getResultList();\n }", "@GetMapping(\"/all\")\n public List<CityInfo> getAll(){\n return service.getAll();\n }", "@Override\n public void initialize(URL url, ResourceBundle resourceBundle) {\n ObservableList<String> countryNames = FXCollections.observableArrayList();\n for (Countries c : DBCountries.getAllCountries()) {\n countryNames.add(c.getName());\n }\n countryCombo.setItems(countryNames);\n }", "public CachedRowSet getCountries(Statement p_stmt) {\n\t\tCachedRowSet l_rs;\n\t\tString sqlString;\n\t\tString l_ret;\n\n\t\ttry {\n\t\t\tStatement stmt = m_db.m_conn.createStatement();\n\n\t\t\tsqlString = \"SELECT * FROM country order by countryname\";\n\t\t\tl_rs = m_db.runSQL(sqlString, stmt);\n\t\t\tstmt.close();\n\t\t\treturn (l_rs);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\">>>>>>>> EXCEPTION <<<<<<<<\");\n\t\t\tSystem.out.println(\"An Exception occured in getCountries().\");\n\t\t\tSystem.out.println(\"MESSAGE: \" + e.getMessage());\n\t\t\tSystem.out.println(\"LOCALIZED MESSAGE: \" + e.getLocalizedMessage());\n\t\t\tSystem.out.println(\"CLASS.TOSTRING: \" + e.toString());\n\t\t\tSystem.out.println(\">>>>>>>>>>>>>-<<<<<<<<<<<<<\");\n\t\t\treturn (null);\n\t\t}\n\t}", "Country getCountry();", "@RequestMapping(value = \"/allCharite\")\n\tpublic List<Charite> getAllCharite() {\n\t\treturn chariteDAO.getAllChariteList();\n\t}", "@Transactional(readOnly = true)\n public List<Currency> findAll() {\n log.debug(\"Request to get all Currencies\");\n return currencyRepository.findAll();\n }", "com.google.protobuf.ByteString\n getCountryBytes();", "public void getProvinceList() {\n Log.i(TAG, \"getProvinceList\");\n this.mCityShowMode = false;\n if (this.mCityCursor != null) {\n this.mCityCursor.close();\n this.mCityCursor = null;\n }\n if (this.mCityRedMan != null) {\n this.mCityCursor = this.mCityRedMan.queryProvinceRec();\n if (this.mCityCursor != null) {\n Log.i(TAG, \"mCityCursor count = \" + this.mCityCursor.getCount());\n } else {\n Log.i(TAG, \"mCityCursor count = null\");\n }\n }\n }", "java.lang.String getCountry();", "java.lang.String getCountry();", "@Override\n @Transactional(readOnly = true)\n public List<CitiesDTO> findAll() {\n log.debug(\"Request to get all Cities\");\n return citiesRepository.findAll().stream()\n .map(citiesMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "private void _generateContinents() {\n this.continents.put(ContinentName.NorthAmerica, new CountryName[] {\n CountryName.Alaska,\n CountryName.WesternCanada,\n CountryName.CentralAmerica,\n CountryName.EasternUS,\n CountryName.Greenland,\n CountryName.NorthwestTerritories,\n CountryName.CentralCanada,\n CountryName.EasternCanada,\n CountryName.WesternUS\n });\n this.continents.put(ContinentName.SouthAmerica, new CountryName[] {\n CountryName.Argentina,\n CountryName.Brazil,\n CountryName.Peru,\n CountryName.Venezuela\n });\n this.continents.put(ContinentName.Europe, new CountryName[] {\n CountryName.GreatBritain,\n CountryName.Iceland,\n CountryName.NorthernEurope,\n CountryName.Scandinavia,\n CountryName.SouthernEurope,\n CountryName.Ukraine,\n CountryName.WesternEurope\n });\n this.continents.put(ContinentName.Africa, new CountryName[] {\n CountryName.Congo,\n CountryName.EastAfrica,\n CountryName.Egypt,\n CountryName.Madagascar,\n CountryName.NorthAfrica,\n CountryName.SouthAfrica\n });\n this.continents.put(ContinentName.Asia, new CountryName[] {\n CountryName.Afghanistan,\n CountryName.China,\n CountryName.India,\n CountryName.Irkutsk,\n CountryName.Japan,\n CountryName.Kamchatka,\n CountryName.MiddleEast,\n CountryName.Mongolia,\n CountryName.Siam,\n CountryName.Siberia,\n CountryName.Ural,\n CountryName.Yakutsk\n });\n this.continents.put(ContinentName.Australia, new CountryName[] {\n CountryName.EasternAustralia,\n CountryName.Indonesia,\n CountryName.NewGuinea,\n CountryName.WesternAustralia\n });\n }", "com.google.protobuf.ByteString\n getCountryBytes();", "private void buildCountryComboBox() {\n ResultSet rs = DatabaseConnection.performQuery(\n session.getConn(),\n Path.of(Constants.QUERY_SCRIPT_PATH_BASE + \"SelectCountryByID.sql\"),\n Collections.singletonList(Constants.WILDCARD)\n );\n\n ObservableList<Country> countries = FXCollections.observableArrayList();\n try {\n if (rs != null) {\n while (rs.next()) {\n int id = rs.getInt(\"Country_ID\");\n String name = rs.getString(\"Country\");\n countries.add(new Country(id, name));\n }\n }\n } catch (Exception e) {\n Common.handleException(e);\n }\n\n countryComboBox.setItems(countries);\n\n countryComboBox.setConverter(new StringConverter<>() {\n @Override\n public String toString(Country item) {\n return item.getCountryName();\n }\n\n @Override\n public Country fromString(String string) {\n return null;\n }\n });\n }", "public ArrayList<CityBean> getProvinces(){\n SQLiteDatabase database = DbManager.getInstance().openDatabase();\n String[] columns = {\"AREA_CODE\", \"AREA_NAME\", \"TYPE\", \"PARENT_ID\"};\n String[] where = {\"1\"};\n Cursor cursor = database.query(\"area\", columns, \"TYPE=?\", where, null, null, null);\n ArrayList<CityBean> beans = new ArrayList<CityBean>();\n while(cursor.moveToNext()){\n CityBean bean = new CityBean();\n bean.area_code = cursor.getInt(cursor.getColumnIndex(\"AREA_CODE\"));\n bean.area_name = cursor.getString(cursor.getColumnIndex(\"AREA_NAME\"));\n bean.type = cursor.getInt(cursor.getColumnIndex(\"TYPE\"));\n bean.parent_id = cursor.getInt(cursor.getColumnIndex(\"PARENT_ID\"));\n beans.add(bean);\n }\n cursor.close();\n// database.close();\n DbManager.getInstance().closeDatabase();\n return beans;\n }" ]
[ "0.7794049", "0.773989", "0.73732823", "0.73251677", "0.7267525", "0.7219194", "0.7084281", "0.70362276", "0.7032681", "0.6961364", "0.6874716", "0.6835743", "0.6675571", "0.6658932", "0.66341555", "0.65624464", "0.6542122", "0.6537821", "0.6523227", "0.6457587", "0.64469457", "0.6439361", "0.64254415", "0.6418234", "0.6301924", "0.6298147", "0.6273609", "0.6213032", "0.61915934", "0.6189027", "0.61836797", "0.61499196", "0.60795057", "0.6066984", "0.6039863", "0.6027088", "0.60267395", "0.602371", "0.60229194", "0.6013837", "0.6005672", "0.5996915", "0.5981804", "0.5970129", "0.59498346", "0.59462136", "0.59447855", "0.59287626", "0.5927734", "0.59015274", "0.5889301", "0.5880962", "0.5879765", "0.58705586", "0.5868373", "0.5860407", "0.5857415", "0.58347636", "0.5829147", "0.5821248", "0.5821005", "0.5817814", "0.58108664", "0.57930887", "0.5774655", "0.5770648", "0.57636976", "0.57617754", "0.57384574", "0.57266426", "0.5717033", "0.57133615", "0.5695984", "0.5687878", "0.5669721", "0.5651852", "0.5640837", "0.5635149", "0.56336796", "0.5625916", "0.5616098", "0.55832106", "0.55806607", "0.5555688", "0.554939", "0.55356807", "0.5532769", "0.5531542", "0.5517226", "0.55121636", "0.55114764", "0.5509362", "0.54967165", "0.549404", "0.549404", "0.5488112", "0.54740673", "0.5473947", "0.54712886", "0.5471051" ]
0.7614647
2
TODO Autogenerated method stub
@Override public boolean isTokenValid(String token) { LoginToken loginToken = getLoginTokenByToken(token); if (loginToken != null) { Date createTime = loginToken.getCreateTime(); Date current = new Date(); System.out.println("过了:"+Math.abs(current.getTime() - createTime.getTime())); System.out.println("过了:"+Math.abs(current.getTime() - createTime.getTime()) / (1000 *60)); if (Math.abs(current.getTime() - createTime.getTime()) / (1000 * 60) >= 60) { loginToken.setStatus(Constant.LOGIN_TOKEN_STATUS_INVALID); loginTokenMapper.updateByPrimaryKey(loginToken); return false; } else { loginToken.setCreateTime(current); loginTokenMapper.updateByPrimaryKey(loginToken); return true; } }else { return false; } }
{ "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
/ renamed from: android.support.v4.c.a.q
public interface C0193q { Drawable m1610a(); void m1611a(Drawable drawable); void setTint(int i); void setTintList(ColorStateList colorStateList); void setTintMode(Mode mode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static com.google.android.gms.internal.zzpc zza(android.support.p000v4.app.FragmentActivity r3) {\n /*\n r0 = zzaoq;\n r0 = r0.get(r3);\n r0 = (java.lang.ref.WeakReference) r0;\n if (r0 == 0) goto L_0x0013;\n L_0x000a:\n r0 = r0.get();\n r0 = (com.google.android.gms.internal.zzpc) r0;\n if (r0 == 0) goto L_0x0013;\n L_0x0012:\n return r0;\n L_0x0013:\n r0 = r3.getSupportFragmentManager();\t Catch:{ ClassCastException -> 0x0048 }\n r1 = \"SupportLifecycleFragmentImpl\";\n r0 = r0.findFragmentByTag(r1);\t Catch:{ ClassCastException -> 0x0048 }\n r0 = (com.google.android.gms.internal.zzpc) r0;\t Catch:{ ClassCastException -> 0x0048 }\n if (r0 == 0) goto L_0x0027;\n L_0x0021:\n r1 = r0.isRemoving();\n if (r1 == 0) goto L_0x003d;\n L_0x0027:\n r0 = new com.google.android.gms.internal.zzpc;\n r0.<init>();\n r1 = r3.getSupportFragmentManager();\n r1 = r1.beginTransaction();\n r2 = \"SupportLifecycleFragmentImpl\";\n r1 = r1.add(r0, r2);\n r1.commitAllowingStateLoss();\n L_0x003d:\n r1 = zzaoq;\n r2 = new java.lang.ref.WeakReference;\n r2.<init>(r0);\n r1.put(r3, r2);\n goto L_0x0012;\n L_0x0048:\n r0 = move-exception;\n r1 = new java.lang.IllegalStateException;\n r2 = \"Fragment with tag SupportLifecycleFragmentImpl is not a SupportLifecycleFragmentImpl\";\n r1.<init>(r2, r0);\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzpc.zza(android.support.v4.app.FragmentActivity):com.google.android.gms.internal.zzpc\");\n }", "static void q4(){\t\n\t}", "@Override\n\tpublic void q() {\n\n\t}", "final void d(android.support.v7.widget.RecyclerView.t r13, int r14) {\n /*\n r12 = this;\n r0 = r12.XG;\n if (r13 != r0) goto L_0x0009;\n L_0x0004:\n r0 = r12.XQ;\n if (r14 != r0) goto L_0x0009;\n L_0x0008:\n return;\n L_0x0009:\n r0 = -9223372036854775808;\n r12.Yb = r0;\n r4 = r12.XQ;\n r0 = 1;\n r12.a(r13, r0);\n r12.XQ = r14;\n r0 = 2;\n if (r14 != r0) goto L_0x0034;\n L_0x0018:\n r0 = r13.SU;\n r12.XX = r0;\n r0 = android.os.Build.VERSION.SDK_INT;\n r1 = 21;\n if (r0 >= r1) goto L_0x0034;\n L_0x0022:\n r0 = r12.RJ;\n if (r0 != 0) goto L_0x002d;\n L_0x0026:\n r0 = new android.support.v7.widget.a.a$5;\n r0.<init>(r12);\n r12.RJ = r0;\n L_0x002d:\n r0 = r12.Sa;\n r1 = r12.RJ;\n r0.setChildDrawingOrderCallback(r1);\n L_0x0034:\n r0 = 1;\n r1 = r14 * 8;\n r1 = r1 + 8;\n r0 = r0 << r1;\n r11 = r0 + -1;\n r0 = 0;\n r1 = r12.XG;\n if (r1 == 0) goto L_0x00d1;\n L_0x0041:\n r2 = r12.XG;\n r1 = r2.SU;\n r1 = r1.getParent();\n if (r1 == 0) goto L_0x017d;\n L_0x004b:\n r0 = 2;\n if (r4 == r0) goto L_0x0132;\n L_0x004e:\n r0 = r12.XQ;\n r1 = 2;\n if (r0 == r1) goto L_0x0132;\n L_0x0053:\n r0 = r12.XP;\n r0 = r0.hm();\n r1 = r12.Sa;\n r1 = android.support.v4.view.z.I(r1);\n r0 = android.support.v7.widget.a.a.a.ap(r0, r1);\n r1 = 65280; // 0xff00 float:9.1477E-41 double:3.22526E-319;\n r0 = r0 & r1;\n r0 = r0 >> 8;\n if (r0 == 0) goto L_0x0132;\n L_0x006b:\n r1 = r12.XL;\n r1 = java.lang.Math.abs(r1);\n r3 = r12.XM;\n r3 = java.lang.Math.abs(r3);\n r1 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1));\n if (r1 <= 0) goto L_0x0135;\n L_0x007b:\n r9 = r12.bS(r0);\n if (r9 <= 0) goto L_0x012c;\n L_0x0081:\n r0 = r9 & 0;\n if (r0 != 0) goto L_0x008f;\n L_0x0085:\n r0 = r12.Sa;\n r0 = android.support.v4.view.z.I(r0);\n r9 = android.support.v7.widget.a.a.a.ao(r9, r0);\n L_0x008f:\n r12.hl();\n switch(r9) {\n case 1: goto L_0x0163;\n case 2: goto L_0x0163;\n case 4: goto L_0x0151;\n case 8: goto L_0x0151;\n case 16: goto L_0x0151;\n case 32: goto L_0x0151;\n default: goto L_0x0095;\n };\n L_0x0095:\n r7 = 0;\n r8 = 0;\n L_0x0097:\n r0 = 2;\n if (r4 != r0) goto L_0x0175;\n L_0x009a:\n r3 = 8;\n L_0x009c:\n r0 = r12.XF;\n r12.c(r0);\n r0 = r12.XF;\n r1 = 0;\n r5 = r0[r1];\n r0 = r12.XF;\n r1 = 1;\n r6 = r0[r1];\n r0 = new android.support.v7.widget.a.a$3;\n r1 = r12;\n r10 = r2;\n r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10);\n r1 = r12.Sa;\n r2 = android.support.v7.widget.a.a.a.f(r1, r3);\n r1 = r0.Yo;\n r1.setDuration(r2);\n r1 = r12.XS;\n r1.add(r0);\n r1 = r0.Sh;\n r2 = 0;\n r1.T(r2);\n r0 = r0.Yo;\n r0.start();\n r0 = 1;\n L_0x00ce:\n r1 = 0;\n r12.XG = r1;\n L_0x00d1:\n r1 = r0;\n if (r13 == 0) goto L_0x0101;\n L_0x00d4:\n r0 = r12.Sa;\n r0 = android.support.v7.widget.a.a.a.B(r0);\n r0 = r0 & r11;\n r2 = r12.XQ;\n r2 = r2 * 8;\n r0 = r0 >> r2;\n r12.XR = r0;\n r0 = r13.SU;\n r0 = r0.getLeft();\n r0 = (float) r0;\n r12.XN = r0;\n r0 = r13.SU;\n r0 = r0.getTop();\n r0 = (float) r0;\n r12.XO = r0;\n r12.XG = r13;\n r0 = 2;\n if (r14 != r0) goto L_0x0101;\n L_0x00f9:\n r0 = r12.XG;\n r0 = r0.SU;\n r2 = 0;\n r0.performHapticFeedback(r2);\n L_0x0101:\n r0 = r12.Sa;\n r2 = r0.getParent();\n if (r2 == 0) goto L_0x0111;\n L_0x0109:\n r0 = r12.XG;\n if (r0 == 0) goto L_0x018b;\n L_0x010d:\n r0 = 1;\n L_0x010e:\n r2.requestDisallowInterceptTouchEvent(r0);\n L_0x0111:\n if (r1 != 0) goto L_0x011c;\n L_0x0113:\n r0 = r12.Sa;\n r0 = r0.getLayoutManager();\n r1 = 1;\n r0.Sc = r1;\n L_0x011c:\n r0 = r12.XP;\n r1 = r12.XG;\n r2 = r12.XQ;\n r0.e(r1, r2);\n r0 = r12.Sa;\n r0.invalidate();\n goto L_0x0008;\n L_0x012c:\n r9 = r12.bT(r0);\n if (r9 > 0) goto L_0x008f;\n L_0x0132:\n r9 = 0;\n goto L_0x008f;\n L_0x0135:\n r9 = r12.bT(r0);\n if (r9 > 0) goto L_0x008f;\n L_0x013b:\n r9 = r12.bS(r0);\n if (r9 <= 0) goto L_0x0132;\n L_0x0141:\n r0 = r9 & 0;\n if (r0 != 0) goto L_0x008f;\n L_0x0145:\n r0 = r12.Sa;\n r0 = android.support.v4.view.z.I(r0);\n r9 = android.support.v7.widget.a.a.a.ao(r9, r0);\n goto L_0x008f;\n L_0x0151:\n r8 = 0;\n r0 = r12.XL;\n r0 = java.lang.Math.signum(r0);\n r1 = r12.Sa;\n r1 = r1.getWidth();\n r1 = (float) r1;\n r7 = r0 * r1;\n goto L_0x0097;\n L_0x0163:\n r7 = 0;\n r0 = r12.XM;\n r0 = java.lang.Math.signum(r0);\n r1 = r12.Sa;\n r1 = r1.getHeight();\n r1 = (float) r1;\n r8 = r0 * r1;\n goto L_0x0097;\n L_0x0175:\n if (r9 <= 0) goto L_0x017a;\n L_0x0177:\n r3 = 2;\n goto L_0x009c;\n L_0x017a:\n r3 = 4;\n goto L_0x009c;\n L_0x017d:\n r1 = r2.SU;\n r12.bx(r1);\n r1 = r12.XP;\n r3 = r12.Sa;\n r1.c(r3, r2);\n goto L_0x00ce;\n L_0x018b:\n r0 = 0;\n goto L_0x010e;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v7.widget.a.a.d(android.support.v7.widget.RecyclerView$t, int):void\");\n }", "private OriginMusicListFragment m116771Q() {\n C0608j childFragmentManager = getChildFragmentManager();\n StringBuilder sb = new StringBuilder();\n sb.append(f94515y);\n sb.append(0);\n Fragment a = childFragmentManager.mo2644a(sb.toString());\n if (a instanceof OriginMusicListFragment) {\n return (OriginMusicListFragment) a;\n }\n return OriginMusicListFragment.m108624a(C21115b.m71197a().getCurUserId(), true);\n }", "public static /* synthetic */ void m125938a(String str, long j, BaseFragment baseFragment, Response response) throws Exception {\n if (response.mo134996e()) {\n boolean z = false;\n Topic topic = (Topic) response.mo134997f();\n if (!(topic == null || topic.headerCard == null || topic.headerCard.superTopic == null || topic.headerCard.superTopic.question == null)) {\n z = C25382r.m123891a(new C25382r.AbstractC25383a() {\n /* class com.zhihu.android.topic.platfrom.p1960c.p1961a.p1962a.$$Lambda$a$7j5QB_qk6Y6qnMeJrYaytAoks2s */\n\n @Override // com.zhihu.android.topic.p1945h.C25382r.AbstractC25383a\n public final boolean get() {\n return AdSuperTopicDelegate.m125947g(Topic.this);\n }\n });\n }\n if (!z || str.equals(\"bottomButton\")) {\n InstanceProvider.m107965c(QuestionAnswerPluginInterface.class).mo131261a((AbstractC32235e) new AbstractC32235e(j, baseFragment) {\n /* class com.zhihu.android.topic.platfrom.p1960c.p1961a.p1962a.$$Lambda$a$dSsGi_7npc3XBc7NzIvi4r2zbrA */\n private final /* synthetic */ long f$0;\n private final /* synthetic */ BaseFragment f$1;\n\n {\n this.f$0 = r1;\n this.f$1 = r3;\n }\n\n @Override // java8.util.p2234b.AbstractC32235e\n public final void accept(Object obj) {\n ((QuestionAnswerPluginInterface) obj).openEditorFragment(this.f$0, this.f$1);\n }\n });\n f90275a = true;\n }\n }\n }", "public void a(b.a.d.b r4) {\r\n /*\r\n // Method dump skipped, instructions count: 116\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.appcompat.widget.ActionBarContextView.a(b.a.d.b):void\");\r\n }", "public interface C4522b {\n /* renamed from: a */\n void mo12143a();\n\n /* renamed from: a */\n void mo12147a(View view);\n\n /* renamed from: b */\n android.view.View mo12148b();\n\n /* renamed from: c */\n Room mo12151c();\n\n /* renamed from: d */\n C0043i mo12153d();\n\n void dismiss();\n\n void setCancelable(boolean z);\n }", "@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\n }", "@Override // com.zhihu.android.sugaradapter.SugarHolder\n /* renamed from: a */\n public void mo56529a(Object obj) {\n }", "@android.support.annotation.WorkerThread\n private java.util.ArrayList<com.iqoption.dto.Event> W(java.lang.String r14, java.lang.String r15) {\n /*\n r13 = this;\n r0 = new java.util.ArrayList;\n r0.<init>();\n r1 = 0;\n r2 = r13.getReadableDatabase();\t Catch:{ all -> 0x00f9 }\n r3 = \"_id\";\n r4 = \"category\";\n r5 = \"name\";\n r6 = \"value\";\n r7 = \"time\";\n r8 = \"duration\";\n r9 = \"technical_logs\";\n r10 = \"parameters\";\n r11 = \"platform_id\";\n r12 = \"app_version\";\n r4 = new java.lang.String[]{r3, r4, r5, r6, r7, r8, r9, r10, r11, r12};\t Catch:{ all -> 0x00f9 }\n r3 = \"events\";\n r6 = 0;\n r7 = 0;\n r8 = 0;\n r9 = 0;\n r5 = r15;\n r10 = r14;\n r14 = r2.query(r3, r4, r5, r6, r7, r8, r9, r10);\t Catch:{ all -> 0x00f9 }\n if (r14 == 0) goto L_0x00ee;\n L_0x0033:\n r15 = r14.moveToLast();\t Catch:{ all -> 0x00ec }\n if (r15 != 0) goto L_0x0042;\n L_0x0039:\n r14.close();\t Catch:{ all -> 0x00ec }\n if (r14 == 0) goto L_0x0041;\n L_0x003e:\n r14.close();\n L_0x0041:\n return r0;\n L_0x0042:\n r15 = 2;\n r15 = r14.getString(r15);\t Catch:{ all -> 0x00ec }\n r2 = new com.iqoption.dto.Event;\t Catch:{ all -> 0x00ec }\n r3 = 0;\n r4 = r14.getLong(r3);\t Catch:{ all -> 0x00ec }\n r4 = java.lang.Long.valueOf(r4);\t Catch:{ all -> 0x00ec }\n r5 = 1;\n r6 = r14.getString(r5);\t Catch:{ all -> 0x00ec }\n r2.<init>(r4, r6, r15);\t Catch:{ all -> 0x00ec }\n r4 = 3;\n r6 = r14.getDouble(r4);\t Catch:{ all -> 0x00ec }\n r4 = java.lang.Double.valueOf(r6);\t Catch:{ all -> 0x00ec }\n r2.value = r4;\t Catch:{ all -> 0x00ec }\n r4 = 4;\n r6 = r14.getLong(r4);\t Catch:{ all -> 0x00ec }\n r4 = java.lang.Long.valueOf(r6);\t Catch:{ all -> 0x00ec }\n r2.time = r4;\t Catch:{ all -> 0x00ec }\n r4 = 5;\n r6 = r14.getLong(r4);\t Catch:{ all -> 0x00ec }\n r4 = java.lang.Long.valueOf(r6);\t Catch:{ all -> 0x00ec }\n r2.duration = r4;\t Catch:{ all -> 0x00ec }\n r4 = 6;\n r4 = r14.getInt(r4);\t Catch:{ all -> 0x00ec }\n if (r4 != r5) goto L_0x0083;\n L_0x0082:\n r3 = 1;\n L_0x0083:\n r3 = java.lang.Boolean.valueOf(r3);\t Catch:{ all -> 0x00ec }\n r2.technical_logs = r3;\t Catch:{ all -> 0x00ec }\n r3 = 7;\n r3 = r14.getString(r3);\t Catch:{ all -> 0x00ec }\n if (r3 == 0) goto L_0x00c6;\n L_0x0090:\n r4 = com.iqoption.util.ah.aGi();\t Catch:{ Exception -> 0x009b }\n r4 = r4.parse(r3);\t Catch:{ Exception -> 0x009b }\n r2.parameters = r4;\t Catch:{ Exception -> 0x009b }\n goto L_0x00c6;\n L_0x009b:\n r4 = move-exception;\n if (r1 != 0) goto L_0x00a3;\n L_0x009e:\n r1 = new java.util.ArrayList;\t Catch:{ all -> 0x00ec }\n r1.<init>();\t Catch:{ all -> 0x00ec }\n L_0x00a3:\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00ec }\n r5.<init>();\t Catch:{ all -> 0x00ec }\n r6 = \"unable to parse event \";\n r5.append(r6);\t Catch:{ all -> 0x00ec }\n r5.append(r15);\t Catch:{ all -> 0x00ec }\n r15 = \", params=\";\n r5.append(r15);\t Catch:{ all -> 0x00ec }\n r5.append(r3);\t Catch:{ all -> 0x00ec }\n r15 = r5.toString();\t Catch:{ all -> 0x00ec }\n com.iqoption.util.k.log(r15);\t Catch:{ all -> 0x00ec }\n com.iqoption.util.k.c(r4);\t Catch:{ all -> 0x00ec }\n r1.add(r2);\t Catch:{ all -> 0x00ec }\n L_0x00c6:\n r15 = 8;\n r15 = r14.getInt(r15);\t Catch:{ all -> 0x00ec }\n r15 = java.lang.Integer.valueOf(r15);\t Catch:{ all -> 0x00ec }\n r2.platform_id = r15;\t Catch:{ all -> 0x00ec }\n r15 = 9;\n r15 = r14.getString(r15);\t Catch:{ all -> 0x00ec }\n r2.app_version = r15;\t Catch:{ all -> 0x00ec }\n r15 = r2.app_version;\t Catch:{ all -> 0x00ec }\n if (r15 != 0) goto L_0x00e2;\n L_0x00de:\n r15 = \"5.5.1\";\n r2.app_version = r15;\t Catch:{ all -> 0x00ec }\n L_0x00e2:\n r0.add(r2);\t Catch:{ all -> 0x00ec }\n r15 = r14.moveToPrevious();\t Catch:{ all -> 0x00ec }\n if (r15 != 0) goto L_0x0042;\n L_0x00eb:\n goto L_0x00ee;\n L_0x00ec:\n r15 = move-exception;\n goto L_0x00fb;\n L_0x00ee:\n if (r14 == 0) goto L_0x00f3;\n L_0x00f0:\n r14.close();\n L_0x00f3:\n if (r1 == 0) goto L_0x00f8;\n L_0x00f5:\n r13.f(r1);\n L_0x00f8:\n return r0;\n L_0x00f9:\n r15 = move-exception;\n r14 = r1;\n L_0x00fb:\n if (r14 == 0) goto L_0x0100;\n L_0x00fd:\n r14.close();\n L_0x0100:\n throw r15;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.app.db.a.W(java.lang.String, java.lang.String):java.util.ArrayList<com.iqoption.dto.Event>\");\n }", "@androidx.annotation.WorkerThread\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final boolean zzc(com.google.firebase.iid.FirebaseInstanceId r5) {\n /*\n r4 = this;\n L_0x0000:\n monitor-enter(r4)\n java.lang.String r0 = r4.zzar() // Catch:{ all -> 0x0042 }\n r1 = 1\n if (r0 != 0) goto L_0x0017\n boolean r5 = com.google.firebase.iid.FirebaseInstanceId.zzm() // Catch:{ all -> 0x0042 }\n if (r5 == 0) goto L_0x0015\n java.lang.String r5 = \"FirebaseInstanceId\"\n java.lang.String r0 = \"topic sync succeeded\"\n android.util.Log.d(r5, r0) // Catch:{ all -> 0x0042 }\n L_0x0015:\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n return r1\n L_0x0017:\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n boolean r2 = zza(r5, r0)\n if (r2 != 0) goto L_0x0020\n r5 = 0\n return r5\n L_0x0020:\n monitor-enter(r4)\n java.util.Map<java.lang.Integer, com.google.android.gms.tasks.TaskCompletionSource<java.lang.Void>> r2 = r4.zzdx // Catch:{ all -> 0x003f }\n int r3 = r4.zzdw // Catch:{ all -> 0x003f }\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3) // Catch:{ all -> 0x003f }\n java.lang.Object r2 = r2.remove(r3) // Catch:{ all -> 0x003f }\n com.google.android.gms.tasks.TaskCompletionSource r2 = (com.google.android.gms.tasks.TaskCompletionSource) r2 // Catch:{ all -> 0x003f }\n r4.zzn(r0) // Catch:{ all -> 0x003f }\n int r0 = r4.zzdw // Catch:{ all -> 0x003f }\n int r0 = r0 + r1\n r4.zzdw = r0 // Catch:{ all -> 0x003f }\n monitor-exit(r4) // Catch:{ all -> 0x003f }\n if (r2 == 0) goto L_0x0000\n r0 = 0\n r2.setResult(r0)\n goto L_0x0000\n L_0x003f:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x003f }\n throw r5\n L_0x0042:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.iid.zzba.zzc(com.google.firebase.iid.FirebaseInstanceId):boolean\");\n }", "public void M(android.view.View r6) {\n /*\n r5 = this;\n r0 = \"v\";\n kotlin.jvm.internal.i.f(r6, r0);\n r6 = r5.this$0;\n r6 = r6.ayL;\n r0 = 0;\n if (r6 == 0) goto L_0x001a;\n L_0x000f:\n r6 = r6.Km();\n if (r6 == 0) goto L_0x001a;\n L_0x0015:\n r6 = r6.XA();\n goto L_0x001b;\n L_0x001a:\n r6 = r0;\n L_0x001b:\n if (r6 != 0) goto L_0x0020;\n L_0x001d:\n kotlin.jvm.internal.i.bnJ();\n L_0x0020:\n r1 = com.iqoption.deposit.light.menu.currency.c.cFb;\n r2 = new com.iqoption.deposit.c.a.b;\n r6 = (java.util.List) r6;\n r3 = r5.this$0;\n r3 = r3.cFE;\n if (r3 == 0) goto L_0x0037;\n L_0x002e:\n r3 = r3.getId();\n r3 = java.lang.Long.valueOf(r3);\n goto L_0x0038;\n L_0x0037:\n r3 = r0;\n L_0x0038:\n r2.<init>(r6, r3);\n r6 = r1.a(r2);\n r1 = com.iqoption.deposit.navigator.b.cGp;\n r2 = r5.this$0;\n r2 = (androidx.fragment.app.Fragment) r2;\n r1 = r1.P(r2);\n r2 = 0;\n r3 = 2;\n com.iqoption.core.ui.d.g.b(r1, r6, r2, r3, r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c$r.M(android.view.View):void\");\n }", "private final void m11061a(android.app.Activity r5, app.zenly.locator.experimental.inbox.p092i.C3708a r6) {\n /*\n r4 = this;\n app.zenly.locator.experimental.inbox.j.b r0 = r6.mo10234a()\n co.znly.models.i r0 = r0.mo10237a()\n if (r0 == 0) goto L_0x0011\n java.util.List r0 = r0.getPhoneNumbersList()\n if (r0 == 0) goto L_0x0011\n goto L_0x0015\n L_0x0011:\n java.util.List r0 = kotlin.collections.C12848o.m33640a()\n L_0x0015:\n androidx.appcompat.app.a$a r1 = new androidx.appcompat.app.a$a\n r1.<init>(r5)\n r2 = 2131231362(0x7f080282, float:1.8078803E38)\n r1.mo527a(r2)\n r2 = 2132018240(0x7f140440, float:1.9674781E38)\n r1.mo548c(r2)\n app.zenly.locator.experimental.inbox.b$a r2 = new app.zenly.locator.experimental.inbox.b$a\n r2.<init>(r4, r6)\n r1.mo530a(r2)\n android.widget.ArrayAdapter r2 = new android.widget.ArrayAdapter\n r3 = 2131624347(0x7f0e019b, float:1.8875871E38)\n r2.<init>(r5, r3, r0)\n app.zenly.locator.experimental.inbox.b$b r3 = new app.zenly.locator.experimental.inbox.b$b\n r3.<init>(r4, r0, r6, r5)\n r1.mo536a(r2, r3)\n androidx.appcompat.app.a r5 = r1.mo542a()\n r5.show()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: app.zenly.locator.experimental.inbox.C3689b.m11061a(android.app.Activity, app.zenly.locator.experimental.inbox.i.a):void\");\n }", "@Override // com.zhihu.android.p1480db.fragment.customview.DbEditorBaseCustomView\n /* renamed from: a */\n public void mo88619a(View view) {\n m93356b(view);\n m93350a();\n m93355b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public void mo1974q() throws cf {\r\n }", "private void m125715i() {\n RxBus.m86979a().mo84365a(TopicReviewClickEvent.class, this).compose(bindUntilEvent(FragmentEvent.DESTROY_VIEW)).observeOn(AndroidSchedulers.m147557a()).subscribe(new AbstractC31735g() {\n /* class com.zhihu.android.topic.platfrom.$$Lambda$TopicFragment$ilStsapfhY6AmqXsirZvIVpDyM */\n\n @Override // p2189io.reactivex.p2209c.AbstractC31735g\n public final void accept(Object obj) {\n TopicFragment.this.m125688a((TopicFragment) ((TopicReviewClickEvent) obj));\n }\n }, $$Lambda$9kS41GgiqU3yr14QLLPITIizPGM.INSTANCE);\n RxBus.m86979a().mo84365a(TopicActiveAnswererShareEvent.class, this).compose(bindUntilEvent(FragmentEvent.DESTROY_VIEW)).observeOn(AndroidSchedulers.m147557a()).subscribe(new AbstractC31735g() {\n /* class com.zhihu.android.topic.platfrom.$$Lambda$TopicFragment$BjK9qQqNBfZ6wBlmaowQpTV4GyQ */\n\n @Override // p2189io.reactivex.p2209c.AbstractC31735g\n public final void accept(Object obj) {\n TopicFragment.this.m125687a((TopicFragment) ((TopicActiveAnswererShareEvent) obj));\n }\n }, $$Lambda$9kS41GgiqU3yr14QLLPITIizPGM.INSTANCE);\n RxBus.m86979a().mo84365a(TopicActiveAnswererJumpEvent.class, this).compose(bindUntilEvent(FragmentEvent.DESTROY_VIEW)).observeOn(AndroidSchedulers.m147557a()).subscribe(new AbstractC31735g() {\n /* class com.zhihu.android.topic.platfrom.$$Lambda$TopicFragment$_g34FcL5FmfymiORzp8CR0wVoH8 */\n\n @Override // p2189io.reactivex.p2209c.AbstractC31735g\n public final void accept(Object obj) {\n TopicFragment.this.m125686a((TopicFragment) ((TopicActiveAnswererJumpEvent) obj));\n }\n }, $$Lambda$9kS41GgiqU3yr14QLLPITIizPGM.INSTANCE);\n }", "public boolean b(com.igexin.push.core.bean.PushTaskBean r5, com.igexin.push.core.bean.BaseAction r6) {\n /*\n r4 = this;\n r6 = (com.igexin.push.extension.distribution.basic.b.q) r6;\n r0 = r6.b();\t Catch:{ Exception -> 0x00d7 }\n r1 = 0;\n r0 = android.content.Intent.parseUri(r0, r1);\t Catch:{ Exception -> 0x00d7 }\n r2 = r6.a();\t Catch:{ Exception -> 0x009b }\n r3 = \"0\";\n r2 = r2.equals(r3);\t Catch:{ Exception -> 0x009b }\n if (r2 == 0) goto L_0x0036;\n L_0x0017:\n r1 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r0.setFlags(r1);\t Catch:{ Exception -> 0x009b }\n r1 = com.igexin.push.core.g.f;\t Catch:{ Exception -> 0x009b }\n r1.startActivity(r0);\t Catch:{ Exception -> 0x009b }\n r0 = com.igexin.push.core.a.f.a();\t Catch:{ Exception -> 0x009b }\n r1 = r5.getTaskId();\t Catch:{ Exception -> 0x009b }\n r2 = r5.getMessageId();\t Catch:{ Exception -> 0x009b }\n L_0x002d:\n r3 = r6.getDoActionId();\t Catch:{ Exception -> 0x009b }\n L_0x0031:\n r0.a(r1, r2, r3);\t Catch:{ Exception -> 0x009b }\n goto L_0x00d7;\n L_0x0036:\n r2 = r6.a();\t Catch:{ Exception -> 0x009b }\n r3 = \"1\";\n r2 = r2.equals(r3);\t Catch:{ Exception -> 0x009b }\n if (r2 == 0) goto L_0x00d7;\n L_0x0042:\n r2 = com.igexin.push.core.g.f;\t Catch:{ Exception -> 0x009b }\n r2 = r2.getPackageManager();\t Catch:{ Exception -> 0x009b }\n r1 = r2.queryIntentServices(r0, r1);\t Catch:{ Exception -> 0x009b }\n if (r1 == 0) goto L_0x0066;\n L_0x004e:\n r1 = r1.size();\t Catch:{ Exception -> 0x009b }\n if (r1 <= 0) goto L_0x0066;\n L_0x0054:\n r1 = com.igexin.push.core.g.f;\t Catch:{ Exception -> 0x009b }\n r1.startService(r0);\t Catch:{ Exception -> 0x009b }\n r0 = com.igexin.push.core.a.f.a();\t Catch:{ Exception -> 0x009b }\n r1 = r5.getTaskId();\t Catch:{ Exception -> 0x009b }\n r2 = r5.getMessageId();\t Catch:{ Exception -> 0x009b }\n goto L_0x002d;\n L_0x0066:\n r0 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x009b }\n r0.<init>();\t Catch:{ Exception -> 0x009b }\n r1 = \"StartIntentAction err intent=\";\n r0.append(r1);\t Catch:{ Exception -> 0x009b }\n r1 = r6.b();\t Catch:{ Exception -> 0x009b }\n r0.append(r1);\t Catch:{ Exception -> 0x009b }\n r1 = \" t=\";\n r0.append(r1);\t Catch:{ Exception -> 0x009b }\n r1 = r6.a();\t Catch:{ Exception -> 0x009b }\n r0.append(r1);\t Catch:{ Exception -> 0x009b }\n r0 = r0.toString();\t Catch:{ Exception -> 0x009b }\n com.igexin.b.a.c.b.a(r0);\t Catch:{ Exception -> 0x009b }\n r0 = com.igexin.push.core.a.f.a();\t Catch:{ Exception -> 0x009b }\n r1 = r5.getTaskId();\t Catch:{ Exception -> 0x009b }\n r2 = r5.getMessageId();\t Catch:{ Exception -> 0x009b }\n r3 = r6.c();\t Catch:{ Exception -> 0x009b }\n goto L_0x0031;\n L_0x009b:\n r0 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00d7 }\n r0.<init>();\t Catch:{ Exception -> 0x00d7 }\n r1 = a;\t Catch:{ Exception -> 0x00d7 }\n r0.append(r1);\t Catch:{ Exception -> 0x00d7 }\n r1 = \"|executeAction err intent=\";\n r0.append(r1);\t Catch:{ Exception -> 0x00d7 }\n r1 = r6.b();\t Catch:{ Exception -> 0x00d7 }\n r0.append(r1);\t Catch:{ Exception -> 0x00d7 }\n r1 = \" t=\";\n r0.append(r1);\t Catch:{ Exception -> 0x00d7 }\n r1 = r6.a();\t Catch:{ Exception -> 0x00d7 }\n r0.append(r1);\t Catch:{ Exception -> 0x00d7 }\n r0 = r0.toString();\t Catch:{ Exception -> 0x00d7 }\n com.igexin.b.a.c.b.a(r0);\t Catch:{ Exception -> 0x00d7 }\n r0 = com.igexin.push.core.a.f.a();\t Catch:{ Exception -> 0x00d7 }\n r1 = r5.getTaskId();\t Catch:{ Exception -> 0x00d7 }\n r5 = r5.getMessageId();\t Catch:{ Exception -> 0x00d7 }\n r6 = r6.c();\t Catch:{ Exception -> 0x00d7 }\n r0.a(r1, r5, r6);\t Catch:{ Exception -> 0x00d7 }\n L_0x00d7:\n r5 = 1;\n return r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.igexin.push.extension.distribution.basic.a.w.b(com.igexin.push.core.bean.PushTaskBean, com.igexin.push.core.bean.BaseAction):boolean\");\n }", "@Override // com.tapjoy.internal.gt\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final void a(android.app.Activity r6) {\n /*\n // Method dump skipped, instructions count: 106\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tapjoy.internal.fp.a(android.app.Activity):void\");\n }", "public interface C1255b {\n /* renamed from: a */\n public static final C1255b f3973a = new C34771();\n /* renamed from: b */\n public static final C1255b f3974b = new C34782();\n /* renamed from: c */\n public static final C1255b f3975c = new C34793();\n /* renamed from: d */\n public static final C1255b f3976d = f3974b;\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$1 */\n class C34771 implements C1255b {\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n }\n\n C34771() {\n }\n }\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$2 */\n class C34782 implements C1255b {\n C34782() {\n }\n\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n if (th != null && Log.isLoggable(\"GlideExecutor\", 6)) {\n Log.e(\"GlideExecutor\", \"Request threw uncaught throwable\", th);\n }\n }\n }\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$3 */\n class C34793 implements C1255b {\n C34793() {\n }\n\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n if (th != null) {\n throw new RuntimeException(\"Request threw uncaught throwable\", th);\n }\n }\n }\n\n /* renamed from: a */\n void mo1031a(Throwable th);\n }", "public interface qy extends rh {\n @RestrictTo({Scope.LIBRARY, Scope.LIBRARY_GROUP, Scope.SUBCLASSES})\n int a(@NonNull ra raVar, boolean z);\n\n @RestrictTo({Scope.LIBRARY, Scope.LIBRARY_GROUP, Scope.SUBCLASSES})\n void a(float f, int i, int i2);\n\n @RestrictTo({Scope.LIBRARY, Scope.LIBRARY_GROUP, Scope.SUBCLASSES})\n void a(@NonNull qz qzVar, int i, int i2);\n\n @RestrictTo({Scope.LIBRARY, Scope.LIBRARY_GROUP, Scope.SUBCLASSES})\n void a(@NonNull ra raVar, int i, int i2);\n\n @RestrictTo({Scope.LIBRARY, Scope.LIBRARY_GROUP, Scope.SUBCLASSES})\n void a(boolean z, float f, int i, int i2, int i3);\n\n boolean a();\n\n @RestrictTo({Scope.LIBRARY, Scope.LIBRARY_GROUP, Scope.SUBCLASSES})\n void b(@NonNull ra raVar, int i, int i2);\n\n @NonNull\n SpinnerStyle getSpinnerStyle();\n\n @NonNull\n View getView();\n\n @RestrictTo({Scope.LIBRARY, Scope.LIBRARY_GROUP, Scope.SUBCLASSES})\n void setPrimaryColors(@ColorInt int... iArr);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public final void m12868a(int r5, int r6, android.content.Intent r7) {\n /*\n r4 = this;\n r0 = 1;\n r1 = 0;\n switch(r5) {\n case 1: goto L_0x0017;\n case 2: goto L_0x000c;\n default: goto L_0x0005;\n };\n L_0x0005:\n r0 = r1;\n L_0x0006:\n if (r0 == 0) goto L_0x0027;\n L_0x0008:\n m12867b(r4);\n L_0x000b:\n return;\n L_0x000c:\n r2 = r4.o();\n r2 = com.google.android.gms.common.GoogleApiAvailability.a(r2);\n if (r2 != 0) goto L_0x0005;\n L_0x0016:\n goto L_0x0006;\n L_0x0017:\n r2 = -1;\n if (r6 == r2) goto L_0x0006;\n L_0x001a:\n if (r6 != 0) goto L_0x0005;\n L_0x001c:\n r0 = new com.google.android.gms.common.ConnectionResult;\n r2 = 13;\n r3 = 0;\n r0.<init>(r2, r3);\n r4.f6901e = r0;\n goto L_0x0005;\n L_0x0027:\n r0 = r4.f6900d;\n r1 = r4.f6901e;\n m12865a(r4, r0, r1);\n goto L_0x000b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzmr.a(int, int, android.content.Intent):void\");\n }", "@Override\n\tpublic void myQuack() {\n\n\t}", "private void m93350a() {\n this.f64770d = new ArrayList();\n this.f64771e = SugarAdapter.C25135a.m122500a(this.f64770d).mo108935a(DbEditorHashTagSuggestHolder.class, new SugarHolder.AbstractC25133a() {\n /* class com.zhihu.android.p1480db.fragment.customview.C18241x65e739b4 */\n\n @Override // com.zhihu.android.sugaradapter.SugarHolder.AbstractC25133a\n public final void onCreated(SugarHolder sugarHolder) {\n DbEditorSuggestTagCustomView.this.m93352a((DbEditorSuggestTagCustomView) ((DbEditorHashTagSuggestHolder) sugarHolder));\n }\n }).mo108937a();\n this.f64767a.setAdapter(this.f64771e);\n this.f64767a.setLayoutManager(new DbLinearLayoutManager(getContext()));\n this.f64767a.setItemAnimator(new BaseItemAnimator());\n this.f64767a.addItemDecoration(new DbEditorHashTagSuggestDecoration(getContext()));\n }", "@androidx.annotation.WorkerThread\n /* Code decompiled incorrectly, please refer to instructions dump. */\n private static boolean zza(com.google.firebase.iid.FirebaseInstanceId r6, java.lang.String r7) {\n /*\n java.lang.String r0 = \"!\"\n java.lang.String[] r7 = r7.split(r0)\n int r0 = r7.length\n r1 = 1\n r2 = 2\n if (r0 != r2) goto L_0x0075\n r0 = 0\n r2 = r7[r0]\n r7 = r7[r1]\n r3 = -1\n int r4 = r2.hashCode() // Catch:{ IOException -> 0x0054 }\n r5 = 83\n if (r4 == r5) goto L_0x0028\n r5 = 85\n if (r4 == r5) goto L_0x001e\n goto L_0x0031\n L_0x001e:\n java.lang.String r4 = \"U\"\n boolean r2 = r2.equals(r4) // Catch:{ IOException -> 0x0054 }\n if (r2 == 0) goto L_0x0031\n r3 = 1\n goto L_0x0031\n L_0x0028:\n java.lang.String r4 = \"S\"\n boolean r2 = r2.equals(r4) // Catch:{ IOException -> 0x0054 }\n if (r2 == 0) goto L_0x0031\n r3 = 0\n L_0x0031:\n switch(r3) {\n case 0: goto L_0x0046;\n case 1: goto L_0x0035;\n default: goto L_0x0034;\n } // Catch:{ IOException -> 0x0054 }\n L_0x0034:\n goto L_0x0075\n L_0x0035:\n r6.zzc(r7) // Catch:{ IOException -> 0x0054 }\n boolean r6 = com.google.firebase.iid.FirebaseInstanceId.zzm() // Catch:{ IOException -> 0x0054 }\n if (r6 == 0) goto L_0x0075\n java.lang.String r6 = \"FirebaseInstanceId\"\n java.lang.String r7 = \"unsubscribe operation succeeded\"\n L_0x0042:\n android.util.Log.d(r6, r7) // Catch:{ IOException -> 0x0054 }\n goto L_0x0075\n L_0x0046:\n r6.zzb((java.lang.String) r7) // Catch:{ IOException -> 0x0054 }\n boolean r6 = com.google.firebase.iid.FirebaseInstanceId.zzm() // Catch:{ IOException -> 0x0054 }\n if (r6 == 0) goto L_0x0075\n java.lang.String r6 = \"FirebaseInstanceId\"\n java.lang.String r7 = \"subscribe operation succeeded\"\n goto L_0x0042\n L_0x0054:\n r6 = move-exception\n java.lang.String r7 = \"FirebaseInstanceId\"\n java.lang.String r1 = \"Topic sync failed: \"\n java.lang.String r6 = r6.getMessage()\n java.lang.String r6 = java.lang.String.valueOf(r6)\n int r2 = r6.length()\n if (r2 == 0) goto L_0x006c\n java.lang.String r6 = r1.concat(r6)\n goto L_0x0071\n L_0x006c:\n java.lang.String r6 = new java.lang.String\n r6.<init>(r1)\n L_0x0071:\n android.util.Log.e(r7, r6)\n return r0\n L_0x0075:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.iid.zzba.zza(com.google.firebase.iid.FirebaseInstanceId, java.lang.String):boolean\");\n }", "interface C9251a {\n /* renamed from: a */\n boolean mo24941a(Context context);\n }", "private void m6941a() {\n getAsyncTaskQueue().a(new RoutesSelfFrag$1(this), new String[0]);\n }", "public interface C3455a {\n /* renamed from: a */\n C3454q mo12651a(Fragment fragment, C3676k kVar);\n }", "@Override // com.zhihu.android.topic.widget.dialog.BaseCenterDialogFragment\n /* renamed from: a */\n public int mo110846a() {\n return R.layout.z1;\n }", "@Override\n\tpublic void onQaQuestion(QaQuestion arg0, int arg1) {\n\t\t\n\t}", "public interface C15428f {\n\n /* renamed from: com.ss.android.ugc.asve.context.f$a */\n public static final class C15429a {\n /* renamed from: a */\n public static String m45146a(C15428f fVar) {\n return \"\";\n }\n\n /* renamed from: b */\n public static String m45147b(C15428f fVar) {\n return \"\";\n }\n }\n\n /* renamed from: a */\n boolean mo38970a();\n\n /* renamed from: b */\n String mo38971b();\n\n /* renamed from: c */\n String mo38972c();\n\n /* renamed from: d */\n int mo38973d();\n\n /* renamed from: e */\n int mo38974e();\n}", "public android.support.v4.app.JobIntentService.e dequeueWork() {\n /*\n r3 = this;\n r0 = 0;\n r1 = r3.b;\n monitor-enter(r1);\n r2 = r3.c;\t Catch:{ all -> 0x0026 }\n if (r2 != 0) goto L_0x000a;\n L_0x0008:\n monitor-exit(r1);\t Catch:{ all -> 0x0026 }\n L_0x0009:\n return r0;\n L_0x000a:\n r2 = r3.c;\t Catch:{ all -> 0x0026 }\n r2 = r2.dequeueWork();\t Catch:{ all -> 0x0026 }\n monitor-exit(r1);\t Catch:{ all -> 0x0026 }\n if (r2 == 0) goto L_0x0009;\n L_0x0013:\n r0 = r2.getIntent();\n r1 = r3.a;\n r1 = r1.getClassLoader();\n r0.setExtrasClassLoader(r1);\n r0 = new android.support.v4.app.JobIntentService$f$a;\n r0.<init>(r3, r2);\n goto L_0x0009;\n L_0x0026:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0026 }\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v4.app.JobIntentService.f.dequeueWork():android.support.v4.app.JobIntentService$e\");\n }", "public interface C35590c {\n /* renamed from: a */\n void mo56317a(Context context, Bundle bundle, C4541a c4541a);\n}", "public void zzfg() {\n /*\n r11 = this;\n r9 = 0\n java.lang.Object r10 = com.google.android.gms.ads.internal.purchase.zzh.zzqt\n monitor-enter(r10)\n android.database.sqlite.SQLiteDatabase r0 = r11.getWritableDatabase() // Catch:{ all -> 0x0031 }\n if (r0 != 0) goto L_0x000c\n monitor-exit(r10) // Catch:{ all -> 0x0031 }\n L_0x000b:\n return\n L_0x000c:\n java.lang.String r7 = \"record_time ASC\"\n java.lang.String r1 = \"InAppPurchase\"\n r2 = 0\n r3 = 0\n r4 = 0\n r5 = 0\n r6 = 0\n java.lang.String r8 = \"1\"\n android.database.Cursor r1 = r0.query(r1, r2, r3, r4, r5, r6, r7, r8) // Catch:{ SQLiteException -> 0x0034, all -> 0x0056 }\n if (r1 == 0) goto L_0x002a\n boolean r0 = r1.moveToFirst() // Catch:{ SQLiteException -> 0x0060 }\n if (r0 == 0) goto L_0x002a\n com.google.android.gms.ads.internal.purchase.zzf r0 = r11.zza(r1) // Catch:{ SQLiteException -> 0x0060 }\n r11.zza(r0) // Catch:{ SQLiteException -> 0x0060 }\n L_0x002a:\n if (r1 == 0) goto L_0x002f\n r1.close()\n L_0x002f:\n monitor-exit(r10)\n goto L_0x000b\n L_0x0031:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n L_0x0034:\n r0 = move-exception\n r1 = r9\n L_0x0036:\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x005e }\n r2.<init>() // Catch:{ all -> 0x005e }\n java.lang.String r3 = \"Error remove oldest record\"\n java.lang.StringBuilder r2 = r2.append(r3) // Catch:{ all -> 0x005e }\n java.lang.String r0 = r0.getMessage() // Catch:{ all -> 0x005e }\n java.lang.StringBuilder r0 = r2.append(r0) // Catch:{ all -> 0x005e }\n java.lang.String r0 = r0.toString() // Catch:{ all -> 0x005e }\n com.google.android.gms.ads.internal.util.client.zzb.zzaC(r0) // Catch:{ all -> 0x005e }\n if (r1 == 0) goto L_0x002f\n r1.close()\n goto L_0x002f\n L_0x0056:\n r0 = move-exception\n r1 = r9\n L_0x0058:\n if (r1 == 0) goto L_0x005d\n r1.close()\n L_0x005d:\n throw r0\n L_0x005e:\n r0 = move-exception\n goto L_0x0058\n L_0x0060:\n r0 = move-exception\n goto L_0x0036\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.ads.internal.purchase.zzh.zzfg():void\");\n }", "protected void onQueued() {}", "@Override\n\tpublic void onQaJoinConfirm(int arg0) {\n\t\t\n\t}", "public C1442z5(int r10, java.lang.CharSequence r11, android.app.PendingIntent r12) {\n /*\n r9 = this;\n r0 = 0\n if (r10 != 0) goto L_0x0005\n r10 = r0\n goto L_0x000b\n L_0x0005:\n java.lang.String r1 = \"\"\n androidx.core.graphics.drawable.IconCompat r10 = androidx.core.graphics.drawable.IconCompat.m253b(r0, r1, r10)\n L_0x000b:\n android.os.Bundle r1 = new android.os.Bundle\n r1.<init>()\n r9.<init>()\n r2 = 1\n r9.f5266f = r2\n r9.f5262b = r10\n r3 = 0\n if (r10 == 0) goto L_0x0072\n int r4 = r10.f637a\n r5 = -1\n if (r4 != r5) goto L_0x0069\n int r6 = android.os.Build.VERSION.SDK_INT\n r7 = 23\n if (r6 < r7) goto L_0x0069\n java.lang.Object r4 = r10.f638b\n android.graphics.drawable.Icon r4 = (android.graphics.drawable.Icon) r4\n r7 = 28\n if (r6 < r7) goto L_0x0033\n int r4 = r4.getType()\n goto L_0x0069\n L_0x0033:\n java.lang.Class r6 = r4.getClass() // Catch:{ IllegalAccessException -> 0x0058, InvocationTargetException -> 0x0052, NoSuchMethodException -> 0x004c }\n java.lang.String r7 = \"getType\"\n java.lang.Class[] r8 = new java.lang.Class[r3] // Catch:{ IllegalAccessException -> 0x0058, InvocationTargetException -> 0x0052, NoSuchMethodException -> 0x004c }\n java.lang.reflect.Method r6 = r6.getMethod(r7, r8) // Catch:{ IllegalAccessException -> 0x0058, InvocationTargetException -> 0x0052, NoSuchMethodException -> 0x004c }\n java.lang.Object[] r7 = new java.lang.Object[r3] // Catch:{ IllegalAccessException -> 0x0058, InvocationTargetException -> 0x0052, NoSuchMethodException -> 0x004c }\n java.lang.Object r6 = r6.invoke(r4, r7) // Catch:{ IllegalAccessException -> 0x0058, InvocationTargetException -> 0x0052, NoSuchMethodException -> 0x004c }\n java.lang.Integer r6 = (java.lang.Integer) r6 // Catch:{ IllegalAccessException -> 0x0058, InvocationTargetException -> 0x0052, NoSuchMethodException -> 0x004c }\n int r4 = r6.intValue() // Catch:{ IllegalAccessException -> 0x0058, InvocationTargetException -> 0x0052, NoSuchMethodException -> 0x004c }\n goto L_0x0069\n L_0x004c:\n java.lang.StringBuilder r6 = new java.lang.StringBuilder\n r6.<init>()\n goto L_0x005d\n L_0x0052:\n java.lang.StringBuilder r6 = new java.lang.StringBuilder\n r6.<init>()\n goto L_0x005d\n L_0x0058:\n java.lang.StringBuilder r6 = new java.lang.StringBuilder\n r6.<init>()\n L_0x005d:\n java.lang.String r7 = \"Unable to get icon type \"\n r6.append(r7)\n r6.append(r4)\n r6.toString()\n r4 = -1\n L_0x0069:\n r5 = 2\n if (r4 != r5) goto L_0x0072\n int r10 = r10.mo739c()\n r9.f5269i = r10\n L_0x0072:\n java.lang.CharSequence r10 = p000.C0009a6.m17b(r11)\n r9.f5270j = r10\n r9.f5271k = r12\n r9.f5261a = r1\n r9.f5263c = r0\n r9.f5264d = r0\n r9.f5265e = r2\n r9.f5267g = r3\n r9.f5266f = r2\n r9.f5268h = r3\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.C1442z5.<init>(int, java.lang.CharSequence, android.app.PendingIntent):void\");\n }", "private void m10258a(final String str, final boolean z, final boolean z2) {\n if (!TextUtils.isEmpty(str)) {\n String str2 = \"\";\n if (this.f8976d != null) {\n str2 = this.f8976d.getActivityId();\n this.f8977e = this.f8976d.getMaxVelocity();\n }\n this.f8974b.getAsyncTaskQueue().m13740a(new AsyncTask<String, Void, List<C2411a>>(this) {\n /* renamed from: d */\n final /* synthetic */ C1998a f8962d;\n\n protected /* synthetic */ Object doInBackground(Object[] objArr) {\n return m10243a((String[]) objArr);\n }\n\n protected /* synthetic */ void onPostExecute(Object obj) {\n m10244a((List) obj);\n }\n\n /* renamed from: a */\n protected List<C2411a> m10243a(String... strArr) {\n try {\n LocalActivity b = this.f8962d.f8975c.b(str);\n boolean z = false;\n if (!(b == null || b.isNewSamples() || !z2)) {\n z = true;\n }\n List<C2411a> a = this.f8962d.f8975c.a(strArr[0], this.f8962d.f8973a.mo3316c(), strArr[1], z);\n if (a == null || a.isEmpty()) {\n return null;\n }\n Collections.sort(a, new C1997a());\n this.f8962d.f8990r.clear();\n this.f8962d.f8971A = new ArrayList();\n this.f8962d.f8972B = new ArrayList();\n this.f8962d.f8998z = new ArrayList();\n this.f8962d.f8979g = this.f8962d.f8976d.getMaxAltitude();\n this.f8962d.f8981i = this.f8962d.f8976d.getMaxCardiacRate();\n this.f8962d.f8984l = this.f8962d.f8976d.getMaxCadence();\n this.f8962d.f8986n = this.f8962d.f8976d.getMaxPower();\n LatLng latLng = null;\n for (C2411a c2411a : a) {\n double e = c2411a.m12229e();\n double f = c2411a.m12230f();\n if (!(e == 0.0d || f == 0.0d || e == Double.MIN_VALUE || f == Double.MIN_VALUE)) {\n if (!c2411a.m12239o()) {\n this.f8962d.f8979g = Math.max(this.f8962d.f8979g, c2411a.m12231g());\n if (c2411a.m12234j() > this.f8962d.f8977e) {\n c2411a.m12222a(this.f8962d.f8977e);\n this.f8962d.f8978f = c2411a.m12233i() / 1000.0d;\n }\n if (c2411a.m12231g() >= this.f8962d.f8979g) {\n this.f8962d.f8979g = c2411a.m12231g();\n this.f8962d.f8980h = c2411a.m12233i();\n }\n if (c2411a.m12236l() >= this.f8962d.f8981i) {\n c2411a.m12224b(this.f8962d.f8981i);\n this.f8962d.f8982j = c2411a.m12233i();\n }\n if (c2411a.m12237m() >= this.f8962d.f8984l) {\n c2411a.m12226c(this.f8962d.f8984l);\n this.f8962d.f8983k = c2411a.m12233i();\n }\n if (c2411a.m12240p() >= this.f8962d.f8986n) {\n c2411a.m12228d(this.f8962d.f8986n);\n this.f8962d.f8985m = c2411a.m12233i();\n }\n this.f8962d.f8972B.add(c2411a);\n }\n LatLng latLng2 = new LatLng(e, f);\n if (latLng == null || DistanceUtil.getDistance(latLng, latLng2) <= 200.0d) {\n this.f8962d.f8971A.add(c2411a);\n latLng = latLng2;\n } else {\n latLng = latLng2;\n }\n }\n }\n this.f8962d.f8976d.setMaxVelocity(this.f8962d.f8977e);\n this.f8962d.f8976d.setMaxAltitude(this.f8962d.f8979g);\n this.f8962d.f8998z.addAll(this.f8962d.f8972B);\n if (this.f8962d.f8976d.getTotalDistance() > 50.0d) {\n this.f8962d.f8972B = C1892g.m9769a(1.0E-4f, true, this.f8962d.f8972B);\n }\n if (this.f8962d.f8976d.getRepairDistance() > 50.0d) {\n this.f8962d.f8971A = C1892g.m9769a(1.0E-4f, true, this.f8962d.f8971A);\n }\n if (this.f8962d.f8972B == null || this.f8962d.f8972B.isEmpty()) {\n return null;\n }\n if (this.f8962d.f8972B.size() <= HttpStatus.SC_BAD_REQUEST) {\n this.f8962d.m10260a(this.f8962d.f8972B);\n } else {\n this.f8962d.m10270c(this.f8962d.f8972B);\n this.f8962d.m10266b(this.f8962d.f8972B);\n }\n return this.f8962d.f8972B;\n } catch (BusinessException e2) {\n this.f8962d.f8973a.mo3324f(e2.getMessage());\n return null;\n }\n }\n\n /* renamed from: a */\n protected void m10244a(List<C2411a> list) {\n this.f8962d.f8973a.mo3326h();\n if (list != null && !list.isEmpty()) {\n int maxHeartRate;\n this.f8962d.m10304a(z);\n this.f8962d.f8973a.mo3307a(this.f8962d.f8976d, (List) list, this.f8962d.f8998z);\n this.f8962d.f8973a.mo3310a(this.f8962d.f8987o);\n this.f8962d.f8973a.mo3306a(this.f8962d.f8976d, this.f8962d.f8992t);\n if (this.f8962d.f8994v != null) {\n maxHeartRate = this.f8962d.f8994v.getMaxHeartRate();\n String[] split = this.f8962d.f8994v.getBirthday().split(HelpFormatter.DEFAULT_OPT_PREFIX);\n if (TextUtils.isDigitsOnly(split[0])) {\n maxHeartRate = (int) (208.754d - (((double) (Calendar.getInstance().get(1) - Integer.parseInt(split[0]))) * 0.734d));\n }\n } else {\n maxHeartRate = 0;\n }\n this.f8962d.f8973a.mo3305a(this.f8962d.f8976d, maxHeartRate, this.f8962d.f8988p);\n this.f8962d.f8973a.mo3318c(this.f8962d.f8989q);\n this.f8962d.m10274d((List) list);\n this.f8962d.m10278e((List) list);\n }\n }\n }, str2, str);\n }\n }", "public interface AbstractC2726a {\n /* renamed from: a */\n void mo36480a(int i, int i2, ImageView imageView, Uri uri);\n\n /* renamed from: a */\n void mo36481a(int i, ImageView imageView, Uri uri);\n\n /* renamed from: a */\n void mo36482a(ImageView imageView, Uri uri);\n\n /* renamed from: b */\n void mo36483b(int i, ImageView imageView, Uri uri);\n}", "public void onClick(android.view.View r4) {\n /*\n r3 = this;\n r0 = r3.a;\n r0 = r0.a;\n r0 = r0.getText();\n r0 = java.lang.String.valueOf(r0);\n if (r0 == 0) goto L_0x0031;\n L_0x000e:\n r1 = r0.length();\n if (r1 <= 0) goto L_0x0031;\n L_0x0014:\n r1 = r3.a;\n r1 = com.whatsapp.jn.a(r1);\n r1.a(r0);\n r0 = r3.a;\n r0 = r0.a;\n r0 = r0.getText();\n android.text.method.TextKeyListener.clear(r0);\n r0 = r3.a;\n r0.dismiss();\n r0 = com.whatsapp.DialogToastActivity.f;\n if (r0 == 0) goto L_0x003e;\n L_0x0031:\n r0 = r3.a;\n r0 = r0.getContext();\n r1 = 2131231555; // 0x7f080343 float:1.8079194E38 double:1.0529682947E-314;\n r2 = 0;\n com.whatsapp.App.a(r0, r1, r2);\n L_0x003e:\n r0 = r3.a;\n com.whatsapp.jn.b(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.at8.onClick(android.view.View):void\");\n }", "public final android.os.Bundle zzi(java.lang.String r8) {\n /*\n r7 = this;\n r7.zzd()\n r7.zzak()\n r0 = 0\n android.database.sqlite.SQLiteDatabase r1 = r7.mo40210c_() // Catch:{ SQLiteException -> 0x00c4, all -> 0x00c2 }\n java.lang.String r2 = \"select parameters from default_event_params where app_id=?\"\n r3 = 1\n java.lang.String[] r3 = new java.lang.String[r3] // Catch:{ SQLiteException -> 0x00c4, all -> 0x00c2 }\n r4 = 0\n r3[r4] = r8 // Catch:{ SQLiteException -> 0x00c4, all -> 0x00c2 }\n android.database.Cursor r1 = r1.rawQuery(r2, r3) // Catch:{ SQLiteException -> 0x00c4, all -> 0x00c2 }\n boolean r2 = r1.moveToFirst() // Catch:{ SQLiteException -> 0x00c0 }\n if (r2 != 0) goto L_0x0031\n com.google.android.gms.measurement.internal.zzez r8 = r7.zzr() // Catch:{ SQLiteException -> 0x00c0 }\n com.google.android.gms.measurement.internal.zzfb r8 = r8.zzx() // Catch:{ SQLiteException -> 0x00c0 }\n java.lang.String r2 = \"Default event parameters not found\"\n r8.zza(r2) // Catch:{ SQLiteException -> 0x00c0 }\n if (r1 == 0) goto L_0x0030\n r1.close()\n L_0x0030:\n return r0\n L_0x0031:\n byte[] r2 = r1.getBlob(r4) // Catch:{ SQLiteException -> 0x00c0 }\n com.google.android.gms.internal.measurement.zzcc$zzc$zza r3 = com.google.android.gms.internal.measurement.zzcc.zzc.zzj() // Catch:{ IOException -> 0x00a8 }\n com.google.android.gms.internal.measurement.zzjm r2 = com.google.android.gms.measurement.internal.zzks.zza(r3, (byte[]) r2) // Catch:{ IOException -> 0x00a8 }\n com.google.android.gms.internal.measurement.zzcc$zzc$zza r2 = (com.google.android.gms.internal.measurement.zzcc.zzc.zza) r2 // Catch:{ IOException -> 0x00a8 }\n com.google.android.gms.internal.measurement.zzjj r2 = r2.zzv() // Catch:{ IOException -> 0x00a8 }\n com.google.android.gms.internal.measurement.zzib r2 = (com.google.android.gms.internal.measurement.zzib) r2 // Catch:{ IOException -> 0x00a8 }\n com.google.android.gms.internal.measurement.zzcc$zzc r2 = (com.google.android.gms.internal.measurement.zzcc.zzc) r2 // Catch:{ IOException -> 0x00a8 }\n r7.zzg() // Catch:{ SQLiteException -> 0x00c0 }\n java.util.List r8 = r2.zza() // Catch:{ SQLiteException -> 0x00c0 }\n android.os.Bundle r2 = new android.os.Bundle // Catch:{ SQLiteException -> 0x00c0 }\n r2.<init>() // Catch:{ SQLiteException -> 0x00c0 }\n java.util.Iterator r8 = r8.iterator() // Catch:{ SQLiteException -> 0x00c0 }\n L_0x0058:\n boolean r3 = r8.hasNext() // Catch:{ SQLiteException -> 0x00c0 }\n if (r3 == 0) goto L_0x00a0\n java.lang.Object r3 = r8.next() // Catch:{ SQLiteException -> 0x00c0 }\n com.google.android.gms.internal.measurement.zzcc$zze r3 = (com.google.android.gms.internal.measurement.zzcc.zze) r3 // Catch:{ SQLiteException -> 0x00c0 }\n java.lang.String r4 = r3.zzb() // Catch:{ SQLiteException -> 0x00c0 }\n boolean r5 = r3.zzi() // Catch:{ SQLiteException -> 0x00c0 }\n if (r5 == 0) goto L_0x0076\n double r5 = r3.zzj() // Catch:{ SQLiteException -> 0x00c0 }\n r2.putDouble(r4, r5) // Catch:{ SQLiteException -> 0x00c0 }\n goto L_0x0058\n L_0x0076:\n boolean r5 = r3.zzg() // Catch:{ SQLiteException -> 0x00c0 }\n if (r5 == 0) goto L_0x0084\n float r3 = r3.zzh() // Catch:{ SQLiteException -> 0x00c0 }\n r2.putFloat(r4, r3) // Catch:{ SQLiteException -> 0x00c0 }\n goto L_0x0058\n L_0x0084:\n boolean r5 = r3.zzc() // Catch:{ SQLiteException -> 0x00c0 }\n if (r5 == 0) goto L_0x0092\n java.lang.String r3 = r3.zzd() // Catch:{ SQLiteException -> 0x00c0 }\n r2.putString(r4, r3) // Catch:{ SQLiteException -> 0x00c0 }\n goto L_0x0058\n L_0x0092:\n boolean r5 = r3.zze() // Catch:{ SQLiteException -> 0x00c0 }\n if (r5 == 0) goto L_0x009f\n long r5 = r3.zzf() // Catch:{ SQLiteException -> 0x00c0 }\n r2.putLong(r4, r5) // Catch:{ SQLiteException -> 0x00c0 }\n L_0x009f:\n goto L_0x0058\n L_0x00a0:\n if (r1 == 0) goto L_0x00a7\n r1.close()\n L_0x00a7:\n return r2\n L_0x00a8:\n r2 = move-exception\n com.google.android.gms.measurement.internal.zzez r3 = r7.zzr() // Catch:{ SQLiteException -> 0x00c0 }\n com.google.android.gms.measurement.internal.zzfb r3 = r3.zzf() // Catch:{ SQLiteException -> 0x00c0 }\n java.lang.String r4 = \"Failed to retrieve default event parameters. appId\"\n java.lang.Object r8 = com.google.android.gms.measurement.internal.zzez.zza((java.lang.String) r8) // Catch:{ SQLiteException -> 0x00c0 }\n r3.zza(r4, r8, r2) // Catch:{ SQLiteException -> 0x00c0 }\n if (r1 == 0) goto L_0x00bf\n r1.close()\n L_0x00bf:\n return r0\n L_0x00c0:\n r8 = move-exception\n goto L_0x00c6\n L_0x00c2:\n r8 = move-exception\n goto L_0x00db\n L_0x00c4:\n r8 = move-exception\n r1 = r0\n L_0x00c6:\n com.google.android.gms.measurement.internal.zzez r2 = r7.zzr() // Catch:{ all -> 0x00d9 }\n com.google.android.gms.measurement.internal.zzfb r2 = r2.zzf() // Catch:{ all -> 0x00d9 }\n java.lang.String r3 = \"Error selecting default event parameters\"\n r2.zza(r3, r8) // Catch:{ all -> 0x00d9 }\n if (r1 == 0) goto L_0x00d8\n r1.close()\n L_0x00d8:\n return r0\n L_0x00d9:\n r8 = move-exception\n r0 = r1\n L_0x00db:\n if (r0 == 0) goto L_0x00e0\n r0.close()\n L_0x00e0:\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzad.zzi(java.lang.String):android.os.Bundle\");\n }", "public final java.lang.String mo40211d_() {\n /*\n r6 = this;\n android.database.sqlite.SQLiteDatabase r0 = r6.mo40210c_()\n r1 = 0\n java.lang.String r2 = \"select app_id from queue order by has_realtime desc, rowid asc limit 1;\"\n android.database.Cursor r0 = r0.rawQuery(r2, r1) // Catch:{ SQLiteException -> 0x002b, all -> 0x0026 }\n boolean r2 = r0.moveToFirst() // Catch:{ SQLiteException -> 0x0024 }\n if (r2 == 0) goto L_0x001d\n r2 = 0\n java.lang.String r1 = r0.getString(r2) // Catch:{ SQLiteException -> 0x0024 }\n if (r0 == 0) goto L_0x001c\n r0.close()\n L_0x001c:\n return r1\n L_0x001d:\n if (r0 == 0) goto L_0x0023\n r0.close()\n L_0x0023:\n return r1\n L_0x0024:\n r2 = move-exception\n goto L_0x002d\n L_0x0026:\n r0 = move-exception\n r5 = r1\n r1 = r0\n r0 = r5\n goto L_0x0041\n L_0x002b:\n r2 = move-exception\n r0 = r1\n L_0x002d:\n com.google.android.gms.measurement.internal.zzez r3 = r6.zzr() // Catch:{ all -> 0x0040 }\n com.google.android.gms.measurement.internal.zzfb r3 = r3.zzf() // Catch:{ all -> 0x0040 }\n java.lang.String r4 = \"Database error getting next bundle app id\"\n r3.zza(r4, r2) // Catch:{ all -> 0x0040 }\n if (r0 == 0) goto L_0x003f\n r0.close()\n L_0x003f:\n return r1\n L_0x0040:\n r1 = move-exception\n L_0x0041:\n if (r0 == 0) goto L_0x0046\n r0.close()\n L_0x0046:\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzad.mo40211d_():java.lang.String\");\n }", "interface cm\n{\n\n public abstract void f(com.google.android.gms.internal.d.a a);\n\n public abstract cj lS();\n\n public abstract cj lT();\n\n public abstract ck lU();\n\n public abstract ck lV();\n\n public abstract ck lW();\n\n public abstract ck lX();\n}", "public C09720dQ(X.AbstractC09710dP r13, android.content.Context r14) {\n /*\n // Method dump skipped, instructions count: 103\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C09720dQ.<init>(X.0dP, android.content.Context):void\");\n }", "private static boolean a(android.content.Context r13, com.whatsapp.contact.o r14) {\n /*\n r7 = 1;\n r6 = 0;\n r8 = d;\n r10 = java.lang.System.currentTimeMillis();\n r0 = z;\t Catch:{ Exception -> 0x0053 }\n r1 = 49;\n r0 = r0[r1];\t Catch:{ Exception -> 0x0053 }\n com.whatsapp.util.Log.i(r0);\t Catch:{ Exception -> 0x0053 }\n r0 = z;\t Catch:{ Exception -> 0x0053 }\n r1 = 44;\n r0 = r0[r1];\t Catch:{ Exception -> 0x0053 }\n r1 = 0;\n r9 = a(r13, r0, r1);\t Catch:{ Exception -> 0x0053 }\n r0 = z;\t Catch:{ Exception -> 0x0053 }\n r1 = 41;\n r0 = r0[r1];\t Catch:{ Exception -> 0x0053 }\n com.whatsapp.util.Log.i(r0);\t Catch:{ Exception -> 0x0053 }\n r0 = g;\t Catch:{ Exception -> 0x0053 }\n r0.close();\t Catch:{ Exception -> 0x0053 }\n r0 = z;\t Catch:{ Exception -> 0x0053 }\n r1 = 42;\n r0 = r0[r1];\t Catch:{ Exception -> 0x0053 }\n r1 = b(r0);\t Catch:{ Exception -> 0x0053 }\n r2 = 0;\n r3 = 1;\n r4 = r9.a();\t Catch:{ Exception -> 0x0053 }\n r5 = 0;\n r0 = r14;\n r0 = com.whatsapp.App.a(r0, r1, r2, r3, r4, r5);\t Catch:{ Exception -> 0x0053 }\n if (r0 != 0) goto L_0x0088;\n L_0x0042:\n r1 = com.whatsapp.App.aQ;\t Catch:{ Exception -> 0x0053 }\n monitor-enter(r1);\t Catch:{ Exception -> 0x0053 }\n r0 = com.whatsapp.App.aa;\t Catch:{ all -> 0x0050 }\n r0 = com.whatsapp.contact.o.combine(r0, r14);\t Catch:{ all -> 0x0050 }\n com.whatsapp.App.aa = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r1);\t Catch:{ all -> 0x0050 }\n r0 = r6;\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0050 }\n throw r0;\t Catch:{ Exception -> 0x0053 }\n L_0x0053:\n r0 = move-exception;\n r1 = z;\n r2 = 47;\n r1 = r1[r2];\n com.whatsapp.util.Log.b(r1, r0);\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = z;\n r2 = 45;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r2 = java.lang.System.currentTimeMillis();\n r2 = r2 - r10;\n r0 = r0.append(r2);\n r1 = z;\n r2 = 52;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.toString();\n com.whatsapp.util.Log.i(r0);\n r0 = r6;\n goto L_0x004f;\n L_0x0088:\n r0 = g;\t Catch:{ Exception -> 0x0053 }\n r2 = 64000; // 0xfa00 float:8.9683E-41 double:3.162E-319;\n r0 = r0.block(r2);\t Catch:{ Exception -> 0x0053 }\n if (r0 != 0) goto L_0x009e;\n L_0x0093:\n r0 = z;\t Catch:{ Exception -> 0x0053 }\n r1 = 54;\n r0 = r0[r1];\t Catch:{ Exception -> 0x0053 }\n com.whatsapp.util.Log.w(r0);\t Catch:{ Exception -> 0x0053 }\n r0 = r6;\n goto L_0x004f;\n L_0x009e:\n r0 = r9.b();\t Catch:{ Exception -> 0x0053 }\n r1 = 0;\n b(r0, r1);\t Catch:{ Exception -> 0x0053 }\n r0 = r9.j();\t Catch:{ Exception -> 0x0053 }\n r1 = 0;\n b(r0, r1);\t Catch:{ Exception -> 0x0053 }\n r1 = new java.util.ArrayList;\t Catch:{ Exception -> 0x0053 }\n r1.<init>();\t Catch:{ Exception -> 0x0053 }\n r0 = r9.e();\t Catch:{ Exception -> 0x0053 }\n b(r0, r1);\t Catch:{ Exception -> 0x0053 }\n r0 = i;\t Catch:{ Exception -> 0x0053 }\n r0.close();\t Catch:{ Exception -> 0x0053 }\n r2 = r9.k();\t Catch:{ Exception -> 0x0053 }\n r0 = r2.length;\t Catch:{ Exception -> 0x00db }\n if (r0 <= 0) goto L_0x014d;\n L_0x00c6:\n r0 = com.whatsapp.App.a(r2);\t Catch:{ Exception -> 0x00db }\n if (r0 != 0) goto L_0x00e0;\n L_0x00cc:\n r1 = com.whatsapp.App.aQ;\t Catch:{ Exception -> 0x0053 }\n monitor-enter(r1);\t Catch:{ Exception -> 0x0053 }\n r0 = com.whatsapp.App.aa;\t Catch:{ all -> 0x00dd }\n r0 = com.whatsapp.contact.o.combine(r0, r14);\t Catch:{ all -> 0x00dd }\n com.whatsapp.App.aa = r0;\t Catch:{ all -> 0x00dd }\n monitor-exit(r1);\t Catch:{ all -> 0x00dd }\n r0 = r6;\n goto L_0x004f;\n L_0x00db:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x0053 }\n L_0x00dd:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00dd }\n throw r0;\t Catch:{ Exception -> 0x0053 }\n L_0x00e0:\n r3 = new java.util.HashSet;\t Catch:{ Exception -> 0x0053 }\n r3.<init>();\t Catch:{ Exception -> 0x0053 }\n r0 = com.whatsapp.App.as;\t Catch:{ Exception -> 0x0053 }\n r0 = r0.h();\t Catch:{ Exception -> 0x0053 }\n r4 = r0.iterator();\t Catch:{ Exception -> 0x0053 }\n L_0x00ef:\n r0 = r4.hasNext();\t Catch:{ Exception -> 0x0053 }\n if (r0 == 0) goto L_0x010a;\n L_0x00f5:\n r0 = r4.next();\t Catch:{ Exception -> 0x0053 }\n r0 = (com.whatsapp.l5) r0;\t Catch:{ Exception -> 0x0053 }\n r5 = r0.p;\t Catch:{ Exception -> 0x0147 }\n r5 = android.text.TextUtils.isEmpty(r5);\t Catch:{ Exception -> 0x0147 }\n if (r5 != 0) goto L_0x0108;\n L_0x0103:\n r0 = r0.p;\t Catch:{ Exception -> 0x0147 }\n r3.add(r0);\t Catch:{ Exception -> 0x0147 }\n L_0x0108:\n if (r8 == 0) goto L_0x00ef;\n L_0x010a:\n r4 = r2.length;\t Catch:{ Exception -> 0x0053 }\n r0 = r6;\n L_0x010c:\n if (r0 >= r4) goto L_0x0121;\n L_0x010e:\n r5 = r2[r0];\t Catch:{ Exception -> 0x0053 }\n r12 = r5.p;\t Catch:{ Exception -> 0x0149 }\n r12 = android.text.TextUtils.isEmpty(r12);\t Catch:{ Exception -> 0x0149 }\n if (r12 != 0) goto L_0x011d;\n L_0x0118:\n r5 = r5.p;\t Catch:{ Exception -> 0x0149 }\n r3.add(r5);\t Catch:{ Exception -> 0x0149 }\n L_0x011d:\n r0 = r0 + 1;\n if (r8 == 0) goto L_0x010c;\n L_0x0121:\n r0 = r3.size();\t Catch:{ Exception -> 0x0053 }\n r0 = new java.lang.String[r0];\t Catch:{ Exception -> 0x0053 }\n r0 = r3.toArray(r0);\t Catch:{ Exception -> 0x0053 }\n r0 = (java.lang.String[]) r0;\t Catch:{ Exception -> 0x0053 }\n com.whatsapp.App.a(r0);\t Catch:{ Exception -> 0x0053 }\n r0 = i;\t Catch:{ Exception -> 0x0053 }\n r2 = 64000; // 0xfa00 float:8.9683E-41 double:3.162E-319;\n r0 = r0.block(r2);\t Catch:{ Exception -> 0x0053 }\n if (r0 != 0) goto L_0x014b;\n L_0x013b:\n r0 = z;\t Catch:{ Exception -> 0x0053 }\n r1 = 53;\n r0 = r0[r1];\t Catch:{ Exception -> 0x0053 }\n com.whatsapp.util.Log.w(r0);\t Catch:{ Exception -> 0x0053 }\n r0 = r6;\n goto L_0x004f;\n L_0x0147:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x0053 }\n L_0x0149:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x0053 }\n L_0x014b:\n if (r8 == 0) goto L_0x0186;\n L_0x014d:\n r2 = new java.util.HashSet;\t Catch:{ Exception -> 0x0053 }\n r2.<init>();\t Catch:{ Exception -> 0x0053 }\n r0 = com.whatsapp.App.as;\t Catch:{ Exception -> 0x0053 }\n r0 = r0.h();\t Catch:{ Exception -> 0x0053 }\n r3 = r0.iterator();\t Catch:{ Exception -> 0x0053 }\n L_0x015c:\n r0 = r3.hasNext();\t Catch:{ Exception -> 0x0053 }\n if (r0 == 0) goto L_0x0177;\n L_0x0162:\n r0 = r3.next();\t Catch:{ Exception -> 0x0053 }\n r0 = (com.whatsapp.l5) r0;\t Catch:{ Exception -> 0x0053 }\n r4 = r0.p;\t Catch:{ Exception -> 0x0258 }\n r4 = android.text.TextUtils.isEmpty(r4);\t Catch:{ Exception -> 0x0258 }\n if (r4 != 0) goto L_0x0175;\n L_0x0170:\n r0 = r0.p;\t Catch:{ Exception -> 0x0258 }\n r2.add(r0);\t Catch:{ Exception -> 0x0258 }\n L_0x0175:\n if (r8 == 0) goto L_0x015c;\n L_0x0177:\n r0 = r2.size();\t Catch:{ Exception -> 0x0053 }\n r0 = new java.lang.String[r0];\t Catch:{ Exception -> 0x0053 }\n r0 = r2.toArray(r0);\t Catch:{ Exception -> 0x0053 }\n r0 = (java.lang.String[]) r0;\t Catch:{ Exception -> 0x0053 }\n com.whatsapp.App.a(r0);\t Catch:{ Exception -> 0x0053 }\n L_0x0186:\n r0 = r9.b();\t Catch:{ Exception -> 0x0053 }\n r2 = 0;\n a(r0, r2);\t Catch:{ Exception -> 0x0053 }\n r0 = r9.j();\t Catch:{ Exception -> 0x0053 }\n r2 = 0;\n a(r0, r2);\t Catch:{ Exception -> 0x0053 }\n r0 = new java.util.ArrayList;\t Catch:{ Exception -> 0x0053 }\n r0.<init>();\t Catch:{ Exception -> 0x0053 }\n r2 = r9.e();\t Catch:{ Exception -> 0x025a }\n a(r2, r0);\t Catch:{ Exception -> 0x025a }\n r2 = z;\t Catch:{ Exception -> 0x025a }\n r3 = 46;\n r2 = r2[r3];\t Catch:{ Exception -> 0x025a }\n com.whatsapp.util.Log.i(r2);\t Catch:{ Exception -> 0x025a }\n r2 = r9.b();\t Catch:{ Exception -> 0x025a }\n r2 = r2.isEmpty();\t Catch:{ Exception -> 0x025a }\n if (r2 != 0) goto L_0x01be;\n L_0x01b5:\n r2 = com.whatsapp.App.as;\t Catch:{ Exception -> 0x025a }\n r3 = r9.b();\t Catch:{ Exception -> 0x025a }\n r2.b(r3);\t Catch:{ Exception -> 0x025a }\n L_0x01be:\n r2 = z;\t Catch:{ Exception -> 0x025c }\n r3 = 43;\n r2 = r2[r3];\t Catch:{ Exception -> 0x025c }\n com.whatsapp.util.Log.i(r2);\t Catch:{ Exception -> 0x025c }\n r2 = r9.j();\t Catch:{ Exception -> 0x025c }\n r2 = r2.isEmpty();\t Catch:{ Exception -> 0x025c }\n if (r2 != 0) goto L_0x01da;\n L_0x01d1:\n r2 = com.whatsapp.App.as;\t Catch:{ Exception -> 0x025c }\n r3 = r9.j();\t Catch:{ Exception -> 0x025c }\n r2.d(r3);\t Catch:{ Exception -> 0x025c }\n L_0x01da:\n r2 = z;\t Catch:{ Exception -> 0x025e }\n r3 = 48;\n r2 = r2[r3];\t Catch:{ Exception -> 0x025e }\n com.whatsapp.util.Log.i(r2);\t Catch:{ Exception -> 0x025e }\n r2 = r1.isEmpty();\t Catch:{ Exception -> 0x025e }\n if (r2 != 0) goto L_0x01ee;\n L_0x01e9:\n r2 = com.whatsapp.App.as;\t Catch:{ Exception -> 0x025e }\n r2.d(r1);\t Catch:{ Exception -> 0x025e }\n L_0x01ee:\n r2 = z;\t Catch:{ Exception -> 0x0260 }\n r3 = 40;\n r2 = r2[r3];\t Catch:{ Exception -> 0x0260 }\n com.whatsapp.util.Log.i(r2);\t Catch:{ Exception -> 0x0260 }\n r2 = r0.isEmpty();\t Catch:{ Exception -> 0x0260 }\n if (r2 != 0) goto L_0x0202;\n L_0x01fd:\n r2 = com.whatsapp.App.as;\t Catch:{ Exception -> 0x0260 }\n r2.d(r0);\t Catch:{ Exception -> 0x0260 }\n L_0x0202:\n r0 = z;\t Catch:{ Exception -> 0x0262 }\n r2 = 51;\n r0 = r0[r2];\t Catch:{ Exception -> 0x0262 }\n com.whatsapp.util.Log.i(r0);\t Catch:{ Exception -> 0x0262 }\n r0 = r9.g();\t Catch:{ Exception -> 0x0262 }\n r0 = r0.isEmpty();\t Catch:{ Exception -> 0x0262 }\n if (r0 != 0) goto L_0x021e;\n L_0x0215:\n r0 = com.whatsapp.App.as;\t Catch:{ Exception -> 0x0262 }\n r2 = r9.g();\t Catch:{ Exception -> 0x0262 }\n r0.c(r2);\t Catch:{ Exception -> 0x0262 }\n L_0x021e:\n r0 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0264 }\n r0.<init>();\t Catch:{ Exception -> 0x0264 }\n r2 = z;\t Catch:{ Exception -> 0x0264 }\n r3 = 50;\n r2 = r2[r3];\t Catch:{ Exception -> 0x0264 }\n r0 = r0.append(r2);\t Catch:{ Exception -> 0x0264 }\n r2 = java.lang.System.currentTimeMillis();\t Catch:{ Exception -> 0x0264 }\n r2 = r2 - r10;\n r0 = r0.append(r2);\t Catch:{ Exception -> 0x0264 }\n r0 = r0.toString();\t Catch:{ Exception -> 0x0264 }\n com.whatsapp.util.Log.i(r0);\t Catch:{ Exception -> 0x0264 }\n r0 = r9.f();\t Catch:{ Exception -> 0x0264 }\n if (r0 == 0) goto L_0x0249;\n L_0x0243:\n r0 = r1.isEmpty();\t Catch:{ Exception -> 0x0264 }\n if (r0 != 0) goto L_0x024f;\n L_0x0249:\n r0 = com.whatsapp.App.aB;\t Catch:{ Exception -> 0x0266 }\n r1 = 1;\n r0.sendEmptyMessage(r1);\t Catch:{ Exception -> 0x0266 }\n L_0x024f:\n r0 = com.whatsapp.App.i;\t Catch:{ Exception -> 0x0053 }\n r1 = 0;\n r0.sendEmptyMessage(r1);\t Catch:{ Exception -> 0x0053 }\n r0 = r7;\n goto L_0x004f;\n L_0x0258:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x0053 }\n L_0x025a:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x0053 }\n L_0x025c:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x0053 }\n L_0x025e:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x0053 }\n L_0x0260:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x0053 }\n L_0x0262:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x0053 }\n L_0x0264:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x0266 }\n L_0x0266:\n r0 = move-exception;\n throw r0;\t Catch:{ Exception -> 0x0053 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.contact.i.a(android.content.Context, com.whatsapp.contact.o):boolean\");\n }", "private static androidx.core.content.a.d.a b(android.content.res.Resources r8, org.xmlpull.v1.XmlPullParser r9, android.util.AttributeSet r10, android.content.res.Resources.Theme r11) {\r\n /*\r\n // Method dump skipped, instructions count: 152\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.content.a.d.b(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet, android.content.res.Resources$Theme):androidx.core.content.a.d$a\");\r\n }", "public final void zza(com.google.android.gms.internal.cast.zzcn r9) {\n /*\n r8 = this;\n com.google.android.gms.cast.RemoteMediaPlayer r9 = r8.zzfd\n java.lang.Object r9 = \n // error: 0x0002: INVOKE (r9 I:java.lang.Object) = (r9 I:com.google.android.gms.cast.RemoteMediaPlayer) com.google.android.gms.cast.RemoteMediaPlayer.zze(com.google.android.gms.cast.RemoteMediaPlayer):java.lang.Object type: STATIC\n monitor-enter(r9)\n com.google.android.gms.cast.RemoteMediaPlayer r0 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r0 = r0.zzey // Catch:{ all -> 0x0055 }\n com.google.android.gms.common.api.GoogleApiClient r1 = r8.zzfe // Catch:{ all -> 0x0055 }\n r0.zza(r1) // Catch:{ all -> 0x0055 }\n r0 = 0\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdh r2 = r1.zzex // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdm r3 = r8.zzgd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n long r4 = r8.val$position // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n int r6 = r8.zzfw // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n org.json.JSONObject r7 = r8.zzfk // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n r2.zza(r3, r4, r6, r7) // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n goto L_0x0049\n L_0x002e:\n r1 = move-exception\n goto L_0x004b\n L_0x0030:\n com.google.android.gms.common.api.Status r1 = new com.google.android.gms.common.api.Status // Catch:{ all -> 0x002e }\n r2 = 2100(0x834, float:2.943E-42)\n r1.<init>(r2) // Catch:{ all -> 0x002e }\n com.google.android.gms.common.api.Result r1 = r8.createFailedResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer$MediaChannelResult r1 = (com.google.android.gms.cast.RemoteMediaPlayer.MediaChannelResult) r1 // Catch:{ all -> 0x002e }\n r8.setResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n L_0x0049:\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n return\n L_0x004b:\n com.google.android.gms.cast.RemoteMediaPlayer r2 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r2 = r2.zzey // Catch:{ all -> 0x0055 }\n r2.zza(r0) // Catch:{ all -> 0x0055 }\n throw r1 // Catch:{ all -> 0x0055 }\n L_0x0055:\n r0 = move-exception\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.cast.zzbj.zza(com.google.android.gms.internal.cast.zzcn):void\");\n }", "public interface C2195q {\n /* renamed from: a */\n void mo9337a(C2177n<?> nVar, UnobservedTaskException unobservedTaskException);\n }", "static b.e.d.f.b[] a(android.content.Context r19, b.e.d.a r20, java.lang.String r21, android.os.CancellationSignal r22) {\r\n /*\r\n // Method dump skipped, instructions count: 321\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: b.e.d.f.a(android.content.Context, b.e.d.a, java.lang.String, android.os.CancellationSignal):b.e.d.f$b[]\");\r\n }", "public interface OnRestoreCallback extends Parcelable {\n /* renamed from: a */\n void mo97180a(Context context);\n}", "private void m125725t() {\n Context context = getContext();\n if (context != null) {\n if (mo69217g() != null && mo69217g().isSuperTopic) {\n this.f90216F = LayoutInflater.from(context).inflate(R.layout.axy, (ViewGroup) this.f88308f, false);\n AdSuperTopicDelegate.m125930a(getContext(), this.f90216F, mo69217g(), this.f88308f, this.f90230w, mo69216f());\n } else if (this.f90231x.mo109402g()) {\n View inflate = LayoutInflater.from(context).inflate(R.layout.b54, (ViewGroup) this.f88308f, false);\n TopicCommonUtil.m123935a(this.f88308f, inflate);\n this.f90212B = inflate.findViewById(R.id.btn_container);\n this.f90213C = inflate.findViewById(R.id.feedback_container);\n this.f90214D = this.f90212B.findViewById(R.id.write_question_text_view);\n this.f90215E = this.f90212B.findViewById(R.id.create_video_entity_text_view);\n View view = this.f90213C;\n if (view != null) {\n view.setOnClickListener(new View.OnClickListener() {\n /* class com.zhihu.android.topic.platfrom.$$Lambda$TopicFragment$OG8GfILQ4_CcBbjUu_uTiHx7Qv8 */\n\n public final void onClick(View view) {\n TopicFragment.this.m125680a((TopicFragment) view);\n }\n });\n }\n View findViewById = inflate.findViewById(R.id.write_question);\n if (findViewById != null) {\n if (this.f90224q == this.f90229v) {\n ZUIZAUtils.m125246a(findViewById, \"发个视频\", C6969H.m41409d(\"G4A91D01BAB359D20E20B9F77D0EAD7C3668EF71BAD\"), C31368a.EnumC31371c.OpenUrl, (C31382e.EnumC31385c) null, mo69217g());\n } else {\n ZUIZAUtils.m125246a(findViewById, \"发起提问\", C6969H.m41409d(\"G5E91DC0EBA01BE2CF51A9947FCDAE1D87D97DA179D31B9\"), C31368a.EnumC31371c.OpenUrl, (C31382e.EnumC31385c) null, mo69217g());\n }\n findViewById.setOnClickListener(new View.OnClickListener(findViewById) {\n /* class com.zhihu.android.topic.platfrom.$$Lambda$TopicFragment$zd9aNrXcun3GG22K_fPsjVbZ0 */\n private final /* synthetic */ View f$1;\n\n {\n this.f$1 = r2;\n }\n\n public final void onClick(View view) {\n TopicFragment.this.m125682a((TopicFragment) this.f$1, view);\n }\n });\n }\n this.f88307e.setPadding(this.f88307e.getPaddingLeft(), this.f88307e.getPaddingTop(), this.f88307e.getPaddingRight(), this.f88307e.getPaddingBottom() + DisplayUtils.m87171b(context, 48.0f));\n this.f90231x.mo109393a((LinearLayout) inflate.findViewById(R.id.btn_container));\n }\n }\n }", "private static java.lang.String[] a(android.content.Context r3, com.xiaomi.xmpush.thrift.u r4) {\n /*\n java.lang.String r0 = r4.h()\n java.lang.String r1 = r4.j()\n java.util.Map r4 = r4.s()\n if (r4 == 0) goto L_0x0073\n android.content.res.Resources r2 = r3.getResources()\n android.util.DisplayMetrics r2 = r2.getDisplayMetrics()\n int r2 = r2.widthPixels\n android.content.res.Resources r3 = r3.getResources()\n android.util.DisplayMetrics r3 = r3.getDisplayMetrics()\n float r3 = r3.density\n float r2 = (float) r2\n float r2 = r2 / r3\n r3 = 1056964608(0x3f000000, float:0.5)\n float r2 = r2 + r3\n java.lang.Float r3 = java.lang.Float.valueOf(r2)\n int r3 = r3.intValue()\n r2 = 320(0x140, float:4.48E-43)\n if (r3 > r2) goto L_0x0051\n java.lang.String r3 = \"title_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0042\n r0 = r3\n L_0x0042:\n java.lang.String r3 = \"description_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n goto L_0x0072\n L_0x0051:\n r2 = 360(0x168, float:5.04E-43)\n if (r3 <= r2) goto L_0x0073\n java.lang.String r3 = \"title_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0064\n r0 = r3\n L_0x0064:\n java.lang.String r3 = \"description_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n L_0x0072:\n r1 = r3\n L_0x0073:\n r3 = 2\n java.lang.String[] r3 = new java.lang.String[r3]\n r4 = 0\n r3[r4] = r0\n r4 = 1\n r3[r4] = r1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.push.service.ah.a(android.content.Context, com.xiaomi.xmpush.thrift.u):java.lang.String[]\");\n }", "public qa a(com.google.android.gms.dynamic.d param1, com.google.android.gms.dynamic.c param2, WalletFragmentOptions param3, qb param4) throws RemoteException {\n }", "private final void m136464d() {\n BaseFragment baseFragment;\n if (this.f98816d && this.f98817e && getView() != null && (baseFragment = this.f98814b) != null) {\n if (baseFragment.isDetached() || baseFragment.getContext() == null) {\n VideoXOnlineLog.m139074c(VideoXOnlineLog.f101073b, C6969H.m41409d(\"G458AC31F8D3FA424C5019E5CF3ECCDD27BA5C71BB83DAE27F2549946FBF1E0D86797D413B135B973A60B825AFDF79985\"), null, 2, null);\n return;\n }\n if (baseFragment.getActivity() != null) {\n FragmentActivity activity = baseFragment.getActivity();\n if ((activity != null ? activity.getApplication() : null) != null) {\n m136459a(baseFragment);\n return;\n }\n }\n VideoXOnlineLog.m139074c(VideoXOnlineLog.f101073b, C6969H.m41409d(\"G458AC31F8D3FA424C5019E5CF3ECCDD27BA5C71BB83DAE27F2549946FBF1E0D86797D413B135B973A60B825AFDF79986\"), null, 2, null);\n }\n }", "AnonymousClass1(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.widget.ColorListView.1.<init>(android.widget.ColorListView):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.1.<init>(android.widget.ColorListView):void\");\n }", "public interface C2368d {\n\n /* renamed from: com.google.android.exoplayer2.upstream.d$a */\n public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }\n\n /* renamed from: a */\n int mo1684a(byte[] bArr, int i, int i2);\n\n /* renamed from: a */\n long mo1685a(C2369e c2369e);\n\n /* renamed from: a */\n Uri mo1686a();\n\n /* renamed from: b */\n void mo1687b();\n}", "public static void a(android.content.Context r5, java.lang.String r6, boolean r7, int r8, android.net.Uri r9) {\n /*\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = z;\n r2 = 11;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r6);\n r1 = z;\n r2 = 7;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r8);\n r1 = z;\n r2 = 8;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r9);\n r1 = \"]\";\n r0 = r0.append(r1);\n r0 = r0.toString();\n com.whatsapp.util.Log.i(r0);\n if (r7 == 0) goto L_0x0058;\n L_0x003d:\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = z;\n r2 = 9;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r8);\n r0 = r0.toString();\n r1 = com.whatsapp.wallpaper.ImageViewTouchBase.e;\n if (r1 == 0) goto L_0x006f;\n L_0x0058:\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = z;\n r2 = 10;\n r1 = r1[r2];\n r0 = r0.append(r1);\n r0 = r0.append(r9);\n r0 = r0.toString();\n L_0x006f:\n r1 = z;\n r2 = 13;\n r1 = r1[r2];\n r2 = 0;\n r1 = r5.getSharedPreferences(r1, r2);\n r1 = r1.edit();\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = z;\n r4 = 12;\n r3 = r3[r4];\n r2 = r2.append(r3);\n r2 = r2.append(r6);\n r2 = r2.toString();\n r1.putString(r2, r0);\n r1.commit();\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.wallpaper.p.a(android.content.Context, java.lang.String, boolean, int, android.net.Uri):void\");\n }", "private static abstract class <init> extends com.google.android.gms.games.dMatchesImpl\n{\n\n public com.google.android.gms.games.multiplayer.turnbased.Q V(Status status)\n {\n return new com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayer.LoadMatchesResult(status) {\n\n final TurnBasedMultiplayerImpl.LoadMatchesImpl Ln;\n final Status wz;\n\n public LoadMatchesResponse getMatches()\n {\n return new LoadMatchesResponse(new Bundle());\n }\n\n public Status getStatus()\n {\n return wz;\n }\n\n public void release()\n {\n }\n\n \n {\n Ln = TurnBasedMultiplayerImpl.LoadMatchesImpl.this;\n wz = status;\n super();\n }\n };\n }", "public void a(android.view.View r8) {\n /*\n r7 = this;\n r6 = 1;\n r4 = 8;\n r5 = 0;\n r1 = com.whatsapp.camera.CameraActivity.I;\n r0 = r7.b;\n r2 = 2131755404; // 0x7f10018c float:1.9141686E38 double:1.0532271105E-314;\n r0 = r0.findViewById(r2);\n r0.setVisibility(r4);\n r0 = r7.b;\n r2 = 2131755369; // 0x7f100169 float:1.9141615E38 double:1.053227093E-314;\n r0 = r0.findViewById(r2);\n r0.setVisibility(r4);\n r0 = r7.b;\n r0 = com.whatsapp.camera.CameraActivity.f(r0);\n r0 = r0.getText();\n r0 = r0.toString();\n r2 = com.whatsapp.a28.a(r0);\n r0 = r7.b;\n r0 = com.whatsapp.camera.CameraActivity.g(r0);\n if (r0 != 0) goto L_0x00f6;\n L_0x0038:\n r0 = r7.c;\n L_0x003a:\n r0 = r0.buildUpon();\n r3 = android.text.TextUtils.isEmpty(r2);\n if (r3 != 0) goto L_0x0056;\n L_0x0044:\n r3 = z;\n r3 = r3[r6];\n r0.appendQueryParameter(r3, r2);\n r2 = r7.b;\n r2 = com.whatsapp.camera.CameraActivity.f(r2);\n r2.setEnabled(r5);\n if (r1 == 0) goto L_0x0062;\n L_0x0056:\n r2 = r7.b;\n r3 = 2131755402; // 0x7f10018a float:1.9141682E38 double:1.0532271095E-314;\n r2 = r2.findViewById(r3);\n r2.setVisibility(r4);\n L_0x0062:\n r2 = r7.b;\n r2 = com.whatsapp.camera.CameraActivity.s(r2);\n if (r2 == 0) goto L_0x007c;\n L_0x006a:\n r2 = z;\n r3 = 5;\n r2 = r2[r3];\n r3 = r7.b;\n r3 = com.whatsapp.camera.CameraActivity.s(r3);\n r3 = java.lang.Integer.toString(r3);\n r0.appendQueryParameter(r2, r3);\n L_0x007c:\n r2 = r7.c;\n r3 = z;\n r4 = 7;\n r3 = r3[r4];\n r2 = r2.getQueryParameter(r3);\n if (r2 == 0) goto L_0x0093;\n L_0x0089:\n r2 = z;\n r2 = r2[r5];\n r3 = \"1\";\n r0.appendQueryParameter(r2, r3);\n L_0x0093:\n r0 = r0.build();\n r2 = r7.b;\n r2 = com.whatsapp.camera.CameraActivity.e(r2);\n if (r2 == 0) goto L_0x00b7;\n L_0x009f:\n r2 = r7.b;\n r3 = 2131755410; // 0x7f100192 float:1.9141698E38 double:1.0532271134E-314;\n r2 = r2.findViewById(r3);\n r2.setVisibility(r5);\n r2 = new com.whatsapp.camera.at;\n r2.<init>(r7, r0);\n r3 = new java.lang.Void[r5];\n com.whatsapp.util.bq.a(r2, r3);\n if (r1 == 0) goto L_0x00e6;\n L_0x00b7:\n r2 = new android.content.Intent;\n r3 = r7.b;\n r3 = r3.getBaseContext();\n r4 = com.whatsapp.ContactPicker.class;\n r2.<init>(r3, r4);\n r3 = z;\n r4 = 4;\n r3 = r3[r4];\n r2.setType(r3);\n r3 = z;\n r4 = 2;\n r3 = r3[r4];\n r2.putExtra(r3, r0);\n r0 = z;\n r3 = 6;\n r0 = r0[r3];\n r2.putExtra(r0, r6);\n r0 = r7.b;\n r0.startActivity(r2);\n r0 = r7.b;\n r0.finish();\n L_0x00e6:\n r0 = r7.b;\n r2 = r7.c;\n com.whatsapp.util.ag.a(r0, r2);\n r0 = com.whatsapp.WAAppCompatActivity.c;\n if (r0 == 0) goto L_0x00f5;\n L_0x00f1:\n r0 = r1 + 1;\n com.whatsapp.camera.CameraActivity.I = r0;\n L_0x00f5:\n return;\n L_0x00f6:\n r0 = z;\n r3 = 3;\n r0 = r0[r3];\n r0 = com.whatsapp.App.j(r0);\n r0 = android.net.Uri.fromFile(r0);\n goto L_0x003a;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.camera.s.a(android.view.View):void\");\n }", "private void m6943a(String str, int i) {\n C1802i c1802i = new C1802i(getActivity(), getString(C1373R.string.loading_msg_deleted), false);\n getAsyncTaskQueue().a(new RoutesSelfFrag$2(this, c1802i, i), new String[]{str});\n }", "public java.lang.String a(android.content.Context r7, java.lang.String r8, int r9, java.lang.String r10) {\n /*\n r6 = this;\n r0 = 0\n com.huawei.android.pushselfshow.utils.b.b r1 = new com.huawei.android.pushselfshow.utils.b.b // Catch:{ Exception -> 0x001d }\n r1.<init>() // Catch:{ Exception -> 0x001d }\n java.lang.String r1 = r1.a(r7, r8, r10) // Catch:{ Exception -> 0x001d }\n if (r1 == 0) goto L_0x0015\n int r2 = r1.length() // Catch:{ Exception -> 0x0013 }\n if (r2 <= 0) goto L_0x0015\n return r1\n L_0x0013:\n r2 = move-exception\n goto L_0x001f\n L_0x0015:\n java.lang.String r2 = \"PushSelfShowLog\"\n java.lang.String r3 = \"download failed\"\n com.huawei.android.pushagent.utils.a.e.a(r2, r3) // Catch:{ Exception -> 0x0013 }\n goto L_0x0036\n L_0x001d:\n r2 = move-exception\n r1 = r0\n L_0x001f:\n java.lang.String r3 = \"PushSelfShowLog\"\n java.lang.StringBuilder r4 = new java.lang.StringBuilder\n java.lang.String r5 = \"download err\"\n r4.<init>(r5)\n java.lang.String r2 = r2.toString()\n r4.append(r2)\n java.lang.String r2 = r4.toString()\n com.huawei.android.pushagent.utils.a.e.a(r3, r2)\n L_0x0036:\n if (r9 <= 0) goto L_0x0039\n goto L_0x003a\n L_0x0039:\n r9 = 1\n L_0x003a:\n int r9 = r9 + -1\n if (r9 <= 0) goto L_0x0045\n java.lang.String r7 = r6.a(r7, r8, r9, r10)\n if (r7 == 0) goto L_0x0045\n return r1\n L_0x0045:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.huawei.android.pushselfshow.richpush.tools.d.a(android.content.Context, java.lang.String, int, java.lang.String):java.lang.String\");\n }", "public interface INotificationVoiceReplyServiceCallbacks extends IInterface {\n void onNotifAvailableForReplyChanged(boolean z) throws RemoteException;\n\n void onVoiceReplyHandled(int i, int i2) throws RemoteException;\n\n /* loaded from: classes2.dex */\n public static abstract class Stub extends Binder implements INotificationVoiceReplyServiceCallbacks {\n public static INotificationVoiceReplyServiceCallbacks asInterface(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.systemui.statusbar.INotificationVoiceReplyServiceCallbacks\");\n if (queryLocalInterface == null || !(queryLocalInterface instanceof INotificationVoiceReplyServiceCallbacks)) {\n return new Proxy(iBinder);\n }\n return (INotificationVoiceReplyServiceCallbacks) queryLocalInterface;\n }\n\n /* access modifiers changed from: private */\n /* loaded from: classes2.dex */\n public static class Proxy implements INotificationVoiceReplyServiceCallbacks {\n public static INotificationVoiceReplyServiceCallbacks sDefaultImpl;\n private IBinder mRemote;\n\n Proxy(IBinder iBinder) {\n this.mRemote = iBinder;\n }\n\n @Override // android.os.IInterface\n public IBinder asBinder() {\n return this.mRemote;\n }\n\n @Override // com.google.android.systemui.statusbar.INotificationVoiceReplyServiceCallbacks\n public void onNotifAvailableForReplyChanged(boolean z) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.systemui.statusbar.INotificationVoiceReplyServiceCallbacks\");\n obtain.writeInt(z ? 1 : 0);\n if (!this.mRemote.transact(1, obtain, null, 1) && Stub.getDefaultImpl() != null) {\n Stub.getDefaultImpl().onNotifAvailableForReplyChanged(z);\n }\n } finally {\n obtain.recycle();\n }\n }\n\n @Override // com.google.android.systemui.statusbar.INotificationVoiceReplyServiceCallbacks\n public void onVoiceReplyHandled(int i, int i2) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.systemui.statusbar.INotificationVoiceReplyServiceCallbacks\");\n obtain.writeInt(i);\n obtain.writeInt(i2);\n if (!this.mRemote.transact(2, obtain, null, 1) && Stub.getDefaultImpl() != null) {\n Stub.getDefaultImpl().onVoiceReplyHandled(i, i2);\n }\n } finally {\n obtain.recycle();\n }\n }\n }\n\n public static INotificationVoiceReplyServiceCallbacks getDefaultImpl() {\n return Proxy.sDefaultImpl;\n }\n }\n}", "MultiChoiceModeCallbackWrapper(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.widget.ColorListView.MultiChoiceModeCallbackWrapper.<init>(android.widget.ColorListView):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.MultiChoiceModeCallbackWrapper.<init>(android.widget.ColorListView):void\");\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }", "public final SugarAdapter invoke() {\n return SugarAdapter.C25135a.m122500a(this.f53774a.f53728f).mo108934a(ChapterTitleNewViewHolder.class).mo108935a(SectionLeftImgViewHolder.class, new SugarHolder.AbstractC25133a<SectionLeftImgViewHolder>(this) {\n /* class com.zhihu.android.app.subscribe.p1298ui.fragment.CatalogFragment.C15212v.C152131 */\n\n /* renamed from: a */\n final /* synthetic */ C15212v f53775a;\n\n {\n this.f53775a = r1;\n }\n\n /* renamed from: a */\n public final void onCreated(final SectionLeftImgViewHolder sectionLeftImgViewHolder) {\n C32569u.m150519b(sectionLeftImgViewHolder, C6969H.m41409d(\"G7F8AD00D973FA72DE31C\"));\n sectionLeftImgViewHolder.itemView.setOnClickListener(new View.OnClickListener(this) {\n /* class com.zhihu.android.app.subscribe.p1298ui.fragment.CatalogFragment.C15212v.C152131.View$OnClickListenerC152141 */\n\n /* renamed from: a */\n final /* synthetic */ C152131 f53776a;\n\n {\n this.f53776a = r1;\n }\n\n public final void onClick(View view) {\n CatalogFragment catalogFragment = this.f53776a.f53775a.f53774a;\n SectionLeftImgViewHolder sectionLeftImgViewHolder = sectionLeftImgViewHolder;\n C32569u.m150513a((Object) sectionLeftImgViewHolder, C6969H.m41409d(\"G7F8AD00D973FA72DE31C\"));\n Section section = (Section) sectionLeftImgViewHolder.mo108896M();\n C32569u.m150513a((Object) section, C6969H.m41409d(\"G7F8AD00D973FA72DE31CDE4CF3F1C2\"));\n catalogFragment.m75322a((CatalogFragment) section);\n }\n });\n }\n }).mo108935a(SectionRightImgViewHolder.class, new SugarHolder.AbstractC25133a<SectionRightImgViewHolder>(this) {\n /* class com.zhihu.android.app.subscribe.p1298ui.fragment.CatalogFragment.C15212v.C152152 */\n\n /* renamed from: a */\n final /* synthetic */ C15212v f53778a;\n\n {\n this.f53778a = r1;\n }\n\n /* renamed from: a */\n public final void onCreated(final SectionRightImgViewHolder sectionRightImgViewHolder) {\n C32569u.m150519b(sectionRightImgViewHolder, C6969H.m41409d(\"G7F8AD00D973FA72DE31C\"));\n sectionRightImgViewHolder.itemView.setOnClickListener(new View.OnClickListener(this) {\n /* class com.zhihu.android.app.subscribe.p1298ui.fragment.CatalogFragment.C15212v.C152152.View$OnClickListenerC152161 */\n\n /* renamed from: a */\n final /* synthetic */ C152152 f53779a;\n\n {\n this.f53779a = r1;\n }\n\n public final void onClick(View view) {\n CatalogFragment catalogFragment = this.f53779a.f53778a.f53774a;\n SectionRightImgViewHolder sectionRightImgViewHolder = sectionRightImgViewHolder;\n C32569u.m150513a((Object) sectionRightImgViewHolder, C6969H.m41409d(\"G7F8AD00D973FA72DE31C\"));\n Section section = (Section) sectionRightImgViewHolder.mo108896M();\n C32569u.m150513a((Object) section, C6969H.m41409d(\"G7F8AD00D973FA72DE31CDE4CF3F1C2\"));\n catalogFragment.m75322a((CatalogFragment) section);\n }\n });\n }\n }).mo108935a(SectionNoImgViewHolder.class, new SugarHolder.AbstractC25133a<SectionNoImgViewHolder>(this) {\n /* class com.zhihu.android.app.subscribe.p1298ui.fragment.CatalogFragment.C15212v.C152173 */\n\n /* renamed from: a */\n final /* synthetic */ C15212v f53781a;\n\n {\n this.f53781a = r1;\n }\n\n /* renamed from: a */\n public final void onCreated(final SectionNoImgViewHolder sectionNoImgViewHolder) {\n C32569u.m150519b(sectionNoImgViewHolder, C6969H.m41409d(\"G7F8AD00D973FA72DE31C\"));\n sectionNoImgViewHolder.itemView.setOnClickListener(new View.OnClickListener(this) {\n /* class com.zhihu.android.app.subscribe.p1298ui.fragment.CatalogFragment.C15212v.C152173.View$OnClickListenerC152181 */\n\n /* renamed from: a */\n final /* synthetic */ C152173 f53782a;\n\n {\n this.f53782a = r1;\n }\n\n public final void onClick(View view) {\n CatalogFragment catalogFragment = this.f53782a.f53781a.f53774a;\n SectionNoImgViewHolder sectionNoImgViewHolder = sectionNoImgViewHolder;\n C32569u.m150513a((Object) sectionNoImgViewHolder, C6969H.m41409d(\"G7F8AD00D973FA72DE31C\"));\n Section section = (Section) sectionNoImgViewHolder.mo108896M();\n C32569u.m150513a((Object) section, C6969H.m41409d(\"G7F8AD00D973FA72DE31CDE4CF3F1C2\"));\n catalogFragment.m75322a((CatalogFragment) section);\n }\n });\n }\n }).mo108934a(SectionUpdateViewHolder.class).mo108937a();\n }", "private final boolean m110458as() {\n String str;\n String str2;\n if (this.f89205aX == null || this.f89207aZ == null || this.f89210bb == null || this.f89209ba == null || !C25352e.m83221d(this.f77546j)) {\n return false;\n }\n this.f89212bd = (RelativeLayout) this.itemView.findViewById(R.id.eh4);\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n if (aweme.isAppAd() && DownloaderManagerHolder.m75524a().mo51673b(C25352e.m83241x(this.f77546j))) {\n return false;\n }\n this.f89204aW = true;\n Aweme aweme2 = this.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n String str3 = null;\n if (aweme2.isAppAd()) {\n Context ab = mo75261ab();\n Aweme aweme3 = this.f77546j;\n C7573i.m23582a((Object) aweme3, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme3.getAwemeRawAd();\n if (awemeRawAd != null) {\n str2 = awemeRawAd.getCreativeIdStr();\n } else {\n str2 = null;\n }\n String str4 = \"bg_download_button\";\n Aweme aweme4 = this.f77546j;\n C7573i.m23582a((Object) aweme4, \"mAweme\");\n AwemeRawAd awemeRawAd2 = aweme4.getAwemeRawAd();\n if (awemeRawAd2 != null) {\n str3 = awemeRawAd2.getLogExtra();\n }\n C24976t.m82210e(ab, str2, str4, str3);\n } else {\n Context ab2 = mo75261ab();\n Aweme aweme5 = this.f77546j;\n C7573i.m23582a((Object) aweme5, \"mAweme\");\n AwemeRawAd awemeRawAd3 = aweme5.getAwemeRawAd();\n if (awemeRawAd3 != null) {\n str = awemeRawAd3.getCreativeIdStr();\n } else {\n str = null;\n }\n String str5 = \"bg_more_button\";\n Aweme aweme6 = this.f77546j;\n C7573i.m23582a((Object) aweme6, \"mAweme\");\n AwemeRawAd awemeRawAd4 = aweme6.getAwemeRawAd();\n if (awemeRawAd4 != null) {\n str3 = awemeRawAd4.getLogExtra();\n }\n C24976t.m82210e(ab2, str, str5, str3);\n }\n LinearLayout linearLayout = this.f89205aX;\n if (linearLayout != null) {\n linearLayout.setAlpha(0.0f);\n }\n RelativeLayout relativeLayout = this.f89212bd;\n if (relativeLayout != null) {\n relativeLayout.setAlpha(1.0f);\n }\n RelativeLayout relativeLayout2 = this.f89212bd;\n if (relativeLayout2 != null) {\n ViewPropertyAnimator animate = relativeLayout2.animate();\n if (animate != null) {\n ViewPropertyAnimator alpha = animate.alpha(0.0f);\n if (alpha != null) {\n ViewPropertyAnimator duration = alpha.setDuration(150);\n if (duration != null) {\n ViewPropertyAnimator withEndAction = duration.withEndAction(new C34221o(this));\n if (withEndAction != null) {\n withEndAction.start();\n }\n }\n }\n }\n }\n C28418f a = C28418f.m93413a();\n C7573i.m23582a((Object) a, \"FeedSharePlayInfoHelper.inst()\");\n a.f74934d = true;\n C28418f a2 = C28418f.m93413a();\n C7573i.m23582a((Object) a2, \"FeedSharePlayInfoHelper.inst()\");\n a2.f74935e = true;\n return true;\n }", "public final void mo88395b() {\n if (this.f90938h == null) {\n this.f90938h = new C29242a(this.f90931a, this.f90937g).mo74873a((C39376h) new C39376h() {\n /* renamed from: a */\n public final void mo74759a(C29296g gVar) {\n }\n\n /* renamed from: a */\n public final void mo74760a(C29296g gVar, int i) {\n }\n\n /* renamed from: d */\n public final void mo74763d(C29296g gVar) {\n }\n\n /* renamed from: b */\n public final void mo74761b(C29296g gVar) {\n C34867a.this.f90934d.setVisibility(0);\n if (!C39805en.m127445a()) {\n C23487o.m77136a((Activity) C34867a.this.f90931a);\n }\n C6907h.m21519a((Context) C34867a.this.f90931a, \"filter_confirm\", \"mid_page\", \"0\", 0, C34867a.this.f90936f);\n }\n\n /* renamed from: c */\n public final void mo74762c(C29296g gVar) {\n String str;\n C34867a.this.f90933c = gVar;\n C34867a.this.f90932b.mo88467a(gVar.f77273h);\n if (C34867a.this.f90935e != null) {\n C34867a.this.f90935e.mo98958a(gVar);\n }\n EffectCategoryResponse b = C35563c.m114837d().mo74825b(C34867a.this.f90933c);\n if (b == null) {\n str = \"\";\n } else {\n str = b.name;\n }\n C6907h.m21524a(\"select_filter\", (Map) C38511bc.m123103a().mo96485a(\"creation_id\", C34867a.this.f90932b.mo88460a().creationId).mo96485a(\"shoot_way\", C34867a.this.f90932b.mo88460a().mShootWay).mo96483a(\"draft_id\", C34867a.this.f90932b.mo88460a().draftId).mo96485a(\"enter_method\", \"click\").mo96485a(\"filter_name\", C34867a.this.f90933c.f77268c).mo96483a(\"filter_id\", C34867a.this.f90933c.f77266a).mo96485a(\"tab_name\", str).mo96485a(\"content_source\", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentSource()).mo96485a(\"content_type\", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentType()).mo96485a(\"enter_from\", \"video_edit_page\").f100112a);\n }\n }).mo74871a((C29240bc) new C39369c(C35563c.f93224F.mo70097l().mo74950c().mo74723f())).mo74874a(this.f90932b.mo88460a().getAvetParameter()).mo74876a();\n if (this.f90933c != null) {\n this.f90938h.mo74751a(this.f90933c);\n }\n }\n this.f90938h.mo74749a();\n this.f90934d.setVisibility(8);\n }", "public static void m60889a(SugarAdapter eVar, final boolean z) {\n eVar.mo108923a(TemplateFeed.class, new SugarAdapter.AbstractC25136b<TemplateFeed>() {\n /* class com.zhihu.android.app.feed.p1083ui.fragment.helper.FeedViewHolderHelper.C112796 */\n\n /* renamed from: a */\n public Class<? extends SugarHolder> dispatch(TemplateFeed templateFeed) {\n return FeedViewHolderHelper.m60886a(templateFeed);\n }\n }).mo108923a(Feed.class, new SugarAdapter.AbstractC25136b<Feed>() {\n /* class com.zhihu.android.app.feed.p1083ui.fragment.helper.FeedViewHolderHelper.C112785 */\n\n /* renamed from: a */\n public Class<? extends SugarHolder> dispatch(Feed feed) {\n return FeedViewHolderHelper.m60884a(feed);\n }\n }).mo108923a(MarketCardModel.class, new SugarAdapter.AbstractC25136b<MarketCardModel>() {\n /* class com.zhihu.android.app.feed.p1083ui.fragment.helper.FeedViewHolderHelper.C112774 */\n\n /* renamed from: a */\n public Class<? extends SugarHolder> dispatch(MarketCardModel marketCardModel) {\n return FeedViewHolderHelper.m60887a(marketCardModel);\n }\n }).mo108923a(FeedAdvert.class, new SugarAdapter.AbstractC25136b<FeedAdvert>() {\n /* class com.zhihu.android.app.feed.p1083ui.fragment.helper.FeedViewHolderHelper.C112763 */\n\n /* renamed from: a */\n public Class<? extends SugarHolder> dispatch(FeedAdvert feedAdvert) {\n return FeedViewHolderHelper.m60893b(feedAdvert, z);\n }\n }).mo108923a(IgnoreReasonsWrapper.class, new SugarAdapter.AbstractC25136b<IgnoreReasonsWrapper>() {\n /* class com.zhihu.android.app.feed.p1083ui.fragment.helper.FeedViewHolderHelper.C112752 */\n\n /* renamed from: a */\n public Class<? extends SugarHolder> dispatch(IgnoreReasonsWrapper ignoreReasonsWrapper) {\n return FeedUninterestCardHolder.class;\n }\n }).mo108923a(MomentsFeed.class, new SugarAdapter.AbstractC25136b<MomentsFeed>() {\n /* class com.zhihu.android.app.feed.p1083ui.fragment.helper.FeedViewHolderHelper.C112741 */\n\n /* renamed from: a */\n public Class<? extends SugarHolder> dispatch(MomentsFeed momentsFeed) {\n return FeedViewHolderHelper.m60888a(momentsFeed);\n }\n });\n }", "@Override\n public void runOnUiThread(Runnable r) {\n }", "public interface DownloadPermissionChecker {\n /* renamed from: a */\n void mo26167a(Activity activity, int i, String[] strArr, int[] iArr);\n\n /* renamed from: a */\n void mo26168a(Activity activity, String[] strArr, IPermissionCallback nVar);\n\n /* renamed from: a */\n boolean mo26169a(Context context, String str);\n}", "private static abstract class <init> extends com.google.android.gms.games.hodImpl\n{\n\n public com.google.android.gms.games.quest.Result zzau(Status status)\n {\n return new com.google.android.gms.games.quest.Quests.ClaimMilestoneResult(status) {\n\n final Status zzQs;\n final QuestsImpl.ClaimImpl zzavH;\n\n public Milestone getMilestone()\n {\n return null;\n }\n\n public Quest getQuest()\n {\n return null;\n }\n\n public Status getStatus()\n {\n return zzQs;\n }\n\n \n {\n zzavH = QuestsImpl.ClaimImpl.this;\n zzQs = status;\n super();\n }\n };\n }", "private final void m28941a(zzpi zzpi) {\n zzalo.f8872a.post(new aq(this, zzpi));\n }", "private static com.google.android.gms.dynamite.zzj zzaT(android.content.Context r4) {\n /*\n java.lang.Class<com.google.android.gms.dynamite.DynamiteModule> r0 = com.google.android.gms.dynamite.DynamiteModule.class\n monitor-enter(r0)\n com.google.android.gms.dynamite.zzj r1 = zzaSG // Catch:{ all -> 0x0069 }\n if (r1 == 0) goto L_0x000b\n com.google.android.gms.dynamite.zzj r4 = zzaSG // Catch:{ all -> 0x0069 }\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r4\n L_0x000b:\n com.google.android.gms.common.zze r1 = com.google.android.gms.common.zze.zzoW() // Catch:{ all -> 0x0069 }\n int r1 = r1.isGooglePlayServicesAvailable(r4) // Catch:{ all -> 0x0069 }\n r2 = 0\n if (r1 == 0) goto L_0x0018\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r2\n L_0x0018:\n java.lang.String r1 = \"com.google.android.gms\"\n r3 = 3\n android.content.Context r4 = r4.createPackageContext(r1, r3) // Catch:{ Exception -> 0x004d }\n java.lang.ClassLoader r4 = r4.getClassLoader() // Catch:{ Exception -> 0x004d }\n java.lang.String r1 = \"com.google.android.gms.chimera.container.DynamiteLoaderImpl\"\n java.lang.Class r4 = r4.loadClass(r1) // Catch:{ Exception -> 0x004d }\n java.lang.Object r4 = r4.newInstance() // Catch:{ Exception -> 0x004d }\n android.os.IBinder r4 = (android.os.IBinder) r4 // Catch:{ Exception -> 0x004d }\n if (r4 != 0) goto L_0x0033\n r4 = r2\n goto L_0x0047\n L_0x0033:\n java.lang.String r1 = \"com.google.android.gms.dynamite.IDynamiteLoader\"\n android.os.IInterface r1 = r4.queryLocalInterface(r1) // Catch:{ Exception -> 0x004d }\n boolean r3 = r1 instanceof com.google.android.gms.dynamite.zzj // Catch:{ Exception -> 0x004d }\n if (r3 == 0) goto L_0x0041\n r4 = r1\n com.google.android.gms.dynamite.zzj r4 = (com.google.android.gms.dynamite.zzj) r4 // Catch:{ Exception -> 0x004d }\n goto L_0x0047\n L_0x0041:\n com.google.android.gms.dynamite.zzk r1 = new com.google.android.gms.dynamite.zzk // Catch:{ Exception -> 0x004d }\n r1.<init>(r4) // Catch:{ Exception -> 0x004d }\n r4 = r1\n L_0x0047:\n if (r4 == 0) goto L_0x0067\n zzaSG = r4 // Catch:{ Exception -> 0x004d }\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r4\n L_0x004d:\n r4 = move-exception\n java.lang.String r1 = \"Failed to load IDynamiteLoader from GmsCore: \"\n java.lang.String r4 = r4.getMessage() // Catch:{ all -> 0x0069 }\n java.lang.String r4 = java.lang.String.valueOf(r4) // Catch:{ all -> 0x0069 }\n int r3 = r4.length() // Catch:{ all -> 0x0069 }\n if (r3 == 0) goto L_0x0062\n r1.concat(r4) // Catch:{ all -> 0x0069 }\n goto L_0x0067\n L_0x0062:\n java.lang.String r4 = new java.lang.String // Catch:{ all -> 0x0069 }\n r4.<init>(r1) // Catch:{ all -> 0x0069 }\n L_0x0067:\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r2\n L_0x0069:\n r4 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zzaT(android.content.Context):com.google.android.gms.dynamite.zzj\");\n }", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "public interface LogAdapter {\n /* renamed from: a */\n String mo131984a();\n\n /* renamed from: a */\n void mo131985a(int i, String str, String str2, Throwable th);\n\n /* renamed from: a */\n void mo131986a(String str, String str2);\n}", "interface ImmersionCallback extends OnNavigationBarListener, Runnable {\n}", "private void m48613a(View view) {\n this.f28504b = (TextView) view.findViewById(C10232R.C10236id.tvCancel);\n this.f28498N = (RecyclerView) view.findViewById(C10232R.C10236id.rvOptions);\n if (this.f28501Q != null) {\n m48616x();\n }\n }", "void mo63094q();", "private void m9534a(android.content.Context r3) {\n /*\n r2 = this;\n android.content.Context r0 = r2.f7502i\n boolean r1 = r0 instanceof android.app.Activity\n if (r1 == 0) goto L_0x0010\n android.app.Activity r0 = (android.app.Activity) r0\n boolean r0 = r0.isFinishing()\n if (r0 != 0) goto L_0x0010\n android.content.Context r3 = r2.f7502i\n L_0x0010:\n com.bytedance.sdk.openadsdk.dislike.b r0 = new com.bytedance.sdk.openadsdk.dislike.b\n com.bytedance.sdk.openadsdk.core.d.k r1 = r2.f7501h\n r0.m43956init(r3, r1)\n r2.f7503j = r0\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.sdk.openadsdk.core.p171e.TTNativeAdImpl.m9534a(android.app.Activity):void\");\n }", "@Override // com.zhihu.android.profile.newprofile.p1859ui.card.ProfileBaseCard\n /* renamed from: a */\n public void mo106382a(View view) {\n }", "public static java.lang.String a(android.content.Context r16, android.net.Uri r17) {\n /*\n r1 = 2\n java.lang.Object[] r8 = new java.lang.Object[r1]\n r15 = 0\n r8[r15] = r16\n r6 = 1\n r8[r6] = r17\n com.meituan.robust.ChangeQuickRedirect r10 = f17527a\n java.lang.Class[] r13 = new java.lang.Class[r1]\n java.lang.Class<android.content.Context> r2 = android.content.Context.class\n r13[r15] = r2\n java.lang.Class<android.net.Uri> r2 = android.net.Uri.class\n r13[r6] = r2\n java.lang.Class<java.lang.String> r14 = java.lang.String.class\n r9 = 0\n r11 = 1\n r12 = 13601(0x3521, float:1.9059E-41)\n boolean r2 = com.meituan.robust.PatchProxy.isSupport(r8, r9, r10, r11, r12, r13, r14)\n if (r2 == 0) goto L_0x0041\n java.lang.Object[] r2 = new java.lang.Object[r1]\n r2[r15] = r16\n r2[r6] = r17\n r8 = 0\n com.meituan.robust.ChangeQuickRedirect r9 = f17527a\n r10 = 1\n r11 = 13601(0x3521, float:1.9059E-41)\n java.lang.Class[] r12 = new java.lang.Class[r1]\n java.lang.Class<android.content.Context> r0 = android.content.Context.class\n r12[r15] = r0\n java.lang.Class<android.net.Uri> r0 = android.net.Uri.class\n r12[r6] = r0\n java.lang.Class<java.lang.String> r13 = java.lang.String.class\n r7 = r2\n java.lang.Object r0 = com.meituan.robust.PatchProxy.accessDispatch(r7, r8, r9, r10, r11, r12, r13)\n java.lang.String r0 = (java.lang.String) r0\n return r0\n L_0x0041:\n r8 = 0\n if (r17 != 0) goto L_0x0045\n return r8\n L_0x0045:\n java.lang.String r1 = r17.getScheme()\n boolean r2 = com.bytedance.common.utility.StringUtils.isEmpty(r1)\n if (r2 != 0) goto L_0x010a\n java.lang.String r2 = \"file\"\n boolean r2 = r2.equals(r1)\n if (r2 == 0) goto L_0x0059\n goto L_0x010a\n L_0x0059:\n java.lang.String r2 = \"http\"\n boolean r2 = r2.equals(r1)\n if (r2 == 0) goto L_0x0066\n java.lang.String r0 = r17.toString()\n return r0\n L_0x0066:\n java.lang.String r2 = \"content\"\n boolean r1 = r2.equals(r1)\n if (r1 == 0) goto L_0x0109\n java.lang.String[] r11 = new java.lang.String[r6]\n java.lang.String r1 = \"_data\"\n r11[r15] = r1\n java.lang.String r9 = \"\"\n android.content.ContentResolver r1 = r16.getContentResolver() // Catch:{ Exception -> 0x00a3, all -> 0x009b }\n r4 = 0\n r5 = 0\n r10 = 0\n r2 = r17\n r3 = r11\n r12 = 1\n r6 = r10\n android.database.Cursor r1 = r1.query(r2, r3, r4, r5, r6) // Catch:{ Exception -> 0x00a4, all -> 0x009b }\n boolean r2 = r1.moveToFirst() // Catch:{ Exception -> 0x00a5, all -> 0x0099 }\n if (r2 == 0) goto L_0x0091\n java.lang.String r2 = r1.getString(r15) // Catch:{ Exception -> 0x00a5, all -> 0x0099 }\n r9 = r2\n L_0x0091:\n if (r1 == 0) goto L_0x0096\n r1.close() // Catch:{ Exception -> 0x00a5, all -> 0x0099 }\n L_0x0096:\n if (r1 == 0) goto L_0x00aa\n goto L_0x00a7\n L_0x0099:\n r0 = move-exception\n goto L_0x009d\n L_0x009b:\n r0 = move-exception\n r1 = r8\n L_0x009d:\n if (r1 == 0) goto L_0x00a2\n r1.close() // Catch:{ Exception -> 0x00a2 }\n L_0x00a2:\n throw r0\n L_0x00a3:\n r12 = 1\n L_0x00a4:\n r1 = r8\n L_0x00a5:\n if (r1 == 0) goto L_0x00aa\n L_0x00a7:\n r1.close() // Catch:{ Exception -> 0x00aa }\n L_0x00aa:\n r2 = r1\n r1 = r9\n boolean r3 = com.bytedance.common.utility.StringUtils.isEmpty(r1)\n if (r3 == 0) goto L_0x0108\n android.content.ContentResolver r9 = r16.getContentResolver() // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n java.lang.String r0 = \"_id= ?\"\n java.lang.String r3 = r17.getLastPathSegment() // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n int r4 = android.os.Build.VERSION.SDK_INT // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n r5 = 19\n if (r4 < r5) goto L_0x00d8\n boolean r4 = com.bytedance.common.utility.StringUtils.isEmpty(r3) // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n if (r4 != 0) goto L_0x00d8\n java.lang.String r4 = \":\"\n boolean r4 = r3.contains(r4) // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n if (r4 == 0) goto L_0x00d8\n java.lang.String r4 = \":\"\n java.lang.String[] r3 = r3.split(r4) // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n r3 = r3[r12] // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n L_0x00d8:\n java.lang.String[] r13 = new java.lang.String[r12] // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n r13[r15] = r3 // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n android.net.Uri r10 = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n r14 = 0\n r12 = r0\n android.database.Cursor r3 = r9.query(r10, r11, r12, r13, r14) // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n boolean r0 = r3.moveToFirst() // Catch:{ Exception -> 0x0105, all -> 0x00fa }\n if (r0 == 0) goto L_0x00ef\n java.lang.String r0 = r3.getString(r15) // Catch:{ Exception -> 0x0105, all -> 0x00fa }\n r1 = r0\n L_0x00ef:\n if (r3 == 0) goto L_0x00f4\n r3.close() // Catch:{ Exception -> 0x0105, all -> 0x00fa }\n L_0x00f4:\n if (r3 == 0) goto L_0x0108\n L_0x00f6:\n r3.close() // Catch:{ Exception -> 0x0108 }\n goto L_0x0108\n L_0x00fa:\n r0 = move-exception\n r2 = r3\n goto L_0x00fe\n L_0x00fd:\n r0 = move-exception\n L_0x00fe:\n if (r2 == 0) goto L_0x0103\n r2.close() // Catch:{ Exception -> 0x0103 }\n L_0x0103:\n throw r0\n L_0x0104:\n r3 = r2\n L_0x0105:\n if (r3 == 0) goto L_0x0108\n goto L_0x00f6\n L_0x0108:\n return r1\n L_0x0109:\n return r8\n L_0x010a:\n java.lang.String r0 = r17.getPath()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.android.livesdk.utils.a.a(android.content.Context, android.net.Uri):java.lang.String\");\n }", "public interface C1326d extends IInterface {\n\n /* renamed from: com.google.android.gms.plus.internal.d$a */\n public static abstract class C1327a extends Binder implements C1326d {\n\n /* renamed from: com.google.android.gms.plus.internal.d$a$a */\n private static class C1328a implements C1326d {\n\n /* renamed from: ky */\n private IBinder f3425ky;\n\n C1328a(IBinder iBinder) {\n this.f3425ky = iBinder;\n }\n\n /* renamed from: a */\n public void mo7372a(C0802fh fhVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n if (fhVar != null) {\n obtain.writeInt(1);\n fhVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(4, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7373a(C1320b bVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n this.f3425ky.transact(8, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7374a(C1320b bVar, int i, int i2, int i3, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeInt(i);\n obtain.writeInt(i2);\n obtain.writeInt(i3);\n obtain.writeString(str);\n this.f3425ky.transact(16, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeInt(i);\n obtain.writeString(str);\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n obtain.writeString(str2);\n obtain.writeString(str3);\n this.f3425ky.transact(14, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7376a(C1320b bVar, Uri uri, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(9, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7377a(C1320b bVar, C0802fh fhVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n if (fhVar != null) {\n obtain.writeInt(1);\n fhVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(45, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7378a(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7379a(C1320b bVar, String str, String str2) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n obtain.writeString(str2);\n this.f3425ky.transact(2, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7380a(C1320b bVar, List<String> list) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeStringList(list);\n this.f3425ky.transact(34, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public IBinder asBinder() {\n return this.f3425ky;\n }\n\n /* renamed from: b */\n public void mo7381b(C1320b bVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n this.f3425ky.transact(19, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo7382b(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(3, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: c */\n public void mo7383c(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(18, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public void clearDefaultAccount() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(6, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: d */\n public void mo7385d(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(40, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: e */\n public void mo7386e(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(44, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public String getAccountName() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(5, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hl */\n public String mo7388hl() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(41, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hm */\n public boolean mo7389hm() throws RemoteException {\n boolean z = false;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(42, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hn */\n public String mo7390hn() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(43, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public void removeMoment(String momentId) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeString(momentId);\n this.f3425ky.transact(17, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n\n /* renamed from: aA */\n public static C1326d m3858aA(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C1326d)) ? new C1328a(iBinder) : (C1326d) queryLocalInterface;\n }\n\n /* JADX WARNING: type inference failed for: r4v0 */\n /* JADX WARNING: type inference failed for: r4v1, types: [com.google.android.gms.internal.fh] */\n /* JADX WARNING: type inference failed for: r4v2, types: [com.google.android.gms.internal.fh] */\n /* JADX WARNING: type inference failed for: r4v4, types: [android.net.Uri] */\n /* JADX WARNING: type inference failed for: r0v38, types: [android.net.Uri] */\n /* JADX WARNING: type inference failed for: r4v5 */\n /* JADX WARNING: type inference failed for: r4v6 */\n /* JADX WARNING: Multi-variable type inference failed. Error: jadx.core.utils.exceptions.JadxRuntimeException: No candidate types for var: r4v0\n assigns: [?[int, float, boolean, short, byte, char, OBJECT, ARRAY], ?[OBJECT, ARRAY], com.google.android.gms.internal.fh]\n uses: [com.google.android.gms.internal.fh, android.net.Uri]\n mth insns count: 188\n \tat jadx.core.dex.visitors.typeinference.TypeSearch.fillTypeCandidates(TypeSearch.java:237)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.typeinference.TypeSearch.run(TypeSearch.java:53)\n \tat jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.runMultiVariableSearch(TypeInferenceVisitor.java:99)\n \tat jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.visit(TypeInferenceVisitor.java:92)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:27)\n \tat jadx.core.dex.visitors.DepthTraversal.lambda$visit$1(DepthTraversal.java:14)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n \tat jadx.core.dex.visitors.DepthTraversal.lambda$visit$0(DepthTraversal.java:13)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:13)\n \tat jadx.core.ProcessClass.process(ProcessClass.java:30)\n \tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:311)\n \tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n \tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:217)\n */\n /* JADX WARNING: Unknown variable types count: 3 */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public boolean onTransact(int r9, android.os.Parcel r10, android.os.Parcel r11, int r12) throws android.os.RemoteException {\n /*\n r8 = this;\n r4 = 0\n r7 = 1\n switch(r9) {\n case 1: goto L_0x0010;\n case 2: goto L_0x0028;\n case 3: goto L_0x0044;\n case 4: goto L_0x005c;\n case 5: goto L_0x0076;\n case 6: goto L_0x0086;\n case 8: goto L_0x0093;\n case 9: goto L_0x00a8;\n case 14: goto L_0x00de;\n case 16: goto L_0x0113;\n case 17: goto L_0x0139;\n case 18: goto L_0x014a;\n case 19: goto L_0x0163;\n case 34: goto L_0x0178;\n case 40: goto L_0x0191;\n case 41: goto L_0x01aa;\n case 42: goto L_0x01bb;\n case 43: goto L_0x01d1;\n case 44: goto L_0x01e2;\n case 45: goto L_0x01fb;\n case 1598968902: goto L_0x000a;\n default: goto L_0x0005;\n }\n L_0x0005:\n boolean r7 = super.onTransact(r9, r10, r11, r12)\n L_0x0009:\n return r7\n L_0x000a:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r11.writeString(r0)\n goto L_0x0009\n L_0x0010:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7378a(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0028:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n java.lang.String r2 = r10.readString()\n r8.mo7379a(r0, r1, r2)\n r11.writeNoException()\n goto L_0x0009\n L_0x0044:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7382b(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x005c:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x0074\n com.google.android.gms.internal.fi r0 = com.google.android.gms.internal.C0802fh.CREATOR\n com.google.android.gms.internal.fh r0 = r0.createFromParcel(r10)\n L_0x006d:\n r8.mo7372a(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x0074:\n r0 = r4\n goto L_0x006d\n L_0x0076:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.getAccountName()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x0086:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n r8.clearDefaultAccount()\n r11.writeNoException()\n goto L_0x0009\n L_0x0093:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n r8.mo7373a(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x00a8:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r2 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x00da\n android.os.Parcelable$Creator r0 = android.net.Uri.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.net.Uri r0 = (android.net.Uri) r0\n r1 = r0\n L_0x00c4:\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x00dc\n android.os.Parcelable$Creator r0 = android.os.Bundle.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.os.Bundle r0 = (android.os.Bundle) r0\n L_0x00d2:\n r8.mo7376a(r2, r1, r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x00da:\n r1 = r4\n goto L_0x00c4\n L_0x00dc:\n r0 = r4\n goto L_0x00d2\n L_0x00de:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r1 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r2 = r10.readInt()\n java.lang.String r3 = r10.readString()\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x0102\n android.os.Parcelable$Creator r0 = android.net.Uri.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.net.Uri r0 = (android.net.Uri) r0\n r4 = r0\n L_0x0102:\n java.lang.String r5 = r10.readString()\n java.lang.String r6 = r10.readString()\n r0 = r8\n r0.mo7375a(r1, r2, r3, r4, r5, r6)\n r11.writeNoException()\n goto L_0x0009\n L_0x0113:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r1 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r2 = r10.readInt()\n int r3 = r10.readInt()\n int r4 = r10.readInt()\n java.lang.String r5 = r10.readString()\n r0 = r8\n r0.mo7374a(r1, r2, r3, r4, r5)\n r11.writeNoException()\n goto L_0x0009\n L_0x0139:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r10.readString()\n r8.removeMoment(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x014a:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7383c(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0163:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n r8.mo7381b(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x0178:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.util.ArrayList r1 = r10.createStringArrayList()\n r8.mo7380a(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0191:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7385d(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x01aa:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.mo7388hl()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x01bb:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n boolean r0 = r8.mo7389hm()\n r11.writeNoException()\n if (r0 == 0) goto L_0x01cf\n r0 = r7\n L_0x01ca:\n r11.writeInt(r0)\n goto L_0x0009\n L_0x01cf:\n r0 = 0\n goto L_0x01ca\n L_0x01d1:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.mo7390hn()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x01e2:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7386e(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x01fb:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r1 = r10.readInt()\n if (r1 == 0) goto L_0x0214\n com.google.android.gms.internal.fi r1 = com.google.android.gms.internal.C0802fh.CREATOR\n com.google.android.gms.internal.fh r4 = r1.createFromParcel(r10)\n L_0x0214:\n r8.mo7377a(r0, r4)\n r11.writeNoException()\n goto L_0x0009\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.plus.internal.C1326d.C1327a.onTransact(int, android.os.Parcel, android.os.Parcel, int):boolean\");\n }\n }\n\n /* renamed from: a */\n void mo7372a(C0802fh fhVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7373a(C1320b bVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7374a(C1320b bVar, int i, int i2, int i3, String str) throws RemoteException;\n\n /* renamed from: a */\n void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException;\n\n /* renamed from: a */\n void mo7376a(C1320b bVar, Uri uri, Bundle bundle) throws RemoteException;\n\n /* renamed from: a */\n void mo7377a(C1320b bVar, C0802fh fhVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7378a(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: a */\n void mo7379a(C1320b bVar, String str, String str2) throws RemoteException;\n\n /* renamed from: a */\n void mo7380a(C1320b bVar, List<String> list) throws RemoteException;\n\n /* renamed from: b */\n void mo7381b(C1320b bVar) throws RemoteException;\n\n /* renamed from: b */\n void mo7382b(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: c */\n void mo7383c(C1320b bVar, String str) throws RemoteException;\n\n void clearDefaultAccount() throws RemoteException;\n\n /* renamed from: d */\n void mo7385d(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: e */\n void mo7386e(C1320b bVar, String str) throws RemoteException;\n\n String getAccountName() throws RemoteException;\n\n /* renamed from: hl */\n String mo7388hl() throws RemoteException;\n\n /* renamed from: hm */\n boolean mo7389hm() throws RemoteException;\n\n /* renamed from: hn */\n String mo7390hn() throws RemoteException;\n\n void removeMoment(String str) throws RemoteException;\n}", "public final void mo5384q() {\n if (this.f9712e) {\n this.f9712e = false;\n this.f9713f = 0;\n RecyclerView recyclerView = this.f9709b;\n if (recyclerView != null) {\n recyclerView.f1041a.mo5397b();\n }\n }\n }", "private void m128164g() {\n this.f104192B = ViewPagerBottomSheetBehavior.m76628a(findViewById(R.id.a7r));\n this.f104192B.f61460k = new C23369a() {\n /* renamed from: a */\n public final void mo60691a(View view, float f) {\n }\n\n /* renamed from: a */\n public final void mo60692a(View view, int i) {\n if (i == 5) {\n MvChoosePhotoActivity.this.finish();\n MvChoosePhotoActivity.this.overridePendingTransition(0, 0);\n }\n }\n };\n this.f104192B.mo60679a(C23482j.m77095a(this) + C23482j.m77104e(this));\n this.f104192B.f61453d = true;\n this.f104192B.mo60680a(this.f104236z);\n }", "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "public interface AttachmentContainer {\n\n /* compiled from: overflow_menu_button */\n public interface Callback {\n void mo142a(MediaResource mediaResource);\n\n void mo143b(MediaResource mediaResource);\n }\n\n void mo208a();\n\n void mo209a(Intent intent);\n\n void mo210a(MediaResource mediaResource);\n\n void mo211b(MediaResource mediaResource);\n\n void setAttachmentContainerCallback(Callback callback);\n}", "public interface C24340v {\n /* renamed from: q */\n void mo63094q();\n}", "public boolean animateChange(com.color.widget.ColorRecyclerView.ViewHolder r1, com.color.widget.ColorRecyclerView.ViewHolder r2, com.color.widget.ColorRecyclerView.ItemAnimator.ItemHolderInfo r3, com.color.widget.ColorRecyclerView.ItemAnimator.ItemHolderInfo r4) {\n /*\n // Can't load method instructions: Load method exception: null in method: com.color.widget.ColorSimpleItemAnimator.animateChange(com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo):boolean, dex: in method: com.color.widget.ColorSimpleItemAnimator.animateChange(com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.animateChange(com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo):boolean\");\n }", "public android.view.View mo4295a(android.view.View r24, int r25, androidx.recyclerview.widget.RecyclerView.C0820v r26, androidx.recyclerview.widget.RecyclerView.C0788a0 r27) {\n /*\n r23 = this;\n r0 = r23\n r1 = r26\n r2 = r27\n android.view.View r3 = r23.mo4722c(r24)\n r4 = 0\n if (r3 != 0) goto L_0x000e\n return r4\n L_0x000e:\n android.view.ViewGroup$LayoutParams r5 = r3.getLayoutParams()\n androidx.recyclerview.widget.GridLayoutManager$b r5 = (androidx.recyclerview.widget.GridLayoutManager.C0780b) r5\n int r6 = r5.f3127e\n int r5 = r5.f3128f\n int r5 = r5 + r6\n android.view.View r7 = super.mo4295a(r24, r25, r26, r27)\n if (r7 != 0) goto L_0x0020\n return r4\n L_0x0020:\n r7 = r25\n int r7 = r0.mo4344j(r7)\n r9 = 1\n if (r7 != r9) goto L_0x002b\n r7 = 1\n goto L_0x002c\n L_0x002b:\n r7 = 0\n L_0x002c:\n boolean r10 = r0.f3143x\n if (r7 == r10) goto L_0x0032\n r7 = 1\n goto L_0x0033\n L_0x0032:\n r7 = 0\n L_0x0033:\n r10 = -1\n if (r7 == 0) goto L_0x003e\n int r7 = r23.mo4732e()\n int r7 = r7 - r9\n r11 = -1\n r12 = -1\n goto L_0x0045\n L_0x003e:\n int r7 = r23.mo4732e()\n r11 = r7\n r7 = 0\n r12 = 1\n L_0x0045:\n int r13 = r0.f3138s\n if (r13 != r9) goto L_0x0051\n boolean r13 = r23.mo4323M()\n if (r13 == 0) goto L_0x0051\n r13 = 1\n goto L_0x0052\n L_0x0051:\n r13 = 0\n L_0x0052:\n int r14 = r0.m3936a(r1, r2, r7)\n r10 = r4\n r8 = -1\n r15 = 0\n r16 = 0\n r17 = -1\n L_0x005d:\n if (r7 == r11) goto L_0x0147\n int r9 = r0.m3936a(r1, r2, r7)\n android.view.View r1 = r0.mo4729d(r7)\n if (r1 != r3) goto L_0x006b\n goto L_0x0147\n L_0x006b:\n boolean r18 = r1.hasFocusable()\n if (r18 == 0) goto L_0x0085\n if (r9 == r14) goto L_0x0085\n if (r4 == 0) goto L_0x0077\n goto L_0x0147\n L_0x0077:\n r18 = r3\n r19 = r8\n r21 = r10\n r20 = r11\n r8 = r16\n r10 = r17\n goto L_0x0133\n L_0x0085:\n android.view.ViewGroup$LayoutParams r9 = r1.getLayoutParams()\n androidx.recyclerview.widget.GridLayoutManager$b r9 = (androidx.recyclerview.widget.GridLayoutManager.C0780b) r9\n int r2 = r9.f3127e\n r18 = r3\n int r3 = r9.f3128f\n int r3 = r3 + r2\n boolean r19 = r1.hasFocusable()\n if (r19 == 0) goto L_0x009d\n if (r2 != r6) goto L_0x009d\n if (r3 != r5) goto L_0x009d\n return r1\n L_0x009d:\n boolean r19 = r1.hasFocusable()\n if (r19 == 0) goto L_0x00a5\n if (r4 == 0) goto L_0x00ad\n L_0x00a5:\n boolean r19 = r1.hasFocusable()\n if (r19 != 0) goto L_0x00b9\n if (r10 != 0) goto L_0x00b9\n L_0x00ad:\n r19 = r8\n r21 = r10\n L_0x00b1:\n r20 = r11\n r8 = r16\n r10 = r17\n L_0x00b7:\n r11 = 1\n goto L_0x0103\n L_0x00b9:\n int r19 = java.lang.Math.max(r2, r6)\n int r20 = java.lang.Math.min(r3, r5)\n r21 = r10\n int r10 = r20 - r19\n boolean r19 = r1.hasFocusable()\n if (r19 == 0) goto L_0x00da\n if (r10 <= r15) goto L_0x00d0\n L_0x00cd:\n r19 = r8\n goto L_0x00b1\n L_0x00d0:\n if (r10 != r15) goto L_0x00fa\n if (r2 <= r8) goto L_0x00d6\n r10 = 1\n goto L_0x00d7\n L_0x00d6:\n r10 = 0\n L_0x00d7:\n if (r13 != r10) goto L_0x00fa\n goto L_0x00cd\n L_0x00da:\n if (r4 != 0) goto L_0x00fa\n r19 = r8\n r20 = r11\n r8 = 0\n r11 = 1\n boolean r22 = r0.mo4709a(r1, r8, r11)\n r8 = r16\n if (r22 == 0) goto L_0x0100\n if (r10 <= r8) goto L_0x00ef\n r10 = r17\n goto L_0x0103\n L_0x00ef:\n if (r10 != r8) goto L_0x0100\n r10 = r17\n if (r2 <= r10) goto L_0x00f6\n goto L_0x00f7\n L_0x00f6:\n r11 = 0\n L_0x00f7:\n if (r13 != r11) goto L_0x0102\n goto L_0x00b7\n L_0x00fa:\n r19 = r8\n r20 = r11\n r8 = r16\n L_0x0100:\n r10 = r17\n L_0x0102:\n r11 = 0\n L_0x0103:\n if (r11 == 0) goto L_0x0133\n boolean r11 = r1.hasFocusable()\n if (r11 == 0) goto L_0x0120\n int r4 = r9.f3127e\n int r3 = java.lang.Math.min(r3, r5)\n int r2 = java.lang.Math.max(r2, r6)\n int r3 = r3 - r2\n r15 = r3\n r16 = r8\n r17 = r10\n r10 = r21\n r8 = r4\n r4 = r1\n goto L_0x013b\n L_0x0120:\n int r8 = r9.f3127e\n int r3 = java.lang.Math.min(r3, r5)\n int r2 = java.lang.Math.max(r2, r6)\n int r3 = r3 - r2\n r10 = r1\n r16 = r3\n r17 = r8\n r8 = r19\n goto L_0x013b\n L_0x0133:\n r16 = r8\n r17 = r10\n r8 = r19\n r10 = r21\n L_0x013b:\n int r7 = r7 + r12\n r1 = r26\n r2 = r27\n r3 = r18\n r11 = r20\n r9 = 1\n goto L_0x005d\n L_0x0147:\n r21 = r10\n if (r4 == 0) goto L_0x014c\n goto L_0x014e\n L_0x014c:\n r4 = r21\n L_0x014e:\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GridLayoutManager.mo4295a(android.view.View, int, androidx.recyclerview.widget.RecyclerView$v, androidx.recyclerview.widget.RecyclerView$a0):android.view.View\");\n }", "static void q8(){\t\n\t}", "public interface C0394b extends IInterface {\n\n /* renamed from: android.support.v4.media.session.b$a */\n /* compiled from: IMediaSession */\n public static abstract class C0395a extends Binder implements C0394b {\n\n /* renamed from: android.support.v4.media.session.b$a$a */\n /* compiled from: IMediaSession */\n private static class C0396a implements C0394b {\n\n /* renamed from: a */\n private IBinder f822a;\n\n C0396a(IBinder iBinder) {\n this.f822a = iBinder;\n }\n\n public IBinder asBinder() {\n return this.f822a;\n }\n\n /* renamed from: a */\n public void mo716a(String str, Bundle bundle, ResultReceiverWrapper resultReceiverWrapper) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeString(str);\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (resultReceiverWrapper != null) {\n obtain.writeInt(1);\n resultReceiverWrapper.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public boolean mo719a(KeyEvent keyEvent) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n boolean z = true;\n if (keyEvent != null) {\n obtain.writeInt(1);\n keyEvent.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(2, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() == 0) {\n z = false;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo714a(C0391a aVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeStrongBinder(aVar != null ? aVar.asBinder() : null);\n this.f822a.transact(3, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo726b(C0391a aVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeStrongBinder(aVar != null ? aVar.asBinder() : null);\n this.f822a.transact(4, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public boolean mo718a() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n boolean z = false;\n this.f822a.transact(5, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public String mo720b() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(6, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: c */\n public String mo729c() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(7, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: d */\n public PendingIntent mo732d() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(8, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt() != 0 ? (PendingIntent) PendingIntent.CREATOR.createFromParcel(obtain2) : null;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: e */\n public long mo734e() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(9, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readLong();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: f */\n public ParcelableVolumeInfo mo736f() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(10, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt() != 0 ? (ParcelableVolumeInfo) ParcelableVolumeInfo.CREATOR.createFromParcel(obtain2) : null;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo707a(int i, int i2, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeInt(i);\n obtain.writeInt(i2);\n obtain.writeString(str);\n this.f822a.transact(11, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo722b(int i, int i2, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeInt(i);\n obtain.writeInt(i2);\n obtain.writeString(str);\n this.f822a.transact(12, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: g */\n public MediaMetadataCompat mo737g() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(27, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt() != 0 ? (MediaMetadataCompat) MediaMetadataCompat.CREATOR.createFromParcel(obtain2) : null;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: h */\n public PlaybackStateCompat mo738h() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(28, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt() != 0 ? (PlaybackStateCompat) PlaybackStateCompat.CREATOR.createFromParcel(obtain2) : null;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: i */\n public List<QueueItem> mo739i() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(29, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.createTypedArrayList(QueueItem.CREATOR);\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: j */\n public CharSequence mo740j() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(30, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt() != 0 ? (CharSequence) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(obtain2) : null;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: k */\n public Bundle mo741k() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(31, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(obtain2) : null;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: l */\n public int mo742l() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(32, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: m */\n public boolean mo743m() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n boolean z = false;\n this.f822a.transact(45, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: n */\n public int mo744n() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(37, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: o */\n public boolean mo745o() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n boolean z = false;\n this.f822a.transact(38, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: p */\n public int mo746p() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(47, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo710a(MediaDescriptionCompat mediaDescriptionCompat) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (mediaDescriptionCompat != null) {\n obtain.writeInt(1);\n mediaDescriptionCompat.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(41, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo711a(MediaDescriptionCompat mediaDescriptionCompat, int i) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (mediaDescriptionCompat != null) {\n obtain.writeInt(1);\n mediaDescriptionCompat.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n obtain.writeInt(i);\n this.f822a.transact(42, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo725b(MediaDescriptionCompat mediaDescriptionCompat) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (mediaDescriptionCompat != null) {\n obtain.writeInt(1);\n mediaDescriptionCompat.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(43, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo706a(int i) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeInt(i);\n this.f822a.transact(44, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: q */\n public void mo747q() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(33, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo715a(String str, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeString(str);\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(34, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo727b(String str, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeString(str);\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(35, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo709a(Uri uri, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(36, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: r */\n public void mo748r() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(13, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: c */\n public void mo731c(String str, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeString(str);\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(14, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: d */\n public void mo733d(String str, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeString(str);\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(15, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo724b(Uri uri, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(16, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo708a(long j) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeLong(j);\n this.f822a.transact(17, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: s */\n public void mo749s() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(18, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: t */\n public void mo750t() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(19, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: u */\n public void mo751u() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(20, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: v */\n public void mo752v() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(21, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: w */\n public void mo753w() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(22, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: x */\n public void mo754x() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(23, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo723b(long j) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeLong(j);\n this.f822a.transact(24, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo712a(RatingCompat ratingCompat) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (ratingCompat != null) {\n obtain.writeInt(1);\n ratingCompat.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(25, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo713a(RatingCompat ratingCompat, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (ratingCompat != null) {\n obtain.writeInt(1);\n ratingCompat.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(51, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo717a(boolean z) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeInt(z ? 1 : 0);\n this.f822a.transact(46, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo721b(int i) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeInt(i);\n this.f822a.transact(39, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo728b(boolean z) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeInt(z ? 1 : 0);\n this.f822a.transact(40, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: c */\n public void mo730c(int i) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeInt(i);\n this.f822a.transact(48, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: e */\n public void mo735e(String str, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeString(str);\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f822a.transact(26, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n /* renamed from: a */\n public static C0394b m1153a(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"android.support.v4.media.session.IMediaSession\");\n if (queryLocalInterface == null || !(queryLocalInterface instanceof C0394b)) {\n return new C0396a(iBinder);\n }\n return (C0394b) queryLocalInterface;\n }\n\n /* JADX WARNING: type inference failed for: r1v0 */\n /* JADX WARNING: type inference failed for: r1v1, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v3, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v4, types: [android.support.v4.media.session.MediaSessionCompat$ResultReceiverWrapper] */\n /* JADX WARNING: type inference failed for: r1v6, types: [android.support.v4.media.session.MediaSessionCompat$ResultReceiverWrapper] */\n /* JADX WARNING: type inference failed for: r1v7, types: [android.view.KeyEvent] */\n /* JADX WARNING: type inference failed for: r1v9, types: [android.view.KeyEvent] */\n /* JADX WARNING: type inference failed for: r1v10, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v12, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v13, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v15, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v16, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v18, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v19, types: [android.support.v4.media.RatingCompat] */\n /* JADX WARNING: type inference failed for: r1v21, types: [android.support.v4.media.RatingCompat] */\n /* JADX WARNING: type inference failed for: r1v22, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v24, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v25, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v27, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v28, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v30, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v31, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v33, types: [android.os.Bundle] */\n /* JADX WARNING: type inference failed for: r1v34, types: [android.support.v4.media.MediaDescriptionCompat] */\n /* JADX WARNING: type inference failed for: r1v36, types: [android.support.v4.media.MediaDescriptionCompat] */\n /* JADX WARNING: type inference failed for: r1v37, types: [android.support.v4.media.MediaDescriptionCompat] */\n /* JADX WARNING: type inference failed for: r1v39, types: [android.support.v4.media.MediaDescriptionCompat] */\n /* JADX WARNING: type inference failed for: r1v40, types: [android.support.v4.media.MediaDescriptionCompat] */\n /* JADX WARNING: type inference failed for: r1v42, types: [android.support.v4.media.MediaDescriptionCompat] */\n /* JADX WARNING: type inference failed for: r1v43 */\n /* JADX WARNING: type inference failed for: r1v44 */\n /* JADX WARNING: type inference failed for: r1v45 */\n /* JADX WARNING: type inference failed for: r1v46 */\n /* JADX WARNING: type inference failed for: r1v47 */\n /* JADX WARNING: type inference failed for: r1v48 */\n /* JADX WARNING: type inference failed for: r1v49 */\n /* JADX WARNING: type inference failed for: r1v50 */\n /* JADX WARNING: type inference failed for: r1v51 */\n /* JADX WARNING: type inference failed for: r1v52 */\n /* JADX WARNING: type inference failed for: r1v53 */\n /* JADX WARNING: type inference failed for: r1v54 */\n /* JADX WARNING: type inference failed for: r1v55 */\n /* JADX WARNING: type inference failed for: r1v56 */\n /* JADX WARNING: Multi-variable type inference failed. Error: jadx.core.utils.exceptions.JadxRuntimeException: No candidate types for var: r1v0\n assigns: [?[int, float, boolean, short, byte, char, OBJECT, ARRAY], android.support.v4.media.session.MediaSessionCompat$ResultReceiverWrapper, android.os.Bundle, android.view.KeyEvent, android.support.v4.media.RatingCompat, android.support.v4.media.MediaDescriptionCompat]\n uses: [android.os.Bundle, android.support.v4.media.session.MediaSessionCompat$ResultReceiverWrapper, android.view.KeyEvent, android.support.v4.media.RatingCompat, android.support.v4.media.MediaDescriptionCompat]\n mth insns count: 440\n \tat jadx.core.dex.visitors.typeinference.TypeSearch.fillTypeCandidates(TypeSearch.java:237)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.typeinference.TypeSearch.run(TypeSearch.java:53)\n \tat jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.runMultiVariableSearch(TypeInferenceVisitor.java:99)\n \tat jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.visit(TypeInferenceVisitor.java:92)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:27)\n \tat jadx.core.dex.visitors.DepthTraversal.lambda$visit$1(DepthTraversal.java:14)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n \tat jadx.core.dex.visitors.DepthTraversal.lambda$visit$0(DepthTraversal.java:13)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:13)\n \tat jadx.core.ProcessClass.process(ProcessClass.java:30)\n \tat jadx.core.ProcessClass.lambda$processDependencies$0(ProcessClass.java:49)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:49)\n \tat jadx.core.ProcessClass.process(ProcessClass.java:35)\n \tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:311)\n \tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n \tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:217)\n */\n /* JADX WARNING: Unknown variable types count: 15 */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public boolean onTransact(int r4, android.os.Parcel r5, android.os.Parcel r6, int r7) throws android.os.RemoteException {\n /*\n r3 = this;\n r0 = 51\n r1 = 0\n r2 = 1\n if (r4 == r0) goto L_0x042d\n r0 = 1598968902(0x5f4e5446, float:1.4867585E19)\n if (r4 == r0) goto L_0x0427\n r0 = 0\n switch(r4) {\n case 1: goto L_0x03f8;\n case 2: goto L_0x03d9;\n case 3: goto L_0x03c5;\n case 4: goto L_0x03b1;\n case 5: goto L_0x03a1;\n case 6: goto L_0x0391;\n case 7: goto L_0x0381;\n case 8: goto L_0x0368;\n case 9: goto L_0x0358;\n case 10: goto L_0x033f;\n case 11: goto L_0x0327;\n case 12: goto L_0x030f;\n case 13: goto L_0x0303;\n case 14: goto L_0x02e4;\n case 15: goto L_0x02c5;\n case 16: goto L_0x029a;\n case 17: goto L_0x028a;\n case 18: goto L_0x027e;\n case 19: goto L_0x0272;\n case 20: goto L_0x0266;\n case 21: goto L_0x025a;\n case 22: goto L_0x024e;\n case 23: goto L_0x0242;\n case 24: goto L_0x0232;\n case 25: goto L_0x0217;\n case 26: goto L_0x01f8;\n case 27: goto L_0x01df;\n case 28: goto L_0x01c6;\n case 29: goto L_0x01b6;\n case 30: goto L_0x019d;\n case 31: goto L_0x0184;\n case 32: goto L_0x0174;\n case 33: goto L_0x0168;\n case 34: goto L_0x0149;\n case 35: goto L_0x012a;\n case 36: goto L_0x00ff;\n case 37: goto L_0x00ef;\n case 38: goto L_0x00df;\n case 39: goto L_0x00cf;\n case 40: goto L_0x00bc;\n case 41: goto L_0x00a1;\n case 42: goto L_0x0082;\n case 43: goto L_0x0067;\n case 44: goto L_0x0057;\n case 45: goto L_0x0047;\n case 46: goto L_0x0034;\n case 47: goto L_0x0024;\n case 48: goto L_0x0014;\n default: goto L_0x000f;\n }\n L_0x000f:\n boolean r4 = super.onTransact(r4, r5, r6, r7)\n return r4\n L_0x0014:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n r3.mo730c(r4)\n r6.writeNoException()\n return r2\n L_0x0024:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r3.mo746p()\n r6.writeNoException()\n r6.writeInt(r4)\n return r2\n L_0x0034:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x0040\n r0 = 1\n L_0x0040:\n r3.mo717a(r0)\n r6.writeNoException()\n return r2\n L_0x0047:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n boolean r4 = r3.mo743m()\n r6.writeNoException()\n r6.writeInt(r4)\n return r2\n L_0x0057:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n r3.mo706a(r4)\n r6.writeNoException()\n return r2\n L_0x0067:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x007b\n android.os.Parcelable$Creator<android.support.v4.media.MediaDescriptionCompat> r4 = android.support.p041v4.media.MediaDescriptionCompat.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n r1 = r4\n android.support.v4.media.MediaDescriptionCompat r1 = (android.support.p041v4.media.MediaDescriptionCompat) r1\n L_0x007b:\n r3.mo725b(r1)\n r6.writeNoException()\n return r2\n L_0x0082:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x0096\n android.os.Parcelable$Creator<android.support.v4.media.MediaDescriptionCompat> r4 = android.support.p041v4.media.MediaDescriptionCompat.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n r1 = r4\n android.support.v4.media.MediaDescriptionCompat r1 = (android.support.p041v4.media.MediaDescriptionCompat) r1\n L_0x0096:\n int r4 = r5.readInt()\n r3.mo711a(r1, r4)\n r6.writeNoException()\n return r2\n L_0x00a1:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x00b5\n android.os.Parcelable$Creator<android.support.v4.media.MediaDescriptionCompat> r4 = android.support.p041v4.media.MediaDescriptionCompat.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n r1 = r4\n android.support.v4.media.MediaDescriptionCompat r1 = (android.support.p041v4.media.MediaDescriptionCompat) r1\n L_0x00b5:\n r3.mo710a(r1)\n r6.writeNoException()\n return r2\n L_0x00bc:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x00c8\n r0 = 1\n L_0x00c8:\n r3.mo728b(r0)\n r6.writeNoException()\n return r2\n L_0x00cf:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n r3.mo721b(r4)\n r6.writeNoException()\n return r2\n L_0x00df:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n boolean r4 = r3.mo745o()\n r6.writeNoException()\n r6.writeInt(r4)\n return r2\n L_0x00ef:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r3.mo744n()\n r6.writeNoException()\n r6.writeInt(r4)\n return r2\n L_0x00ff:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x0113\n android.os.Parcelable$Creator r4 = android.net.Uri.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n android.net.Uri r4 = (android.net.Uri) r4\n goto L_0x0114\n L_0x0113:\n r4 = r1\n L_0x0114:\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x0123\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x0123:\n r3.mo709a(r4, r1)\n r6.writeNoException()\n return r2\n L_0x012a:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r5.readString()\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x0142\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x0142:\n r3.mo727b(r4, r1)\n r6.writeNoException()\n return r2\n L_0x0149:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r5.readString()\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x0161\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x0161:\n r3.mo715a(r4, r1)\n r6.writeNoException()\n return r2\n L_0x0168:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo747q()\n r6.writeNoException()\n return r2\n L_0x0174:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r3.mo742l()\n r6.writeNoException()\n r6.writeInt(r4)\n return r2\n L_0x0184:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n android.os.Bundle r4 = r3.mo741k()\n r6.writeNoException()\n if (r4 == 0) goto L_0x0199\n r6.writeInt(r2)\n r4.writeToParcel(r6, r2)\n goto L_0x019c\n L_0x0199:\n r6.writeInt(r0)\n L_0x019c:\n return r2\n L_0x019d:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.CharSequence r4 = r3.mo740j()\n r6.writeNoException()\n if (r4 == 0) goto L_0x01b2\n r6.writeInt(r2)\n android.text.TextUtils.writeToParcel(r4, r6, r2)\n goto L_0x01b5\n L_0x01b2:\n r6.writeInt(r0)\n L_0x01b5:\n return r2\n L_0x01b6:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.util.List r4 = r3.mo739i()\n r6.writeNoException()\n r6.writeTypedList(r4)\n return r2\n L_0x01c6:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n android.support.v4.media.session.PlaybackStateCompat r4 = r3.mo738h()\n r6.writeNoException()\n if (r4 == 0) goto L_0x01db\n r6.writeInt(r2)\n r4.writeToParcel(r6, r2)\n goto L_0x01de\n L_0x01db:\n r6.writeInt(r0)\n L_0x01de:\n return r2\n L_0x01df:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n android.support.v4.media.MediaMetadataCompat r4 = r3.mo737g()\n r6.writeNoException()\n if (r4 == 0) goto L_0x01f4\n r6.writeInt(r2)\n r4.writeToParcel(r6, r2)\n goto L_0x01f7\n L_0x01f4:\n r6.writeInt(r0)\n L_0x01f7:\n return r2\n L_0x01f8:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r5.readString()\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x0210\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x0210:\n r3.mo735e(r4, r1)\n r6.writeNoException()\n return r2\n L_0x0217:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x022b\n android.os.Parcelable$Creator<android.support.v4.media.RatingCompat> r4 = android.support.p041v4.media.RatingCompat.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n r1 = r4\n android.support.v4.media.RatingCompat r1 = (android.support.p041v4.media.RatingCompat) r1\n L_0x022b:\n r3.mo712a(r1)\n r6.writeNoException()\n return r2\n L_0x0232:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n long r4 = r5.readLong()\n r3.mo723b(r4)\n r6.writeNoException()\n return r2\n L_0x0242:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo754x()\n r6.writeNoException()\n return r2\n L_0x024e:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo753w()\n r6.writeNoException()\n return r2\n L_0x025a:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo752v()\n r6.writeNoException()\n return r2\n L_0x0266:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo751u()\n r6.writeNoException()\n return r2\n L_0x0272:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo750t()\n r6.writeNoException()\n return r2\n L_0x027e:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo749s()\n r6.writeNoException()\n return r2\n L_0x028a:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n long r4 = r5.readLong()\n r3.mo708a(r4)\n r6.writeNoException()\n return r2\n L_0x029a:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x02ae\n android.os.Parcelable$Creator r4 = android.net.Uri.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n android.net.Uri r4 = (android.net.Uri) r4\n goto L_0x02af\n L_0x02ae:\n r4 = r1\n L_0x02af:\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x02be\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x02be:\n r3.mo724b(r4, r1)\n r6.writeNoException()\n return r2\n L_0x02c5:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r5.readString()\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x02dd\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x02dd:\n r3.mo733d(r4, r1)\n r6.writeNoException()\n return r2\n L_0x02e4:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r5.readString()\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x02fc\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x02fc:\n r3.mo731c(r4, r1)\n r6.writeNoException()\n return r2\n L_0x0303:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n r3.mo748r()\n r6.writeNoException()\n return r2\n L_0x030f:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n int r7 = r5.readInt()\n java.lang.String r5 = r5.readString()\n r3.mo722b(r4, r7, r5)\n r6.writeNoException()\n return r2\n L_0x0327:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n int r7 = r5.readInt()\n java.lang.String r5 = r5.readString()\n r3.mo707a(r4, r7, r5)\n r6.writeNoException()\n return r2\n L_0x033f:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n android.support.v4.media.session.ParcelableVolumeInfo r4 = r3.mo736f()\n r6.writeNoException()\n if (r4 == 0) goto L_0x0354\n r6.writeInt(r2)\n r4.writeToParcel(r6, r2)\n goto L_0x0357\n L_0x0354:\n r6.writeInt(r0)\n L_0x0357:\n return r2\n L_0x0358:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n long r4 = r3.mo734e()\n r6.writeNoException()\n r6.writeLong(r4)\n return r2\n L_0x0368:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n android.app.PendingIntent r4 = r3.mo732d()\n r6.writeNoException()\n if (r4 == 0) goto L_0x037d\n r6.writeInt(r2)\n r4.writeToParcel(r6, r2)\n goto L_0x0380\n L_0x037d:\n r6.writeInt(r0)\n L_0x0380:\n return r2\n L_0x0381:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r3.mo729c()\n r6.writeNoException()\n r6.writeString(r4)\n return r2\n L_0x0391:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r3.mo720b()\n r6.writeNoException()\n r6.writeString(r4)\n return r2\n L_0x03a1:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n boolean r4 = r3.mo718a()\n r6.writeNoException()\n r6.writeInt(r4)\n return r2\n L_0x03b1:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n android.os.IBinder r4 = r5.readStrongBinder()\n android.support.v4.media.session.a r4 = android.support.p041v4.media.session.C0391a.C0392a.m1090a(r4)\n r3.mo726b(r4)\n r6.writeNoException()\n return r2\n L_0x03c5:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n android.os.IBinder r4 = r5.readStrongBinder()\n android.support.v4.media.session.a r4 = android.support.p041v4.media.session.C0391a.C0392a.m1090a(r4)\n r3.mo714a(r4)\n r6.writeNoException()\n return r2\n L_0x03d9:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x03ed\n android.os.Parcelable$Creator r4 = android.view.KeyEvent.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n r1 = r4\n android.view.KeyEvent r1 = (android.view.KeyEvent) r1\n L_0x03ed:\n boolean r4 = r3.mo719a(r1)\n r6.writeNoException()\n r6.writeInt(r4)\n return r2\n L_0x03f8:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n java.lang.String r4 = r5.readString()\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x0410\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r7 = r7.createFromParcel(r5)\n android.os.Bundle r7 = (android.os.Bundle) r7\n goto L_0x0411\n L_0x0410:\n r7 = r1\n L_0x0411:\n int r0 = r5.readInt()\n if (r0 == 0) goto L_0x0420\n android.os.Parcelable$Creator<android.support.v4.media.session.MediaSessionCompat$ResultReceiverWrapper> r0 = android.support.p041v4.media.session.MediaSessionCompat.ResultReceiverWrapper.CREATOR\n java.lang.Object r5 = r0.createFromParcel(r5)\n r1 = r5\n android.support.v4.media.session.MediaSessionCompat$ResultReceiverWrapper r1 = (android.support.p041v4.media.session.MediaSessionCompat.ResultReceiverWrapper) r1\n L_0x0420:\n r3.mo716a(r4, r7, r1)\n r6.writeNoException()\n return r2\n L_0x0427:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r6.writeString(r4)\n return r2\n L_0x042d:\n java.lang.String r4 = \"android.support.v4.media.session.IMediaSession\"\n r5.enforceInterface(r4)\n int r4 = r5.readInt()\n if (r4 == 0) goto L_0x0441\n android.os.Parcelable$Creator<android.support.v4.media.RatingCompat> r4 = android.support.p041v4.media.RatingCompat.CREATOR\n java.lang.Object r4 = r4.createFromParcel(r5)\n android.support.v4.media.RatingCompat r4 = (android.support.p041v4.media.RatingCompat) r4\n goto L_0x0442\n L_0x0441:\n r4 = r1\n L_0x0442:\n int r7 = r5.readInt()\n if (r7 == 0) goto L_0x0451\n android.os.Parcelable$Creator r7 = android.os.Bundle.CREATOR\n java.lang.Object r5 = r7.createFromParcel(r5)\n r1 = r5\n android.os.Bundle r1 = (android.os.Bundle) r1\n L_0x0451:\n r3.mo713a(r4, r1)\n r6.writeNoException()\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.p041v4.media.session.C0394b.C0395a.onTransact(int, android.os.Parcel, android.os.Parcel, int):boolean\");\n }\n }\n\n /* renamed from: a */\n void mo706a(int i) throws RemoteException;\n\n /* renamed from: a */\n void mo707a(int i, int i2, String str) throws RemoteException;\n\n /* renamed from: a */\n void mo708a(long j) throws RemoteException;\n\n /* renamed from: a */\n void mo709a(Uri uri, Bundle bundle) throws RemoteException;\n\n /* renamed from: a */\n void mo710a(MediaDescriptionCompat mediaDescriptionCompat) throws RemoteException;\n\n /* renamed from: a */\n void mo711a(MediaDescriptionCompat mediaDescriptionCompat, int i) throws RemoteException;\n\n /* renamed from: a */\n void mo712a(RatingCompat ratingCompat) throws RemoteException;\n\n /* renamed from: a */\n void mo713a(RatingCompat ratingCompat, Bundle bundle) throws RemoteException;\n\n /* renamed from: a */\n void mo714a(C0391a aVar) throws RemoteException;\n\n /* renamed from: a */\n void mo715a(String str, Bundle bundle) throws RemoteException;\n\n /* renamed from: a */\n void mo716a(String str, Bundle bundle, ResultReceiverWrapper resultReceiverWrapper) throws RemoteException;\n\n /* renamed from: a */\n void mo717a(boolean z) throws RemoteException;\n\n /* renamed from: a */\n boolean mo718a() throws RemoteException;\n\n /* renamed from: a */\n boolean mo719a(KeyEvent keyEvent) throws RemoteException;\n\n /* renamed from: b */\n String mo720b() throws RemoteException;\n\n /* renamed from: b */\n void mo721b(int i) throws RemoteException;\n\n /* renamed from: b */\n void mo722b(int i, int i2, String str) throws RemoteException;\n\n /* renamed from: b */\n void mo723b(long j) throws RemoteException;\n\n /* renamed from: b */\n void mo724b(Uri uri, Bundle bundle) throws RemoteException;\n\n /* renamed from: b */\n void mo725b(MediaDescriptionCompat mediaDescriptionCompat) throws RemoteException;\n\n /* renamed from: b */\n void mo726b(C0391a aVar) throws RemoteException;\n\n /* renamed from: b */\n void mo727b(String str, Bundle bundle) throws RemoteException;\n\n /* renamed from: b */\n void mo728b(boolean z) throws RemoteException;\n\n /* renamed from: c */\n String mo729c() throws RemoteException;\n\n /* renamed from: c */\n void mo730c(int i) throws RemoteException;\n\n /* renamed from: c */\n void mo731c(String str, Bundle bundle) throws RemoteException;\n\n /* renamed from: d */\n PendingIntent mo732d() throws RemoteException;\n\n /* renamed from: d */\n void mo733d(String str, Bundle bundle) throws RemoteException;\n\n /* renamed from: e */\n long mo734e() throws RemoteException;\n\n /* renamed from: e */\n void mo735e(String str, Bundle bundle) throws RemoteException;\n\n /* renamed from: f */\n ParcelableVolumeInfo mo736f() throws RemoteException;\n\n /* renamed from: g */\n MediaMetadataCompat mo737g() throws RemoteException;\n\n /* renamed from: h */\n PlaybackStateCompat mo738h() throws RemoteException;\n\n /* renamed from: i */\n List<QueueItem> mo739i() throws RemoteException;\n\n /* renamed from: j */\n CharSequence mo740j() throws RemoteException;\n\n /* renamed from: k */\n Bundle mo741k() throws RemoteException;\n\n /* renamed from: l */\n int mo742l() throws RemoteException;\n\n /* renamed from: m */\n boolean mo743m() throws RemoteException;\n\n /* renamed from: n */\n int mo744n() throws RemoteException;\n\n /* renamed from: o */\n boolean mo745o() throws RemoteException;\n\n /* renamed from: p */\n int mo746p() throws RemoteException;\n\n /* renamed from: q */\n void mo747q() throws RemoteException;\n\n /* renamed from: r */\n void mo748r() throws RemoteException;\n\n /* renamed from: s */\n void mo749s() throws RemoteException;\n\n /* renamed from: t */\n void mo750t() throws RemoteException;\n\n /* renamed from: u */\n void mo751u() throws RemoteException;\n\n /* renamed from: v */\n void mo752v() throws RemoteException;\n\n /* renamed from: w */\n void mo753w() throws RemoteException;\n\n /* renamed from: x */\n void mo754x() throws RemoteException;\n}", "public interface Quackable {\n void quack();\n}", "private void m125716j() {\n if (!this.f90225r) {\n this.f90225r = true;\n this.f88306d.inflateMenu(R.menu.c4);\n if (this.f88314l != null) {\n this.f88314l.setVisibility(8);\n }\n if (!(this.f88315m == null || this.f88315m.getLayoutParams() == null)) {\n ViewGroup.LayoutParams layoutParams = this.f88315m.getLayoutParams();\n layoutParams.height = DisplayUtils.m87171b(this.f88315m.getContext(), 0.5f);\n this.f88315m.setLayoutParams(layoutParams);\n }\n this.f88306d.setOnMenuItemClickListener(this);\n this.f88306d.setNavigationIcon(R.drawable.t6);\n this.f88306d.setOnClickListener(new View.OnClickListener() {\n /* class com.zhihu.android.topic.platfrom.$$Lambda$TopicFragment$IGZCfsRJswgFRfHR0GDflMQEQg */\n\n public final void onClick(View view) {\n TopicFragment.this.m125708d((TopicFragment) view);\n }\n });\n this.f88306d.setNavigationOnClickListener(new View.OnClickListener() {\n /* class com.zhihu.android.topic.platfrom.$$Lambda$TopicFragment$Y1Ui__uQByQMTGugzZrwFtzQixI */\n\n public final void onClick(View view) {\n TopicFragment.this.m125704c((TopicFragment) view);\n }\n });\n this.f88306d.setTintColorResource(R.color.GBK05A);\n this.f88312j.setVisibility(8);\n this.f88312j.setVisibility(0);\n this.f88311i.addOnOffsetChangedListener((AppBarLayout.OnOffsetChangedListener) new AppBarLayout.OnOffsetChangedListener() {\n /* class com.zhihu.android.topic.platfrom.$$Lambda$TopicFragment$HMOYYgVeRnfsTVBPp1nW7VG4ng */\n\n @Override // com.google.android.material.appbar.AppBarLayout.BaseOnOffsetChangedListener, com.google.android.material.appbar.AppBarLayout.OnOffsetChangedListener\n public final void onOffsetChanged(AppBarLayout appBarLayout, int i) {\n TopicFragment.this.m125684a((TopicFragment) appBarLayout, (AppBarLayout) i);\n }\n });\n if (mo69217g() != null && mo69217g().isSuperTopic) {\n this.f88316n.setOnNestedScrollListener(new SuperTopicCoordinatorLayout.AbstractC25932a() {\n /* class com.zhihu.android.topic.platfrom.TopicFragment.C258261 */\n\n @Override // com.zhihu.android.topic.widget.SuperTopicCoordinatorLayout.AbstractC25932a\n /* renamed from: a */\n public void mo110586a() {\n if (TopicFragment.this.m125729x()) {\n TopicFragment.this.f90219I.set(true);\n TopicFragment.this.m125731z();\n }\n }\n });\n }\n }\n }", "private void m6904a(double d, double d2, float f, String str, String str2, String str3, String str4, String str5) {\n getAsyncTaskQueue().a(new CompetitionSectionActivity$5(this, d, d2, f, str, str2, str3, str4, str5), new Void[0]);\n }", "protected void aq() {\n Object object = this.li;\n synchronized (object) {\n if (this.lz != null) {\n this.lp.unregisterReceiver(this.lz);\n this.lz = null;\n }\n return;\n }\n }", "public static void m125930a(Context context, View view, Topic topic, FrameLayout frameLayout, TopicTabConfig dVar, BaseFragment baseFragment) {\n TextView textView = (TextView) view.findViewById(R.id.bottom_text);\n textView.setText(C25382r.m123889a(new C25382r.AbstractC25387e() {\n /* class com.zhihu.android.topic.platfrom.p1960c.p1961a.p1962a.$$Lambda$a$swFFTnaO6HgdhBRekkN0yFN4h7o */\n\n @Override // com.zhihu.android.topic.p1945h.C25382r.AbstractC25387e\n public final String get() {\n return AdSuperTopicDelegate.m125944d(Topic.this);\n }\n }));\n ZHDraweeView zHDraweeView = (ZHDraweeView) view.findViewById(R.id.super_topic_button_avatar);\n String str = C6969H.m41409d(\"G7B86C640F07F\") + context.getPackageName() + MqttTopic.TOPIC_LEVEL_SEPARATOR + R.drawable.c4t;\n People people = AccountManager.getInstance().getCurrentAccount().getPeople();\n if (!TextUtils.isEmpty(people.avatarUrl)) {\n Log.d(\"AdSuperTopicDelegate\", C6969H.m41409d(\"G6D86D4168839BF21C401845CFDE8E1C27D97DA148962EB39E3018044F7ABC2C16897D4088A22A769BC4E\") + people.avatarUrl);\n str = people.avatarUrl;\n }\n zHDraweeView.setImageURI(str);\n frameLayout.addView(view);\n frameLayout.measure(0, 0);\n textView.setOnClickListener(new View.OnClickListener(baseFragment) {\n /* class com.zhihu.android.topic.platfrom.p1960c.p1961a.p1962a.$$Lambda$a$TmyvAjrxwliCOwAbfrePkSk9mU */\n private final /* synthetic */ BaseFragment f$1;\n\n {\n this.f$1 = r2;\n }\n\n public final void onClick(View view) {\n AdSuperTopicDelegate.m125934a(Topic.this, this.f$1, view);\n }\n });\n ZUIZAUtils.m125246a(textView, \"写短评\", C6969H.m41409d(\"G5E91DC0EBA00A227D92C9F5CE6EACEF56891\"), C31368a.EnumC31371c.OpenUrl, (C31382e.EnumC31385c) null, topic);\n if (dVar.mo109359d().mo109361a().equals(\"intro\")) {\n view.setVisibility(8);\n }\n }", "@Override // com.zhihu.android.app.p1311ui.fragment.webview.WebViewFragment2\n /* renamed from: o_ */\n public void mo69099o_() {\n super.mo69099o_();\n m64979c();\n }", "private void m7634a(String str) {\n getAsyncTaskQueue().a(new GridExploreActivity$1(this, str), new String[0]);\n }", "void m13873a() {\n int a = bu.m14175a(getResources(), getContext().getTheme());\n C2918j c2918j = new C2918j(getResources());\n c2918j.m14207a((View) this);\n c2918j.m14211b((View) this, a);\n c2918j.m14212b((TextView) this, a);\n }" ]
[ "0.59098464", "0.585226", "0.5803511", "0.580295", "0.5729694", "0.561756", "0.561217", "0.5603723", "0.553495", "0.55208534", "0.5516432", "0.5448219", "0.5446349", "0.54140234", "0.5386225", "0.53502005", "0.52966493", "0.52911633", "0.5278752", "0.5266429", "0.5256432", "0.5247259", "0.524609", "0.5245461", "0.5231085", "0.52210677", "0.5211354", "0.52035165", "0.5200882", "0.5200406", "0.51983005", "0.519821", "0.5188955", "0.51871175", "0.5183536", "0.5183242", "0.51750994", "0.5169296", "0.5168961", "0.5163795", "0.5161267", "0.5155625", "0.5149594", "0.514079", "0.5134975", "0.5131146", "0.5127469", "0.5126557", "0.5123783", "0.5117909", "0.51169795", "0.5115269", "0.5113969", "0.5113074", "0.5112144", "0.5109772", "0.51076764", "0.50995904", "0.5084762", "0.5072985", "0.5072704", "0.506166", "0.505839", "0.50572836", "0.50572324", "0.5056224", "0.5055836", "0.50522226", "0.5047162", "0.50401765", "0.5038364", "0.5030327", "0.5027194", "0.50246876", "0.50228", "0.5020511", "0.5017547", "0.5016537", "0.50145996", "0.5014578", "0.5005183", "0.50032204", "0.49939033", "0.49895746", "0.4989286", "0.49855235", "0.49847063", "0.49845043", "0.49831173", "0.498146", "0.4974351", "0.49728155", "0.4969541", "0.49617824", "0.49579617", "0.49556217", "0.49548987", "0.49545503", "0.49505424", "0.49485657", "0.49434924" ]
0.0
-1
Method for Verified Lables under Client Tab ==================================================================================
public void goScriptBuilderTabValidation() throws InterruptedException { driver.findElement(scriptsTab).click(); Thread.sleep(10000); Assert.assertTrue(driver.findElement(goScriptBuilderScriptslabel).isDisplayed()); log.debug("Verified that 'Go Script Builder Scripts' label appeared on left side of under Script tab"); Assert.assertTrue(driver.findElement(goScriptBuilderScriptslabel).isEnabled()); log.debug("Verified that 'Go Script Builder Scripts' label enabled on left side of under Script tab"); Assert.assertEquals(driver.findElement(goScriptBuilderScriptslabel).getText().contains("Go Script Builder Scripts"), true); log.debug("Verified that 'Go Script Builder Scripts' Text validated on left side under Script Tab"); Assert.assertTrue(driver.findElement(goScriptBuilderScriptsCount).isDisplayed()); log.debug("Verified that 'Script count' dispalyed left side under Script tab"); Assert.assertTrue(driver.findElement(goScriptBuilderScriptsCount).isEnabled()); log.debug("Verified that 'Script count' enabled left side under Script tab"); Assert.assertTrue(driver.findElement(filterByNameGSB).isDisplayed()); log.debug("Verified that 'Filter by name' filed appeared on left side of under Script tab"); Assert.assertTrue(driver.findElement(filterByNameGSB).isEnabled()); log.debug("Verified that 'Filter by name' filed enabled on left side of under Script tab"); if (driver.findElements(pleaseSelectlabelGSB).isEmpty()) { log.debug("Verified that 'Please select a Call Master Script from the left. ' label appeared on under Go Script builder tab"); log.debug("Verified that 'Please select a Call Master Script from the left. ' label enabled under Go Script builder tab"); log.debug("Verified that 'Please select a Call Master Script from the left.' Text validated under Go Script Builder"); }else { log.debug("Verified that 'Please select a script ' label appeared on under Go Script builder tab"); log.debug("Verified that 'Please select a script ' label enabled under Go Script builder tab"); log.debug("Verified that 'Please select a script or' Text validated under Go Script Builder"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printClientList() {\n uiService.underDevelopment();\n }", "public void showNewLoanTab(Client client) {\n loanTabModel.getNewLoanRequestPanel().setVisible(true);\n //this.revalidate();\n //this.repaint();\n }", "@Override\n\tpublic boolean estPleine() {\n\t\treturn getNbClients()==capacite;\n\t}", "public void clientInfo() {\n uiService.underDevelopment();\n }", "public List BestClient();", "public void createOnlyLBPolicy(){\n\t\t\n\t\tIterator<CacheObject> ican = cacheList.iterator();\n\t\t\n\t\tint objcounter = 0;\n\t\t\n\t\twhile(ican.hasNext() && objcounter < (OBJ_FOR_REQ)){\n\t\t\t\n\t\t\tobjcounter ++;\n\t\t\tCacheObject tempCacheObject = ican.next();\n\t\t\tIterator<ASServer> itm = manager.getASServers().values().iterator();\n\t\t\twhile(itm.hasNext()){\n\t\t\t\t\n\t\t\t\tASServer as = itm.next();\n\t\t\t\tif(((ResourceToRequestMap) as.getStruct((String)RequestResourceMappingLogProcessor.OBJ_REQ_MAP)).map.get(tempCacheObject.cacheKey) == null){\n\t\t\t\t\t//System.out.println(\"Mapping Map is NULL\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tArrayList<String> urllist = new ArrayList<String>(((ResourceToRequestMap) as.getStruct((String)RequestResourceMappingLogProcessor.OBJ_REQ_MAP)).map.get(tempCacheObject.cacheKey));\n\t\t\t\tIterator<String> iurl = urllist.iterator();\n\t\t\t\twhile(iurl.hasNext()){\n\t\t\t\t\tString url = iurl.next();\n\t\t\t\t\tif(!urlList.contains(url)){\n\t\t\t\t\t\turlList.add(url);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tint urlcounter = 0;\n\t\tint urllistsize = urlList.size();\n\t\tCollection<String> it1 = serverList.keySet();\n\t\tArrayList<String> server = new ArrayList<String>(it1);\n\t\t\n\t\twhile(urlcounter < urllistsize){\n\t\t\t\n\t\t\tString serId = server.get( (urlcounter) % NO_SERVERS );\n\t\t\tthis.currentLBPolicy.mapUrlToServers(urlList.get(urlcounter++), Analyser.resolveHost(serId));\n\t\t\t\n\t\t}\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\n\t\tSystem.out.println(\"------------LBPolicy end-----------------\");\n\t\t/*\n\t\tif(mLogger.isInfoEnabled()){\n\t\t\tmLogger.log(Priority.INFO, \"LBPolicy being printed\");\n\t\tmLogger.log(Priority.INFO, \":\" + this.currentLBPolicy);\n\t\t\n\t}\n\t\t*/\n\t}", "@Test(priority = 6, description = \"To verify Vendors for LPAD\")\n\tpublic void VerifyvendorsinTable() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\tExcelHandler wb = new ExcelHandler(\"./data/Filter.xlsx\", \"Syndication\");\n\t\twb.deleteEmptyRows();\n\t\tString LocNum = wb.getCellValue(1, wb.seacrh_pattern(\"Location Number\", 0).get(0).intValue());\n\t\tSystem.out.println(\"The Location Number is\" + LocNum);\n\t\tVendorList = data.getLocationDetailsLPAD(LocNum);\n\t\taddEvidence(CurrentState.getDriver(), \"To Verify Vendor List\", \"yes\");\n\t}", "private void jTabPane_AccueilMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTabPane_AccueilMouseClicked\n if(numOnglet() == 0 ){\n // On cache le bouton qui lance la procedure Prospect vers Client\n jBtn_ProspectToClient.setVisible(false);\n if(jTable_Clients.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n }\n else{\n jBtn_Modifier.setVisible(true);\n jBtn_Supprimer.setVisible(true);\n }\n }else{\n if(jTable_Prospects.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n jBtn_ProspectToClient.setVisible(false);\n }else{\n jBtn_Modifier.setVisible(true);\n jBtn_Supprimer.setVisible(true);\n // On fait apparaitre le bouton qui lance la procedure Prospect vers Client\n jBtn_ProspectToClient.setVisible(true);\n }\n }\n }", "@Test\n public void loanWithFlatCahargesAndUpfrontAccrualAccountingEnabled() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer flatDisbursement = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC, ChargesHelper.getLoanDisbursementJSON());\n addCharges(charges, flatDisbursement, \"100\", null);\n Integer flatSpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"100\", false));\n\n Integer flatInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"50\", false));\n addCharges(charges, flatInstallmentFee, \"50\", null);\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, ACCRUAL_UPFRONT, assetAccount, incomeAccount, expenseAccount,\n overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatDisbursement, loanCharges, \"100\", \"100.00\", \"0.0\", \"0.0\");\n validateCharge(flatInstallmentFee, loanCharges, \"50\", \"200.00\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"100.00\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"50.00\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"50.00\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"200.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"200.00\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(flatSpecifiedDueDate), \"29 September 2011\", \"100\"));\n\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatDisbursement, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n validateCharge(flatSpecifiedDueDate, loanCharges, \"100\", \"100.00\", \"0.0\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"29 September 2011\",\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.DEBIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"29 September 2011\",\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3301.49\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatDisbursement, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n validateCharge(flatSpecifiedDueDate, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n validateCharge(flatInstallmentFee, loanCharges, \"50\", \"150.00\", \"50.0\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(flatSpecifiedDueDate), \"29 October 2011\", \"100\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"150.00\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOG.info(\"----------- Waive installment charge for 2nd installment ---------\");\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID, (Integer) getloanCharge(flatInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatInstallmentFee, loanCharges, \"50\", \"100.00\", \"50.0\", \"50.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"50.0\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"50.0\"), JournalEntry.TransactionType.DEBIT));\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3251.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3251.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3251.49\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.DEBIT));\n\n Integer flatPenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"100\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(flatPenaltySpecifiedDueDate), \"29 September 2011\", \"100\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatPenaltySpecifiedDueDate, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"100\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // checking the journal entry as applied penalty has been collected\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3301.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(flatPenaltySpecifiedDueDate), \"10 January 2012\", \"100\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"100\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3239.68\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"100\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"100\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"100\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3139.68\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make over payment for repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3220.60\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3220.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3139.68\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForLiabilityAccount(overpaymentAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"80.92\"), JournalEntry.TransactionType.CREDIT));\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.getLoanDetail(REQUEST_SPEC, RESPONSE_SPEC, loanID, \"status\");\n LoanStatusChecker.verifyLoanAccountIsOverPaid(loanStatusHashMap);\n }", "@Override\r\n\tpublic void performAction(Client client) {\n\t\tlogic.getCheck(client);\r\n\t}", "@PlanBody\n public boolean body(){\n ICenterService ser = agent.getComponentFeature\n (IRequiredServicesFeature.class).searchService(ICenterService.class,RequiredServiceInfo.SCOPE_GLOBAL).get();\n\n ser.collectBallot(voter).addResultListener(new IResultListener<Boolean>() {\n @Override\n public void exceptionOccurred(Exception exception) {\n exception.printStackTrace();\n System.out.println(exception);\n }\n @Override\n public void resultAvailable(Boolean result) {\n System.out.println(voter.getId()+ \" submit result: \"+result);\n }\n });\n return true;\n }", "private void getClientList(ActionEvent e){\r\n new ClientList().Display();\r\n }", "public void printClientList(){\n for(String client : clientList){\n System.out.println(client);\n }\n System.out.println();\n }", "protected void clickOnNouveauClient() {\n\t\t\t_currentPage = ((DoliTiersPage)_currentPage).clickOnNouveauClient();\n\t\t}", "private void sortClients()\n {\n System.out.println(\"clients items (alphabetically):\");\n Set<Client> clients = ctrl.sortClientsAlphabetically();\n clients.stream().forEach(System.out::println);\n }", "String getBlockPolicy();", "public void onShowLicences();", "public void VerifyMainMenuItems() {\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Dashboard);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Initiatives);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_LiveMediaPlans);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_MediaPlans);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Audiences);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Offers);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_CreativeAssets);\n\t\t UserActions.VerifyElementIsDisplayed(Lnk_Reports);\n\t}", "boolean client_elements(DiagnosticChain diagnostics, Map<Object, Object> context);", "@Test\n public void loanWithFlatCahargesAndCashBasedAccountingEnabled() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer flatDisbursement = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC, ChargesHelper.getLoanDisbursementJSON());\n addCharges(charges, flatDisbursement, \"100\", null);\n Integer flatSpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"100\", false));\n addCharges(charges, flatSpecifiedDueDate, \"100\", \"29 September 2011\");\n Integer flatInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"50\", false));\n addCharges(charges, flatInstallmentFee, \"50\", null);\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, CASH_BASED, assetAccount, incomeAccount, expenseAccount, overpaymentAccount);\n\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatDisbursement, loanCharges, \"100\", \"100.00\", \"0.0\", \"0.0\");\n validateCharge(flatSpecifiedDueDate, loanCharges, \"100\", \"100.00\", \"0.0\", \"0.0\");\n validateCharge(flatInstallmentFee, loanCharges, \"50\", \"200.00\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"100.00\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"150.00\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"50.00\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.CREDIT));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatDisbursement, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3301.49\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatDisbursement, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n validateCharge(flatSpecifiedDueDate, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n validateCharge(flatInstallmentFee, loanCharges, \"50\", \"150.00\", \"50.0\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2911.49\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"150.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"240.00\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(flatSpecifiedDueDate), \"29 October 2011\", \"100\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"150.00\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID, (Integer) getloanCharge(flatInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatInstallmentFee, loanCharges, \"50\", \"100.00\", \"50.0\", \"50.0\");\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3251.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3251.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2969.72\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"181.77\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n Integer flatPenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"100\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(flatPenaltySpecifiedDueDate), \"29 September 2011\", \"100\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(flatPenaltySpecifiedDueDate, loanCharges, \"100\", \"0.00\", \"100.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"100\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2811.49\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"150.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"240\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3301.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3301.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3129.11\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"50.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"122.38\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(flatPenaltySpecifiedDueDate), \"10 January 2012\", \"100\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"100\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3239.68\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"100\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"100\"), JournalEntry.TransactionType.DEBIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3139.68\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3139.68\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3139.68\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3089.68\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"50.00\"), JournalEntry.TransactionType.CREDIT));\n }", "@Test\n public void testLoanForeclosure() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n final Integer loanProductID = createLoanProduct(false, NONE);\n\n List<HashMap> charges = new ArrayList<>();\n\n Integer flatAmountChargeOne = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"50\", false));\n addCharges(charges, flatAmountChargeOne, \"50\", \"01 October 2011\");\n Integer flatAmountChargeTwo = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_FLAT, \"100\", true));\n addCharges(charges, flatAmountChargeTwo, \"100\", \"15 December 2011\");\n\n List<HashMap> collaterals = new ArrayList<>();\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"10,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n LOG.info(\"----------------------------------- APPROVE LOAN -----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"----------------------------------- DISBURSE LOAN ----------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID, \"10,000.00\",\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LOG.info(\"DISBURSE {}\", loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n LOG.info(\"---------------------------------- Make repayment 1 --------------------------------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"2676.24\"), loanID);\n\n LOG.info(\"---------------------------------- FORECLOSE LOAN ----------------------------------------\");\n LOAN_TRANSACTION_HELPER.forecloseLoan(\"08 November 2011\", loanID);\n\n // retrieving the loan status\n loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n // verifying the loan status is closed\n LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);\n // retrieving the loan sub-status\n loanStatusHashMap = LoanStatusChecker.getSubStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n // verifying the loan sub-status is foreclosed\n LoanStatusChecker.verifyLoanAccountForeclosed(loanStatusHashMap);\n\n }", "@Test\n public void loanWithCahargesAndUpfrontAccrualAccountingEnabled() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer percentageDisbursementCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanDisbursementJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\"));\n addCharges(charges, percentageDisbursementCharge, \"1\", null);\n\n Integer percentageSpecifiedDueDateCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageSpecifiedDueDateCharge, \"1\", \"29 September 2011\");\n\n Integer percentageInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageInstallmentFee, \"1\", \"29 September 2011\");\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, ACCRUAL_UPFRONT, assetAccount, incomeAccount, expenseAccount,\n overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"120.00\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"149.11\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"29.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.0\", \"120.00\", \"0.0\");\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3300.60\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.00\", \"120.00\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"90.89\", \"29.11\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentageSpecifiedDueDateCharge), \"29 October 2011\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"149.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOG.info(\"----------- Waive installment charge for 2nd installment ---------\");\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID, (Integer) getloanCharge(percentageInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"61.19\", \"29.11\", \"29.70\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"29.7\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"29.7\"), JournalEntry.TransactionType.DEBIT));\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3271.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3271.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3271.49\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.DEBIT));\n\n Integer percentagePenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"29 September 2011\", \"1\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentagePenaltySpecifiedDueDate, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"120\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // checking the journal entry as applied penalty has been collected\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3301.78\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3301.78\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3301.78\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"10 January 2012\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"120\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3240.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"120\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3120.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make over payment for repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3220.58\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3220.58\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3120.58\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForLiabilityAccount(overpaymentAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"100.00\"), JournalEntry.TransactionType.CREDIT));\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.getLoanDetail(REQUEST_SPEC, RESPONSE_SPEC, loanID, \"status\");\n LoanStatusChecker.verifyLoanAccountIsOverPaid(loanStatusHashMap);\n }", "public void cliniciansTabAreInViewMode() {\n\n\tString icon=addIconClinicians.getAttribute(\"data-ng-click\");\n\tif(icon.contains(\"isDisabled\")) {\n\t\tAssert.assertTrue(true);\n\t}\n\t\t\n\t}", "void onShowLeaderboardsRequested();", "@Override\n public void addLisenter(DuduClient client)\n {\n\n }", "@Override\n\tpublic void msgIamStable(Lane lane) {\n\t\t\n\t}", "@Override\n\tpublic boolean estVide() {\n\t\treturn getNbClients()==0;\n\t}", "public java.lang.Integer getCableres() throws java.rmi.RemoteException;", "@Test(suiteName = \"NowPlaying\", testName = \"DMCA Restricted\", description = \"Now Playing - Live - DMCA Restricted - Linear tuner arrows \", enabled = true, groups = {\n\t\t\t\"MOBANDEVER-228:EVQAAND-300\" })\n\tpublic void dmcaRestrictedLinearTuner() {\n\t\tCommon common = new Common(driver);\n\t\tCommon.log(\"verifying Now Playing - Live - DMCA Restricted - Linear tuner arrows MOBANDEVER-228\");\n\t\ttry {\n\t\t\tgetPageFactory().getEvehome().clickonMusic();\n\t\t\tcommon.scrollUntilTextExists(\"Dance/Electronic\");\n\t\t\tgetPageFactory().getEvehome().clickMucisSubRock();\n\t\t\tgetPageFactory().getEvehome().popChannel1();\n\t\t\tgetPageFactory().getCategory().verifyLinerTuner();\n\t\t\tgetPageFactory().getEvehome().clickminimize();\n\t\t} catch (AndriodException ex) {\n\t\t\tCommon.errorlog(\"Exception occured in : \" + this.getClass().getSimpleName() + \" : \" + ex.getMessage());\n\t\t\tAssert.fail(\"Exception occured in : \" + this.getClass().getSimpleName() + \" : \" + ex.getMessage());\n\t\t}\n\t}", "public void verliesLeven() {\r\n\t\t\r\n\t}", "public void v_Verify_Guest4_Displayed(){\n\t}", "@Test\n public void LeaderBoardServer()\n {\n PlayFabServerModels.GetLeaderboardRequest serverRequest = new PlayFabServerModels.GetLeaderboardRequest();\n serverRequest.MaxResultsCount = 3;\n serverRequest.StatisticName = TEST_STAT_NAME;\n PlayFabResult<PlayFabServerModels.GetLeaderboardResult> serverResult = PlayFabServerAPI.GetLeaderboard(serverRequest);\n VerifyResult(serverResult, true);\n assertTrue(GetSvLbCount(serverResult.Result.Leaderboard) > 0);\n }", "@Test\n public void shouldListExpectedClient() {\n OrgClientsListPage theClientsPage = open(OrgClientsListPage.class, organization.getName());\n theClientsPage.entriesContainer().shouldHave(text(client.getName()));\n }", "protected void listClients() {\r\n\t\tif (smscListener != null) {\r\n\t\t\tsynchronized (processors) {\r\n\t\t\t\tint procCount = processors.count();\r\n\t\t\t\tif (procCount > 0) {\r\n\t\t\t\t\tSimulatorPDUProcessor proc;\r\n\t\t\t\t\tfor (int i = 0; i < procCount; i++) {\r\n\t\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(i);\r\n\t\t\t\t\t\tSystem.out.print(proc.getSystemId());\r\n\t\t\t\t\t\tif (!proc.isActive()) {\r\n\t\t\t\t\t\t\tSystem.out.println(\" (inactive)\");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"No client connected.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}", "@Test(groups = {\"Regression\", \"IntakeLender\"})\t\n\tpublic void RemoveLoanTaskfee_clients() throws InterruptedException {\n\t\t// Login to the BLN with provided credentials\n\t\tHomePage homePage = new HomePage(d);\n\t\t// Login to BLN Application\n\t\thomePage.logIntoBLN();\n\t\t// Navigating to MyProfile Tab\n\t\tUsers Users1 = homePage.navigateToUsers();\n\t\tUsers1.select_intakeLender();\n\t\tClients Clients1 = homePage.navigateToClients();\n\t\tClients1.validateHeaderNav();\n\t\t\n\t}", "@Test\n public void testViewClientHistory() {\n for (int i = 0; i < 10; i++) {\n presenter.onViewClientHistory();\n }\n Assert.assertEquals(10, view.getManageViewClientHistoryClicks());\n }", "protected void onClientInfo(AjaxRequestTarget target, WebClientInfo clientInfo)\n\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}", "private void viewRankTables() {\r\n DivaClientService.getDefaultRank(new AsyncCallback<RankResult>() {\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Selection_Manager.connError();\r\n SelectionManager.Busy_Task(false, true);\r\n }\r\n\r\n @Override\r\n public void onSuccess(RankResult result) {\r\n rankResults = result;\r\n if (rankTables != null) {\r\n rankLayoutCanv.removeMember(rankTables.getMainRankLayout());\r\n rankTables.remove();\r\n }\r\n rankTables = new RankTablesComponent(DivaClientService, Selection_Manager, rankResults, datasetInfo.getColGroupsList());\r\n rankLayoutCanv.addMember(rankTables.getMainRankLayout());\r\n if (!init) {\r\n SelectionManager.Busy_Task(false, true);\r\n }\r\n if (init) {\r\n runSomClustering(2, 1, true);\r\n }\r\n }\r\n });\r\n\r\n }", "@Test\n public void loanWithCahargesOfTypeAmountPlusInterestPercentageAndUpfrontAccrualAccountingEnabled() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer amountPlusInterestPercentageDisbursementCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanDisbursementJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\"));\n addCharges(charges, amountPlusInterestPercentageDisbursementCharge, \"1\", null);\n\n Integer amountPlusInterestPercentageSpecifiedDueDateCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC, ChargesHelper\n .getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\", false));\n\n Integer amountPlusInterestPercentageInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\", false));\n addCharges(charges, amountPlusInterestPercentageInstallmentFee, \"1\", \"29 September 2011\");\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, ACCRUAL_UPFRONT, assetAccount, incomeAccount, expenseAccount,\n overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"126.06\", \"0.0\", \"0.0\");\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"126.04\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"126.06\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"31.51\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"31.51\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"126.04\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"605.94\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"126.04\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentageSpecifiedDueDateCharge), \"29 September 2011\", \"1\"));\n\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"0.0\", \"126.06\", \"0.0\");\n validateCharge(amountPlusInterestPercentageSpecifiedDueDateCharge, loanCharges, \"1\", \"126.06\", \"0.0\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"29 September 2011\",\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.DEBIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"29 September 2011\",\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3309.06\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"0.00\", \"126.06\", \"0.0\");\n validateCharge(amountPlusInterestPercentageSpecifiedDueDateCharge, loanCharges, \"1\", \"0.00\", \"126.06\", \"0.0\");\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"94.53\", \"31.51\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.CREDIT));\n\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentageSpecifiedDueDateCharge), \"29 October 2011\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"157.57\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOG.info(\"----------- Waive installment charge for 2nd installment ---------\");\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID,\n (Integer) getloanCharge(amountPlusInterestPercentageInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"63.02\", \"31.51\", \"31.51\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"31.51\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"31.51\"), JournalEntry.TransactionType.DEBIT));\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3277.55\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3277.55\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3277.55\"), JournalEntry.TransactionType.CREDIT));\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForExpenseAccount(expenseAccount, \"20 December 2011\",\n new JournalEntry(Float.parseFloat(\"61.79\"), JournalEntry.TransactionType.DEBIT));\n\n Integer amountPlusInterestPercentagePenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentagePenaltySpecifiedDueDate), \"29 September 2011\", \"1\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentagePenaltySpecifiedDueDate, loanCharges, \"1\", \"0.0\", \"120.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"120\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n // checking the journal entry as applied penalty has been collected\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3303\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3303\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3303\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentagePenaltySpecifiedDueDate), \"10 January 2012\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"120\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3241.19\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"120\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3121.19\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make over payment for repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3221.61\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3221.61\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3121.19\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForLiabilityAccount(overpaymentAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"100.42\"), JournalEntry.TransactionType.CREDIT));\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.getLoanDetail(REQUEST_SPEC, RESPONSE_SPEC, loanID, \"status\");\n LoanStatusChecker.verifyLoanAccountIsOverPaid(loanStatusHashMap);\n }", "public void v_Verify_Guest3_Displayed(){\n\t}", "@Override\r\n\tpublic void list_private() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_private();\r\n\t\t}\r\n\t}", "public RugbyLiveScoreKeepingInfo(Client client) {\r\n CLIENT = client;\r\n initComponents();\r\n \r\n setLocationRelativeTo(null);\r\n AccountNameLbl.setText(CLIENT.getName());\r\n \r\n setLayout(new BorderLayout());\r\n add(backgroundLbl);\r\n backgroundLbl.setIcon(new ImageIcon(new ImageIcon(AdminHome.class.getResource(\"/resources/RugbyBackground.png\")).getImage().getScaledInstance(1366, 768, java.awt.Image.SCALE_SMOOTH)));\r\n }", "private void printAllClients() {\n Set<Client> clients = ctrl.getAllClients();\n clients.stream().forEach(System.out::println);\n }", "public boolean onBlockActivated(World p_149727_1_, int p_149727_2_, int p_149727_3_, int p_149727_4_, EntityPlayer p_149727_5_, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_)\n {\n if (p_149727_1_.isClient)\n {\n return true;\n }\n else\n {\n p_149727_5_.displayGUIWorkbench(p_149727_2_, p_149727_3_, p_149727_4_);\n return true;\n }\n }", "private void tableClient() throws Exception{\n modelClient = new DefaultTableModel(new Object[][]{}, headerClient());\n jTable_Clients.setModel(modelClient);\n TableColumnModel columnModel = jTable_Clients.getColumnModel();\n columnModel.getColumn(0).setPreferredWidth(70);\n columnModel.getColumn(1).setPreferredWidth(120);\n columnModel.getColumn(2).setPreferredWidth(80);\n columnModel.getColumn(3).setPreferredWidth(100);\n columnModel.getColumn(4).setPreferredWidth(150);\n columnModel.getColumn(5).setPreferredWidth(100);\n columnModel.getColumn(6).setPreferredWidth(80);\n columnModel.getColumn(7).setPreferredWidth(150);\n columnModel.getColumn(8).setPreferredWidth(50);\n columnModel.getColumn(9).setPreferredWidth(100);\n columnModel.getColumn(10).setPreferredWidth(150);\n AfficherListClient();\n }", "public MainUiPanel() {\n initComponents();\n// initializeTable();\n ArrayList<Client> loc = LocationAction.getLocationList();\n for(Client cl: loc){\n// column.add(cl.getClientName());\n// }\n \n jTabbedPane1.addTab(\"OrderList for \"+cl.getClientName(), new OrderNotificationUi(cl.getClientId()));\n// jTabbedPane1.addTab(\"OrderList for \"+cl.getClientName(), new OrderNotificationUi());\n }\n }", "List<PolicyDetail> viewpolicyDetail(int lenderId);", "public static void traduitSiteAllemand() {\n\t\t\n\t}", "public void v_Verify_Guest12_Displayed(){\n\t}", "private void filterClients()\n {\n System.out.println(\"filtered Clients (membership of type 'Gold''):\");\n Set<Client> clients = ctrl.filterClientsByMembershipType(\"Gold\");\n clients.stream().forEach(System.out::println);\n }", "public void showBreach();", "int getAchieveInfoCount();", "public void v_Verify_Guest10_Displayed(){\n\t}", "@Test(enabled = true)\n public void verifyFlightTab() {\n driver.findElement(By.xpath(\"//ul[@id='uitk-tabs-button-container']//span[contains(.,'Flights')]\")).click();\n String expectedTabText = \"Roundtrip\";\n String actualTabText = driver.findElement(By.xpath(\"//span[contains(text(),'Roundtrip')]\")).getText();\n Assert.assertEquals(actualTabText, expectedTabText, \"Test Failed. Default TAB is not Roundtrip.\");\n\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyNoofAcctsinViewname() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the functionalities of Close link and Previous and next if more than 10 accounts in that overlay \");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ManageViews()\n\t\t.ViewAcctsOverlay(userProfile);\n\t}", "private void showMenuListClient(){\n File fClient = new File(\"Meilleurs_Client.csv\");\n if(!fClient.exists()){\n jMenuItem_ShowClient.setEnabled(false);\n }\n }", "public void testLst() {\n System.out.println(\"\");\n EcgCheck chk = EcgCheck.getInstance();\n System.out.println(\" Show TEstlist\");\n\n mail_lst.forEach(m -> {\n System.out.println(\"[\" + new String(chk.sha(m.getBytes())) + \"]\");\n });\n }", "public void v_Verify_Guest11_Displayed(){\n\t}", "public void v_Verify_Guest1_Displayed(){\n\t}", "@Test\n public void loanWithCahargesOfTypeAmountPlusInterestPercentageAndCashBasedAccountingEnabled() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer amountPlusInterestPercentageDisbursementCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanDisbursementJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\"));\n addCharges(charges, amountPlusInterestPercentageDisbursementCharge, \"1\", null);\n\n Integer amountPlusInterestPercentageSpecifiedDueDateCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC, ChargesHelper\n .getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\", false));\n addCharges(charges, amountPlusInterestPercentageSpecifiedDueDateCharge, \"1\", \"29 September 2011\");\n\n Integer amountPlusInterestPercentageInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT_AND_INTEREST, \"1\", false));\n addCharges(charges, amountPlusInterestPercentageInstallmentFee, \"1\", \"29 September 2011\");\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n clientID.toString(), collateralId);\n Assertions.assertNotNull(collateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, CASH_BASED, assetAccount, incomeAccount, expenseAccount, overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"126.06\", \"0.0\", \"0.0\");\n validateCharge(amountPlusInterestPercentageSpecifiedDueDateCharge, loanCharges, \"1\", \"126.06\", \"0.0\", \"0.0\");\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"126.04\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"126.06\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"157.57\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"31.51\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.CREDIT));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"0.0\", \"126.06\", \"0.0\");\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3309.06\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageDisbursementCharge, loanCharges, \"1\", \"0.00\", \"126.06\", \"0.0\");\n validateCharge(amountPlusInterestPercentageSpecifiedDueDateCharge, loanCharges, \"1\", \"0.00\", \"126.06\", \"0.0\");\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"94.53\", \"31.51\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2911.49\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"157.57\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"240.00\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentageSpecifiedDueDateCharge), \"29 October 2011\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"157.57\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID,\n (Integer) getloanCharge(amountPlusInterestPercentageInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentageInstallmentFee, loanCharges, \"1\", \"63.02\", \"31.51\", \"31.51\");\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3277.55\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3277.55\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2969.72\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"126.06\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"181.77\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n Integer amountPlusInterestPercentagePenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentagePenaltySpecifiedDueDate), \"29 September 2011\", \"1\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(amountPlusInterestPercentagePenaltySpecifiedDueDate, loanCharges, \"1\", \"0.0\", \"120.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"120\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3309.06\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2791.49\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"157.57\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"240\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3303\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3303\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3149.11\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"31.51\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"122.38\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper.getSpecifiedDueDateChargesForLoanAsJSON(\n String.valueOf(amountPlusInterestPercentagePenaltySpecifiedDueDate), \"10 January 2012\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"120\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3241.19\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"120\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.DEBIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3121.19\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3121.19\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3121.19\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3089.68\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"31.51\"), JournalEntry.TransactionType.CREDIT));\n }", "public void v_Verify_Guest7_Displayed(){\n\t}", "String getControllerAuthorties(String clientId);", "@SideOnly(Side.CLIENT)\n private void onClientLoadComplete() {\n ((IReloadableResourceManager) Minecraft.getMinecraft().getResourceManager()).registerReloadListener(listener -> {\n\n if (Loader.isModLoaded(\"jei\") && GameUtils.isClient()) {\n\n LOGGER.info(\"Resyncing JEI info.\");\n PluginJEI.syncHiddenItems(PlayerUtils.getClientPlayer());\n }\n });\n }", "@Test(enabled=false)\n\tpublic void loanDetails(){\n\t\n\t\ttry{\n\t\tHomePage homePage=new HomePage(driver);\n\t\thomePage.clickOnSignIn();\n\t\t\n\t\tLoginActions loginAction=new LoginActions();\n\t\tloginAction.login(driver, \"username\", \"password\");\n\t\t\n\t\tAccountSummaryPage accountsummary= new AccountSummaryPage(driver);\n\t\taccountsummary.isAccountSummary();\n\t\t\n\t\tAccountActivityPage accountActivity=new AccountActivityPage(driver);\n\t\taccountActivity.clickOnAccountActivity();\n\t\t\n\t\taccountActivity.selectLoanAccount();\n\t\t\n\t\taccountActivity.getRowdata();\n\t\t\n\t\tAssert.assertEquals(accountActivity.getRowdata(), \"RENT\");\t\n\t\t\n\t\tSystem.out.println(accountActivity.getRowdata());\n\t\t\n\t\t// Test case no - AccActShow_04 -no results for credit card are verified under this test only\n\t\n\t\taccountActivity.getCreditCard();\n\t\t\n\t\tAssert.assertEquals(accountActivity.getCreditCard(), \"No Results\");\n\t\t}\n\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.getMessage();\n\t\t}\n\t}", "private void ShowDetails(String tabId) {\n\n\t\tif (tabId.equalsIgnoreCase(PARTICIPATED_CONTEST) == true) {\n\n\t\t\tLocalData data = new LocalData(context);\n\t\t\tdata.Update(MY_CONTEST, PARTICIPATED_CONTEST);\n\t\t\tGetParticipatedContest();\n\n\t\t} else if (tabId.equalsIgnoreCase(CREATED_CONTEST) == true) {\n\n\t\t\tLocalData data = new LocalData(context);\n\t\t\tdata.Update(MY_CONTEST, CREATED_CONTEST);\n\t\t\tGetCreatedContest();\n\t\t}\n\t}", "public void v_Verify_Guest5_Displayed(){\n\t}", "public void viewListofLocks() {\n\t\ttry {\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to get list of locks\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to get list of locks\");\n\t\t}\n\t}", "public void v_Verify_Guest2_Displayed(){\n\t}", "public void v_Verify_Guest8_Displayed(){\n\t}", "public void displayLable() {\n\t\tSystem.out.println(\"Name of Company :\"+name+ \" Address :\"+address);\r\n\t}", "public boolean librarianTested() \n {\n return false; \n }", "public void clusterNetTrained() {\n useClustersCheckBoxMenuItem.setEnabled(true);\n }", "public void testTableroLleno( )\n {\n setupEscenario2( );\n for( int i = 1; i <= 9; i++ )\n {\n triqui.marcarCasilla( i, marcaJugador1 );\n }\n assertTrue( triqui.tableroLleno( ) );\n }", "private void LoadClients(boolean Traitement) {\n\n\t\ttry {\n\t\t\tpanelBouton.getBtnCarteClient().setVisible(false);\n\t\t\tint i = 0;\n\t\t\tGetClientTableModel().clear();\n\t\t\tif (Traitement) {\n\t\t\t\tthis.nom = panelRecherche.getEtNom().getText();\n\t\t\t\tthis.prenom = panelRecherche.getEtPrenom().getText();\n\t\t\t\tliste = gestion.getClients(nom, prenom);\n\t\t\t} else {\n\t\t\t\tString numclient = panelRecherche.getEtNumclient().getText().toString();\n\t\t\t\tif (numclient.isEmpty()) {\n\t\t\t\t\ti = 0;\n\t\t\t\t} else {\n\t\t\t\t\tString patternId = \"^[0-9]+$\";\n\t\t\t\t\tboolean checkId = Pattern.matches(patternId, numclient);\n\t\t\t\t\tif (checkId) {\n\t\t\t\t\t\ti = Integer.parseInt(numclient);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tjavax.swing.JOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Ce champ peut contenir uniquement des valeurs numériques\");\n\t\t\t\t\t\tRunnable clearText = new Runnable() {\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tpanelRecherche.getEtNumclient().setText(\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tSwingUtilities.invokeLater(clearText);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tliste = gestion.getClient(i);\n\t\t\t}\n\t\t\tif (liste == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfor (Client client : liste) {\n\t\t\t\tGetClientTableModel().addRow(client);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t}\n\n\t\tArrayList<Commande> cdes = null;\n\t\ttry {\n\t\t\tcdes = gestion.getCdes(resultat);\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "public static void viewLeaderBoard()\n\t{\n\t}", "@Test\n public void testWithExpectedClientScope() {\n AuthzClient authzClient = getAuthzClient();\n PermissionRequest request = new PermissionRequest(\"Resource A\");\n String ticket = authzClient.protection().permission().create(request).getTicket();\n AuthorizationResponse response = authzClient.authorization(\"marta\", \"password\", \"foo\")\n .authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\n\n // Access Resource A with client scope bar.\n request = new PermissionRequest(\"Resource A\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n response = authzClient.authorization(\"marta\", \"password\", \"bar\").authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\n\n // Access Resource B with client scope bar.\n request = new PermissionRequest(\"Resource B\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n response = authzClient.authorization(\"marta\", \"password\", \"bar\").authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\n }", "public void print() {\n\t\ttry {\n\t\t\tArrayList<String> list = new ArrayList<String>(clients.keySet());\n\t\t\tCollections.sort(list);\n\t\t\tfor (String name : list) {\n\t\t\t\tProfile p = clients.get(name);\n\t\t\t\tif (p.valid()) {\n\t\t\t\t\tSystem.out.println(p.getName() + \": $\" + p.getBalance());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(p.getName() + \": error\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Throwable e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public ClientGUI() {\n this.clienten = new ArrayList<>();\n initComponents();\n\n clientsTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent event) {\n if (clientsTable.getSelectedRow() != -1) {\n String BSN = clientsTable.getValueAt(clientsTable.getSelectedRow(), 2).toString();\n\n try {\n List<Client> result = clientManager.searchClient(BSN);\n\n if (result.isEmpty()) {\n return;\n }\n Client client = result.get(0);\n\n clientFirstNameTextField.setText(client.getFirstName());\n clientLastNameTextField.setText(client.getName());\n clientBSNTextField.setText(client.getBSN());\n clientAddressTextField.setText(client.getAddress());\n clientPostCodeTextField.setText(client.getPostcode());\n clientCityTextField.setText(client.getCity());\n clientTelTextField.setText(client.getTel());\n clientEmailTextField.setText(client.getEmail());\n clientIBANTextField.setText(client.getIBAN());\n int index;\n if (client.isIncasso()) {\n index = 0;\n } else {\n index = 1;\n }\n\n clientIncassoCombobox.setSelectedIndex(index);\n selectedClient = client;\n clientPanel.setVisible(true);\n jScrollPane2.setVisible(true);\n getInvoiceButton.setVisible(true);\n clientPolisLabel.setVisible(true);\n addInsuranceContractButton.setVisible(true);\n polisCheckBox.setVisible(true);\n\n if (clientManager.hasInsuranceContract(client)) {\n setCheckBox(true);\n } else {\n setCheckBox(false);\n }\n\n DefaultTableModel tableModel = (DefaultTableModel) treatmentsTable.getModel();\n try {\n invoices = clientManager.getInvoices(selectedClient);\n } catch (RemoteException e) {\n invoices = new ArrayList<>();\n }\n\n for (int i = tableModel.getRowCount() - 1; i >= 0; i--) {\n tableModel.removeRow(i);\n }\n\n for (int i = 0; i < invoices.size(); i++) {\n Invoice invoice = invoices.get(i);\n tableModel.addRow(new Object[]{invoice.getTreatmentCode(), DateFormatter.dateToString(invoice.getDate()), invoice.isPaid()});\n }\n\n } catch (RemoteException e) {\n JOptionPane.showMessageDialog(null, \"Geen verbinding met de server\", \"Server error\", JOptionPane.ERROR_MESSAGE);\n }\n }\n\n }\n\n });\n\n this.setExtendedState(this.getExtendedState() | JFrame.MAXIMIZED_BOTH);\n\n this.clientManager = new ClientManager();\n this.invoiceManager = new InsuranceContractManager();\n }", "@Test\n public void loanWithCahargesOfTypeAmountPercentageAndCashBasedAccountingEnabled() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer percentageDisbursementCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanDisbursementJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\"));\n addCharges(charges, percentageDisbursementCharge, \"1\", null);\n\n Integer percentageSpecifiedDueDateCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageSpecifiedDueDateCharge, \"1\", \"29 September 2011\");\n\n Integer percentageInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageInstallmentFee, \"1\", \"29 September 2011\");\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n clientID.toString(), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, CASH_BASED, assetAccount, incomeAccount, expenseAccount, overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"120.00\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"149.11\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"29.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.0\", \"120.00\", \"0.0\");\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3300.60\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.00\", \"120.00\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"90.89\", \"29.11\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2911.49\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"149.11\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"240.00\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentageSpecifiedDueDateCharge), \"29 October 2011\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"149.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID, (Integer) getloanCharge(percentageInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"61.19\", \"29.11\", \"29.70\");\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3271.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3271.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2969.72\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"181.77\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n Integer percentagePenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"29 September 2011\", \"1\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentagePenaltySpecifiedDueDate, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"120\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2791.49\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"149.11\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"240\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3301.78\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3301.78\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3149.11\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"30.29\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"122.38\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"10 January 2012\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"120\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3240.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"120\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.DEBIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3120.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3120.58\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3120.58\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3089.68\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"30.90\"), JournalEntry.TransactionType.CREDIT));\n }", "public void visitRemoteOrderDisplay( DevCat devCat ) {}", "public void v_Verify_Guest6_Displayed(){\n\t}", "public void educationLoan(){\r\n\t\tSystem.out.println(\"HSBC ----educationLoan method called from HSBCBank class\");\r\n\t}", "public void autoDetails() {\n\t\t\r\n\t}", "private void getloggersStatus() { \n\t\tAppClientFactory.getInjector().getSearchService().isClientSideLoggersEnabled(new SimpleAsyncCallback<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String result) {\n\t\t\t\tAppClientFactory.setClientLoggersEnabled(result);\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "@Override\r\n\tpublic void showList() {\n\t\tSystem.out.println(\"I am a MAC list\");\r\n\t}", "public static void loadClientTable()\n {\n final String QUERY = \"SELECT * FROM Clients\";\n \n DefaultTableModel dtm = (DefaultTableModel) new ClientDatabase().selectTable(QUERY);\n clientTable.setModel(dtm);\n }", "static void printActiveClients() {\n\t\tint count = 0;\n\t\tfor (ClientThread thread : threads) {\n\t\t\tif (thread != null) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Clients: \" + count);\n\t}", "@Override\n\tprotected void on_lever_activated(GfxObject lever,\n\t\t\tLeverActivationState state) {\n\n\t}", "@Test\n public void testClientBehaviorHolderRendersIdAndName() \n {\n dataTable.addClientBehavior(\"keypress\", new AjaxBehavior());\n try \n {\n dataTable.encodeAll(facesContext);\n String output = ((StringWriter) writer.getWriter()).getBuffer().toString();\n Assertions.assertTrue(output.matches(\"(?s).+id=\\\".+\\\".+\"));\n Assertions.assertTrue(output.matches(\"(?s).+name=\\\".+\\\".+\"));\n }\n catch (Exception e)\n {\n Assertions.fail(e.getMessage());\n }\n \n }", "public String viewBranchLiability() {\n\t\tthis.setViewOrNewAction(true);\n\t\treturn null;\n\t}", "public void VerifyShowOnlyInkAndTonerLink(String text){\r\n\t\tString Text = getValue(text);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+Text);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Show Only Ink And Toner Link - '\"+Text+\"' should be displayed\");\r\n\t\ttry{\r\n\t\t\tif(getText(locator_split(\"lnkShowOnlyInkAndToner\")).equalsIgnoreCase(Text)){\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Show Only Ink And Toner Link - '\"+Text+\"' is displayed\");\r\n\t\t\t\tSystem.out.println(\"Verified the Text -\"+Text);\r\n\t\t\t}else {\r\n\t\t\t\tReporter.log(\"FAIL_MESSAGE:- Show Only Ink And Toner Link - '\"+Text+\"' is not displayed\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Show Only Ink And Toner Link - '\"+Text+\"' is not displayed\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkShowOnlyInkAndToner\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@Override\n\tpublic List<CallDetail> loadInstanceRelationDetectedAtClientSide(String clientServiceId, String serverServiceId,\n\t\t\tlong startTB, long endTB) throws IOException {\n\t\treturn null;\n\t}", "public void edicationLoan() {\n\t\tSystem.out.println(\"hsbc -- education loan\");\n\t\t\n\t}", "Client getPrefDentist();", "@Override\n public void onInitializeClient() {\n\t\tBlockEntityRendererRegistry.INSTANCE.register(TableBlockEntity.BLOCK_ENTITY_TYPE, TableBlockEntityRenderer::new);\n\n\t\tClientSpriteRegistryCallback.event(SpriteAtlasTexture.BLOCK_ATLAS_TEXTURE).register((atlasTexture, registry) ->\n\t\t{\n\t\t\tregistry.register(TableBlockEntityRenderer.BOOK_SPRITE_ID);\n\t\t});\n\t\t\n\t\tScreenRegistry.<CursedEnchantmentScreenHandler, CursedEnchantmentScreen>register(\n\t\t\tCursedEnchantingMain.CURSED_ENCHANTMENT_GUI,\n\t\t\t(gui, inventory, title) -> new CursedEnchantmentScreen(gui, inventory, title)\n\t\t);\n }", "public void v_Verify_Guest4_Hidden(){\n\t}", "boolean hasCustomerClientLink();", "public void run () {\n \n ExternalAgentReference childExtRef;\n LiaisonStatusReference childLSR;\n ALPAgentReference childAlpRef;\n ALPAgentReference alpRef = theApplication.currentAlpRef;\n ExternalAgentReference extRef = theApplication.currentExtRef;\n ArrayList affectedLSRs = new ArrayList();\n ArrayList extDescendants;\n ArrayList alpDescendants;\n ArrayList alpArray = new ArrayList(); \n ArrayList extArray = new ArrayList();\n Iterator extIt, alpIt;\n\n theApplication.mainWindow.setStatusBar(new String(\"Updating liaison permissions...\"));\n \n affectedLSRs.add(theLSR);\n\n // gather all affect extRefs \n extArray.add(extRef);\n extDescendants = theApplication.extSet.getDescendants(extRef);\n extIt = extDescendants.iterator();\n while(extIt.hasNext()){\n extArray.add(extIt.next());\n }\n\n // gather all affected Alp references \n alpArray.add(alpRef); \n // if the current ALP node controls subordinates, we must set \n // their permissions as well. \n if(!(alpRef.delegatesAuthority.booleanValue())){\n alpDescendants = theApplication.alpSet.getDescendants(alpRef);\n if(alpDescendants.size() > 0){\n alpIt = alpDescendants.iterator();\n while(alpIt.hasNext()){\n alpArray.add(alpIt.next());\n }\n }\n }\n\n // Now, cycle through and modify all necessary permissions\n\n alpIt = alpArray.iterator();\n while(alpIt.hasNext()){\n // outer loop, go through the current alp ref and any descendants\n childAlpRef = (ALPAgentReference) alpIt.next();\n // inner loop-- go through all affect ext refs. \n extIt = extArray.iterator();\n while(extIt.hasNext()){\n childExtRef = (ExternalAgentReference) extIt.next();\n childLSR = theApplication.liaisonSet.getStatusRef(childAlpRef, \n childExtRef);\n childLSR.ALPCanInitiate = new Boolean(theValue);\n affectedLSRs.add(childLSR);\n } // loop through affected external refs \n\n }\n\n theApplication.liaisonCollector.writeOutLSRsToJavaSpace(affectedLSRs);\n \n \n \n \n // Need to get teh external tree to repaint itself. \n theApplication.mainWindow.repaintMainExtTree();\n // Update permissions panel but not the values themselves, otherwise will\n // end up in an infinite event loop\n theApplication.mainWindow.updatePermissionsPanel(alpRef, extRef, false);\n theApplication.mainWindow.setStatusBar(new String(\"done.\"));\n \n }", "public void printChecklist() {\n\t\tfor(String str : checklist.keySet()) {\n\t\t\tMyUtils.Log(\"[Checklist] \"+str+\", \"+checklist.get(str));\n\t\t}\n\t}", "void showThrewResources(ArrayList<LightResource> threwResources);" ]
[ "0.5772033", "0.570928", "0.5264664", "0.5167911", "0.51282173", "0.5090385", "0.5038327", "0.50141215", "0.49903372", "0.49834663", "0.49376962", "0.49280724", "0.48934293", "0.4859709", "0.48561117", "0.48503628", "0.48432708", "0.48247084", "0.48160404", "0.4810047", "0.48073167", "0.47989053", "0.4776041", "0.47663063", "0.4764935", "0.4761649", "0.47410136", "0.4727553", "0.47257897", "0.47218692", "0.47175962", "0.47113356", "0.47101292", "0.4707605", "0.47053638", "0.47013092", "0.46827376", "0.4682601", "0.46820608", "0.46736", "0.46691224", "0.46663308", "0.46573716", "0.46540084", "0.46470726", "0.4630365", "0.46276897", "0.46234486", "0.46192655", "0.4611035", "0.46098116", "0.4609759", "0.46037146", "0.45937416", "0.45926547", "0.4589187", "0.45872772", "0.45819038", "0.45817858", "0.45796427", "0.45726994", "0.4563703", "0.4563262", "0.45603335", "0.4558026", "0.45407557", "0.45403314", "0.4537715", "0.45298108", "0.45230561", "0.45189393", "0.45159212", "0.45153925", "0.4514881", "0.45144138", "0.4506371", "0.45053813", "0.4502928", "0.4497106", "0.4495845", "0.44912675", "0.44892973", "0.4486309", "0.4471572", "0.44715413", "0.44710577", "0.44697034", "0.4469244", "0.4461139", "0.44561648", "0.44555193", "0.44537523", "0.4450935", "0.44498646", "0.44474614", "0.44460782", "0.44428682", "0.4439499", "0.44394433", "0.4439299", "0.44391847" ]
0.0
-1
DiscriminativeLearner + DiscriminativeOracle + Samples
public static <T> T learnDD(DiscriminativeOracle oracle, DiscriminativeLearner<T> learner, Iterable<String> samples) { long time = System.currentTimeMillis(); for(String query : samples) { learner.update(query, oracle.query(query)); } T t = learner.getModel(); Log.info("LEARNDD TIME: " + (System.currentTimeMillis() - time)); return t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void initialize(List<Sample> samples, QueryGenerator queryGenerator);", "@Test\n public void testRun() {\n System.out.println(\"run\");\n FluorescenceImporter importer = null;\n try {\n FluorescenceFixture tf = new FluorescenceFixture();\n importer = new FluorescenceImporter(tf.testData());\n ProgressHandle ph = ProgressHandleFactory.createHandle(\"Importing dataset\");\n importer.setProgressHandle(ph);\n \n importer.run();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n \n //FluorescenceDataset dataset = importer.getDataset();\n Dataset<? extends Instance> plate = importer.getDataset();\n System.out.println(\"inst A1 \"+ plate.instance(0).toString());\n System.out.println(\"plate \"+plate.toString());\n Dataset<Instance> output = new SampleDataset<Instance>();\n output.setParent((Dataset<Instance>) plate);\n ProgressHandle ph = ProgressHandleFactory.createHandle(\"Analyzing dataset\");\n // AnalyzeRunner instance = new AnalyzeRunner((Timeseries<ContinuousInstance>) plate, output, ph);\n // instance.run();\n \n }", "public WekaLogitLearner() { super(new Logistic2()); }", "@Override\n protected abstract Regressor[] getLearnerSetups();", "public void testLearn()\n {\n RandomSubVectorThresholdLearner<String> instance = new RandomSubVectorThresholdLearner<String>(\n new VectorThresholdInformationGainLearner<String>(),\n 0.1, random);\n\n VectorFactory<?> vectorFactory = VectorFactory.getDefault();\n ArrayList<InputOutputPair<Vector, String>> data =\n new ArrayList<InputOutputPair<Vector, String>>();\n for (int i = 0; i < 10; i++)\n {\n data.add(new DefaultInputOutputPair<Vector, String>(vectorFactory.createUniformRandom(\n 100, 1.0, 10.0, random), \"a\"));\n }\n\n for (int i = 0; i < 10; i++)\n {\n data.add(new DefaultInputOutputPair<Vector, String>(vectorFactory.createUniformRandom(\n 100, 1.0, 10.0, random), \"b\"));\n }\n\n VectorElementThresholdCategorizer result = instance.learn(data);\n assertNotNull(result);\n assertTrue(result.getIndex() >= 0);\n assertTrue(result.getIndex() < 100);\n \n // Change the dimensions to consider.\n instance.setDimensionsToConsider(new int[] {10, 20, 30, 40, 50});\n instance.setPercentToSample(0.5);\n result = instance.learn(data);\n assertNotNull(result);\n assertTrue(result.getIndex() >= 10);\n assertTrue(result.getIndex() <= 50);\n assertTrue(result.getIndex() % 10 == 0);\n }", "@Test\n public void testCreateCategorizationLearner()\n {\n int ensembleSize = 3 + random.nextInt(1000);\n double baggingFraction = random.nextDouble();\n double dimensionsFraction = random.nextDouble();\n int maxTreeDepth = 3 + random.nextInt(10);\n int minLeafSize = 4 + random.nextInt(10);\n Random random = new Random();\n BaggingCategorizerLearner<Vector, String> result\n = RandomForestFactory.createCategorizationLearner(ensembleSize,\n baggingFraction, dimensionsFraction, maxTreeDepth, minLeafSize,\n random);\n assertEquals(ensembleSize, result.getMaxIterations());\n assertEquals(baggingFraction, result.getPercentToSample(), 0.0);\n assertSame(random, result.getRandom());\n @SuppressWarnings(\"rawtypes\")\n CategorizationTreeLearner treeLearner = \n (CategorizationTreeLearner) result.getLearner();\n assertEquals(maxTreeDepth, treeLearner.getMaxDepth());\n assertTrue(treeLearner.getLeafCountThreshold() >= 2 * minLeafSize);\n RandomSubVectorThresholdLearner<?> randomSubspace = (RandomSubVectorThresholdLearner<?>)\n treeLearner.getDeciderLearner();\n assertEquals(dimensionsFraction, randomSubspace.getPercentToSample(), 0.0);\n assertSame(random, randomSubspace.getRandom());\n VectorThresholdInformationGainLearner<?> splitLearner = (VectorThresholdInformationGainLearner<?>)\n randomSubspace.getSubLearner();\n assertEquals(minLeafSize, splitLearner.getMinSplitSize());\n }", "public void start() throws Exception {\n String datasetPath = \"dataset\\\\arcene_train.arff\";\n\n Instances dataset = new Instances(fileSystemUtil.readDataSet(datasetPath));\n dataset.setClassIndex(dataset.numAttributes() - 1);\n\n // Creating instances of feature selection models\n List<FeatureSelectionModel> featureSelectionModels = new ArrayList<>();\n featureSelectionModels.add(new CorellationFeatureSelectionModel());\n featureSelectionModels.add(new InfoGainFeatureSelectionModel());\n featureSelectionModels.add(new WrapperAttributeFeatureSelectionModel());\n\n List<List<Integer>> listOfRankedLists = calculateRankedLists(dataset, featureSelectionModels);\n\n // Creating instances of classifiers\n List<AbstractClassifier> classifiers = createClassifiers();\n Instances datasetBackup = new Instances(dataset);\n\n int modelCounter = 0;\n for (FeatureSelectionModel model : featureSelectionModels) {\n System.out.println(\"============================================================================\");\n System.out.println(String.format(\"Classification, step #%d. %s.\", ++modelCounter, model));\n System.out.println(\"============================================================================\");\n\n // Ranking attributes\n List<Integer> attrRankList = listOfRankedLists.get(modelCounter - 1);\n\n for (int attrIndex = (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1) + 1, removedCounter = 0;\n attrIndex >= attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION;\n attrIndex--, removedCounter++) {\n if (datasetBackup.numAttributes() == attrRankList.size()\n && attrIndex == 0) {\n continue;\n }\n// for (int attrIndex = attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION, removedCounter = 0;\n// attrIndex <= (attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1);\n// attrIndex++, removedCounter++) {\n// if (datasetBackup.numAttributes() == attrRankList.size()\n// && attrIndex == attrRankList.size() - 1) {\n// continue;\n// }\n dataset = new Instances(datasetBackup);\n // Do not remove for first iteration\n if (removedCounter > 0) {\n // Selecting features (removing attributes one-by-one starting from worst)\n List<Integer> attrToRemoveList = attrRankList.subList(attrIndex,\n (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION));\n Collections.sort(attrToRemoveList);\n for (int i = attrToRemoveList.size() - 1; i >= 0; i--) {\n dataset.deleteAttributeAt(attrToRemoveList.get(i));\n }\n// for (Integer attr : attrToRemoveList) {\n// dataset.deleteAttributeAt(attr);\n// }\n System.out.println(\"\\n\\n-------------- \" + (removedCounter) + \" attribute(s) removed (of \" +\n (datasetBackup.numAttributes() - 1) + \") --------------\\n\");\n } else {\n System.out.println(\"\\n\\n-------------- First iteration - without feature selection --------------\\n\");\n }\n\n classify(classifiers, dataset);\n }\n }\n }", "List<RepStuLearning> selectByExample(RepStuLearningExample example);", "private void trainOnSamples() {\n for (Sample sample : samples) {\n double sum = 0;\n \n for (int i = 0; i < weights.length; i++) { //calculating w1.x1 + w2.x2 + ... \n sum += weights[i] * sample.getP()[i];\n }\n sum += bias; //adding bias to the sum\n\n if (!compareOutput(sum, sample)) { //compare network & target output\n //updating the weights\n for (int i = 0; i < weights.length; i++) {\n weights[i] += sample.getTarget() * sample.getP()[i];\n }\n //updating the bias\n bias += sample.getTarget();\n sample.setValidation(false);\n } else {\n sample.setValidation(true);\n }\n }\n }", "public static void main(String[] args) throws Exception {\n int numLinesToSkip = 0;\n String delimiter = \",\"; //这是csv文件中的分隔符\n RecordReader recordReader = new CSVRecordReader(numLinesToSkip,delimiter);\n recordReader.initialize(new FileSplit(new ClassPathResource(\"dataSet20170119.csv\").getFile()));\n\n //Second: the RecordReaderDataSetIterator handles conversion to DataSet objects, ready for use in neural network\n\n /**\n * 这是标签(类别)所在列的序号\n */\n int labelIndex = 0; //5 values in each row of the iris.txt CSV: 4 input features followed by an integer label (class) index. Labels are the 5th value (index 4) in each row\n //类别的总数\n int numClasses = 2; //3 classes (types of iris flowers) in the iris data set. Classes have integer values 0, 1 or 2\n\n //一次读取多少条数据。当数据量较大时可以分几次读取,每次读取后就训练。这就是随机梯度下降\n int batchSize = 2000; //Iris data set: 150 examples total. We are loading all of them into one DataSet (not recommended for large data sets)\n\n DataSetIterator iterator = new RecordReaderDataSetIterator(recordReader,batchSize,labelIndex,numClasses);\n //因为我在这里写的2000是总的数据量大小,一次读完,所以一次next就完了。如果分批的话要几次next\n DataSet allData = iterator.next();\n// allData.\n allData.shuffle();\n SplitTestAndTrain testAndTrain = allData.splitTestAndTrain(0.8); //Use 65% of data for training\n\n DataSet trainingData = testAndTrain.getTrain();\n DataSet testData = testAndTrain.getTest();\n //We need to normalize our data. We'll use NormalizeStandardize (which gives us mean 0, unit variance):\n //数据归一化的步骤,非常重要,不做可能会导致梯度中的几个无法收敛\n DataNormalization normalizer = new NormalizerStandardize();\n normalizer.fit(trainingData); //Collect the statistics (mean/stdev) from the training data. This does not modify the input data\n normalizer.transform(trainingData); //Apply normalization to the training data\n normalizer.transform(testData); //Apply normalization to the test data. This is using statistics calculated from the *training* set\n\n\n final int numInputs = 9202;\n int outputNum = 2;\n int iterations = 1000;\n long seed = 142;\n int numEpochs = 50; // number of epochs to perform\n\n log.info(\"Build model....\");\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(seed)\n .optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT)\n .iterations(iterations)\n .activation(Activation.SIGMOID)\n .weightInit(WeightInit.ZERO) //参数初始化的方法,全部置零\n .learningRate(1e-3) //经过测试,这里的学习率在1e-3比较合适\n .regularization(true).l2(5e-5) //正则化项,防止参数过多导致过拟合。2阶范数乘一个比率\n .list()\n\n .layer(0, new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)\n .activation(Activation.SIGMOID)\n .nIn(numInputs).nOut(outputNum).build())\n .backprop(true).pretrain(false)\n .build();\n\n //run the model\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\n model.init();\n model.setListeners(new ScoreIterationListener(100));\n\n\n log.info(\"Train model....\");\n for( int i=0; i<numEpochs; i++ ){\n log.info(\"Epoch \" + i);\n model.fit(trainingData);\n\n //每个epoch结束后立马观察模型估计的效果,方便及早停止\n Evaluation eval = new Evaluation(numClasses);\n INDArray output = model.output(testData.getFeatureMatrix());\n eval.eval(testData.getLabels(), output);\n log.info(eval.stats());\n }\n\n }", "@Test\n public void testCreateRegressionLearner()\n {\n int ensembleSize = 3 + random.nextInt(1000);\n double baggingFraction = random.nextDouble();\n double dimensionsFraction = random.nextDouble();\n int maxTreeDepth = 3 + random.nextInt(10);\n int minLeafSize = 4 + random.nextInt(10);\n Random random = new Random();\n BaggingRegressionLearner<Vector> result\n = RandomForestFactory.createRegressionLearner(ensembleSize,\n baggingFraction, dimensionsFraction, maxTreeDepth, minLeafSize,\n random);\n assertEquals(ensembleSize, result.getMaxIterations());\n assertEquals(baggingFraction, result.getPercentToSample(), 0.0);\n assertSame(random, result.getRandom());\n @SuppressWarnings(\"rawtypes\")\n RegressionTreeLearner treeLearner = \n (RegressionTreeLearner) result.getLearner();\n assertEquals(maxTreeDepth, treeLearner.getMaxDepth());\n assertTrue(treeLearner.getLeafCountThreshold() >= 2 * minLeafSize);\n assertNull(treeLearner.getRegressionLearner());\n RandomSubVectorThresholdLearner<?> randomSubspace = (RandomSubVectorThresholdLearner<?>)\n treeLearner.getDeciderLearner();\n assertEquals(dimensionsFraction, randomSubspace.getPercentToSample(), 0.0);\n assertSame(random, randomSubspace.getRandom());\n VectorThresholdVarianceLearner splitLearner = (VectorThresholdVarianceLearner)\n randomSubspace.getSubLearner();\n assertEquals(minLeafSize, splitLearner.getMinSplitSize());\n }", "public void train(){\n recoApp.training(idsToTest);\n }", "public static void main(String[] args) throws Exception {\n DataSet houseVotes = DataParser.parseData(HouseVotes.filename, HouseVotes.columnNames, HouseVotes.dataTypes, HouseVotes.ignoreColumns, HouseVotes.classColumn, HouseVotes.discretizeColumns);\n DataSet breastCancer = DataParser.parseData(BreastCancer.filename, BreastCancer.columnNames, BreastCancer.dataTypes, BreastCancer.ignoreColumns, BreastCancer.classColumn, HouseVotes.discretizeColumns);\n DataSet glass = DataParser.parseData(Glass.filename, Glass.columnNames, Glass.dataTypes, Glass.ignoreColumns, Glass.classColumn, Glass.discretizeColumns);\n DataSet iris = DataParser.parseData(Iris.filename, Iris.columnNames, Iris.dataTypes, Iris.ignoreColumns, Iris.classColumn, Iris.discretizeColumns);\n DataSet soybean = DataParser.parseData(Soybean.filename, Soybean.columnNames, Soybean.dataTypes, Soybean.ignoreColumns, Soybean.classColumn, Soybean.discretizeColumns);\n \n /*\n * The contents of the DataSet are not always random.\n * You can shuffle them using Collections.shuffle()\n */\n \n Collections.shuffle(houseVotes);\n Collections.shuffle(breastCancer);\n Collections.shuffle(glass);\n Collections.shuffle(iris);\n Collections.shuffle(soybean);\n /*\n * Lastly, you want to split the data into a regular dataset and a testing set.\n * DataSet has a function for this, since it gets a little weird.\n * This grabs 10% of the data in the dataset and sets pulls it out to make the testing set.\n * This also means that the remaining 90% in DataSet can serve as our training set.\n */\n\n DataSet houseVotesTestingSet = houseVotes.getTestingSet(.1);\n DataSet breastCancerTestingSet = breastCancer.getTestingSet(.1);\n DataSet glassTestingSet = glass.getTestingSet(.1);\n DataSet irisTestingSet = iris.getTestingSet(.1);\n DataSet soybeanTestingSet = soybean.getTestingSet(.1);\n \n //KNN\n //House Votes\n System.out.println(HouseVotes.class.getSimpleName());\n KNN knn = new KNN(houseVotes, houseVotesTestingSet, HouseVotes.classColumn, 3);\n String[] knnHouseVotes = new String[houseVotesTestingSet.size()];\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n knnHouseVotes[i] = knn.classify(houseVotesTestingSet.get(i));\n }\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n if(knnHouseVotes[i].equals(houseVotesTestingSet.get(i)[HouseVotes.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnHouseVotes[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnHouseVotes[i] + \", actually \" + houseVotesTestingSet.get(i)[HouseVotes.classColumn].value() + \")\");\n }\n }\n \n //Breast Cancer\n System.out.println(BreastCancer.class.getSimpleName());\n knn = new KNN(breastCancer, breastCancerTestingSet, BreastCancer.classColumn, 3);\n String[] knnBreastCancer = new String[breastCancerTestingSet.size()];\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n knnBreastCancer[i] = knn.classify(breastCancerTestingSet.get(i));\n }\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n if(knnBreastCancer[i].equals(breastCancerTestingSet.get(i)[BreastCancer.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnBreastCancer[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnBreastCancer[i] + \", actually \" + breastCancerTestingSet.get(i)[BreastCancer.classColumn].value() + \")\");\n }\n }\n \n //Glass\n System.out.println(Glass.class.getSimpleName());\n knn = new KNN(glass, glassTestingSet, Glass.classColumn, 3);\n String[] knnGlass = new String[glassTestingSet.size()];\n for(int i = 0; i < glassTestingSet.size(); i++) {\n knnGlass[i] = knn.classify(glassTestingSet.get(i));\n }\n for(int i = 0; i < glassTestingSet.size(); i++) {\n if(knnGlass[i].equals(glassTestingSet.get(i)[Glass.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnGlass[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnGlass[i] + \", actually \" + glassTestingSet.get(i)[Glass.classColumn].value() + \")\");\n }\n }\n \n //Iris\n System.out.println(Iris.class.getSimpleName());\n knn = new KNN(iris, irisTestingSet, Iris.classColumn, 3);\n String[] knnIris = new String[irisTestingSet.size()];\n for(int i = 0; i < irisTestingSet.size(); i++) {\n knnIris[i] = knn.classify(irisTestingSet.get(i));\n }\n for(int i = 0; i < irisTestingSet.size(); i++) {\n if(knnIris[i].equals(irisTestingSet.get(i)[Iris.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnIris[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnIris[i] + \", actually \" + irisTestingSet.get(i)[Iris.classColumn].value() + \")\");\n }\n }\n \n //Soybean\n System.out.println(Soybean.class.getSimpleName());\n knn = new KNN(soybean, soybeanTestingSet, Soybean.classColumn, 3);\n String[] knnSoybean = new String[soybeanTestingSet.size()];\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n knnSoybean[i] = knn.classify(soybeanTestingSet.get(i));\n }\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n if(knnSoybean[i].equals(soybeanTestingSet.get(i)[Soybean.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnSoybean[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnSoybean[i] + \", actually \" + soybeanTestingSet.get(i)[Soybean.classColumn].value() + \")\");\n }\n }\n \n \n /*\n * Lets setup ID3:\n * DataSet, TestSet, column with the class categorization. (republican, democrat in this case)\n */\n\n System.out.println(HouseVotes.class.getSimpleName());\n ID3 id3 = new ID3(houseVotes, houseVotesTestingSet, HouseVotes.classColumn);\n String[] id3HouseVotes = new String[houseVotesTestingSet.size()];\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n id3HouseVotes[i] = id3.classify(houseVotesTestingSet.get(i));\n }\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n if(id3HouseVotes[i].equals(houseVotesTestingSet.get(i)[HouseVotes.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3HouseVotes[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3HouseVotes[i] + \", actually \" + houseVotesTestingSet.get(i)[HouseVotes.classColumn].value() + \")\");\n }\n }\n\n System.out.println(BreastCancer.class.getSimpleName());\n id3 = new ID3(breastCancer, breastCancerTestingSet, BreastCancer.classColumn);\n String[] id3BreastCancer = new String[breastCancerTestingSet.size()];\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n id3BreastCancer[i] = id3.classify(breastCancerTestingSet.get(i));\n }\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n if(id3BreastCancer[i].equals(breastCancerTestingSet.get(i)[BreastCancer.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3BreastCancer[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3BreastCancer[i] + \", actually \" + breastCancerTestingSet.get(i)[BreastCancer.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Glass.class.getSimpleName());\n id3 = new ID3(glass, glassTestingSet, Glass.classColumn);\n String[] id3Glass = new String[glassTestingSet.size()];\n for(int i = 0; i < glassTestingSet.size(); i++) {\n id3Glass[i] = id3.classify(glassTestingSet.get(i));\n }\n for(int i = 0; i < glassTestingSet.size(); i++) {\n if(id3Glass[i].equals(glassTestingSet.get(i)[Glass.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Glass[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Glass[i] + \", actually \" + glassTestingSet.get(i)[Glass.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Iris.class.getSimpleName());\n id3 = new ID3(iris, irisTestingSet, Iris.classColumn);\n String[] id3Iris = new String[irisTestingSet.size()];\n for(int i = 0; i < irisTestingSet.size(); i++) {\n id3Iris[i] = id3.classify(irisTestingSet.get(i));\n }\n for(int i = 0; i < irisTestingSet.size(); i++) {\n if(id3Iris[i].equals(irisTestingSet.get(i)[Iris.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Iris[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Iris[i] + \", actually \" + irisTestingSet.get(i)[Iris.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Soybean.class.getSimpleName());\n id3 = new ID3(soybean, soybeanTestingSet, Soybean.classColumn);\n String[] id3Soybean = new String[soybeanTestingSet.size()];\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n id3Soybean[i] = id3.classify(soybeanTestingSet.get(i));\n }\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n if(id3Soybean[i].equals(soybeanTestingSet.get(i)[Soybean.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Soybean[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Soybean[i] + \", actually \" + soybeanTestingSet.get(i)[Soybean.classColumn].value() + \")\");\n }\n }\n }", "public void testGetSubLearner()\n {\n this.testSetSubLearner();\n }", "public void TrainDataset(){\n\t\ttry{\n\t\t\t//Testing delegate method\n\t\t\tMessageController.logToConsole(\"Hey, I'm from train button\");\n\t\t\t\n\t\t\t//Pass in the real training dataset\n\t\t\tfindSuitableK(new String[]{\"Hello\", \"World\"});\n\t\t\t\n\t\t\t//Pass in the 'k' and 'query string'\n\t\t\tfindKNN(2, \"anything\");\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tthrow ex;\n\t\t}\n\t\tfinally{\n\t\t\t\n\t\t}\n\t}", "public List<HashMap<Integer,AttributeInfo>> generateTrainingSetDataseAttributes(Dataset dataset, Properties properties) throws Exception {\n List<HashMap<Integer,AttributeInfo>> candidateAttributesList = new ArrayList<>();\n String[] classifiers = properties.getProperty(\"classifiersForMLAttributesGeneration\").split(\",\");\n\n //obtaining the attributes for the dataset itself is straightforward\n DatasetBasedAttributes dba = new DatasetBasedAttributes();\n for (String classifier : classifiers) {\n\n //For each dataset and classifier combination, we need to get the results on the \"original\" dataset so we can later compare\n Evaluation evaluationResults = runClassifier(classifier, dataset.generateSet(true), dataset.generateSet(false), properties);\n double originalAuc = CalculateAUC(evaluationResults, dataset);\n\n //Generate the dataset attributes\n HashMap<Integer, AttributeInfo> datasetAttributes = dba.getDatasetBasedFeatures(dataset, classifier, properties);\n\n //Add the identifier of the classifier that was used\n\n AttributeInfo classifierAttribute = new AttributeInfo(\"Classifier\", Column.columnType.Discrete, getClassifierIndex(classifier), 3);\n datasetAttributes.put(datasetAttributes.size(), classifierAttribute);\n\n\n //now we need to generate the candidate attributes and evaluate them. This requires a few preliminary steps:\n // 1) Replicate the dataset and create the discretized features and add them to the dataset\n OperatorsAssignmentsManager oam = new OperatorsAssignmentsManager(properties);\n List<Operator> unaryOperators = oam.getUnaryOperatorsList();\n //The unary operators need to be evaluated like all other operator assignments (i.e. attribtues generation)\n List<OperatorAssignment> unaryOperatorAssignments = oam.getOperatorAssignments(dataset, null, unaryOperators, Integer.parseInt(properties.getProperty(\"maxNumOfAttsInOperatorSource\")));\n Dataset replicatedDataset = generateDatasetReplicaWithDiscretizedAttributes(dataset, unaryOperatorAssignments, oam);\n\n // 2) Obtain all other operator assignments (non-unary). IMPORTANT: this is applied on the REPLICATED dataset so we can take advantage of the discretized features\n List<Operator> nonUnaryOperators = oam.getNonUnaryOperatorsList();\n List<OperatorAssignment> nonUnaryOperatorAssignments = oam.getOperatorAssignments(replicatedDataset, null, nonUnaryOperators, Integer.parseInt(properties.getProperty(\"maxNumOfAttsInOperatorSource\")));\n\n // 3) Generate the candidate attribute and generate its attributes\n nonUnaryOperatorAssignments.addAll(unaryOperatorAssignments);\n\n //oaList.parallelStream().forEach(oa -> {\n int counter = 0;\n //for (OperatorAssignment oa : nonUnaryOperatorAssignments) {\n ReentrantLock wrapperResultsLock = new ReentrantLock();\n nonUnaryOperatorAssignments.parallelStream().forEach(oa -> {\n try {\n OperatorsAssignmentsManager oam1 = new OperatorsAssignmentsManager(properties);\n Dataset datasetReplica = dataset.replicateDataset();\n ColumnInfo candidateAttribute = null;\n try {\n candidateAttribute = oam1.generateColumn(datasetReplica, oa, true);\n }\n catch (Exception ex) {\n candidateAttribute = oam1.generateColumn(datasetReplica, oa, true);\n }\n\n\n OperatorAssignmentBasedAttributes oaba = new OperatorAssignmentBasedAttributes();\n HashMap<Integer, AttributeInfo> candidateAttributes = oaba.getOperatorAssignmentBasedAttributes(dataset, oa, candidateAttribute, properties);\n\n datasetReplica.addColumn(candidateAttribute);\n Evaluation evaluationResults1 = runClassifier(classifier, datasetReplica.generateSet(true), datasetReplica.generateSet(false), properties);\n\n double auc = CalculateAUC(evaluationResults1, datasetReplica);\n double deltaAuc = auc - originalAuc;\n AttributeInfo classAttrubute;\n if (deltaAuc > 0.01) {\n classAttrubute = new AttributeInfo(\"classAttribute\", Column.columnType.Discrete, 1,2);\n System.out.println(\"found positive match\");\n } else {\n classAttrubute = new AttributeInfo(\"classAttribute\", Column.columnType.Discrete, 0,2);\n }\n\n //finally, we need to add the dataset attribtues and the class attribute\n for (AttributeInfo datasetAttInfo : datasetAttributes.values()) {\n candidateAttributes.put(candidateAttributes.size(), datasetAttInfo);\n }\n\n candidateAttributes.put(candidateAttributes.size(), classAttrubute);\n wrapperResultsLock.lock();\n candidateAttributesList.add(candidateAttributes);\n wrapperResultsLock.unlock();\n }\n catch (Exception ex) {\n System.out.println(\"Error in ML features generation : \" + oa.getName() + \" : \" + ex.getMessage());\n }\n });\n }\n\n return candidateAttributesList;\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\tpublic void learn(Dataset dataset, Alg alg) throws RemoteException {\n\t\tsuper.learn(dataset, alg);\n\t\t\n\t\tbnetMap = BnetDistributedLearner.createDistributedBnet(dataset);\n\t\titemIds = bnetMap.keySet();\n\t\t\n\t}", "@Override\n\tpublic void learn(Dataset dataset, Alg alg) {\n\t\tsuper.learn(dataset, alg);\n\t\t\n\t\tbnetMap = BnetDistributedLearner.createDistributedBnet(dataset);\n\t\titemIds = bnetMap.keySet();\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tList<String> listSouceCode = Helper.getAllDataFromFolder(DATASET1);\n\n\t\t//Create the HMM for concepts\n\t\tHMMConcept hmmConcept = new HMMConcept();\n\t\thmmConcept.init();\n\t\tHMMConceptInit.initTransition(hmmConcept);\n\n\t\t//Now, let us test the training phase\n\t\t//Transition probabilities\n\t\tHMMConceptTransition.\n\t\t\tpreTransition(listSouceCode, hmmConcept);\n\t\tHMMConceptTransition.\n\t\t\ttargetTransition(listSouceCode, hmmConcept);\n\t\tHMMConceptTransition.\n\t\t\totherTransition(listSouceCode, hmmConcept);\n//\t\t//Observations probabilities\n\t\tHMMConceptObservation.\n\t\t\tpreObservation(listSouceCode, hmmConcept);\n\t\tHMMConceptObservation.\n\t\t\ttargetObservation(listSouceCode, hmmConcept);\n\t\tHMMConceptObservation.\n\t\t\totherObservation(listSouceCode, hmmConcept);\n\t\t\n//\t\tSystem.out.println(hmmConcept);\n\n//\t\t//*************************END of the HMM training***************************************\n\n\t\t///To extract knowledge, just uncomment the corresponding source code\n\t\t\n\t\t/**\n\t\t * EPICAM Knowledge extraction\n//\t\t */\n//\t\t//Knowledge extraction\n//\t\tList<String> testedSourceCode = Helper.getAllDataFromFolder(DATASET2);\n//\t\tList<Column> alphaTable;\n//\t\t\n//\t\tfor (String sourceFile : testedSourceCode) {\n//\t\t\talphaTable = MostLikelyExplanationConcept.\n//\t\t\t\t\tfillAlphaStartTable4Concepts(hmmConcept, sourceFile);\n//\n//\t\t\tString extracted = MostLikelyExplanationConcept.knowledgeExtraction(alphaTable);\n////\t\t\tWriting to an OWL file\n//\t\t\tHelper.writeDataToFile(CONCEPTSEXTRACTED, extracted);\n//\t\t\t//The number of false positives and the number of target\n//\t\t\tSystem.out.println(MostLikelyExplanationConcept.nbFalsePositive+\"\\n and nb target: \"+\n//\t\t\tMostLikelyExplanationConcept.nbTarget);\n//\t\t\t\n////\t\t\tSystem.out.println(Term2OWL.term2OWL(new File(CONCEPTSEXTRACTED)));\n//\n//\t\t}\n\n\t\t/**\n\t\t * Geoserver knowledge extraction\n\t\t */\n\n\t\tList<String> testedSourceCode = Helper.getAllDataFromFolder(GEOSERVER);\n\t\tList<Column> alphaTable;\n\t\t\n\t\tfor (String sourceFile : testedSourceCode) {\n\t\t\talphaTable = MostLikelyExplanationConcept.\n\t\t\t\t\tfillAlphaStartTable4Concepts(hmmConcept, sourceFile);\n\n\t\t\tString extracted = MostLikelyExplanationConcept.knowledgeExtraction(alphaTable);\n//\t\t\tWriting to an OWL file\n\t\t\tHelper.writeDataToFile(TERMSEXTRACTED2GEOSERVER, extracted);\n\t\t\t//The number of false positives and the number of target\n\t\t\t\n//\t\t\tSystem.out.println(Term2OWL.term2OWL(new File(CONCEPTSEXTRACTED)));\n\n\t}\n\t\tSystem.out.println(MostLikelyExplanationConcept.nbFalsePositive+\"\\n and nb target: \"+\n\t\tMostLikelyExplanationConcept.nbTarget);\n\t}", "private void trainCombined() throws Exception\n\t{\n\t\tdbiterator.setDataSource(DBInstanceIterator.DBSource.COMPLEX);\n\t\tSystem.out.println(\"Starting reading Complex Trainingset ..\");\n\t\tPipe serialpipe = getComplexPipe(); //as reference unigram best than unigram in POS\n\t\tInstanceList complex_instances = new InstanceList(serialpipe);\n\t\tSystem.out.println(\"Preprocessing on Complex Trainingset ..\");\n\t\tcomplex_instances.addThruPipe(dbiterator);\n\t\tSystem.out.println(\"Complex Training set : \" + complex_instances.size());\n\t\tSystem.out.println(\"Saving preprocessed data ..\");\n\t\tsaveinstances(complex_instances, Train + \"C.bin\");\n\t\tSystem.out.println(\"Saving Complex data ..\");\n\t\tcomplex_instances.getDataAlphabet().dump(new PrintWriter(new File(Attributes + \"complex.dat\")));\n\n\t\tClassifierTrainer trainer = new NaiveBayesTrainer();\n\t\tSystem.out.println(\"NaiveBayes Starts Training on Complex training set ..\");\n\t\tClassifier classifier = trainer.train(complex_instances);\n\t\tSystem.out.println(\"Targets labels : \\t\"+classifier.getLabelAlphabet());\n\t\tSystem.out.println(\"Saving Naive Bayes Classifier ..\");\n\t\tsaveModel(classifier, Complex_Train);\n\t\tSystem.out.println(\"Complex classifier saved to : \" + Complex_Train);\n\t}", "public void testConstructors()\n {\n VectorThresholdInformationGainLearner<String> subLearner = null;\n double percentToSample = RandomSubVectorThresholdLearner.DEFAULT_PERCENT_TO_SAMPLE;\n VectorFactory<?> vectorFactory = VectorFactory.getDefault();\n int[] dimensionsToConsider = null;\n RandomSubVectorThresholdLearner<String> instance = new RandomSubVectorThresholdLearner<String>();\n assertSame(subLearner, instance.getSubLearner());\n assertEquals(percentToSample, instance.getPercentToSample());\n assertSame(dimensionsToConsider, instance.getDimensionsToConsider());\n assertNotNull(instance.getRandom());\n assertSame(vectorFactory, instance.getVectorFactory());\n\n subLearner = new VectorThresholdInformationGainLearner<String>();\n percentToSample = percentToSample / 2.0;\n instance = new RandomSubVectorThresholdLearner<String>(subLearner,\n percentToSample, random);\n assertSame(subLearner, instance.getSubLearner());\n assertEquals(percentToSample, instance.getPercentToSample());\n assertSame(dimensionsToConsider, instance.getDimensionsToConsider());\n assertSame(random, instance.getRandom());\n assertSame(vectorFactory, instance.getVectorFactory());\n\n vectorFactory = VectorFactory.getSparseDefault();\n instance = new RandomSubVectorThresholdLearner<String>(subLearner,\n percentToSample, random, vectorFactory);\n assertSame(subLearner, instance.getSubLearner());\n assertEquals(percentToSample, instance.getPercentToSample());\n assertSame(dimensionsToConsider, instance.getDimensionsToConsider());\n assertSame(random, instance.getRandom());\n assertSame(vectorFactory, instance.getVectorFactory());\n \n dimensionsToConsider = new int[] {5, 12};\n vectorFactory = VectorFactory.getSparseDefault();\n instance = new RandomSubVectorThresholdLearner<String>(subLearner,\n percentToSample, dimensionsToConsider, random, vectorFactory);\n assertSame(subLearner, instance.getSubLearner());\n assertEquals(percentToSample, instance.getPercentToSample());\n assertSame(dimensionsToConsider, instance.getDimensionsToConsider());\n assertSame(random, instance.getRandom());\n assertSame(vectorFactory, instance.getVectorFactory());\n }", "public void run() throws Exception {\r\n\r\n\r\n LibSVM svm = new LibSVM();\r\n String svmOptions = \"-S 0 -K 2 -C 8 -G 0\"; //Final result: [1, -7 for saveTrainingDataToFileHybridSampling2 ]\r\n svm.setOptions(weka.core.Utils.splitOptions(svmOptions));\r\n System.out.println(\"SVM Type and Keranl Type= \" + svm.getSVMType() + svm.getKernelType());//1,3 best result 81%\r\n // svm.setNormalize(true);\r\n\r\n\r\n// load training data from .arff file\r\n ConverterUtils.DataSource source = new ConverterUtils.DataSource(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataUSSMOTE464Random.arff\");\r\n System.out.println(\"\\n\\nLoaded data:\\n\\n\" + source.getDataSet());\r\n Instances dataFiltered = source.getDataSet();\r\n dataFiltered.setClassIndex(0);\r\n\r\n // gridSearch(svm, dataFiltered);\r\n Evaluation evaluation = new Evaluation(dataFiltered);\r\n evaluation.crossValidateModel(svm, dataFiltered, 10, new Random(1));\r\n System.out.println(evaluation.toSummaryString());\r\n System.out.println(evaluation.weightedAreaUnderROC());\r\n double[][] confusionMatrix = evaluation.confusionMatrix();\r\n for (int i = 0; i < 2; i++) {\r\n for (int j = 0; j < 2; j++) {\r\n System.out.print(confusionMatrix[i][j] + \" \");\r\n\r\n }\r\n System.out.println();\r\n }\r\n System.out.println(\"accuracy for crime class= \" + (confusionMatrix[0][0] / (confusionMatrix[0][1] + confusionMatrix[0][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for other class= \" + (confusionMatrix[1][1] / (confusionMatrix[1][1] + confusionMatrix[1][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for crime class= \" + evaluation.truePositiveRate(0) + \"%\");\r\n System.out.println(\"accuracy for other class= \" + evaluation.truePositiveRate(1) + \"%\");\r\n\r\n\r\n }", "private void learn() {\n\t\tupdateValues();\n\t\tif(CFG.isUpdatedPerformanceHistory()){\n\t\t\tupdateHistory();\n\t\t}\n\t\tif(CFG.isEvaluated()) evaluate();\n\t}", "public void dmall() {\n \r\n BufferedReader datafile = readDataFile(\"Work//weka-malware.arff\");\r\n \r\n Instances data = null;\r\n\t\ttry {\r\n\t\t\tdata = new Instances(datafile);\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n data.setClassIndex(data.numAttributes() - 1);\r\n \r\n // Choose a type of validation split\r\n Instances[][] split = crossValidationSplit(data, 10);\r\n \r\n // Separate split into training and testing arrays\r\n Instances[] trainingSplits = split[0];\r\n Instances[] testingSplits = split[1];\r\n \r\n // Choose a set of classifiers\r\n Classifier[] models = { new J48(),\r\n new DecisionTable(),\r\n new DecisionStump(),\r\n new BayesianLogisticRegression() };\r\n \r\n // Run for each classifier model\r\n//for(int j = 0; j < models.length; j++) {\r\n int j = 0;\r\n \tswitch (comboClassifiers.getSelectedItem().toString()) {\r\n\t\t\tcase \"J48\":\r\n\t\t\t\tj = 0;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionTable\":\r\n\t\t\t\tj = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionStump\":\r\n\t\t\t\tj = 2;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"BayesianLogisticRegression\":\r\n\t\t\t\tj = 3;\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\r\n\r\n // Collect every group of predictions for current model in a FastVector\r\n FastVector predictions = new FastVector();\r\n \r\n // For each training-testing split pair, train and test the classifier\r\n for(int i = 0; i < trainingSplits.length; i++) {\r\n Evaluation validation = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tvalidation = simpleClassify(models[j], trainingSplits[i], testingSplits[i]);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n predictions.appendElements(validation.predictions());\r\n \r\n // Uncomment to see the summary for each training-testing pair.\r\n// textArea.append(models[j].toString() + \"\\n\");\r\n textArea.setText(models[j].toString() + \"\\n\");\r\n// System.out.println(models[j].toString());\r\n }\r\n \r\n // Calculate overall accuracy of current classifier on all splits\r\n double accuracy = calculateAccuracy(predictions);\r\n \r\n // Print current classifier's name and accuracy in a complicated, but nice-looking way.\r\n textArea.append(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\\n\");\r\n System.out.println(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\");\r\n//}\r\n \r\n\t}", "public void sample() {\n getFunctionEstimator().sample();\n }", "@SuppressWarnings(\"unchecked\")\r\n public static void main(String[] args)\r\n {\r\n //final String INPUT_FILE=\"contact-lenses.arff\";\r\n final String INPUT_FILE=\"adult.merged.arff\";\r\n Instances data;\r\n try {\r\n Reader reader = new FileReader(INPUT_FILE);\r\n data = new Instances(reader);\r\n } catch (Exception e) {\r\n System.out.println(\"Failed to read input file \" + INPUT_FILE + \", exiting\");\r\n return;\r\n }\r\n data.setClassIndex(data.numAttributes()-1);\r\n\r\n System.out.println(\"Acquired data from file \" + INPUT_FILE);\r\n System.out.println(\"Got \" + data.numInstances() + \" instances with \" + data.numAttributes() + \" attributes, class attribute is \" + data.classAttribute().name());\r\n AttributeScoreAlgorithm scorer = new MaxScorer ();\r\n Enumeration<Attribute> atts=(Enumeration<Attribute>)data.enumerateAttributes();\r\n while (atts.hasMoreElements())\r\n {\r\n C45Attribute att=new C45Attribute(atts.nextElement());\r\n System.out.println(\"Score for attribute \" + att.WekaAttribute().name() + \" is \" + scorer.Score(data,att));\r\n }\r\n\r\n List<C45Attribute> candidateAttributes = new LinkedList<C45Attribute>();\r\n Enumeration attEnum = data.enumerateAttributes();\r\n while (attEnum.hasMoreElements())\r\n candidateAttributes.add(new C45Attribute((Attribute)attEnum.nextElement()));\r\n BigDecimal epsilon=new BigDecimal(0.1, DiffPrivacyClassifier.MATH_CONTEXT);\r\n PrivacyAgent agent = new PrivacyAgentBudget(epsilon);\r\n\r\n PrivateInstances privData = new PrivateInstances(agent,data);\r\n privData.setDebugMode(true);\r\n\r\n try {\r\n C45Attribute res=privData.privateChooseAttribute(new MaxScorer(), candidateAttributes,epsilon);\r\n System.out.println(\"Picked attribute \" + res.WekaAttribute().name());\r\n } catch(Exception e) { System.out.println(e.getMessage());}\r\n }", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n Discretize discretize0 = new Discretize();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties0);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"relational\", arrayList0, 30);\n discretize0.setInputFormat(instances0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(2);\n // Undeclared exception!\n try { \n discretize0.input(binarySparseInstance0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Instance has no dataset assigned!!\n //\n verifyException(\"weka.core.RelationalLocator\", e);\n }\n }", "@Tutorial(showSource = true, showSignature = true, showLink = true, linkPrefix = \"src/test/java/\")\n @Override\n public void process(ProcessorContext context)\n {\n samples.add(model.likelihood.parameters.max.getValue() - observation.getValue());\n }", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n FilteredClassifier filteredClassifier0 = new FilteredClassifier();\n try { \n Evaluation.evaluateModel((Classifier) filteredClassifier0, testInstances0.DEFAULT_WORDS);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // Weka exception: No training file and no object input file given.\n // \n // General options:\n // \n // -h or -help\n // \\tOutput help information.\n // -synopsis or -info\n // \\tOutput synopsis for classifier (use in conjunction with -h)\n // -t <name of training file>\n // \\tSets training file.\n // -T <name of test file>\n // \\tSets test file. If missing, a cross-validation will be performed\n // \\ton the training data.\n // -c <class index>\n // \\tSets index of class attribute (default: last).\n // -x <number of folds>\n // \\tSets number of folds for cross-validation (default: 10).\n // -no-cv\n // \\tDo not perform any cross validation.\n // -split-percentage <percentage>\n // \\tSets the percentage for the train/test set split, e.g., 66.\n // -preserve-order\n // \\tPreserves the order in the percentage split.\n // -s <random number seed>\n // \\tSets random number seed for cross-validation or percentage split\n // \\t(default: 1).\n // -m <name of file with cost matrix>\n // \\tSets file with cost matrix.\n // -l <name of input file>\n // \\tSets model input file. In case the filename ends with '.xml',\n // \\ta PMML file is loaded or, if that fails, options are loaded\n // \\tfrom the XML file.\n // -d <name of output file>\n // \\tSets model output file. In case the filename ends with '.xml',\n // \\tonly the options are saved to the XML file, not the model.\n // -v\n // \\tOutputs no statistics for training data.\n // -o\n // \\tOutputs statistics only, not the classifier.\n // -i\n // \\tOutputs detailed information-retrieval statistics for each class.\n // -k\n // \\tOutputs information-theoretic statistics.\n // -classifications \\\"weka.classifiers.evaluation.output.prediction.AbstractOutput + options\\\"\n // \\tUses the specified class for generating the classification output.\n // \\tE.g.: weka.classifiers.evaluation.output.prediction.PlainText\n // -p range\n // \\tOutputs predictions for test instances (or the train instances if\n // \\tno test instances provided and -no-cv is used), along with the \n // \\tattributes in the specified range (and nothing else). \n // \\tUse '-p 0' if no attributes are desired.\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -distribution\n // \\tOutputs the distribution instead of only the prediction\n // \\tin conjunction with the '-p' option (only nominal classes).\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -r\n // \\tOnly outputs cumulative margin distribution.\n // -g\n // \\tOnly outputs the graph representation of the classifier.\n // -xml filename | xml-string\n // \\tRetrieves the options from the XML-data instead of the command line.\n // -threshold-file <file>\n // \\tThe file to save the threshold data to.\n // \\tThe format is determined by the extensions, e.g., '.arff' for ARFF \n // \\tformat or '.csv' for CSV.\n // -threshold-label <label>\n // \\tThe class label to determine the threshold data for\n // \\t(default is the first label)\n // \n // Options specific to weka.classifiers.meta.FilteredClassifier:\n // \n // -F <filter specification>\n // \\tFull class name of filter to use, followed\n // \\tby filter options.\n // \\teg: \\\"weka.filters.unsupervised.attribute.Remove -V -R 1,2\\\"\n // -D\n // \\tIf set, classifier is run in debug mode and\n // \\tmay output additional info to the console\n // -W\n // \\tFull name of base classifier.\n // \\t(default: weka.classifiers.trees.J48)\n // \n // Options specific to classifier weka.classifiers.trees.J48:\n // \n // -U\n // \\tUse unpruned tree.\n // -O\n // \\tDo not collapse tree.\n // -C <pruning confidence>\n // \\tSet confidence threshold for pruning.\n // \\t(default 0.25)\n // -M <minimum number of instances>\n // \\tSet minimum number of instances per leaf.\n // \\t(default 2)\n // -R\n // \\tUse reduced error pruning.\n // -N <number of folds>\n // \\tSet number of folds for reduced error\n // \\tpruning. One fold is used as pruning set.\n // \\t(default 3)\n // -B\n // \\tUse binary splits only.\n // -S\n // \\tDon't perform subtree raising.\n // -L\n // \\tDo not clean up after the tree has been built.\n // -A\n // \\tLaplace smoothing for predicted probabilities.\n // -J\n // \\tDo not use MDL correction for info gain on numeric attributes.\n // -Q <seed>\n // \\tSeed for random data shuffling (default 1).\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "public void train()\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n System.out.println(\"Start Training ..\");\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Training Text %..\");\n\t\t\ttrainText();\n\n\t\t\tSystem.out.println(\"Training Complex %..\");\n\t\t\ttrainCombined();\n\n\t\t\tSystem.out.println(\"Training Feature %..\");\n\t\t\ttrainFeatures();\n\n\t\t\tSystem.out.println(\"Training Lexicon %..\");\n\t\t\t//trainLexicon();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public abstract double test(ClassifierData<U> testData);", "public static void main(String[] args) throws IOException, InterruptedException {\n\n File src = new ClassPathResource(\"winequality-red.csv\").getFile();\n\n FileSplit fileSplit = new FileSplit(src);\n\n RecordReader rr = new CSVRecordReader(1,',');// since there is header in the file remove row 1 with delimter coma\n rr.initialize(fileSplit);\n\n Schema sc = new Schema.Builder()\n .addColumnsDouble(\"fixed acidity\",\"volatile acidity\",\"citric acid\",\"residual sugar\",\"chlorides\",\"free sulfur dioxide\",\"total sulfur dioxide\",\"density\",\"pH\",\"sulphates\",\"alcohol\")\n .addColumnCategorical(\"quality\", Arrays.asList(\"3\",\"4\",\"5\",\"6\",\"7\",\"8\"))\n .build();\n\n TransformProcess tp = new TransformProcess.Builder(sc)\n .categoricalToInteger(\"quality\")\n .build();\n\n System.out.println(\"Initial Schema : \"+tp.getInitialSchema());\n System.out.println(\"New Schema : \"+tp.getFinalSchema());\n\n List<List<Writable>> original_data = new ArrayList<>();\n\n while(rr.hasNext()){\n original_data.add(rr.next());\n }\n\n List<List<Writable>> transformed_data = LocalTransformExecutor.execute(original_data,tp);\n\n CollectionRecordReader crr = new CollectionRecordReader(transformed_data);\n\n DataSetIterator iter = new RecordReaderDataSetIterator(crr,transformed_data.size(),-1,6);\n\n DataSet fullDataSet = iter.next();\n fullDataSet.shuffle(seed);\n\n SplitTestAndTrain traintestsplit = fullDataSet.splitTestAndTrain(0.8);\n DataSet trainDataSet = traintestsplit.getTrain();\n DataSet testDataSet = traintestsplit.getTest();\n\n\n DataNormalization normalization = new NormalizerMinMaxScaler();\n normalization.fit(trainDataSet);\n normalization.transform(trainDataSet);\n normalization.transform(testDataSet);\n\n MultiLayerConfiguration config = getConfig (numberInput,numberClasses,learning_rate);\n\n MultiLayerNetwork model = new MultiLayerNetwork(config);\n model.init();\n\n //UI-Evaluator\n StatsStorage storage = new InMemoryStatsStorage();\n UIServer server = UIServer.getInstance();\n server.attach(storage);\n\n //Set model listeners\n model.setListeners(new StatsListener(storage, 10));\n\n Evaluation eval;\n\n for(int i=0;i<epochs;i++) {\n model.fit(trainDataSet);\n eval = model.evaluate(new ViewIterator(testDataSet, transformed_data.size()));\n System.out.println(\"Epoch \" + i + \", Accuracy : \"+eval.accuracy());\n }\n\n Evaluation evalTrain = model.evaluate(new ViewIterator(trainDataSet,transformed_data.size()));\n Evaluation evalTest = model.evaluate(new ViewIterator(testDataSet,transformed_data.size()));\n\n System.out.println(\"Train Eval : \"+evalTrain.stats());\n System.out.println(\"Test Eval : \"+evalTest.stats());\n\n\n\n\n\n\n\n }", "public List<DataInstance> augmentTrainingData(List<DataInstance> origTrainInstances) {\n Map<String, List<DataInstance>> docInstanceMap = new HashMap<>();\n Set<Attribute> possibleAttributes = new HashSet<>();\n Attribute analyzedN = null;\n Attribute outcomeValue = null;\n for (DataInstance instance : origTrainInstances) {\n String docName = instance.getX().getDocNames().iterator().next();\n List<DataInstance> docDataInstances = docInstanceMap.computeIfAbsent(docName, k -> new ArrayList<>());\n docDataInstances.add(instance);\n if (analyzedN == null || outcomeValue == null) {\n for (ArmifiedAttributeValuePair avp : instance.getX().getAllPairs()) {\n if (avp.getAttribute().getName().equals(\"Individual-level analysed\")) {\n analyzedN = avp.getAttribute();\n }\n }\n outcomeValue = instance.getY().getAttribute();\n }\n }\n if (analyzedN == null || outcomeValue == null) throw new RuntimeException(); // we don't want this to happen\n // loop over documents\n List<DataInstance> retInstances = new ArrayList<>();\n for (Map.Entry<String, List<DataInstance>> docInstancesEntry : docInstanceMap.entrySet()) {\n // not the case always but we'll take the smallest outcome to be our 'control'\n final List<DataInstance> instances = docInstancesEntry.getValue();\n int minInd = -1;\n double minValue = 1000.0;\n for (int i = 0; i < instances.size(); i++) {\n if (instances.get(i).getYNumeric() < minValue) {\n minInd = i;\n minValue = instances.get(i).getYNumeric();\n }\n }\n // control values\n final DataInstance controlInstance = instances.get(minInd);\n retInstances.add(controlInstance);\n final double controlOutcomeValue = controlInstance.getYNumeric() / 100; // convert from percentage\n int controlN = checkNumberParticipants(controlInstance, analyzedN);\n final double controlEvents = controlOutcomeValue * controlN;\n for (int i = 0; i < instances.size(); i++) {\n if (i == minInd)\n continue;\n final DataInstance experimentalInstance = instances.get(i);\n retInstances.add(experimentalInstance);\n final double experimentalOutcomeValue = experimentalInstance.getYNumeric() / 100; // convert from percentage\n int experimentalN = checkNumberParticipants(experimentalInstance, analyzedN);\n if (controlN == -1) {\n if (experimentalN == -1) {\n // if we find no number of participants, skip\n continue;\n } else {\n // if only missing control participants, assume same as experimental\n controlN = experimentalN;\n }\n } else {\n if (experimentalN == -1) {\n // if only missing experimental participants, assume same as contorl\n experimentalN = controlN;\n }\n }\n final double experimentalEvents = experimentalOutcomeValue * experimentalN;\n if (controlEvents < 1 && experimentalEvents < 1) { // probably means problem in annotation\n continue;\n }\n final double stdError = Math.sqrt(controlEvents * (controlN - controlEvents) / Math.pow(controlN, 3) +\n experimentalEvents * (experimentalN - experimentalEvents) / Math.pow(experimentalN, 3));\n final double stdDev = stdError / Math.sqrt(1.0 / controlN + 1.0 / experimentalN);\n final NormalDistribution experimentalDistribution = new NormalDistribution(experimentalOutcomeValue, stdDev);\n int sampleSize = (int) Math.ceil(Math.sqrt(experimentalN)); // try different functions for good sample size\n for (int j = 0; j < sampleSize; j++) {\n final double sample = experimentalDistribution.sample() * 100; // convert to percentage\n if (sample < 0 || sample > 100) continue;\n final ArmifiedAttributeValuePair y = experimentalInstance.getY();\n final DataInstance sampleInstance = new DataInstance(experimentalInstance.getX(), new ArmifiedAttributeValuePair(y.getAttribute(), \"\" + sample, y.getDocName(), y.getArm(), y.getContext(), y.getPageNumber()));\n retInstances.add(sampleInstance);\n }\n }\n }\n System.out.println(\"Original # insts: \" + origTrainInstances.size() + \" new # insts: \" + retInstances.size());\n return retInstances;\n }", "public static void main(String... args) throws Exception {\n if (args.length != 3) {\n throw new Exception(\"Expecting three arguments\");\n }\n\n // Reading arguments: the data file path and the data separator\n String dataPath = args[0];\n final String separator = args[1];\n String modelPath = args[2];\n\n // Weights used to generate data subsets\n double[] weights = {.6, .2, .2};\n // Number of iteration performed during ALS\n int numIterations = 20;\n\n // Context initialization\n SparkConf sparkConf = new SparkConf().setAppName(\"ALS model computation\");\n JavaSparkContext jsc = new JavaSparkContext(sparkConf);\n\n // Transforming file content into JavaRDD\n JavaRDD<String> data = jsc.textFile(dataPath);\n\n // Transforming each lines into ratings\n JavaRDD<Rating> ratings = Utils.generateRatings(data, separator);\n\n // Generating train set, cross validation set and test set\n JavaRDD<Rating>[] sets = ratings.randomSplit(weights);\n\n // Caching generated subsets\n sets[0].cache();\n sets[1].cache();\n sets[2].cache();\n\n MatrixFactorizationModel bestModel = null;\n double bestRMSE = 0;\n\n // Computing several model with different values for rank\n for (int rank = 1; rank <= 10; rank++) {\n // Training model with training set\n MatrixFactorizationModel model = ALS.train(sets[0].rdd(), rank, numIterations, 0.01);\n\n // Computing MSE over cross validation set\n double RMSE = Utils.computeRMSE(model, sets[1]);\n System.out.println(\"RMSE for rank \" + rank + \": \" + RMSE);\n\n // Saving model if better than the old one\n if (bestModel == null || RMSE < bestRMSE) {\n bestModel = model;\n bestRMSE = RMSE;\n }\n }\n\n // Evaluating best model on test set\n double RMSE = Utils.computeRMSE(bestModel, sets[2]);\n\n System.out.println(\"Model rank: \" + bestModel.rank());\n System.out.println(\"MSE compute over test set: \" + RMSE);\n\n // Saving best model\n bestModel.save(jsc.sc(), modelPath);\n\n // Stopping context\n\t\tjsc.stop();\n }", "public static void main(String[] args) \n\t{\n\t\t// Konfiguration\n\t\tTraining training = new Training();\n\t\tint numberOfAttributes = 18;\n\t\tStatisticOutput statisticWriter = new StatisticOutput(\"data/statistics.txt\");\n\t\t\n\t\ttraining.printMessage(\"*** TCR-Predictor: Training ***\");\n\t\t\n\t\ttraining.printMessage(\"Datenbank von Aminosäure-Codierungen wird eingelesen\");\n\t\t// Lies die EncodingDB ein\n\t\tAAEncodingFileReader aa = new AAEncodingFileReader();\n\t\tAAEncodingDatabase db = aa.readAAEncodings(\"data/AAEncodings.txt\");\n\t\ttraining.printMessage(\"Es wurden \" + db.getEncodingDatabase().size() + \" Codierungen einglesen\");\n\t\t\n\t\ttraining.printMessage(\"Trainingsdatensatz wird eingelesen und prozessiert\");\n\t\t// Lies zunächst die gesamten Trainingsdaten ein\n\t\tExampleReader exampleReader = new ExampleReader();\n\t\t\n\t\t// Spalte das Datenset\n\t\tDataSplit dataSplit_positives = new DataSplit(exampleReader.getSequnces(\"data/positive.txt\"), 5);\n\t\tArrayList<ArrayList<String>> complete_list_positiv = dataSplit_positives.getDataSet();\n\t\t\n\t\tDataSplit dataSplit_negatives = new DataSplit(exampleReader.getSequnces(\"data/negative.txt\"), 5);\n\t\tArrayList<ArrayList<String>> complete_list_negativ = dataSplit_negatives.getDataSet();\n\t\t\n\t\t// Lege Listen für die besten Klassifizierer und deren Evaluation an\n\t\tModelCollection modelCollection = new ModelCollection();\n\t\t\n\t\t/*\n\t\t * \n\t\t * Beginne Feature Selection\n\t\t * \n\t\t */\n\t\tArrayList<String> positivesForFeatureSelection = training.concatenateLists(complete_list_positiv);\n\t\tArrayList<String> negativesForFeatureSelection = training.concatenateLists(complete_list_negativ);\n\t\t\n\t\ttraining.printMessage(\"Convertiere Daten ins Weka ARFF Format\");\t\t\n\t\t// Convertiere Daten in Wekas File Format\n\t\tARFFFileGenerator arff = new ARFFFileGenerator();\n\t\tInstances dataSet = arff.createARFFFile(positivesForFeatureSelection, negativesForFeatureSelection, db.getEncodingDatabase());\n\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\n\t\ttraining.printMessage(\"Führe Feature Selection (Filtering) aus\");\n\t\t// Beginne Feature Selection\n\t\tFeatureFilter featureFilter = new FeatureFilter();\n\t\tfeatureFilter.rankFeatures(dataSet, numberOfAttributes);\t\t\t\t\t// Wähle die x wichtigsten Features aus\n\t\tdataSet = featureFilter.getProcessedInstances();\n\t\ttraining.printMessage(\"Ausgewählte Features: \" + featureFilter.getTopResults());\n\n\t\t/*\n\t\t * Führe die äußere Evaluierung fünfmal durch und wähle das beste Modell\n\t\t */\n\t\tfor (int outer_run = 0; outer_run < 5; outer_run++)\n\t\t{\n\t\t\tstatisticWriter.writeString(\"===== Äußere Evaluation \" + (outer_run + 1) + \"/5 =====\\n\\n\");\n\t\t\t\n\t\t\t\n\t\t\tArrayList<ArrayList<String>> list_positives = new ArrayList<ArrayList<String>>();\n\t\t\tlist_positives.addAll(complete_list_positiv);\n\t\t\t\n\t\t\tArrayList<ArrayList<String>> list_negatives = new ArrayList<ArrayList<String>>();\n\t\t\tlist_negatives.addAll(complete_list_negativ);\n\t\t\t\n\t\t\t// Lege das erste Fragment beider Listen für nasted-Crossvalidation beiseite\n\t\t\tArrayList<String> outer_List_pos = new ArrayList<String>();\n\t\t\touter_List_pos.addAll(list_positives.get(outer_run));\n\t\t\tlist_positives.remove(outer_run);\n\t\t\t\n\t\t\tArrayList<String> outer_List_neg = new ArrayList<String>();\n\t\t\touter_List_neg.addAll(list_negatives.get(outer_run));\n\t\t\tlist_negatives.remove(outer_run);\n\t\t\t\n\t\t\t// Füge die verbleibende Liste zu einer Zusammen\n\t\t\tArrayList<String> inner_List_pos = training.concatenateLists(list_positives);\n\t\t\tArrayList<String> inner_List_neg = training.concatenateLists(list_negatives);\n\t\t\t\t\n\n\t\t\t/*\n\t\t\t * \n\t\t\t * Ab hier nur noch Arbeiten mit innerer Liste, die Daten zum Evaluieren bekommt Weka vorerst \n\t\t\t * nicht zu sehen!\n\t\t\t * \n\t\t\t */\n\t\t\ttraining.printMessage(\"Convertiere Daten ins Weka ARFF Format\");\t\t\n\t\t\t// Convertiere Daten in Wekas File Format\n\t\t\tarff = new ARFFFileGenerator();\n\t\t\tdataSet = arff.createARFFFile(inner_List_pos, inner_List_neg, db.getEncodingDatabase());\n\t\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\t\n\t\t\tfeatureFilter.processInstances(featureFilter.getRanking(), dataSet, numberOfAttributes); // Filtere das innere Datenset nach Vorgabe\n\t\t\tdataSet = featureFilter.getProcessedInstances();\n\t\t\t\n\t\t\ttraining.printMessage(\"Beginne Gridsearch\");\n\t\t\t// Gridsearch starten\n\t\n\t\t\t\n\t\t\t\n\t\t\tParameterOptimization optimizer = new ParameterOptimization();\n\t\t\tString logFileName = outer_run + \"_\" + numberOfAttributes;\n\t\t\tGridSearch gridSearch = optimizer.performGridSearch(dataSet, logFileName);\n\t\t\ttraining.printMessage(\"Gefundene Parameter [C, gamma]: \" + gridSearch.getValues()); // liefert unter diesen Settings 1.0 und 0.0\n\n\t\t\tSMO sMO = (SMO)gridSearch.getBestClassifier();\n\t\t\t\t\t\t\t\n\t\t\t/*\n\t\t\t * \n\t\t\t * Evaluationsbeginn \n\t\t\t *\n\t\t\t */\n\t\t\ttraining.printMessage(\"Evaluiere die Performance gegen das äußere Datenset\");\n\t\t\ttraining.printMessage(\"Transcodierung des Evaluationsdatensatzes\");\n\t\t\tarff = new ARFFFileGenerator();\n\t\t\tdataSet = arff.createARFFFile(outer_List_pos, outer_List_neg, db.getEncodingDatabase());\n\t\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\t\n\t\t\t// Führe Feature-Filtering mit den Einstellungen der GridSearch aus\n\t\t\ttraining.printMessage(\"Führe Feature Selection (Filtering) auf GridSearch-Basis aus\");\n\t\t\t// Beginne Feature Selection\n\t\t\tfeatureFilter.processInstances(featureFilter.getRanking(), dataSet, numberOfAttributes);\t // Wähle die x wichtigsten Features aus\n\t\t\tdataSet = featureFilter.getProcessedInstances();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttraining.printMessage(\"Ermittle Performance\");\n\t\t\tEvaluator eval = new Evaluator();\n\t\t\teval.classifyDataSet(sMO, dataSet);\n\t\t\ttraining.printMessage(eval.printRawData());\n\t\t\t\n\t\t\t/*\n\t\t\t * Füge das Modell und die externe Evaulation zur Sammlung hinzu\n\t\t\t */\t\t\t\n\t\t\tmodelCollection.bestClassifiers.add(sMO);\n\t\t\tmodelCollection.evalsOfBestClassifiers.add(eval);\n\t\t\tmodelCollection.listOfNumberOfAttributes.add(numberOfAttributes);\n\t\t\tmodelCollection.listOfFeatureFilters.add(featureFilter);\n\t\t\t\n\t\t\tstatisticWriter.writeString(\"Verwendete Attribute: \" + featureFilter.getTopResults());\n\t\t\tstatisticWriter.writeString(eval.printRawData());\n\t\t\t\n\t\t}\n\t\tstatisticWriter.close();\n\t\t\n\t\t// Wähle das beste aller Modelle aus\n\t\ttraining.printMessage(\"Ermittle die allgemein besten Einstellungen\");\n\t\tModelSelection modelSelection = new ModelSelection();\n\t\tmodelSelection.calculateBestModel(modelCollection);\n\t\t\n\t\ttraining.printMessage(\"Das beste Model: \");\n\t\ttraining.printMessage(modelSelection.getBestEvaluator().printRawData());\n\t\tSystem.out.println(\"------ SMO ------\");\n\t\tfor (int i = 0; i < modelSelection.getBestClassifier().getOptions().length; i++)\n\t\t{\n\t\t\tSystem.out.print(modelSelection.getBestClassifier().getOptions()[i] + \" \");\n\t\t}\n\t\tSystem.out.println(\"\\n--- Features ---\");\n\t\tSystem.out.println(modelSelection.getBestListOfFeatures().getTopResults());\n\t\t\n\t\t// Schreibe das Modell in eine Datei\n\t\ttraining.printMessage(\"Das beste Modell wird auf Festplatte geschrieben\");\n\t\ttry\n\t\t{\n\t\t\tSerializationHelper.write(\"data/bestPredictor.model\", modelSelection.getBestClassifier());\n\t\t\tSerializationHelper.write(\"data/ranking.filter\", modelSelection.getBestListOfFeatures().getRanking());\n\t\t\tSerializationHelper.write(\"data/components.i\", (modelSelection.getBestListOfFeatures().getProcessedInstances().numAttributes()-1));\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tSystem.err.println(\"Fehler beim Schreiben des Modells auf Festplatte: \" + ex);\n\t\t}\n\t}", "public RandomSubVectorThresholdLearnerTest(\n String testName)\n {\n super(testName);\n\n this.random = new Random();\n }", "abstract protected Dataset getNewCandidates();", "int countByExample(RepStuLearningExample example);", "protected LearningAbstractAgent(){}", "@Test\n\tpublic void irisTest() throws Exception {\n\t\tint numIters = 10;\n\t\tInstances data = loadIris();\n\t\tDl4jMlpClassifier cls = getMlp();\n\t\tcls.setTrainBatchSize(50);\n\t\tcls.setNumIterations(numIters);\n\t\tString tmpFile = System.getProperty(\"java.io.tmpdir\") + File.separator + \"irisTest.txt\";\n\t\tSystem.err.println(\"irisTest() tmp file: \" + tmpFile);\n\t\tcls.setDebugFile(tmpFile);\n\t\tcls.buildClassifier(data);\n\t\tcls.distributionsForInstances(data);\n\t\tList<String> lines = Files.readAllLines(new File(tmpFile).toPath());\n\t\tassertEquals(lines.size(), numIters+1);\n\t}", "public WekaLearner(Classifier classifier) {\n super(Type.MODEL, Type.TRIV);\n this.classifier = classifier;\n }", "void pretrain(DataSetIterator iterator);", "private void test() {\r\n \ttry {\r\n\t\t\ttestWriter.write(\"Testing started...\");\r\n\t\t\r\n\t\t\tpredictions = new HashMap<>();\r\n \trightAnswers = new HashMap<>();\r\n\r\n\r\n \t// Get results and check them\r\n \tEvaluation eval = new Evaluation(numLabels);\r\n \tfinalTestIterator.reset();\r\n\r\n \tint metaDataCounter = 0;\r\n \tint addrCounter = 0;\r\n\r\n \twhile(finalTestIterator.hasNext()) {\r\n \t// If iterator has next dataset\r\n \tfinalTestData = finalTestIterator.next();\r\n \t// Get meta-data from this dataset\r\n\r\n \t@SuppressWarnings(\"rawtypes\")\r\n \tList<?> exampleMetaData = finalTestData.getExampleMetaData();\r\n \tIterator<?> exampleMetaDataIterator = exampleMetaData.iterator();\r\n \ttestWriter.write(\"\\n Metadata from dataset #\" + metaDataCounter + \":\\n\");\r\n \tSystem.out.println(\"\\n Metadata from dataset #\" + metaDataCounter + \":\\n\");\r\n\r\n \t// Normalize data\r\n \tnormalizer.fit(finalTestData);\r\n\r\n \t// Count processed images\r\n \tnumProcessed = (metaDataCounter + 1) * batchSizeTesting;\r\n \tloaded.setText(\"Loaded and processed: \" + numProcessed + \" pictures\");\r\n\r\n \tINDArray features = finalTestData.getFeatures();\r\n \tINDArray labels = finalTestData.getLabels();\r\n \tSystem.out.println(\"\\n Right labels #\" + metaDataCounter + \":\\n\");\r\n \ttestWriter.write(\"\\n Right labels #\" + metaDataCounter + \":\\n\");\r\n \t// Get right answers of NN for every input object\r\n \tint[][] rightLabels = labels.toIntMatrix();\r\n \tfor (int i = 0; i < rightLabels.length; i++) {\r\n \tRecordMetaDataURI metaDataUri = (RecordMetaDataURI) exampleMetaDataIterator.next();\r\n \t// Print address of image\r\n \tSystem.out.println(metaDataUri.getLocation());\r\n \tfor (int j = 0; j < rightLabels[i].length; j++) {\r\n \tif(rightLabels[i][j] == 1) {\r\n \t//public V put(K key, V value) -> key=address, value=right class label\r\n \trightAnswers.put(metaDataUri.getLocation(), j);\r\n \tthis.addresses.add(metaDataUri.getLocation());\r\n \t}\r\n \t}\r\n \t}\r\n \tSystem.out.println(\"\\nRight answers:\");\r\n \ttestWriter.write(\"\\nRight answers:\");\r\n \t// Print right answers\r\n \tfor(Map.Entry<String, Integer> answer : predictions.entrySet()){\r\n \t\ttestWriter.write(String.format(\"Address: %s Right answer: %s \\n\", answer.getKey(), answer.getValue().toString()));\r\n \tSystem.out.printf(String.format(\"Address: %s Right answer: %s \\n\", answer.getKey(), answer.getValue().toString()));\r\n \t}\r\n\r\n \t// Evaluate on the test data\r\n \tINDArray predicted = vgg16Transfer.outputSingle(features);\r\n \tint predFoundCounter = 0;\r\n \tSystem.out.println(\"\\n Labels predicted #\" + metaDataCounter + \":\\n\");\r\n \ttestWriter.write(\"\\n Labels predicted #\" + metaDataCounter + \":\\n\");\r\n \t// Get predictions of NN for every input object\r\n \tint[][] labelsPredicted = predicted.toIntMatrix();\r\n \tfor (int i = 0; i < labelsPredicted.length; i++) {\r\n \tfor (int j = 0; j < labelsPredicted[i].length; j++) {\r\n \tpredFoundCounter++;\r\n \tif(labelsPredicted[i][j] == 1) {\r\n \t//public V put(K key, V value) -> key=address, value=predicted class label\r\n \tpredFoundCounter = 0;\r\n \tthis.predictions.put(this.addresses.get(addrCounter), j);\r\n \t}\r\n \telse {\r\n \tif (predFoundCounter == 3) {\r\n \t// To fix bug when searching positive predictions\r\n \tthis.predictions.put(this.addresses.get(addrCounter), 2);\r\n \t}\r\n \t}\r\n \t}\r\n \taddrCounter++;\r\n \t}\r\n \tSystem.out.println(\"\\nPredicted:\");\r\n \ttestWriter.write(\"\\nPredicted:\");\r\n \t// Print predictions\r\n \tfor(Map.Entry<String, Integer> pred : rightAnswers.entrySet()){\r\n \tSystem.out.printf(\"Address: %s Predicted answer: %s \\n\", pred.getKey(), pred.getValue().toString());\r\n \ttestWriter.write(String.format(\"Address: %s Predicted answer: %s \\n\", pred.getKey(), pred.getValue().toString()));\r\n \t}\r\n \tmetaDataCounter++;\r\n\r\n \teval.eval(labels, predicted);\r\n \t}\r\n\r\n \tSystem.out.println(\"\\n\\n Cheack loaded model on test data...\");\r\n \tSystem.out.println(String.format(\"Evaluation on test data - [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n \t\t\teval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n \tSystem.out.println(eval.stats());\r\n \tSystem.out.println(eval.confusionToString());\r\n \ttestWriter.write(\"\\n\\n Cheack loaded model on test data...\");\r\n \ttestWriter.write(String.format(\"Evaluation on test data - [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n \t\t\teval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n \ttestWriter.write(eval.stats());\r\n \ttestWriter.write(eval.confusionToString());\r\n\r\n \t// Save test rates\r\n \tthis.f1_score = eval.f1();\r\n \tthis.recall_score = eval.recall();\r\n \tthis.accuracy_score = eval.accuracy();\r\n \tthis.precision_score = eval.precision();\r\n \tthis.falseNegativeRate_score = eval.falseNegativeRate();\r\n \tthis.falsePositiveRate_score = eval.falsePositiveRate();\r\n\r\n \tthis.f1.setText(\"F1 = \" + String.format(\"%.4f\", f1_score));\r\n \tthis.recall.setText(\"Recall = \" + String.format(\"%.4f\", recall_score));\r\n \tthis.accuracy.setText(\"Accuracy = \" + String.format(\"%.4f\", accuracy_score));\r\n \tthis.precision.setText(\"Precision = \" + String.format(\"%.4f\", precision_score));\r\n \tthis.falseNegativeRate.setText(\"False Negative Rate = \" + String.format(\"%.4f\", falseNegativeRate_score));\r\n \tthis.falsePositiveRate.setText(\"False Positive Rate = \" + String.format(\"%.4f\", falsePositiveRate_score));\r\n \r\n \ttestWriter.write(\"F1 = \" + String.format(\"%.4f\", f1_score));\r\n \ttestWriter.write(\"Recall = \" + String.format(\"%.4f\", recall_score));\r\n \ttestWriter.write(\"Accuracy = \" + String.format(\"%.4f\", accuracy_score));\r\n \ttestWriter.write(\"Precision = \" + String.format(\"%.4f\", precision_score));\r\n \ttestWriter.write(\"False Negative Rate = \" + String.format(\"%.4f\", falseNegativeRate_score));\r\n \ttestWriter.write(\"False Positive Rate = \" + String.format(\"%.4f\", falsePositiveRate_score));\r\n\r\n \tshowBarChart();\r\n \t} catch (IOException e) {\r\n \t\tSystem.err.println(\"Error while writing to log file\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "public interface AMDPModelLearner extends AMDPPolicyGenerator{\n\n\n public void updateModel(State s, Action a, List<Double> rewards, State sPrime, GroundedTask gt);\n\n\n}", "public static void main(String[] args) {\n\t\tint[] featuresRemoved = new int[]{14,15,0,3,7,8,9,13}; //removed age,education,relationship,race,sex,country\n\t\t\n\t\tCrossValidation.Allow_testSet_to_be_Appended = true;\n\t\tDataManager.SetRegex(\"?\");\n\t\tDataManager.SetSeed(0l); //debugging for deterministic random\n\t\t\n\t\tArrayList<String[]> dataSet = DataManager.ReadCSV(\"data/adult.train.5fold.csv\",false);\n\t\tdataSet = DataManager.ReplaceMissingValues(dataSet);\n\t\tDoubleMatrix M = DataManager.dataSetToMatrix(dataSet,14);\n\t\tList<DoubleMatrix> bins = DataManager.split(M, 15);\n\t\t//List<DoubleMatrix> bins = DataManager.splitFold(M, 5,true); //random via permutation debugging\n\t\t\n\t\tArrayList<String[]> testSet = DataManager.ReadCSV(\"data/adult.test.csv\",false);\n\t\ttestSet = DataManager.ReplaceMissingValues(testSet);\n\t\tDoubleMatrix test = DataManager.dataSetToMatrix(testSet,14);\n\t\tList<DoubleMatrix> testBins = DataManager.splitFold(test, 8, false);\n\t\t\n\t\t\n\t\t//initiate threads \n\t\tint threadPool = 16;\n\t\tExecutorService executor = Executors.newFixedThreadPool(threadPool);\n\t\tList<Callable<Record[]>> callable = new ArrayList<Callable<Record[]>>();\t\t\n\t\t\n\t\tlong startTime = System.currentTimeMillis(); //debugging - test for optimisation \n\t\t\n\t\t\n\t\t\n\t\t//unweighted\n\t\tSystem.out.println(\"Validating Unweighted KNN...\");\n\t\tfor(int i = 0; i < bins.size(); i++) {\n\t\t\t\n\t\t\tDoubleMatrix Train = new DoubleMatrix(0,bins.get(0).columns);\n\t\t\tDoubleMatrix Validation = bins.get(i);\n\t\t\t\n\t\t\tfor(int j = 0; j < bins.size(); j++) {\n\t\t\t\tif(i != j) {\n\t\t\t\t\tTrain = DoubleMatrix.concatVertically(Train, bins.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//build worker thread\n\t\t\tCrossValidation fold = new CrossValidation(Train, Validation,14,featuresRemoved,40,2,false);\n\t\t\tcallable.add(fold);\n\t\t}\n\t\t\n\t\t//returned statistics of each fold.\n\t\tList<Record[]> unweightedRecords = new ArrayList<Record[]>();\n\t\t\n\t\ttry {\n\t\t\t//collect all work thread values \n\t\t\tList<Future<Record[]>> set = executor.invokeAll(callable);\n\t\t\t\n\t\t\tfor(Future<Record[]> recordFold : set) {\n\t\t\t\tunweightedRecords.add(recordFold.get());\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t\t\n\t\n\t\tcallable.clear();\n\t\t\n\t\t\n\t\t\n\t\t//weighted\n\t\tSystem.out.println(\"Validating Weighted KNN...\");\n\t\tfor(int i = 0; i < bins.size(); i++) {\n\t\t\tDoubleMatrix Train = new DoubleMatrix(0,bins.get(0).columns);\n\t\t\tDoubleMatrix Validation = bins.get(i);\n\t\t\t\n\t\t\tfor(int j = 0; j < bins.size(); j++) {\n\t\t\t\tif(i != j) {\n\t\t\t\t\tTrain = DoubleMatrix.concatVertically(Train, bins.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t\t//build worker thread\n\t\t\tCrossValidation fold = new CrossValidation(Train, Validation,14,featuresRemoved,40,2,true);\n\t\t\tcallable.add(fold);\n\t\t}\n\t\t\n\t\t//returned statistics of each fold.\n\t\tList<Record[]> weightedRecords = new ArrayList<Record[]>();\n\t\t\n\t\ttry {\n\t\t\t//collect all work thread values \n\t\t\tList<Future<Record[]>> set = executor.invokeAll(callable);\n\t\t\t\n\t\t\tfor(Future<Record[]> recordFold : set) {\n\t\t\t\tweightedRecords.add(recordFold.get());\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\t\t\n\t\t\n\t\t\n\t\t\n\t\t//find best parameter \n\t\tint bestKNN = 0;\n\t\tdouble bestAccuracy = 0;\n\t\tboolean weighted = false;\n\t\tint validationIndex = 0;\n\t\tfor(int i = 0; i < unweightedRecords.get(0).length; i++) {\n\t\t\t\n\t\t\tint currentK = 0;\n\t\t\tdouble currentAccuracy = 0;\n\t\t\t\n\t\t\tList<Record[]> a = new ArrayList<Record[]>();\n\t\t\tfor(int j = 0; j < unweightedRecords.size(); j ++) { \n\t\t\t\ta.add(new Record[]{ unweightedRecords.get(j)[i]});\n\t\t\t\tcurrentK = unweightedRecords.get(j)[i].KNN;\n\t\t\t}\n\t\t\t\n\t\t\tint[][] m = DataManager.combineMat(a);\n\t\t\tcurrentAccuracy = DataManager.getAccuracy(m);\n\t\t\t\n\t\t\tif(currentAccuracy > bestAccuracy) {\n\t\t\t\tbestKNN = currentK;\n\t\t\t\tbestAccuracy = currentAccuracy;\n\t\t\t\tweighted = false;\n\t\t\t\tvalidationIndex = i;\n\t\t\t\tSystem.out.println(bestKNN + \" : unweighted : \" +bestAccuracy + \" : Best\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(currentK + \" : unweighted : \" + currentAccuracy);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i = 0; i < weightedRecords.get(0).length; i++) {\n\t\t\t\n\t\t\tint currentK = 0;\n\t\t\tdouble currentAccuracy = 0;\n\t\t\t\n\t\t\tList<Record[]> a = new ArrayList<Record[]>();\n\t\t\tfor(int j = 0; j < weightedRecords.size(); j ++) { \n\t\t\t\ta.add(new Record[]{ weightedRecords.get(j)[i]});\n\t\t\t\tcurrentK = weightedRecords.get(j)[i].KNN;\n\t\t\t}\n\t\t\t\n\t\t\tint[][] m = DataManager.combineMat(a);\n\t\t\tcurrentAccuracy = DataManager.getAccuracy(m);\n\t\t\t\n\t\t\tif(currentAccuracy >= bestAccuracy) {\n\t\t\t\tbestKNN = currentK;\n\t\t\t\tbestAccuracy = currentAccuracy;\n\t\t\t\tweighted = true;\n\t\t\t\tvalidationIndex = i;\n\t\t\t\tSystem.out.println(bestKNN + \" : weighted :\" +bestAccuracy + \" : Best\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(currentK + \" : weighted :\" + currentAccuracy);\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t\n\t\tList<Record[]> bestValidation = new ArrayList<Record[]>();\n\t\tfor(int i = 0; i < bins.size(); i++) {\n\t\t\tif(weighted) {\n\t\t\t\tbestValidation.add(new Record[]{ weightedRecords.get(i)[validationIndex]});\n\t\t\t} else {\n\t\t\t\tbestValidation.add(new Record[]{ unweightedRecords.get(i)[validationIndex]});\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Testing...\");\n\t\t\n\t\t//KNN on test set\n\t\tcallable.clear();\n\t\t\n\t\t//build worker threads\n\t\tfor(int i = 0; i < testBins.size(); i++) {\n\t\t\tCrossValidation fold = new CrossValidation(M, testBins.get(i),14,featuresRemoved,bestKNN,bestKNN,weighted);\n\t\t\tcallable.add(fold);\n\t\t}\n\t\t\n\t\tList<Record[]> testRecords = new ArrayList<Record[]>();\n\t\t\n\t\ttry {\n\t\t\tList<Future<Record[]>> set = executor.invokeAll(callable);\n\t\t\t\n\t\t\tfor(Future<Record[]> recordFold : set) {\n\t\t\t\ttestRecords.add(recordFold.get());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t\tint[][] testM = DataManager.combineMat(testRecords);\n\t\tdouble testAccuracy = DataManager.getAccuracy(testM);\n\t\t//double teststd = DataManager.GetStd(testRecords);\n\t\t\n\t\t//print stuff\n\t\tSystem.out.println(bestKNN + \" : \"+ weighted + \" : \" + testAccuracy);\n\t\tSystem.out.println(testM[0][0] + \", \" + testM[0][1] +\", \" + testM[1][0] + \", \" + testM[1][1]);\n\t\t\n\t\t//delete all worker threads\n\t\texecutor.shutdownNow();\n\t\t\n\t\t\n\t\tlong endTime = System.currentTimeMillis();\n\t\tlong totalTime = endTime - startTime;\n\t\tSystem.out.println(\"Run time(millisecond): \" + totalTime );\n\t\tSystem.out.println(\"Thread pool: \" + threadPool );\n\t\tSystem.out.println(\"Cores: \" + Runtime.getRuntime().availableProcessors());\n\t\t\n\t\t//prints to file\n\t\tDataManager.saveRecord(\"data/grid.results.txt\", 14, featuresRemoved,\"<=50k\", bestKNN, weighted, bestValidation, testRecords, testRecords.get(0)[0].classType, 5, totalTime, threadPool);\n\t}", "public Map<String,Double> call()\n\t\t\tthrows Exception {\n\t\tList<String> labels = new ArrayList<String>();\n\t\t\t\t\n\t\tfor (Trace<T> t : traces) {\n//\t\t\tSet<T> toAdd = new HashSet<T>();\n//\t\t\tfor (T s : t.getConstraints())\n//\t\t\t\ttoAdd.add(s);\n//\t\t\tt.setConstraints(toAdd);\n//\t\t\tfor (T c : toAdd)\n//\t\t\t\tallConstraints.add(c);\n\t\t\tif (!labels.contains(Integer.toString(t.getLabel())))\n\t\t\t\tlabels.add(Integer.toString(t.getLabel()));\n\t\t}\n\t\t\n\t\tArrayList<Attribute> attributes = new ArrayList<Attribute>();\n\t\tArrayList<String> levels = new ArrayList<String>();\n\t\tlevels.add(\"1\");\n\t\tlevels.add(\"0\");\n\t\tfor (T con : features) {\n\t\t\tAttribute a = new Attribute(con.toString());\n\t\t\tattributes.add(a);\n\t\t}\n\t\tattributes.add(new Attribute(\"label\", labels));\n\n\t\t// Crossvalidate with Weka\n\t\tInstances trainingSet = new Instances(\"TrainingSet\", attributes, traces.size());\n\t\ttrainingSet.setClassIndex(attributes.size() - 1);\n\t\tInstances testSet = new Instances(\"TrainingSet\", attributes, traces.size());\n\t\ttestSet.setClassIndex(attributes.size() - 1);\n\t\t\n\t\tfor (int t = 0; t < traces.size(); t++) {\n\t\t\tif (t % nFold != 0) {\n\t\t\t\tInstance instance = new DenseInstance(attributes.size());\n\t\t\t\tCollection<String> strings = traces.get(t).getConstraintsAsStrings();\n\t\t\t\tfor (int a = 0; a < attributes.size() - 1; a++) {\n\t\t\t\t\tif (strings.contains(attributes.get(a).name())) {\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 0);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tinstance.setValue(attributes.get(attributes.size() - 1),\n\t\t\t\t\t\tInteger.toString(traces.get(t).getLabel()));\n\t\t\t\ttrainingSet.add(instance);\n\t\t\t} else {\n\t\t\t\tInstance instance = new DenseInstance(attributes.size());\n\t\t\t\tCollection<String> strings = traces.get(t).getConstraintsAsStrings();\n\t\t\t\tfor (int a = 0; a < attributes.size() - 1; a++) {\n\t\t\t\t\tif (strings.contains(attributes.get(a).name())){\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 0);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tinstance.setValue(attributes.get(attributes.size() - 1),\n\t\t\t\t\t\tInteger.toString(traces.get(t).getLabel()));\n\t\t\t\ttestSet.add(instance);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//System.out.println(\"Reasoning\");\n\t\tWekaPackageManager.loadPackages(false, true, false);\n\t\tAbstractClassifier classifier = null;\n\t\tString options = \"\";\n\t\tswitch(c){\n\t\t\tcase NB:\n\t\t\t\tclassifier = new NaiveBayes();//new LibSVM();\n\t\t\t\toptions = \"\";\n\t\t\t\tbreak;\n\t\t\tcase RandomForest:\n\t\t\t\tclassifier = new RandomForest();\n\t\t\t\toptions = \"\";\n\t\t\t\tbreak;\n\t\t\tcase SVM:\n\t\t\t\tclassifier = new LibSVM();\n\t\t\t\t//K: 0=linear, 1=polynomial, 2=radial basis, 3=sigmoid\n\t\t\t\toptions = \"-K,1,-W,\";\n\t\t\t\tfor(int i =0;i<labels.size();i++)\n\t\t\t\t\toptions+= \"1 \";\n\t\t\t\tbreak;\n\t\t}\t\t\n\t\tString[] optionsArray = options.split(\",\");\n\t\tclassifier.setOptions(optionsArray);\n\t\tclassifier.buildClassifier(trainingSet);\n\t\t\n\t\tMap<String,Double> result = new HashMap<String,Double>();\n\t\t\n\t\t//attributeScoring(trainingSet);\n\t\t//System.out.println(classifier.toSummaryString());\n\t\t//System.out.println(classifier.toString());\n\t\t\n\t\tEvaluation eTest = new Evaluation(trainingSet);\n\t\teTest.evaluateModel(classifier, testSet);\n\t\t\n\t\t//double auc = eTest.areaUnderROC(classIndex);\n\t\t//System.out.println(\"AUC: \"+auc);\n\t\tdouble accuracy = (double) eTest.correct() / (double) trainingSet.size();\n\t\tresult.put(\"accuracy\", accuracy);\n\t\treturn result;\n\t}", "private void addSampleData() {\r\n }", "@Override\n\tpublic void sampleNode() {\n\n\t}", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Attribute attribute0 = new Attribute((String) null, (String) null);\n LinkedList<Attribute> linkedList0 = new LinkedList<Attribute>();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>(linkedList0);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 0);\n Instances instances1 = new Instances(instances0);\n double[] doubleArray0 = new double[1];\n SparseInstance sparseInstance0 = new SparseInstance(1, doubleArray0);\n SparseInstance sparseInstance1 = new SparseInstance((Instance) sparseInstance0);\n instances0.add((Instance) sparseInstance1);\n Discretize discretize0 = new Discretize(\"@attribute\");\n assertFalse(discretize0.getMakeBinary());\n \n discretize0.setMakeBinary(true);\n assertTrue(discretize0.getMakeBinary());\n \n Discretize discretize1 = new Discretize();\n boolean boolean0 = discretize1.setInputFormat(instances1);\n assertFalse(boolean0);\n }", "public void trainTest() throws Exception\n\t{\n\t\tSystem.out.println(\"Preprocessing Testset ..\");\n\t\t//String[] dir = new String[]{ Test+\"negative\" , Test+\"positive\"};\n\t\t//FileIterator iterator = new FileIterator(dir,FileIterator.LAST_DIRECTORY);\n\t\tInstanceList instances = new InstanceList(getTextPipe());\n\t\t//instances.addThruPipe(iterator);\n\n\t\tCSVParser parser = new CSVParser(new FileReader(\n\t\t\t\t\"resources/datasets/sentimentanalysis/mallet_test/Sentiment140/sentiment140.csv\"),\n\t\t\t\tCSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tTextPreprocessor preprocessor = new TextPreprocessor(\"resources/datasets/sentimentanalysis/\");\n\t\tint count = 0;\n\t\tfor (CSVRecord record: parser.getRecords())\n\t\t{\n\t\t\tString target;\n\t\t\tif (record.get(\"target\").equals(\"0\"))\n\t\t\t\ttarget = \"negative\";\n\t\t\telse\n\t\t\t\ttarget = \"positive\";\n\t\t\tinstances.addThruPipe(new Instance(preprocessor.getProcessed(record.get(\"tweet\")),target,\n\t\t\t\t\t\"Instance\"+count++,null));\n\n\t\t\tSystem.out.println(count);\n\t\t}\n\n\t\tSystem.out.println(instances.targetLabelDistribution());\n\t\tSystem.out.println(\"Start Training Testset ..\");\n\t\tClassifier nb = new NaiveBayesTrainer().train(instances);\n\t\tSystem.out.println(\"Saving Test Model ..\");\n\t\tsaveModel(nb,Test+\"Model.bin\");\n\t\tsaveinstances(instances,Test+\"Model-Instances.bin\");\n\t\tinstances.getDataAlphabet().dump(new PrintWriter(new File(Test+\"Model-alphabet.dat\")));\n\t}", "void trainingBatch(GenerateRandom rnd);", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "TrainingEstimator(RatingMatrix snap, BiasModel baseline, PreferenceDomain dom) {\n ratings = snap.getRatings();\n domain = dom;\n estimates = new double[ratings.size()];\n\n final LongCollection userIds = snap.getUserIds();\n LongIterator userIter = userIds.iterator();\n double global = baseline.getIntercept();\n\n for (RatingMatrixEntry r: snap.getRatings()) {\n double userBias = baseline.getUserBias(r.getUserId());\n double itemBias = baseline.getItemBias(r.getItemId());\n estimates[r.getIndex()] = global + userBias + itemBias;\n }\n }", "public Test makeTest(DataSource ds, List<Question> givenQns){\n\t\tArrayList<Question> startQns = new ArrayList<Question>();\n\t\tfor (int i = 0; i < givenQns.size(); i++){\n\t\t\tstartQns.add((Question)givenQns.get(i));\n\t\t}\n\t\tString category = startQns.get(0).getCategory();\n\t\tString difficulty = \"any\";\n\t\t\n\t\twhile(startQns.size()>5){\n\t\t\tint index = (int)(Math.random()*startQns.size());\n\t\t\tstartQns.remove(index);\n\t\t}\n\t\tTest test = this.makeTest(ds, difficulty, category, 5, startQns);\n//\t\tSystem.out.println(\"TestMakerA->test: \" + test.toString());\n\t\tint[] correct = new int[5];\n\t\tArrayList<Question[]> questions = (ArrayList<Question[]>)test.getTest();\n\n\t\tfor(int i = 0; i < 5; i++){\n\t\t\tcorrect[i] = (int)(Math.random()*4);\n\t\t\tif(questions.get(i)[correct[i]] != startQns.get(i)){\n\t\t\t\tquestions.get(i)[correct[i]] = startQns.get(i);\n\t\t\t}\n\t\t}\n\n\t\ttest.setCorrect(correct);\n\t\treturn test;\n\t}", "TrainingTest createTrainingTest();", "public void read_data(Connection connection, String query) throws SQLException {\n\t\tPreparedStatement pstmt = connection.prepareStatement(query);\n\t\tResultSet rs = pstmt.executeQuery();\n\t\t\n\t\t/* set feature num */\n\t\tthis.feature_num = rs.getMetaData().getColumnCount() - 1;\n\t\t/* read data */\n\t\twhile(rs.next()) {\n\t\t\tsvm_node[] sample = new svm_node[this.feature_num];\n\t\t\tfor (int i = 0; i < this.feature_num; i++) {\n\t\t\t\tsample[i] = new svm_node();\n\t\t\t\t/* set index */\n\t\t\t\tsample[i].index = i + 1;\n\t\t\t\t/* set value */\n\t\t\t\tif (rs.getObject(i + 2).getClass().getName() == \"java.lang.String\") {\n\t\t\t\t\tsample[i].value = stod(rs.getString(i + 2));\n\t\t\t\t} else if ((rs.getObject(i + 2).getClass().getName() == \"java.lang.Long\")\n\t\t\t\t\t\t|| (rs.getObject(i + 2).getClass().getName() == \"java.math.BigDecimal\")) {\n\t\t\t\t\tsample[i].value = rs.getDouble(i + 2);\n\t\t\t\t} else {\n\t\t\t\t\t// to be continued\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\toriginal_set.add(sample);\n\t\t labels.add(mklabel(stod(rs.getString(1))));\t// special_flag\n\t\t}\n\t\t\n\t\t/* set sample num */\n this.sample_num = original_set.size();\n\t \n\t /* end data preparation */\n System.out.println(\"Data preparation done! \" + this.get_sample_num() + \" samples in total\");\n\t\tif (rs != null) {\n\t\t\trs.close();\n\t\t}\n\t\tif (pstmt != null) {\n\t\t\tpstmt.close();\n\t\t}\n\t}", "public void addInstances (InstanceList training)\n\t{\n\t\tSystem.out.println(\"LabeledLDA Model : Adding training instances ..%\");\n\t\t//Data Alphabet\n\t\talphabet = training.getDataAlphabet();\n\t\tnumTypes = alphabet.size();\n\t\tbetaSum = beta * numTypes;\n\t\t\n\t\t// We have one topic for every possible label.\n\t\tlabelAlphabet = training.getTargetAlphabet();\n\t\tnumTopics = labelAlphabet.size();\n\t\toneDocTopicCounts = new int[numTopics];\n\t\ttokensPerTopic = new int[numTopics];\n\t\ttypeTopicCounts = new int[numTypes][numTopics];\n\n\t\t//topicAlphabet = AlphabetFactory.labelAlphabetOfSize(numTopics); //generate d0,d1 [3shan target string w hwa 3wzo label]\n topicAlphabet = new LabelAlphabet();\n\t\tfor (int i = 0; i < numTopics; i++) {\n\t\t\tString target = labelAlphabet.lookupObject(i).toString();\n topicAlphabet.lookupLabel(target);\n\t\t}\n //System.out.println(topicAlphabet);\n\n for (Instance instance : training)\n\t\t{\n\t\t\tFeatureSequence tokens = (FeatureSequence) instance.getData(); //read data featureSequence\n\t\t\tLabelSequence topicSequence = new LabelSequence(topicAlphabet, new int[ tokens.size() ]);\n FeatureVector labels = (FeatureVector) instance.getTarget(); //read target featurevector\n\n\t\t\tint[] topics = topicSequence.getFeatures();\n\t\t\tfor (int position = 0; position < tokens.size(); position++)\n\t\t\t{\n\t\t\t\tint topic = labels.indexAtLocation(random.nextInt(labels.numLocations()));\n\t\t\t\ttopics[position] = topic;\n\t\t\t\ttokensPerTopic[topic]++;\n\t\t\t\tint type = tokens.getIndexAtPosition(position);\n\t\t\t\ttypeTopicCounts[type][topic]++;\n\t\t\t}\n\t\t\tTopicAssignment t = new TopicAssignment(instance, topicSequence);\n\t\t\tdata.add(t);\n\t\t}\n\t\t/*\n for (Instance instance : training)\n {\n FeatureSequence tokens = (FeatureSequence) instance.getData();\n LabelSequence topicSequence = new LabelSequence(topicAlphabet, new int[ tokens.size() ]);\n\n int[] topics = topicSequence.getFeatures();\n for (int position = 0; position < topics.length; position++) {\n int topic = random.nextInt(numTopics);\n topics[position] = topic;\n }\n TopicAssignment t = new TopicAssignment(instance, topicSequence);\n data.add(t);\n }\n\n buildInitialTypeTopicCounts();\n initializeHistograms();\n\t\t */\n\t\tSystem.out.println(\"Data loaded.\");\n\t}", "@Override\n\tvoid bp_adam(double learning_rate, int epoch_num) {\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n String[] stringArray0 = new String[2];\n stringArray0[1] = \"\";\n Evaluation.main(stringArray0);\n NaiveBayesMultinomial naiveBayesMultinomial0 = new NaiveBayesMultinomial();\n try { \n Evaluation.evaluateModel((Classifier) naiveBayesMultinomial0, stringArray0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // Weka exception: No training file and no object input file given.\n // \n // General options:\n // \n // -h or -help\n // \\tOutput help information.\n // -synopsis or -info\n // \\tOutput synopsis for classifier (use in conjunction with -h)\n // -t <name of training file>\n // \\tSets training file.\n // -T <name of test file>\n // \\tSets test file. If missing, a cross-validation will be performed\n // \\ton the training data.\n // -c <class index>\n // \\tSets index of class attribute (default: last).\n // -x <number of folds>\n // \\tSets number of folds for cross-validation (default: 10).\n // -no-cv\n // \\tDo not perform any cross validation.\n // -split-percentage <percentage>\n // \\tSets the percentage for the train/test set split, e.g., 66.\n // -preserve-order\n // \\tPreserves the order in the percentage split.\n // -s <random number seed>\n // \\tSets random number seed for cross-validation or percentage split\n // \\t(default: 1).\n // -m <name of file with cost matrix>\n // \\tSets file with cost matrix.\n // -l <name of input file>\n // \\tSets model input file. In case the filename ends with '.xml',\n // \\ta PMML file is loaded or, if that fails, options are loaded\n // \\tfrom the XML file.\n // -d <name of output file>\n // \\tSets model output file. In case the filename ends with '.xml',\n // \\tonly the options are saved to the XML file, not the model.\n // -v\n // \\tOutputs no statistics for training data.\n // -o\n // \\tOutputs statistics only, not the classifier.\n // -i\n // \\tOutputs detailed information-retrieval statistics for each class.\n // -k\n // \\tOutputs information-theoretic statistics.\n // -classifications \\\"weka.classifiers.evaluation.output.prediction.AbstractOutput + options\\\"\n // \\tUses the specified class for generating the classification output.\n // \\tE.g.: weka.classifiers.evaluation.output.prediction.PlainText\n // -p range\n // \\tOutputs predictions for test instances (or the train instances if\n // \\tno test instances provided and -no-cv is used), along with the \n // \\tattributes in the specified range (and nothing else). \n // \\tUse '-p 0' if no attributes are desired.\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -distribution\n // \\tOutputs the distribution instead of only the prediction\n // \\tin conjunction with the '-p' option (only nominal classes).\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -r\n // \\tOnly outputs cumulative margin distribution.\n // -xml filename | xml-string\n // \\tRetrieves the options from the XML-data instead of the command line.\n // -threshold-file <file>\n // \\tThe file to save the threshold data to.\n // \\tThe format is determined by the extensions, e.g., '.arff' for ARFF \n // \\tformat or '.csv' for CSV.\n // -threshold-label <label>\n // \\tThe class label to determine the threshold data for\n // \\t(default is the first label)\n // \n // Options specific to weka.classifiers.bayes.NaiveBayesMultinomial:\n // \n // -D\n // \\tIf set, classifier is run in debug mode and\n // \\tmay output additional info to the console\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "public void saveTrainingDataToFileUpSamplingWithSMOTE() throws Exception {\r\n //set tokenizer - we can specify n-grams for classification\r\n NGramTokenizer tokenizer = new NGramTokenizer();\r\n tokenizer.setNGramMinSize(1);\r\n tokenizer.setNGramMaxSize(1);\r\n tokenizer.setDelimiters(\"\\\\W\");\r\n\r\n //set stemmer - set english stemmer\r\n SnowballStemmer stemmer = new SnowballStemmer();\r\n stemmer.setStemmer(\"english\");\r\n\r\n //set lemmatizer\r\n StanfordCoreNLPLemmatizer scnlpl = new StanfordCoreNLPLemmatizer();\r\n\r\n //create new filter for vector transformation\r\n StringToWordVector filter = new StringToWordVector();\r\n filter.setLowerCaseTokens(true);\r\n filter.setOutputWordCounts(true);\r\n filter.setTFTransform(true);\r\n filter.setIDFTransform(true);\r\n filter.setStopwords(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\StopWordsR2.txt\"));\r\n filter.setTokenizer(tokenizer);\r\n filter.setStemmer(scnlpl);\r\n\r\n System.out.println(\"Stemmer Name- \" + filter.getStemmer());\r\n\r\n InstanceQuery query = new InstanceQuery();\r\n query.setUsername(\"root\");\r\n query.setPassword(\"\");\r\n\r\n int numberOfPapers = 5;\r\n\r\n Instances[] otherArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'other'\");\r\n otherArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='other'\");\r\n otherArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='other'\");\r\n otherArticles[2] = query.retrieveInstances();\r\n\r\n //SELECT content, label FROM article_the_island_2012 where `label` IS NOT NULL\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'other'\");\r\n otherArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'other'\");\r\n otherArticles[4] = query.retrieveInstances();\r\n\r\n Instances[] crimeArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'crime'\");\r\n crimeArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='crime'\");\r\n crimeArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='crime'\");\r\n crimeArticles[2] = query.retrieveInstances();\r\n\r\n //SELECT content, label FROM article_the_island_2012 where `label` IS NOT NULL\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'crime'\");\r\n crimeArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'crime'\");\r\n crimeArticles[4] = query.retrieveInstances();\r\n\r\n FastVector attributeList = new FastVector(2);\r\n Attribute a1 = new Attribute(\"text\", (FastVector) null);\r\n FastVector classVal = new FastVector();\r\n classVal.addElement(\"crime\");\r\n classVal.addElement(\"other\");\r\n Attribute c = new Attribute(\"@@class@@\", classVal);\r\n //add class attribute and news text\r\n attributeList.addElement(a1);\r\n attributeList.addElement(c);\r\n Instances trainingData = new Instances(\"TrainingNews\", attributeList, 0);\r\n trainingData.setClassIndex(1);\r\n\r\n int crimeArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < crimeArticles[i].numInstances(); j++) {\r\n\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, crimeArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, crimeArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n crimeArticlesCount++;\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n\r\n System.out.println(\"Total Number of Crime Instances: \" + crimeArticlesCount);\r\n\r\n int otherArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < otherArticles[i].numInstances(); j++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, otherArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, otherArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n otherArticlesCount++;\r\n\r\n// if (otherArticlesCount == 100) {\r\n// break;\r\n// }\r\n }\r\n//// if (otherArticlesCount == 100) {\r\n//// break;\r\n//// }\r\n }\r\n System.out.println(\"Total Number of Other Instances: \" + otherArticlesCount);\r\n System.out.println(\"Total num of instances= \" + trainingData.numInstances());\r\n\r\n\r\n // apply the StringToWordVector filter\r\n filter.setInputFormat(trainingData);\r\n Instances dataFiltered = Filter.useFilter(trainingData, filter);\r\n System.out.println(\"Number of Attributes after stop words removal- \" + dataFiltered.numAttributes());\r\n System.out.println(\"\\n\\nFiltered data:\\n\\n\" + dataFiltered);\r\n\r\n /**\r\n * Resamples a dataset by applying the Synthetic Minority Oversampling\r\n * TEchnique (SMOTE)\r\n * http://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node6.html\r\n * http://weka.sourceforge.net/doc.packages/SMOTE/weka/filters/supervised/instance/SMOTE.html \r\n *\r\n */\r\n SMOTE s = new SMOTE();\r\n s.setInputFormat(dataFiltered);\r\n // Specifies percentage of SMOTE instances to create.\r\n s.setPercentage(464.0);\r\n Instances dataBalanced = Filter.useFilter(dataFiltered, s);\r\n\r\n Random r = new Random();\r\n dataBalanced.randomize(r);\r\n\r\n ArffSaver saver = new ArffSaver();\r\n saver.setInstances(dataBalanced);\r\n saver.setFile(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataUSSMOTE464Random.arff\"));\r\n saver.writeBatch();\r\n }", "@Test\n public void testParseNG20() throws Exception {\n System.out.println(\"NG20\");\n LibsvmParser parser = new LibsvmParser();\n try {\n SparseDataset train = parser.parse(\"NG20 Train\", this.getClass().getResourceAsStream(\"/smile/data/libsvm/news20.dat\"));\n SparseDataset test = parser.parse(\"NG20 Test\", this.getClass().getResourceAsStream(\"/smile/data/libsvm/news20.t.dat\"));\n int[] y = train.toArray(new int[train.size()]);\n int[] testy = test.toArray(new int[test.size()]);\n \n SIB sib = new SIB(train, 20, 100, 8);\n System.out.println(sib);\n \n AdjustedRandIndex ari = new AdjustedRandIndex();\n RandIndex rand = new RandIndex();\n double r = rand.measure(y, sib.getClusterLabel());\n double r2 = ari.measure(y, sib.getClusterLabel());\n System.out.format(\"Training rand index = %.2f%%\\tadjusted rand index = %.2f%%\\n\", 100.0 * r, 100.0 * r2);\n assertTrue(r > 0.85);\n assertTrue(r2 > 0.2);\n \n int[] p = new int[test.size()];\n for (int i = 0; i < test.size(); i++) {\n p[i] = sib.predict(test.get(i).x);\n }\n \n r = rand.measure(testy, p);\n r2 = ari.measure(testy, p);\n System.out.format(\"Testing rand index = %.2f%%\\tadjusted rand index = %.2f%%\\n\", 100.0 * r, 100.0 * r2);\n assertTrue(r > 0.85);\n assertTrue(r2 > 0.2);\n } catch (Exception ex) {\n System.err.println(ex);\n }\n }", "public static void testMultimensionalOutput() {\n\t\tint vectSize = 8;\n\t\tint outputsPerInput = 10;\n\t\tdouble repeatProb = 0.8;\n\t\tdouble inpRemovalPct = 0.8;\n\t\tCollection<DataPoint> data = createMultidimensionalCorrSamples(vectSize, outputsPerInput, inpRemovalPct);\n//\t\tCollection<DataPoint> data = createMultidimensionalSamples(vectSize, outputsPerInput, repeatProb);\n\n\t\tModelLearner modeler = createModelLearner(vectSize, data);\n\t\tint numRuns = 100;\n\t\tint jointAdjustments = 18;\n\t\tdouble skewFactor = 0;\n\t\tdouble cutoffProb = 0.1;\n\t\tDecisionProcess decisioner = new DecisionProcess(modeler, null, 1, numRuns,\n\t\t\t\t0, skewFactor, 0, cutoffProb);\n\t\tDecisionProcess decisionerJ = new DecisionProcess(modeler, null, 1, numRuns,\n\t\t\t\tjointAdjustments, skewFactor, 0, cutoffProb);\n\t\t\n\t\tSet<DiscreteState> inputs = getInputSetFromSamples(data);\n\t\tArrayList<Double> realV = new ArrayList<Double>();\n\t\tArrayList<Double> predV = new ArrayList<Double>();\n\t\tArrayList<Double> predJV = new ArrayList<Double>();\n\t\tfor (DiscreteState input : inputs) {\n\t\t\tSystem.out.println(\"S\" + input);\n\t\t\tMap<DiscreteState, Double> outProbs = getRealOutputProbsForInput(input, data);\n\t\t\tMap<DiscreteState,Double> preds = countToFreqMap(decisioner\n\t\t\t\t\t.getImmediateStateGraphForActionGibbs(input.getRawState(), new double[] {}));\n\t\t\tMap<DiscreteState,Double> predsJ = countToFreqMap(decisionerJ\n\t\t\t\t\t.getImmediateStateGraphForActionGibbs(input.getRawState(), new double[] {}));\n\t\t\tSet<DiscreteState> outputs = new HashSet<DiscreteState>();\n\t\t\toutputs.addAll(outProbs.keySet());\n\t\t\toutputs.addAll(preds.keySet());\n\t\t\toutputs.addAll(predsJ.keySet());\n\t\t\tfor (DiscreteState output : outputs) {\n\t\t\t\tDouble realD = outProbs.get(output);\n\t\t\t\tDouble predD = preds.get(output);\n\t\t\t\tDouble predJD = predsJ.get(output);\n\t\t\t\tdouble real = (realD != null ? realD : 0);\n\t\t\t\tdouble pred = (predD != null ? predD : 0);\n\t\t\t\tdouble predJ = (predJD != null ? predJD : 0);\n\t\t\t\trealV.add(real);\n\t\t\t\tpredV.add(pred);\n\t\t\t\tpredJV.add(predJ);\n\t\t\t\tSystem.out.println(\"\tS'\" + output + \"\t\" + real + \"\t\" + pred + \"\t\" + predJ);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"CORR:\t\" + Utils.correlation(realV, predV)\n\t\t\t\t+ \"\t\" + Utils.correlation(realV, predJV));\n\t}", "public Learner getLearner(ArgParser parser, Random rand) throws Exception\n {\n String model = parser.getLearner();\n switch (model)\n {\n case \"baseline\":\n return new BaselineLearner();\n case \"perceptron\":\n return new Perceptron(rand);\n case \"backpropagation\":\n return new BackPropagation(rand);\n case \"decisiontree\":\n return new DecisionTree();\n case \"knn\":\n return new NearestNeighbor();\n case \"kmeans\":\n return new KMeans(Integer.parseInt(parser.getEvalParameter()), rand);\n// case \"hac\":\n// return new HAC();\n default:\n throw new Exception(\"Unrecognized model: \" + model);\n }\n }", "@Test\n\tpublic void testClassifier() {\n\t\t// Ensure there are no intermediate files left in tmp directory\n\t\tFile exampleFile = FileUtils.getTmpFile(FusionClassifier.EXAMPLE_FILE_NAME);\n\t\tFile predictionsFile = FileUtils.getTmpFile(FusionClassifier.PREDICTIONS_FILE_NAME);\n\t\texampleFile.delete();\n\t\tpredictionsFile.delete();\n\t\t\n\t\tList<List<Double>> columnFeatures = new ArrayList<>();\n\t\tSet<String> inputRecognizers = new HashSet();\n\t\tList<Map<String, Double>> supportingCandidates = new ArrayList();\n\t\tList<Map<String, Double>> competingCandidates = new ArrayList();\n\t\t\n\t\t// Supporting candidates\n\t\tMap<String, Double> supportingCandidatesTipo = new HashMap();\n\t\tsupportingCandidatesTipo.put(INPUT_RECOGNIZER_ID, TIPO_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesTipo);\n\n\t\tMap<String, Double> supportingCandidatesInsegna = new HashMap();\n\t\tsupportingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, INSEGNA_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesInsegna);\n\t\t\n\t\t// Competing candidates\n\t\tMap<String, Double> competingCandidatesTipo = new HashMap();\n\t\tcompetingCandidatesTipo.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesTipo);\n\t\tMap<String, Double> competingCandidatesInsegna = new HashMap();\n\t\tcompetingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesInsegna);\n\n\t\t// Two columns: insegna and tipo from osterie_tipiche\n\t\t// A single column feature: uniqueness\n\t\tList<Double> featuresTipo = new ArrayList();\n\t\tfeaturesTipo.add(0.145833);\n\t\tcolumnFeatures.add(featuresTipo);\n\t\t\n\t\tList<Double> featuresInsegna = new ArrayList();\n\t\tfeaturesInsegna.add(1.0);\n\t\tcolumnFeatures.add(featuresInsegna);\n\t\t\n\t\t// A single input recognizer\n\t\tinputRecognizers.add(INPUT_RECOGNIZER_ID);\n\n\t\t// Create the classifier\n\t\tFusionClassifier classifier \n\t\t\t= new FusionClassifier(FileUtils.getSVMModelFile(MINIMAL_FUSION_CR_NAME), \n\t\t\t\t\tcolumnFeatures, \n\t\t\t\t\tRESTAURANT_CONCEPT_ID, \n\t\t\t\t\tinputRecognizers);\n\t\tList<Double> predictions \n\t\t\t= classifier.classifyColumns(supportingCandidates, competingCandidates);\n\t\t\n\t\tboolean tipoIsNegativeExample = predictions.get(0) < -0.5;\n\t\t\n//\t\tTODO This currently doesn't work -- need to investigate\n//\t\tboolean insegnaIsPositiveExample = predictions.get(1) > 0.5;\n\t\t\n\t\tassertTrue(tipoIsNegativeExample);\n//\t\tassertTrue(insegnaIsPositiveExample);\n\t\t\n\ttry {\n\t\tSystem.out.println(new File(\".\").getCanonicalPath());\n\t\tSystem.out.println(getClass().getProtectionDomain().getCodeSource().getLocation());\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\t\n\t}", "public static void main(String[] args) throws IOException, TasteException {\n NetflixModel model = new NetflixModel(new File(\"data/netflix_data.txt\"));\n\n // 3 users used for recommendation\n final long[] users = {1641844, 1011593, 519380};\n\n // For output export\n OutputPrinter printer = new OutputPrinter();\n\n printer.writeStringToFile(\"SVDPlusPlusFactorizer\");\n for (long user : users) {\n\n // Recommended movies for a user\n List<String> movies = new ArrayList<>();\n\n SVDPlusPlusFactorizer factorizer = new SVDPlusPlusFactorizer(model, 10, 10);\n Recommender recommender = new SVDRecommender(model, factorizer);\n\n // Recommend 4 movies\n List<RecommendedItem> recommendedItems = recommender.recommend(user, 4);\n\n for(RecommendedItem item : recommendedItems) {\n movies.add(model.getMovieNameFromID(item.getItemID()));\n }\n\n printer.writeToFile(user + \"\", movies);\n }\n printer.writeStringToFile(\"----------------------------------------------------\\n\");\n\n\n printer.writeStringToFile(\"ALSWRFactorizer\");\n for (long user : users) {\n\n // Recommended movies for a user\n List<String> movies = new ArrayList<>();\n\n ALSWRFactorizer factorizer = new ALSWRFactorizer(model, 10, 0.02, 10);\n Recommender recommender = new SVDRecommender(model, factorizer);\n\n // Recommend 4 movies\n List<RecommendedItem> recommendedItems = recommender.recommend(user, 4);\n\n for(RecommendedItem item : recommendedItems) {\n movies.add(model.getMovieNameFromID(item.getItemID()));\n }\n\n printer.writeToFile(user + \"\", movies);\n }\n printer.writeStringToFile(\"----------------------------------------------------\\n\");\n\n\n printer.writeStringToFile(\"GenericUserBasedRecommender\");\n for (long user : users) {\n\n // Recommended movies for a user\n List<String> movies = new ArrayList<>();\n\n UserSimilarity userSimilarity = new PearsonCorrelationSimilarity(model);\n UserNeighborhood neighborhood = new NearestNUserNeighborhood(100, userSimilarity, model);\n Recommender recommender = new GenericUserBasedRecommender(model, neighborhood, userSimilarity);\n\n // Recommend 4 movies\n List<RecommendedItem> recommendedItems = recommender.recommend(user, 4);\n\n for(RecommendedItem item : recommendedItems) {\n movies.add(model.getMovieNameFromID(item.getItemID()));\n }\n\n printer.writeToFile(user + \"\", movies);\n }\n }", "public static void main(String[] args) throws FileFormatException,\n IOException {\n \n OpdfMultiGaussianFactory initFactoryPunch = new OpdfMultiGaussianFactory(\n 3);\n \n Reader learnReaderPunch = new FileReader(\n \"punchlearn.seq\");\n List<List<ObservationVector>> learnSequencesPunch = ObservationSequencesReader\n .readSequences(new ObservationVectorReader(), learnReaderPunch);\n learnReaderPunch.close();\n \n KMeansLearner<ObservationVector> kMeansLearnerPunch = new KMeansLearner<ObservationVector>(\n 10, initFactoryPunch, learnSequencesPunch);\n // Create an estimation of the HMM (initHmm) using one iteration of the\n // k-Means algorithm\n Hmm<ObservationVector> initHmmPunch = kMeansLearnerPunch.iterate();\n \n // Use BaumWelchLearner to create the HMM (learntHmm) from initHmm\n BaumWelchLearner baumWelchLearnerPunch = new BaumWelchLearner();\n Hmm<ObservationVector> learntHmmPunch = baumWelchLearnerPunch.learn(\n initHmmPunch, learnSequencesPunch);\n \n // Create HMM for scroll-down gesture\n \n OpdfMultiGaussianFactory initFactoryScrolldown = new OpdfMultiGaussianFactory(\n 3);\n \n Reader learnReaderScrolldown = new FileReader(\n \"scrolllearn.seq\");\n List<List<ObservationVector>> learnSequencesScrolldown = ObservationSequencesReader\n .readSequences(new ObservationVectorReader(),\n learnReaderScrolldown);\n learnReaderScrolldown.close();\n \n KMeansLearner<ObservationVector> kMeansLearnerScrolldown = new KMeansLearner<ObservationVector>(\n 10, initFactoryScrolldown, learnSequencesScrolldown);\n // Create an estimation of the HMM (initHmm) using one iteration of the\n // k-Means algorithm\n Hmm<ObservationVector> initHmmScrolldown = kMeansLearnerScrolldown\n .iterate();\n \n // Use BaumWelchLearner to create the HMM (learntHmm) from initHmm\n BaumWelchLearner baumWelchLearnerScrolldown = new BaumWelchLearner();\n Hmm<ObservationVector> learntHmmScrolldown = baumWelchLearnerScrolldown\n .learn(initHmmScrolldown, learnSequencesScrolldown);\n \n // Create HMM for send gesture\n \n OpdfMultiGaussianFactory initFactorySend = new OpdfMultiGaussianFactory(\n 3);\n \n Reader learnReaderSend = new FileReader(\n \"sendlearn.seq\");\n List<List<ObservationVector>> learnSequencesSend = ObservationSequencesReader\n .readSequences(new ObservationVectorReader(), learnReaderSend);\n learnReaderSend.close();\n \n KMeansLearner<ObservationVector> kMeansLearnerSend = new KMeansLearner<ObservationVector>(\n 10, initFactorySend, learnSequencesSend);\n // Create an estimation of the HMM (initHmm) using one iteration of the\n // k-Means algorithm\n Hmm<ObservationVector> initHmmSend = kMeansLearnerSend.iterate();\n \n // Use BaumWelchLearner to create the HMM (learntHmm) from initHmm\n BaumWelchLearner baumWelchLearnerSend = new BaumWelchLearner();\n Hmm<ObservationVector> learntHmmSend = baumWelchLearnerSend.learn(\n initHmmSend, learnSequencesSend);\n \n Reader testReader = new FileReader(\n \"scroll.seq\");\n List<List<ObservationVector>> testSequences = ObservationSequencesReader\n .readSequences(new ObservationVectorReader(), testReader);\n testReader.close();\n \n short gesture; // punch = 1, scrolldown = 2, send = 3\n double punchProbability, scrolldownProbability, sendProbability;\n for (int i = 0; i <= 4; i++) {\n punchProbability = learntHmmPunch.probability(testSequences\n .get(i));\n gesture = 1;\n scrolldownProbability = learntHmmScrolldown.probability(testSequences\n .get(i));\n if (scrolldownProbability > punchProbability) {\n gesture = 2;\n }\n sendProbability = learntHmmSend.probability(testSequences\n .get(i));\n if ((gesture == 1 && sendProbability > punchProbability)\n || (gesture == 2 && sendProbability > scrolldownProbability)) {\n gesture = 3;\n }\n if (gesture == 1) {\n System.out.println(\"This is a punch gesture\");\n } else if (gesture == 2) {\n System.out.println(\"This is a scroll-down gesture\");\n } else if (gesture == 3) {\n System.out.println(\"This is a send gesture\");\n }\n }\n }", "private void sampleGauges() {\n rootContext.gauges.values()\n .forEach(PrometheusGaugeWrapper::sample);\n\n rootContext.gaugeSets.values()\n .forEach(PrometheusLabelledGaugeWrapper::sample);\n }", "public void trainBernoulli() {\t\t\n\t\tMap<String, Cluster> trainingDataSet = readFile(trainLabelPath, trainDataPath, \"training\");\n\t\tMap<String, Cluster> testingDataSet = readFile(testLabelPath, testDataPath, \"testing\");\n\n\t\t// do testing, if the predicted class and the gold class is not equal, increment one\n\t\tdouble error = 0;\n\n\t\tdouble documentSize = 0;\n\n\t\tSystem.out.println(\"evaluate the performance\");\n\t\tfor (int testKey = 1; testKey <= 20; testKey++) {\n\t\t\tCluster testingCluster = testingDataSet.get(Integer.toString(testKey));\n\t\t\tSystem.out.println(\"Cluster: \"+testingCluster.toString());\n\n\t\t\tfor (Document document : testingCluster.getDocuments()) {\n\t\t\t\tdocumentSize += 1; \n\t\t\t\tList<Double> classprobability = new ArrayList<Double>();\n\t\t\t\tMap<String, Integer> testDocumentWordCounts = document.getWordCount();\n\n\t\t\t\tfor (int classindex = 1; classindex <= 20; classindex++) {\n\t\t\t\t\t// used for calculating the probability\n\t\t\t\t\tCluster trainCluster = trainingDataSet.get(Integer.toString(classindex));\n\t\t\t\t\t// System.out.println(classindex + \" \" + trainCluster.mClassId);\n\t\t\t\t\tMap<String, Double> bernoulliProbability = trainCluster.bernoulliProbabilities;\n\t\t\t\t\tdouble probability = Math.log(trainCluster.getDocumentSize()/trainDocSize);\n\t\t\t\t\tfor(int index = 1; index <= voc.size(); index++ ){\n\n\t\t\t\t\t\t// judge whether this word is stop word \n\t\t\t\t\t\tboolean isStopwords = englishStopPosition.contains(index);\n\t\t\t\t\t\tif (isStopwords) continue;\n\n\t\t\t\t\t\tboolean contain = testDocumentWordCounts.containsKey(Integer.toString(index));\t\t\t\t\t\t\n\t\t\t\t\t\tif (contain) {\n\t\t\t\t\t\t\tprobability += Math.log(bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tprobability += Math.log(1 - bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// put the probability into the map for the specific class\n\t\t\t\t\tclassprobability.add(probability);\n\t\t\t\t}\n\t\t\t\tObject obj = Collections.max(classprobability);\n\t\t\t\t// System.out.println(classprobability);\n\t\t\t\tString predicte_class1 = obj.toString();\n\t\t\t\t// System.out.println(predicte_class1);\n\t\t\t\t// System.out.println(Double.parseDouble(predicte_class1));\n\t\t\t\tint index = classprobability.indexOf(Double.parseDouble(predicte_class1));\n\t\t\t\t// System.out.println(index);\n\t\t\t\tString predicte_class = Integer.toString(index + 1);\n\n\n\t\t\t\tconfusion_matrix[testKey - 1][index] += 1;\n\n\t\t\t\t// System.out.println(document.docId + \": G, \" + testKey + \"; P: \" + predicte_class);\n\t\t\t\tif (!predicte_class.equals(Integer.toString(testKey))) {\n\t\t\t\t\terror += 1;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize);\n\t\t}\n\n\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize + \" precision rate : \" + (1 - error/documentSize));\n\n\t\t// print confusion matrix\n\t\tprintConfusionMatrix(confusion_matrix);\n\t}", "public void wekaCalculate()\n\t{\n\t\tfor (int categoryStep = 0; categoryStep < 6; categoryStep++)\n\t\t{\n\t\t\tString trainString = \"Train\";\n\t\t\tString testString = \"Test\";\n\t\t\tString categoryString;\n\t\t\tString resultString = \"Results\";\n\t\t\tString textString;\n\t\t\tString eventString;\n\n\t\t\tswitch (categoryStep)\n\t\t\t{\n\t\t\tcase 0: categoryString = \"Cont.arff\"; break;\n\t\t\tcase 1: categoryString = \"Dona.arff\"; break;\n\t\t\tcase 2: categoryString = \"Offi.arff\"; break;\n\t\t\tcase 3: categoryString = \"Advi.arff\"; break;\n\t\t\tcase 4: categoryString = \"Mult.arff\"; break;\n\t\t\tdefault: categoryString = \"Good.arff\";\n\t\t\t}\n\t\t\t\n\t\t\tswitch (categoryStep)\n\t\t\t{\n\t\t\tcase 0: textString = \"Cont.txt\"; break;\n\t\t\tcase 1: textString = \"Dona.txt\"; break;\n\t\t\tcase 2: textString = \"Offi.txt\"; break;\n\t\t\tcase 3: textString = \"Advi.txt\"; break;\n\t\t\tcase 4: textString = \"Mult.txt\"; break;\n\t\t\tdefault: textString = \"Good.txt\";\n\t\t\t}\n\t\t\t\n\t\t\tfor (int eventStep = 0; eventStep < 15; eventStep++)\n\t\t\t{\n\t\t\t\tString trainingData;\n\t\t\t\tString testData;\n\t\t\t\tString resultText;\n\n\t\t\t\tswitch (eventStep)\n\t\t\t\t{\n\t\t\t\tcase 0: eventString = \"2011Joplin\"; break;\n\t\t\t\tcase 1: eventString = \"2012Guatemala\"; break; \n\t\t\t\tcase 2: eventString = \"2012Italy\"; break;\n\t\t\t\tcase 3: eventString = \"2012Philipinne\"; break;\n\t\t\t\tcase 4: eventString = \"2013Alberta\";\tbreak;\n\t\t\t\tcase 5: eventString = \"2013Australia\"; break;\n\t\t\t\tcase 6: eventString = \"2013Boston\"; break;\t\t\t\t\n\t\t\t\tcase 7: eventString = \"2013Manila\"; break;\n\t\t\t\tcase 8: eventString = \"2013Queens\"; break;\n\t\t\t\tcase 9: eventString = \"2013Yolanda\"; break;\n\t\t\t\tcase 10: eventString = \"2014Chile\"; break;\n\t\t\t\tcase 11: eventString = \"2014Hagupit\"; break;\n\t\t\t\tcase 12: eventString = \"2015Nepal\"; break;\n\t\t\t\tcase 13: eventString = \"2015Paris\"; break;\n\t\t\t\tdefault: eventString = \"2018Florida\"; \t\t\t\t\n\t\t\t\t}\n\n\t\t\t\ttrainingData = eventString;\n\t\t\t\ttrainingData += trainString;\n\t\t\t\ttrainingData += categoryString;\n\n\t\t\t\ttestData = eventString;\n\t\t\t\ttestData += testString;\n\t\t\t\ttestData += categoryString;\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tresultText = eventString;\n\t\t\t\tresultText += resultString;\n\t\t\t\tresultText += textString;\n\t\t\t\t\n\n\t\t\t\ttry {\n\t\t\t\t\tConverterUtils.DataSource loader1 = new ConverterUtils.DataSource(trainingData);\n\t\t\t\t\tConverterUtils.DataSource loader2 = new ConverterUtils.DataSource(testData);\n\n\n\t\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(resultText));\n\t\t\t\t\tInstances trainData = loader1.getDataSet();\n\t\t\t\t\ttrainData.setClassIndex(trainData.numAttributes() - 1);\n\n\t\t\t\t\tInstances testingData = loader2.getDataSet();\n\t\t\t\t\ttestingData.setClassIndex(testingData.numAttributes() - 1);\n\n\t\t\t\t\tClassifier cls1 = new NaiveBayes();\t\t\t\t\t\n\t\t\t\t\tcls1.buildClassifier(trainData);\t\t\t\n\t\t\t\t\tEvaluation eval1 = new Evaluation(trainData);\n\t\t\t\t\teval1.evaluateModel(cls1, testingData);\t\n\t\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\t\t\t\t\tbw.write(eval1.toSummaryString());\n\t\t\t\t\tbw.write(eval1.toClassDetailsString());\n\t\t\t\t\tbw.write(eval1.toMatrixString());\n\t\t\t\t\tbw.write(\"\\n\");\n\n\t\t\t\t\tthis.evalNaiveBayesList.add(eval1);\n\n\t\t\t\t\tClassifier cls2 = new SMO();\n\t\t\t\t\tcls2.buildClassifier(trainData);\n\t\t\t\t\tEvaluation eval2 = new Evaluation(trainData);\n\t\t\t\t\teval2.evaluateModel(cls2, testingData);\n\t\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\t\t\t\t\tbw.write(eval2.toSummaryString());\n\t\t\t\t\tbw.write(eval2.toClassDetailsString());\n\t\t\t\t\tbw.write(eval2.toMatrixString());\n\n\t\t\t\t\tthis.evalSMOList.add(eval2);\n\n\t\t\t\t\tbw.close();\n\t\t\t\t} catch (Exception e) {\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Before\n public void DataSmoothExamples2() {\n\t LinkedList<Episode> eps5 = new LinkedList<Episode>();\n\t\teps5.add(new Episode(\"The One with the Video Tape\", 0));\n\t\teps5.add(new Episode(\"The One with Giant Poking Device\", 0));\n\t\teps5.add(new Episode(\"The One with Ross' Tan\", 0));\t\t\n\t\tshows2.add(new Show(\"Friends\", 1830, eps5, false));\n\t\t\n\t\tLinkedList<Episode> eps6 = new LinkedList<Episode>();\n\t\teps6.add(new Episode(\"Hello World\", 0));\n\t\teps6.add(new Episode(\"This is my test\", 0));\n\t\teps6.add(new Episode(\"What's up\", 0));\n\t\teps6.add(new Episode(\"Beanbags\", 0));\n\t\tshows2.add(new Show(\"Edge case test\", 1900, eps6, false));\n\t\t\n\t\tLinkedList<Episode> eps7 = new LinkedList<Episode>();\n\t\teps7.add(new Episode(\"Yakko's\", 0));\n\t\teps7.add(new Episode(\"Hello\", 0));\n\t\teps7.add(new Episode(\"Where\", 0));\n\t\tshows2.add(new Show(\"Animals\", 1700, eps7, false));\n\t\t\n\t\tLinkedList<Episode> eps8 = new LinkedList<Episode>();\n\t\teps8.add(new Episode(\"W\", 0));\n\t\teps8.add(new Episode(\"P\", 0));\n\t\teps8.add(new Episode(\"I\", 0));\n\t\tshows2.add(new Show(\"WPI\", 1100, eps8, false));\n\n\t showResults2.add(0.0);\n\t showResults2.add(0.0);\n\t showResults2.add(0.0);\n\t showResults2.add(0.0);\n\t}", "public static void main(String[] args) {\n\t\tSparkConf conf = new SparkConf().setAppName(\"NB\").setMaster(\"local[*]\").set(\"spark.ui.port\",\"4040\");;\n\t JavaSparkContext jsc = new JavaSparkContext(conf);\n\t\tString path = \"localpath\";\n\t\tJavaRDD<LabeledPoint> inputData = MLUtils.loadLabeledPoints(jsc.sc(), path).toJavaRDD();\n\t\tJavaRDD<LabeledPoint>[] tmp = inputData.randomSplit(new double[]{0.6, 0.4});\n\t\tJavaRDD<LabeledPoint> training = tmp[0]; // training set\n\t\tJavaRDD<LabeledPoint> test = tmp[1]; // test set\n\t\tNaiveBayesModel model = NaiveBayes.train(training.rdd(), 1.0);\n\t\tJavaPairRDD<Double, Double> predictionAndLabel =\n\t\t test.mapToPair(p -> new Tuple2<>(model.predict(p.features()), p.label()));\n\t\t// Save and load model\n\t\tmodel.save(jsc.sc(), \"localotuput_path\");\n\t\tNaiveBayesModel sameModel = NaiveBayesModel.load(jsc.sc(), \"localotuput_path\");\n\t\t\n\t\tdouble accuracy =\n\t\t\t\t predictionAndLabel.filter(pl -> pl._1().equals(pl._2())).count() / (double) test.count();\n\t\t\t\t\n\t\tSystem.out.println(\"The final accuracy is\"+accuracy);\n//\t\tpredictionAndLabel.foreach(data -> {\n//\t\t System.out.println(\"final model=\"+data._1() + \"final label=\" + data._2());\n//\t\t}); \n\t}", "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 }", "public void testRecognizer() {\n\t\tfinal int TIPO_COLUMN_NUMBER = 4;\n\t\tfinal int INSEGNA_COLUMN_NUMBER = 3;\n\t\tfinal String FUSION_CR_ID = \"fusion\";\n\t\tfinal String CSV_PATH = \"/tables/Elenco_osterie_tipiche_civici.1386925759.csv\";\n\t\tfinal char COLUMN_SEPARATOR = ';';\n\n\t\t// Load CSV file\n//\t\tFile csvFile = new File(CSV_PATH); \n\t\tFile csvFile = FileUtils.getResourceFile(CSV_PATH);\n\t\tRowTable rowTable = RowTable.loadFromCSV(csvFile, COLUMN_SEPARATOR);\n\t\trowTable.removeHeaders();\n\t\t\n\t\t// Create recognizer\n\t\tSet<String> inputRecognizers = new HashSet<String>();\n\t\tinputRecognizers.add(INPUT_RECOGNIZER_ID);\n\t\tFile modelFile = FileUtils.getSVMModelFile(TWO_FEATURES_OSTERIE_CR_NAME);\n\t\tClassifierFusionCR fusionCR \n\t\t\t= new ClassifierFusionCR(FUSION_CR_ID, \n\t\t\t\t\tRESTAURANT_CONCEPT_ID, \n\t\t\t\t\trowTable, \n\t\t\t\t\tmodelFile, \n\t\t\t\t\tinputRecognizers);\n\t\t\n\t\t// Make list of candidates\n\t\tList<ColumnConceptCandidate> candidates = new ArrayList<ColumnConceptCandidate>();\n\t\tColumnConceptCandidate tipoCandidate\n\t\t\t= new ColumnConceptCandidate(TIPO_COLUMN_NUMBER, \n\t\t\t\t\tRESTAURANT_CONCEPT_ID, \n\t\t\t\t\tTIPO_SIMILARITY_SCORE,\n\t\t\t\t\tINPUT_RECOGNIZER_ID);\n\t\tcandidates.add(tipoCandidate);\n\t\tColumnConceptCandidate insegnaCandidate\n\t\t\t= new ColumnConceptCandidate(INSEGNA_COLUMN_NUMBER, \n\t\t\t\tRESTAURANT_CONCEPT_ID, \n\t\t\t\tINSEGNA_SIMILARITY_SCORE,\n\t\t\t\tINPUT_RECOGNIZER_ID);\n\t\tcandidates.add(insegnaCandidate);\n\t\t\n\t\t// Run recognizer\n\t\tfusionCR.computeScoredCandidates(candidates);\n\t\t\n\t\t// Make sure input candidates are gone...\n\t\tassertTrue(candidates.size() == 1);\n\t\t// ... and replaced with a new fusion candidate\n\t\tColumnConceptCandidate resultingCandidate = candidates.get(0);\n\t\tassertTrue(resultingCandidate.getOriginator().equals(FUSION_CR_ID));\n\t\t\n\t\t// Verify the score of the fusion candidate\n\t\tassertTrue(resultingCandidate.getScore() > 0.7);\n\t}", "@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}", "@BeforeClass\r\n public static void generateConfigurationOfClassifiersAndLoadData() {\r\n\r\n //one classifier in the ensemble will be ClassifierModel (Model for enach output class)\r\n GaussianMultiModelConfig gmc = new GaussianMultiModelConfig();\r\n gmc.setTrainerClassName(\"QuasiNewtonTrainer\");\r\n gmc.setTrainerCfg(new QuasiNewtonConfig());\r\n LinearModelConfig lmcpso = new LinearModelConfig();\r\n lmcpso.setTrainerClassName(\"PSOTrainer\");\r\n lmcpso.setTrainerCfg(new PSOConfig());\r\n ClassifierModelConfig clc = new ClassifierModelConfig();\r\n clc.setClassModelsDef(BaseModelsDefinition.RANDOM);\r\n clc.addClassModelCfg(lmcpso);\r\n clc.addClassModelCfg(gmc);\r\n clc.setClassRef(ClassifierModel.class);\r\n\r\n //todo second classifier in the ensemble will be Weka decision tree\r\n\r\n ClassifierBaggingConfig bagc = new ClassifierBaggingConfig();\r\n bagc.setClassifiersNumber(2);\r\n bagc.setBaseClassifiersDef(BaseModelsDefinition.UNIFORM);\r\n bagc.addBaseClassifierCfg(clc);\r\n\r\n generatedCfg = bagc;\r\n ConfigurationFactory.saveConfiguration(generatedCfg, cfgfilename);\r\n\r\n data = new FileGameData(datafilename);\r\n\r\n }", "@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 }", "public static void main(String[] args) throws Exception {\n TDB.setOptimizerWarningFlag(false);\n\n final String DATASET_DIR_NAME = \"data0\";\n final Dataset data0 = TDBFactory.createDataset( DATASET_DIR_NAME );\n\n // show the currently registered names\n for (Iterator<String> it = data0.listNames(); it.hasNext(); ) {\n out.println(\"NAME=\"+it.next());\n }\n\n out.println(\"getting named model...\");\n /// this is the OWL portion\n final Model model = data0.getNamedModel( MY_NS );\n out.println(\"Model := \"+model);\n\n out.println(\"getting graph...\");\n /// this is the DATA in that MODEL\n final Graph graph = model.getGraph();\n out.println(\"Graph := \"+graph);\n\n if (graph.isEmpty()) {\n final Resource product1 = model.createResource( MY_NS +\"product/1\");\n final Property hasName = model.createProperty( MY_NS, \"#hasName\");\n final Statement stmt = model.createStatement(\n product1, hasName, model.createLiteral(\"Beach Ball\",\"en\") );\n out.println(\"Statement = \" + stmt);\n\n model.add(stmt);\n\n // just for fun\n out.println(\"Triple := \" + stmt.asTriple().toString());\n } else {\n out.println(\"Graph is not Empty; it has \"+graph.size()+\" Statements\");\n long t0, t1;\n t0 = System.currentTimeMillis();\n final Query q = QueryFactory.create(\n \"PREFIX exns: <\"+MY_NS+\"#>\\n\"+\n \"PREFIX exprod: <\"+MY_NS+\"product/>\\n\"+\n \" SELECT * \"\n // if you don't provide the Model to the\n // QueryExecutionFactory below, then you'll need\n // to specify the FROM;\n // you *can* always specify it, if you want\n // +\" FROM <\"+MY_NS+\">\\n\"\n // +\" WHERE { ?node <\"+MY_NS+\"#hasName> ?name }\"\n // +\" WHERE { ?node exns:hasName ?name }\"\n // +\" WHERE { exprod:1 exns:hasName ?name }\"\n +\" WHERE { ?res ?pred ?obj }\"\n );\n out.println(\"Query := \"+q);\n t1 = System.currentTimeMillis();\n out.println(\"QueryFactory.TIME=\"+(t1 - t0));\n\n t0 = System.currentTimeMillis();\n try ( QueryExecution qExec = QueryExecutionFactory\n // if you query the whole DataSet,\n // you have to provide a FROM in the SparQL\n //.create(q, data0);\n .create(q, model) ) {\n t1 = System.currentTimeMillis();\n out.println(\"QueryExecutionFactory.TIME=\"+(t1 - t0));\n\n t0 = System.currentTimeMillis();\n ResultSet rs = qExec.execSelect();\n t1 = System.currentTimeMillis();\n out.println(\"executeSelect.TIME=\"+(t1 - t0));\n while (rs.hasNext()) {\n QuerySolution sol = rs.next();\n out.println(\"Solution := \"+sol);\n for (Iterator<String> names = sol.varNames(); names.hasNext(); ) {\n final String name = names.next();\n out.println(\"\\t\"+name+\" := \"+sol.get(name));\n }\n }\n }\n }\n out.println(\"closing graph\");\n graph.close();\n out.println(\"closing model\");\n model.close();\n //out.println(\"closing DataSetGraph\");\n //dsg.close();\n out.println(\"closing DataSet\");\n data0.close();\n }", "@Override\n public int[] test(DataSet test_set) {\n // check\n Example first = test_set.getExample(0);\n if (!(first.get(\"INPUT\").getValue() instanceof Double[])) {\n throw new RuntimeException(\"NeuralNetworkLearner inputs must be passed as a Double[] in the \\\"INPUT\\\" attribute\");\n }\n if (!(first.getOutput() instanceof Double[])) {\n throw new RuntimeException(\"NeuralNetworkLearner output must be set to a Double[]\");\n }\n // test\n int[] results = new int[]{0, 0};\n for (Example e : test_set) {\n System.out.println(Arrays.toString(this.predict(e)));\n System.out.println(Arrays.toString((Double[]) e.getOutput()));\n if (Arrays.equals((Double[]) e.getOutput(), this.predict(e))) {\n results[0]++;\n } else {\n results[1]++;\n }\n }\n // return\n return results;\n }", "@ParameterizedTest\n @ArgumentsSource(TestForestProvider.class)\n public void testMultipleAttributions(RandomCutForest forest) {\n int hardPass=0;\n int causal=0;\n double [] point ={6.0,0.0,0.0};\n DiVector result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.2);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.getHighLowSum(1) + result.getHighLowSum(2) < 1.0);\n assertTrue(result.high[0] > forest.getAnomalyScore(point)/3);\n if (result.high[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n // the last line states that first coordinate was high and was a majority contributor to the score\n // the previous test states that the contribution is twice the average of the 12 possible contributors.\n // these tests all subparts of the score at once\n\n point=new double [] {-6.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.getHighLowSum()>1.0);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] > forest.getAnomalyScore(point)/3);\n if (result.low[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > forest.getAnomalyScore(point)/3);\n if (result.high[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,-6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.low[1] > forest.getAnomalyScore(point)/3);\n if (result.low[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,0.0,6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.low[2] < 0.5);\n assertTrue(result.high[2] > forest.getAnomalyScore(point)/3);\n if (result.high[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n point=new double [] {0.0,0.0,-6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.high[2] < 0.5);\n assertTrue(result.low[2] > forest.getAnomalyScore(point)/3);\n if (result.low[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n assertTrue(causal>=5); // maximum is 6; there can be skew in one direction\n\n point=new double [] {-3.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] >\n forest.getAnomalyScore(point)/3);\n\n /* For multiple causes, the relationship of scores only hold for larger\n * distances.\n */\n\n point=new double [] {-3.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.low[0] > 0.5) ++hardPass;\n assertTrue(result.high[0] < 0.5);\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > 0.5);\n if (result.high[1]>0.9) ++hardPass;\n assertTrue(result.getHighLowSum(2)< 0.5);\n assertTrue(result.high[1]+result.low[0]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {6.0,-3.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.5);\n assertTrue(result.high[0] > 0.5);\n if (result.high[0]>0.9) ++hardPass;\n if (result.low[1] > 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.getHighLowSum(2) < 0.5);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {20.0,-10.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n if (result.high[0]>1.8*result.low[1]) ++hardPass;\n if (result.low[1]>result.high[0]/2.2) ++hardPass;\n\n assertTrue(hardPass>=15); //maximum is 20\n }", "public static void main(String[] args) throws Exception {\n\t\tString matlabLocation = \"/usr/local/MATLAB/R2012a/bin/matlab\";\n\t\tMatlabProxyFactoryOptions options = new MatlabProxyFactoryOptions.Builder()\n\t\t\t\t.setProxyTimeout(30000L).setMatlabLocation(matlabLocation)\n\t\t\t\t.setHidden(true).build();\n\n\t\tMatlabProxyFactory factory = new MatlabProxyFactory(options);\n\t\tMatlabProxy proxy = factory.getProxy();\n\n\t\tSAXBuilder builder = new SAXBuilder();\n\t\tString inputCorpusDir = \"../data/ACL2015/testData\";\n\t\tDocument doc = builder.build(inputCorpusDir + \"/\"\n\t\t\t\t+ \"GuidedSumm_topics.xml\");\n\t\tElement root = doc.getRootElement();\n\t\tList<Element> corpusList = root.getChildren();\n\n\t\tString outputSummaryDir = \"../data/ACL2015/Output\";\n\t\tString confFilePath = \"../data/ACL2015/ROUGE/conf.xml\";\n\t\t\n\n\t\tint iterTime = 3;\n\t\t\t\t\n\t\t///////////////////////////////////////////////\t\n\t\t\n\t\tint[] numberClusters_DCNN = {7, 8};\n\t\t\n\n\t\t//////////////////////////////////////////////////////\n\t\tPrintWriter out_DCNN_Spe_H_Har_H_110 = FileOperation.getPrintWriter(new File(\n\t\t\t\toutputSummaryDir), \"experiment_result_DCNN_Spe_H_Har_H_110\");\n\t\tfor (int j = 0; j < numberClusters_DCNN.length; j++) {\n\t\t\tint numberCluster = numberClusters_DCNN[j];\n\t\t\tdouble averageMetric_1 = 0.0;\n\t\t\tdouble averageMetric_2 = 0.0;\n\t\t\tdouble averageMetric_SU4 = 0.0;\n\n\t\t\tfor (int k = 0; k < iterTime; k++) {\n\t\t\t\tfor (int i = 0; i < corpusList.size(); i++) {\n\t\t\t\t\tSystem.out.println(\"Corpus id is \" + i);\n\t\t\t\t\tElement topic = corpusList.get(i);\n\t\t\t\t\tList<Element> docSets = topic.getChildren();\n\t\t\t\t\tElement docSetA = docSets.get(1);\n\t\t\t\t\tString corpusName = docSetA.getAttributeValue(\"id\");\n\t\t\t\t\tAbstractiveGenerator sg = new AbstractiveGenerator();\n\t\t\t\t\tsg.DCNN_Spe_H_Har_H_110(inputCorpusDir + \"/\" +topic.getAttributeValue(\"id\"), outputSummaryDir, corpusName, numberCluster, proxy);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tHashMap map_1 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-1\");\n\t\t\t\tDouble met_1 = (Double) map_1.get(\"ROUGE-1\");\n\t\t\t\tSystem.out.println(\"ROUGE-1\" + \" \" + numberCluster + \" \" + met_1);\n\t\t\t\taverageMetric_1 += met_1;\n\n\t\t\t\tHashMap map_2 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-2\");\n\t\t\t\tDouble met_2 = (Double) map_2.get(\"ROUGE-2\");\n\t\t\t\tSystem.out.println(\"ROUGE-2\" + \" \" + numberCluster + \" \" + met_2);\n\t\t\t\taverageMetric_2 += met_2;\n\n\t\t\t\tHashMap map_SU4 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-SU4\");\n\t\t\t\tDouble met_SU4 = (Double) map_SU4.get(\"ROUGE-SU4\");\n\t\t\t\tSystem.out.println(\"ROUGE-SU4\" + \" \" + numberCluster + \" \" + met_SU4);\n\t\t\t\taverageMetric_SU4 += met_SU4;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_H_Har_H_110.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_H_Har_H_110.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \"\n\t\t\t\t\t+ averageMetric_SU4 / iterTime);\n\t\t\tout_DCNN_Spe_H_Har_H_110.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \" + averageMetric_SU4\n\t\t\t\t\t/ iterTime);\n\t\t}\n\t\tout_DCNN_Spe_H_Har_H_110.close();\n\t\t\n\t\t/////////////////////////////////////////////\n\t\t\n\t\tPrintWriter out_DCNN_Spe_H_Har_C_110 = FileOperation.getPrintWriter(new File(\n\t\t\t\toutputSummaryDir), \"experiment_result_DCNN_Spe_H_Har_C_110\");\n\t\tfor (int j = 0; j < numberClusters_DCNN.length; j++) {\n\t\t\tint numberCluster = numberClusters_DCNN[j];\n\t\t\tdouble averageMetric_1 = 0.0;\n\t\t\tdouble averageMetric_2 = 0.0;\n\t\t\tdouble averageMetric_SU4 = 0.0;\n\n\t\t\tfor (int k = 0; k < iterTime; k++) {\n\t\t\t\tfor (int i = 0; i < corpusList.size(); i++) {\n\t\t\t\t\tSystem.out.println(\"Corpus id is \" + i);\n\t\t\t\t\tElement topic = corpusList.get(i);\n\t\t\t\t\tList<Element> docSets = topic.getChildren();\n\t\t\t\t\tElement docSetA = docSets.get(1);\n\t\t\t\t\tString corpusName = docSetA.getAttributeValue(\"id\");\n\t\t\t\t\tAbstractiveGenerator sg = new AbstractiveGenerator();\n\t\t\t\t\tsg.DCNN_Spe_H_Har_C_110(inputCorpusDir + \"/\" +topic.getAttributeValue(\"id\"), outputSummaryDir, corpusName, numberCluster, proxy);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tHashMap map_1 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-1\");\n\t\t\t\tDouble met_1 = (Double) map_1.get(\"ROUGE-1\");\n\t\t\t\tSystem.out.println(\"ROUGE-1\" + \" \" + numberCluster + \" \" + met_1);\n\t\t\t\taverageMetric_1 += met_1;\n\n\t\t\t\tHashMap map_2 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-2\");\n\t\t\t\tDouble met_2 = (Double) map_2.get(\"ROUGE-2\");\n\t\t\t\tSystem.out.println(\"ROUGE-2\" + \" \" + numberCluster + \" \" + met_2);\n\t\t\t\taverageMetric_2 += met_2;\n\n\t\t\t\tHashMap map_SU4 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-SU4\");\n\t\t\t\tDouble met_SU4 = (Double) map_SU4.get(\"ROUGE-SU4\");\n\t\t\t\tSystem.out.println(\"ROUGE-SU4\" + \" \" + numberCluster + \" \" + met_SU4);\n\t\t\t\taverageMetric_SU4 += met_SU4;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_H_Har_C_110.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_H_Har_C_110.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \"\n\t\t\t\t\t+ averageMetric_SU4 / iterTime);\n\t\t\tout_DCNN_Spe_H_Har_C_110.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \" + averageMetric_SU4\n\t\t\t\t\t/ iterTime);\n\t\t}\n\t\tout_DCNN_Spe_H_Har_C_110.close();\n\t\t\n\t\t////////////////////////////////////\n\t\tPrintWriter out_DCNN_Spe_C_Gre_H_110 = FileOperation.getPrintWriter(new File(\n\t\t\t\toutputSummaryDir), \"experiment_result_DCNN_Spe_C_Gre_H_110\");\n\t\tfor (int j = 0; j < numberClusters_DCNN.length; j++) {\n\t\t\tint numberCluster = numberClusters_DCNN[j];\n\t\t\tdouble averageMetric_1 = 0.0;\n\t\t\tdouble averageMetric_2 = 0.0;\n\t\t\tdouble averageMetric_SU4 = 0.0;\n\n\t\t\tfor (int k = 0; k < iterTime; k++) {\n\t\t\t\tfor (int i = 0; i < corpusList.size(); i++) {\n\t\t\t\t\tSystem.out.println(\"Corpus id is \" + i);\n\t\t\t\t\tElement topic = corpusList.get(i);\n\t\t\t\t\tList<Element> docSets = topic.getChildren();\n\t\t\t\t\tElement docSetA = docSets.get(1);\n\t\t\t\t\tString corpusName = docSetA.getAttributeValue(\"id\");\n\t\t\t\t\tAbstractiveGenerator sg = new AbstractiveGenerator();\n\t\t\t\t\tsg.DCNN_Spe_C_Gre_H_110(inputCorpusDir + \"/\" +topic.getAttributeValue(\"id\"), outputSummaryDir, corpusName, numberCluster, proxy);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tHashMap map_1 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-1\");\n\t\t\t\tDouble met_1 = (Double) map_1.get(\"ROUGE-1\");\n\t\t\t\tSystem.out.println(\"ROUGE-1\" + \" \" + numberCluster + \" \" + met_1);\n\t\t\t\taverageMetric_1 += met_1;\n\n\t\t\t\tHashMap map_2 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-2\");\n\t\t\t\tDouble met_2 = (Double) map_2.get(\"ROUGE-2\");\n\t\t\t\tSystem.out.println(\"ROUGE-2\" + \" \" + numberCluster + \" \" + met_2);\n\t\t\t\taverageMetric_2 += met_2;\n\n\t\t\t\tHashMap map_SU4 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-SU4\");\n\t\t\t\tDouble met_SU4 = (Double) map_SU4.get(\"ROUGE-SU4\");\n\t\t\t\tSystem.out.println(\"ROUGE-SU4\" + \" \" + numberCluster + \" \" + met_SU4);\n\t\t\t\taverageMetric_SU4 += met_SU4;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_C_Gre_H_110.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_C_Gre_H_110.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \"\n\t\t\t\t\t+ averageMetric_SU4 / iterTime);\n\t\t\tout_DCNN_Spe_C_Gre_H_110.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \" + averageMetric_SU4\n\t\t\t\t\t/ iterTime);\n\t\t}\n\t\tout_DCNN_Spe_C_Gre_H_110.close();\n\t\t\n\t\t//////////////////////////////\n\t\tPrintWriter out_DCNN_Spe_C_Gre_C_110 = FileOperation.getPrintWriter(new File(\n\t\t\t\toutputSummaryDir), \"experiment_result_DCNN_Spe_C_Gre_C_110\");\n\t\tfor (int j = 0; j < numberClusters_DCNN.length; j++) {\n\t\t\tint numberCluster = numberClusters_DCNN[j];\n\t\t\tdouble averageMetric_1 = 0.0;\n\t\t\tdouble averageMetric_2 = 0.0;\n\t\t\tdouble averageMetric_SU4 = 0.0;\n\n\t\t\tfor (int k = 0; k < iterTime; k++) {\n\t\t\t\tfor (int i = 0; i < corpusList.size(); i++) {\n\t\t\t\t\tSystem.out.println(\"Corpus id is \" + i);\n\t\t\t\t\tElement topic = corpusList.get(i);\n\t\t\t\t\tList<Element> docSets = topic.getChildren();\n\t\t\t\t\tElement docSetA = docSets.get(1);\n\t\t\t\t\tString corpusName = docSetA.getAttributeValue(\"id\");\n\t\t\t\t\tAbstractiveGenerator sg = new AbstractiveGenerator();\n\t\t\t\t\tsg.DCNN_Spe_C_Gre_C_110(inputCorpusDir + \"/\" +topic.getAttributeValue(\"id\"), outputSummaryDir, corpusName, numberCluster, proxy);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tHashMap map_1 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-1\");\n\t\t\t\tDouble met_1 = (Double) map_1.get(\"ROUGE-1\");\n\t\t\t\tSystem.out.println(\"ROUGE-1\" + \" \" + numberCluster + \" \" + met_1);\n\t\t\t\taverageMetric_1 += met_1;\n\n\t\t\t\tHashMap map_2 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-2\");\n\t\t\t\tDouble met_2 = (Double) map_2.get(\"ROUGE-2\");\n\t\t\t\tSystem.out.println(\"ROUGE-2\" + \" \" + numberCluster + \" \" + met_2);\n\t\t\t\taverageMetric_2 += met_2;\n\n\t\t\t\tHashMap map_SU4 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-SU4\");\n\t\t\t\tDouble met_SU4 = (Double) map_SU4.get(\"ROUGE-SU4\");\n\t\t\t\tSystem.out.println(\"ROUGE-SU4\" + \" \" + numberCluster + \" \" + met_SU4);\n\t\t\t\taverageMetric_SU4 += met_SU4;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_C_Gre_C_110.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_C_Gre_C_110.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \"\n\t\t\t\t\t+ averageMetric_SU4 / iterTime);\n\t\t\tout_DCNN_Spe_C_Gre_C_110.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \" + averageMetric_SU4\n\t\t\t\t\t/ iterTime);\n\t\t}\n\t\tout_DCNN_Spe_C_Gre_C_110.close();\n\t\t////////////////////////////////\n\t\tPrintWriter out_DCNN_Spe_H_Gre_H_110 = FileOperation.getPrintWriter(new File(\n\t\t\t\toutputSummaryDir), \"experiment_result_DCNN_Spe_H_Gre_H_110\");\n\t\tfor (int j = 0; j < numberClusters_DCNN.length; j++) {\n\t\t\tint numberCluster = numberClusters_DCNN[j];\n\t\t\tdouble averageMetric_1 = 0.0;\n\t\t\tdouble averageMetric_2 = 0.0;\n\t\t\tdouble averageMetric_SU4 = 0.0;\n\n\t\t\tfor (int k = 0; k < iterTime; k++) {\n\t\t\t\tfor (int i = 0; i < corpusList.size(); i++) {\n\t\t\t\t\tSystem.out.println(\"Corpus id is \" + i);\n\t\t\t\t\tElement topic = corpusList.get(i);\n\t\t\t\t\tList<Element> docSets = topic.getChildren();\n\t\t\t\t\tElement docSetA = docSets.get(1);\n\t\t\t\t\tString corpusName = docSetA.getAttributeValue(\"id\");\n\t\t\t\t\tAbstractiveGenerator sg = new AbstractiveGenerator();\n\t\t\t\t\tsg.DCNN_Spe_H_Gre_H_110(inputCorpusDir + \"/\" +topic.getAttributeValue(\"id\"), outputSummaryDir, corpusName, numberCluster, proxy);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tHashMap map_1 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-1\");\n\t\t\t\tDouble met_1 = (Double) map_1.get(\"ROUGE-1\");\n\t\t\t\tSystem.out.println(\"ROUGE-1\" + \" \" + numberCluster + \" \" + met_1);\n\t\t\t\taverageMetric_1 += met_1;\n\n\t\t\t\tHashMap map_2 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-2\");\n\t\t\t\tDouble met_2 = (Double) map_2.get(\"ROUGE-2\");\n\t\t\t\tSystem.out.println(\"ROUGE-2\" + \" \" + numberCluster + \" \" + met_2);\n\t\t\t\taverageMetric_2 += met_2;\n\n\t\t\t\tHashMap map_SU4 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-SU4\");\n\t\t\t\tDouble met_SU4 = (Double) map_SU4.get(\"ROUGE-SU4\");\n\t\t\t\tSystem.out.println(\"ROUGE-SU4\" + \" \" + numberCluster + \" \" + met_SU4);\n\t\t\t\taverageMetric_SU4 += met_SU4;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_H_Gre_H_110.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_H_Gre_H_110.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \"\n\t\t\t\t\t+ averageMetric_SU4 / iterTime);\n\t\t\tout_DCNN_Spe_H_Gre_H_110.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \" + averageMetric_SU4\n\t\t\t\t\t/ iterTime);\n\t\t}\n\t\tout_DCNN_Spe_H_Gre_H_110.close();\n\t\t\n\t\t////////////////////////\n\t\tPrintWriter out_DCNN_Spe_H_Gre_C_110 = FileOperation.getPrintWriter(new File(\n\t\t\t\toutputSummaryDir), \"experiment_result_DCNN_Spe_H_Gre_C_110\");\n\t\tfor (int j = 0; j < numberClusters_DCNN.length; j++) {\n\t\t\tint numberCluster = numberClusters_DCNN[j];\n\t\t\tdouble averageMetric_1 = 0.0;\n\t\t\tdouble averageMetric_2 = 0.0;\n\t\t\tdouble averageMetric_SU4 = 0.0;\n\n\t\t\tfor (int k = 0; k < iterTime; k++) {\n\t\t\t\tfor (int i = 0; i < corpusList.size(); i++) {\n\t\t\t\t\tSystem.out.println(\"Corpus id is \" + i);\n\t\t\t\t\tElement topic = corpusList.get(i);\n\t\t\t\t\tList<Element> docSets = topic.getChildren();\n\t\t\t\t\tElement docSetA = docSets.get(1);\n\t\t\t\t\tString corpusName = docSetA.getAttributeValue(\"id\");\n\t\t\t\t\tAbstractiveGenerator sg = new AbstractiveGenerator();\n\t\t\t\t\tsg.DCNN_Spe_H_Gre_C_110(inputCorpusDir + \"/\" +topic.getAttributeValue(\"id\"), outputSummaryDir, corpusName, numberCluster, proxy);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tHashMap map_1 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-1\");\n\t\t\t\tDouble met_1 = (Double) map_1.get(\"ROUGE-1\");\n\t\t\t\tSystem.out.println(\"ROUGE-1\" + \" \" + numberCluster + \" \" + met_1);\n\t\t\t\taverageMetric_1 += met_1;\n\n\t\t\t\tHashMap map_2 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-2\");\n\t\t\t\tDouble met_2 = (Double) map_2.get(\"ROUGE-2\");\n\t\t\t\tSystem.out.println(\"ROUGE-2\" + \" \" + numberCluster + \" \" + met_2);\n\t\t\t\taverageMetric_2 += met_2;\n\n\t\t\t\tHashMap map_SU4 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-SU4\");\n\t\t\t\tDouble met_SU4 = (Double) map_SU4.get(\"ROUGE-SU4\");\n\t\t\t\tSystem.out.println(\"ROUGE-SU4\" + \" \" + numberCluster + \" \" + met_SU4);\n\t\t\t\taverageMetric_SU4 += met_SU4;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_H_Gre_C_110.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_H_Gre_C_110.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \"\n\t\t\t\t\t+ averageMetric_SU4 / iterTime);\n\t\t\tout_DCNN_Spe_H_Gre_C_110.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \" + averageMetric_SU4\n\t\t\t\t\t/ iterTime);\n\t\t}\n\t\tout_DCNN_Spe_H_Gre_C_110.close();\n\t\t\n\t\t////////////////////////////\n\t\tPrintWriter out_DCNN_Spe_H_LGC_C_110 = FileOperation.getPrintWriter(new File(\n\t\t\t\toutputSummaryDir), \"experiment_result_DCNN_Spe_H_LGC_C_110\");\n\t\tfor (int j = 0; j < numberClusters_DCNN.length; j++) {\n\t\t\tint numberCluster = numberClusters_DCNN[j];\n\t\t\tdouble averageMetric_1 = 0.0;\n\t\t\tdouble averageMetric_2 = 0.0;\n\t\t\tdouble averageMetric_SU4 = 0.0;\n\n\t\t\tfor (int k = 0; k < iterTime; k++) {\n\t\t\t\tfor (int i = 0; i < corpusList.size(); i++) {\n\t\t\t\t\tSystem.out.println(\"Corpus id is \" + i);\n\t\t\t\t\tElement topic = corpusList.get(i);\n\t\t\t\t\tList<Element> docSets = topic.getChildren();\n\t\t\t\t\tElement docSetA = docSets.get(1);\n\t\t\t\t\tString corpusName = docSetA.getAttributeValue(\"id\");\n\t\t\t\t\tAbstractiveGenerator sg = new AbstractiveGenerator();\n\t\t\t\t\tsg.DCNN_Spe_H_LGC_C_110(inputCorpusDir + \"/\" +topic.getAttributeValue(\"id\"), outputSummaryDir, corpusName, numberCluster, proxy);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tHashMap map_1 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-1\");\n\t\t\t\tDouble met_1 = (Double) map_1.get(\"ROUGE-1\");\n\t\t\t\tSystem.out.println(\"ROUGE-1\" + \" \" + numberCluster + \" \" + met_1);\n\t\t\t\taverageMetric_1 += met_1;\n\n\t\t\t\tHashMap map_2 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-2\");\n\t\t\t\tDouble met_2 = (Double) map_2.get(\"ROUGE-2\");\n\t\t\t\tSystem.out.println(\"ROUGE-2\" + \" \" + numberCluster + \" \" + met_2);\n\t\t\t\taverageMetric_2 += met_2;\n\n\t\t\t\tHashMap map_SU4 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-SU4\");\n\t\t\t\tDouble met_SU4 = (Double) map_SU4.get(\"ROUGE-SU4\");\n\t\t\t\tSystem.out.println(\"ROUGE-SU4\" + \" \" + numberCluster + \" \" + met_SU4);\n\t\t\t\taverageMetric_SU4 += met_SU4;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_H_LGC_C_110.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_H_LGC_C_110.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \"\n\t\t\t\t\t+ averageMetric_SU4 / iterTime);\n\t\t\tout_DCNN_Spe_H_LGC_C_110.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \" + averageMetric_SU4\n\t\t\t\t\t/ iterTime);\n\t\t}\n\t\tout_DCNN_Spe_H_LGC_C_110.close();\n\t\t\n\t\t///////////////////////\n\t\t\n\t\tPrintWriter out_DCNN_Spe_C_LGC_C_110 = FileOperation.getPrintWriter(new File(\n\t\t\t\toutputSummaryDir), \"experiment_result_DCNN_Spe_C_LGC_C_110\");\n\t\tfor (int j = 0; j < numberClusters_DCNN.length; j++) {\n\t\t\tint numberCluster = numberClusters_DCNN[j];\n\t\t\tdouble averageMetric_1 = 0.0;\n\t\t\tdouble averageMetric_2 = 0.0;\n\t\t\tdouble averageMetric_SU4 = 0.0;\n\n\t\t\tfor (int k = 0; k < iterTime; k++) {\n\t\t\t\tfor (int i = 0; i < corpusList.size(); i++) {\n\t\t\t\t\tSystem.out.println(\"Corpus id is \" + i);\n\t\t\t\t\tElement topic = corpusList.get(i);\n\t\t\t\t\tList<Element> docSets = topic.getChildren();\n\t\t\t\t\tElement docSetA = docSets.get(1);\n\t\t\t\t\tString corpusName = docSetA.getAttributeValue(\"id\");\n\t\t\t\t\tAbstractiveGenerator sg = new AbstractiveGenerator();\n\t\t\t\t\tsg.DCNN_Spe_C_LGC_C_110(inputCorpusDir + \"/\" +topic.getAttributeValue(\"id\"), outputSummaryDir, corpusName, numberCluster, proxy);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tHashMap map_1 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-1\");\n\t\t\t\tDouble met_1 = (Double) map_1.get(\"ROUGE-1\");\n\t\t\t\tSystem.out.println(\"ROUGE-1\" + \" \" + numberCluster + \" \" + met_1);\n\t\t\t\taverageMetric_1 += met_1;\n\n\t\t\t\tHashMap map_2 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-2\");\n\t\t\t\tDouble met_2 = (Double) map_2.get(\"ROUGE-2\");\n\t\t\t\tSystem.out.println(\"ROUGE-2\" + \" \" + numberCluster + \" \" + met_2);\n\t\t\t\taverageMetric_2 += met_2;\n\n\t\t\t\tHashMap map_SU4 = RougeEvaluationWrapper.runRough(confFilePath,\n\t\t\t\t\t\t\"ROUGE-SU4\");\n\t\t\t\tDouble met_SU4 = (Double) map_SU4.get(\"ROUGE-SU4\");\n\t\t\t\tSystem.out.println(\"ROUGE-SU4\" + \" \" + numberCluster + \" \" + met_SU4);\n\t\t\t\taverageMetric_SU4 += met_SU4;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_C_LGC_C_110.println(\"Average ROUGE-1\" + \" \" + numberCluster + \" : \" + averageMetric_1\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\t\t\tout_DCNN_Spe_C_LGC_C_110.println(\"Average ROUGE-2\" + \" \" + numberCluster + \" : \" + averageMetric_2\n\t\t\t\t\t/ iterTime);\n\n\t\t\tSystem.out.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \"\n\t\t\t\t\t+ averageMetric_SU4 / iterTime);\n\t\t\tout_DCNN_Spe_C_LGC_C_110.println(\"Average ROUGE-SU4\" + \" \" + numberCluster + \" : \" + averageMetric_SU4\n\t\t\t\t\t/ iterTime);\n\t\t}\n\t\tout_DCNN_Spe_C_LGC_C_110.close();\n\t\t\n\t\t\n\t\tproxy.disconnect();\n\t}", "@Test\n public void testTrain_RegressionDataSet() {\n System.out.println(\"train\");\n RegressionDataSet trainSet = FixedProblems.getSimpleRegression1(150, new Random(2));\n RegressionDataSet testSet = FixedProblems.getSimpleRegression1(50, new Random(3));\n\n for (boolean modification1 : new boolean[] { true, false })\n for (SupportVectorLearner.CacheMode cacheMode : SupportVectorLearner.CacheMode.values()) {\n PlattSMO smo = new PlattSMO(new RBFKernel(0.5));\n smo.setCacheMode(cacheMode);\n smo.setC(1);\n smo.setEpsilon(0.1);\n smo.setModificationOne(modification1);\n smo.train(trainSet);\n\n double errors = 0;\n for (int i = 0; i < testSet.size(); i++)\n errors += Math.pow(testSet.getTargetValue(i) - smo.regress(testSet.getDataPoint(i)), 2);\n assertTrue(errors / testSet.size() < 1);\n }\n }", "public static void main(String[] args) throws Exception{\n\t\tString filepath = \"data/sorce.txt\";\n\t\tDataModel model = new FileDataModel(new File(filepath));\n\t\tRecommenderIRStatsEvaluator evaluator = new GenericRecommenderIRStatsEvaluator();\n\t\tRecommenderBuilder builder = new RecommenderBuilder(){\n\t\t\t@Override\n\t\t\tpublic Recommender buildRecommender(DataModel model)\n\t\t\t\t\tthrows TasteException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tUserSimilarity similarity = new EuclideanDistanceSimilarity(model);\n\t\t\t\tUserNeighborhood neighbor = new NearestNUserNeighborhood(80, similarity, model);\n\t\t\t\treturn \n\t\t\t\tnew GenericUserBasedRecommender(model, neighbor, similarity);\n//\t\t\t\tnew SlopeOneRecommender(model);\n\t\t\t\t}\n\t\t\t};\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\tIRStatistics stats = evaluator.evaluate(builder, null, model, null, 20,GenericRecommenderIRStatsEvaluator.CHOOSE_THRESHOLD,1.0);\n\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\tdouble precision = stats.getPrecision();\n\t\t\tdouble recall = stats.getRecall();\n\t\t\tdouble accuracy = 2*precision*recall/(precision+recall);\n\t\t\tSystem.out.println(precision+\"---\"+recall+\"---\"+new DecimalFormat(\"0.000000\").format(accuracy));\n\t\t\tSystem.out.println(\"程序运行时间:\"+(endTime-startTime)+\"ms\");\n\t\t}", "private void trainFeatures() throws Exception\n\t{\n\t\tdbiterator.setDataSource(DBInstanceIterator.DBSource.FEATURE);\n\t\tSystem.out.println(\"Starting reading Feature Trainingset ..\");\n\t\tPipe serialpipe = getFeaturePipe();\n\t\tInstanceList feature_instances = new InstanceList(serialpipe);\n\t\tSystem.out.println(\"Preprocessing on Feature Trainingset ..\");\n\t\tfeature_instances.addThruPipe(dbiterator);\n\t\tSystem.out.println(\"Feature Training set : \" + feature_instances.size());\n\t\tSystem.out.println(\"Saving preprocessed data ..\");\n\t\tsaveinstances(feature_instances, Train + \"F.bin\");\n\t\tSystem.out.println(\"Saving Features data ..\");\n\t\tfeature_instances.getDataAlphabet().dump(new PrintWriter(new File(Attributes + \"feature.dat\")));\n\t\tClassifierTrainer trainer = new NaiveBayesTrainer();\n\t\tSystem.out.println(\"NaiveBayes Starts Training on Feature training set ..\");\n\t\tClassifier classifier = trainer.train(feature_instances);\n\t\tSystem.out.println(\"Targets labels : \\t\"+classifier.getLabelAlphabet());\n\t\tSystem.out.println(\"Saving Naive Bayes Classifier ..\");\n\t\tsaveModel(classifier, Feature_Train);\n\t\tSystem.out.println(\"Feature classifier saved to : \" + Feature_Train);\n\t}", "@SuppressWarnings({})\n\tpublic static Instances create_weka_dataset(int includeViolationsNumber, boolean is_for_read) {\n\n\t\tFastVector<Attribute> attributes_vector = new FastVector<Attribute>(4);\n\n\t\tAttribute clock_attribute = new Attribute(\"clock\");\n\n\t\tAttribute volume_count_attribute = new Attribute(\"volume_count\");\n\n\t\tFastVector<String> fvClassVal = new FastVector<String>(4);\n\n\t\tfvClassVal.addElement(\"v1\");\n\t\tfvClassVal.addElement(\"v2\");\n\t\tfvClassVal.addElement(\"v3\");\n\t\tfvClassVal.addElement(\"v4\");\n\n\t\tAttribute requested_read_or_write_iops_total= null;\n\t\tAttribute read_violation_GroupAttribute = null;\n\t\tAttribute write_violation_GroupAttribute = null;\n\t\t\n\t\tif(is_for_read){\n\t\t\tread_violation_GroupAttribute = new Attribute(\"read_vio_group\", fvClassVal);\n\t\t\tattributes_vector.addElement(read_violation_GroupAttribute); // 2\n\t\t\t\n\t\t\trequested_read_or_write_iops_total = new Attribute(\"read_req_total_iops\");\n\t\t}\n\t\telse{\n\t\t\twrite_violation_GroupAttribute = new Attribute(\"write_vio_group\", fvClassVal);\n\t\t\tattributes_vector.addElement(write_violation_GroupAttribute);\n\t\t\t\n\t\t\trequested_read_or_write_iops_total = new Attribute(\"write_req_total_iops\");\n\t\t}\n\n\t\tattributes_vector.addElement(clock_attribute); // 0\n\n\t\tattributes_vector.addElement(volume_count_attribute); // 1\n\n\t\tattributes_vector.addElement(requested_read_or_write_iops_total); // 3\n\n\t\tAttribute violationNumberAttribute = null;\n\n//\t\tAttribute clockModAttribute = null;\n\n//\t\tif (includeViolationsNumber > 0) {\n//\n//\t\t\tviolationNumberAttribute = new Attribute(\"vioNum\");\n//\n//\t\t\tattributesVector.addElement(violationNumberAttribute);\n//\n//\t\t\tclockModAttribute = new Attribute(\"clockMod\");\n//\n//\t\t\tattributesVector.addElement(clockModAttribute);\n//\t\t}\n\n\t\tInstances trainingInstances = new Instances(\"Rel\", attributes_vector, 10);\n\t\t\n\t\tif(is_for_read){\n\t\t\ttrainingInstances.setClass(read_violation_GroupAttribute);\n\t\t}\n\t\telse{\n\t\t\ttrainingInstances.setClass(write_violation_GroupAttribute);\n\t\t}\n\n//\t\twekaDataset = trainingInstances;\n\n\t\treturn trainingInstances;\n\t}", "public static void main(String args[]){\n\t\t//parameters that can be modified\n\t\tint topicNum=100;\n\t\tString sourceID=\"1864252027/\";\n\t\tint subnetworkSize=1100;\n\t\tString dir=\"sampleTest/\"+sourceID+subnetworkSize+\"/\";\n\t\tString fileName=\"ldaInput.txt\";\n\t\tint iterationNum=1000;\n\t\t\n\t\t//read training data from file\n\t\tSystem.out.println(\"loading files\");\n\t\tGraph network=GraphOperator.getFromFile(dir+\"sample.network\");\n\t\tHashMap<String,Message>trainingStatusMap=MessageListOperator.readMessageFromFile(dir+\"trainingSet.status\");\n\t\tHashMap<String,Message>commentMap=MessageListOperator.readMessageFromFile(dir+\"samplePreDoc.comment\");\n\t\t\n\t\tDocumentAssign.relateMessageToNetwork(network,trainingStatusMap,commentMap);\n\t\tDocumentAssign.optimizedAssign(network,dir,fileName);\n\t\t\n\t\tSystem.out.println(\"Training\");\t\n\t\t//training with Optimized assignment\n\t\tLDA_InfluMax.estimationFromScratch(50/((double)topicNum),0.01,topicNum,\n\t\t\t\titerationNum,iterationNum/2,dir,fileName,50);\n\t}", "@Test\n public void testOneUserTrecevalStrategyMultipleRelevance() {\n DataModelIF<Long, Long> test = DataModelFactory.getDefaultModel();\n DataModelIF<Long, Long> predictions = DataModelFactory.getDefaultModel();\n test.addPreference(1L, 2L, 0.0);\n test.addPreference(1L, 3L, 1.0);\n test.addPreference(1L, 4L, 2.0);\n predictions.addPreference(1L, 1L, 3.0);\n predictions.addPreference(1L, 2L, 4.0);\n predictions.addPreference(1L, 3L, 5.0);\n predictions.addPreference(1L, 4L, 1.0);\n\n Precision<Long, Long> precision = new Precision<Long, Long>(predictions, test, 1.0, new int[]{1, 2, 3, 4, 5});\n\n precision.compute();\n\n assertEquals(0.5, precision.getValue(), 0.001);\n assertEquals(1.0, precision.getValueAt(1), 0.001);\n assertEquals(0.5, precision.getValueAt(2), 0.001);\n assertEquals(0.3333, precision.getValueAt(3), 0.001);\n assertEquals(0.5, precision.getValueAt(4), 0.001);\n assertEquals(0.4, precision.getValueAt(5), 0.001);\n\n Map<Long, Double> precisionPerUser = precision.getValuePerUser();\n for (Map.Entry<Long, Double> e : precisionPerUser.entrySet()) {\n long user = e.getKey();\n double value = e.getValue();\n assertEquals(0.5, value, 0.001);\n }\n }", "@Override\r\n\tpublic void buildClassifier(Instances data) throws Exception {\n\r\n\t}", "public abstract List<BindingRecord> predict(Allele allele, Collection<Peptide> peptides);", "public void saveTrainingDataToFileHybridSampling1() throws Exception {\n NGramTokenizer tokenizer = new NGramTokenizer();\r\n tokenizer.setNGramMinSize(1);\r\n tokenizer.setNGramMaxSize(1);\r\n tokenizer.setDelimiters(\"\\\\W\");\r\n\r\n //set stemmer - set english stemmer\r\n SnowballStemmer stemmer = new SnowballStemmer();\r\n stemmer.setStemmer(\"english\");\r\n\r\n //set lemmatizer\r\n StanfordCoreNLPLemmatizer scnlpl = new StanfordCoreNLPLemmatizer();\r\n\r\n //create new filter for vector transformation\r\n StringToWordVector filter = new StringToWordVector();\r\n filter.setLowerCaseTokens(true);\r\n filter.setOutputWordCounts(true);\r\n filter.setTFTransform(true);\r\n filter.setIDFTransform(true);\r\n filter.setStopwords(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\StopWordsR2.txt\")); // stop word removal given in research paper\r\n filter.setTokenizer(tokenizer);\r\n filter.setStemmer(scnlpl);\r\n\r\n System.out.println(\"Stemmer Name- \" + filter.getStemmer());\r\n\r\n InstanceQuery query = new InstanceQuery();\r\n query.setUsername(\"root\");\r\n query.setPassword(\"\");\r\n\r\n int numberOfPapers = 5;\r\n Instances[] otherArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'other'\");\r\n otherArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='other'\");\r\n otherArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='other'\");\r\n otherArticles[2] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'other'\");\r\n otherArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'other'\");\r\n otherArticles[4] = query.retrieveInstances();\r\n\r\n Instances[] crimeArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'crime'\");\r\n crimeArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='crime'\");\r\n crimeArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='crime'\");\r\n crimeArticles[2] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'crime'\");\r\n crimeArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'crime'\");\r\n crimeArticles[4] = query.retrieveInstances();\r\n\r\n FastVector attributeList = new FastVector(2);\r\n Attribute a1 = new Attribute(\"text\", (FastVector) null);\r\n FastVector classVal = new FastVector();\r\n classVal.addElement(\"crime\");\r\n classVal.addElement(\"other\");\r\n Attribute c = new Attribute(\"@@class@@\", classVal);\r\n //add class attribute and news text\r\n attributeList.addElement(a1);\r\n attributeList.addElement(c);\r\n Instances trainingData = new Instances(\"TrainingNews\", attributeList, 0);\r\n trainingData.setClassIndex(1);\r\n\r\n //up sampling using SMOTE\r\n int crimeArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < crimeArticles[i].numInstances(); j++) {\r\n\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, crimeArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, crimeArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n crimeArticlesCount++;\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n\r\n System.out.println(\"Total Number of Crime Instances: \" + crimeArticlesCount);\r\n\r\n //downsampling using ?? \r\n int otherArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < otherArticles[i].numInstances(); j++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, otherArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, otherArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n otherArticlesCount++;\r\n\r\n if (otherArticlesCount == 4872) {\r\n break;\r\n }\r\n }\r\n if (otherArticlesCount == 4872) {\r\n break;\r\n }\r\n }\r\n System.out.println(\"Total Number of Other Instances: \" + otherArticlesCount);\r\n System.out.println(\"Total num of instances= \" + trainingData.numInstances());\r\n\r\n // apply the StringToWordVector filter\r\n filter.setInputFormat(trainingData);\r\n Instances dataFiltered = Filter.useFilter(trainingData, filter);\r\n System.out.println(\"Number of Attributes after stop words removal- \" + dataFiltered.numAttributes());\r\n System.out.println(\"\\n\\nFiltered data:\\n\\n\" + dataFiltered);\r\n\r\n /**\r\n * Resamples a dataset by applying the Synthetic Minority Oversampling\r\n * TEchnique (SMOTE)\r\n * http://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node6.html\r\n * http://weka.sourceforge.net/doc.packages/SMOTE/weka/filters/supervised/instance/SMOTE.html \r\n *\r\n */\r\n SMOTE s = new SMOTE();\r\n s.setInputFormat(dataFiltered);\r\n // Specifies percentage of SMOTE instances to create.\r\n s.setPercentage(300.0);//464\r\n Instances dataBalanced = Filter.useFilter(dataFiltered, s);\r\n\r\n Random r = new Random();\r\n dataBalanced.randomize(r);\r\n\r\n ArffSaver saver = new ArffSaver();\r\n saver.setInstances(dataBalanced);\r\n saver.setFile(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataHybridRandom.arff\"));\r\n saver.writeBatch();\r\n }", "public void train() {\n\t\tfor (Instance ins : arrTrainInstances) {\n\t\t\tif (ins.scorePmi_E1E2 > largestPMI)\n\t\t\t\tlargestPMI = ins.scorePmi_E1E2;\n\t\t}\n\t\tSystem.out.println(\"Largest PMI: \" + largestPMI);\n\n\t\tfor (Instance ins : arrTrainInstances) {\n\t\t\tins.scorePmi_E1E2 = ins.scorePmi_E1E2 / largestPMI;\n\t\t}\n\n\t\tfor (Instance ins : arrTestInstances) {\n\t\t\tins.scorePmi_E1E2 = ins.scorePmi_E1E2 / largestPMI;\n\t\t}\n\n\t\tint sizeD0 = arrD0.size();\n\t\tint sizeD1 = arrD1.size();\n\t\tint sizeD2 = arrD2.size();\n\t\tint sizeD3 = arrD3.size();\n\n\t\tint sizeMin = Math.min(sizeD0, Math.min(sizeD1, Math\n\t\t\t\t.min(sizeD2, sizeD3)));\n\t\tSystem.out.println(\"sizeMin=\" + sizeMin);\n\n\t\tint n = instanceNums.length;\n\n\t\tboolean flag = false;\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint k = instanceNums[i];\n\n\t\t\tif (k > sizeMin) {\n\t\t\t\tk = sizeMin;\n\t\t\t\tinstanceNums[i] = k;\n\t\t\t\tflag = true;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\\nk=\" + k);\n\n\t\t\tArrayList<Instance> arrSub0 = getInstances(arrD0, k);\n\t\t\tArrayList<Instance> arrSub1 = getInstances(arrD1, k);\n\t\t\tArrayList<Instance> arrSub2 = getInstances(arrD2, k);\n\t\t\tArrayList<Instance> arrSub3 = getInstances(arrD3, k);\n\n\t\t\tArrayList<Instance> arrTrains = new ArrayList<Instance>();\n\t\t\tarrTrains.addAll(arrSub0);\n\t\t\tarrTrains.addAll(arrSub1);\n\t\t\tarrTrains.addAll(arrSub2);\n\t\t\tarrTrains.addAll(arrSub3);\n\t\t\tCollections.shuffle(arrTrains);\n\n\t\t\tSystem.out.println(\"Training size: \" + arrTrains.size());\n\n\t\t\ttrain(arrTrains);\n\n\t\t\tdouble acc = test();\n\t\t\tacc = test();\n\n\t\t\taccuracies[i] = acc;\n\n\t\t\tcount++;\n\n\t\t\tif (flag == true)\n\t\t\t\tbreak;\n\n\t\t}\n\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tSystem.out.print(\" | \" + \"K=\" + instanceNums[i]);\n\t\t}\n\t\tSystem.out.println();\n\n\t\tfor (int i = 0; i < count; i++) {\n\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.####\");\n\t\t\tString res = df.format(accuracies[i]);\n\t\t\tSystem.out.print(\" | \" + res);\n\t\t}\n\t\tSystem.out.println();\n\t}", "@Test\n public void test23() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n SerializedClassifier serializedClassifier0 = new SerializedClassifier();\n Object[] objectArray0 = new Object[25];\n double[] doubleArray0 = evaluation0.evaluateModel((Classifier) serializedClassifier0, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "public void setSamples(List<Sample> samples)\n {\n this.samples = samples;\n }", "public BhiFeasibilityStudyExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}", "private DataSet nextDataSet(int num) throws IOException {\n\t\tList<String> reviews = new ArrayList<String>();\n\t\tboolean[] positive = new boolean[num];\n\t\tfor( int i=0; i<num && cursor<totalExamples(); i++ ){\n\t\t\tif(cursor % 2 == 0){\n\t\t\t\t//Load positive review\n\t\t\t\tint posReviewNumber = cursor / 2;\n\t\t\t\tif(posReviewNumber<positiveFiles.size()){\n\t\t\t\t\tString review = positiveFiles.get(posReviewNumber).trim();\n\t\t\t\t\treviews.add(review);\n\t\t\t\t\tpositive[i] = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t//Load negative review\n\t\t\t\tint negReviewNumber = cursor / 2;\t\t\n\t\t\t\tif(negReviewNumber<negativeFiles.size()){\n\t\t\t\t\tString review = negativeFiles.get(negReviewNumber).trim();\n\t\t\t\t\treviews.add(review);\n\t\t\t\t\tpositive[i] = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcursor++;\n\t\t}\n\n\t\t//Second: tokenize reviews and filter out unknown words\n\t\tList<List<String>> allTokens = new ArrayList<List<String>>();\n\t\tint maxLength = 0;\n\n\t\tfor(String s : reviews){\n\t\t\tif(!tagMap.containsKey(s)){\n\t\t\t\tList<TaggedWord> tagText = StanfordNLPUtil.getTagText(s);\n\t\t\t\ttagMap.put(s, tagText);\t\t\t\t\t\n\t\t\t}\n\t\t\tList<TaggedWord> tokens = tagMap.get(s);\n\n\t\t\tList<String> tokensFiltered = new ArrayList<>();\n\t\t\tfor(TaggedWord t : tokens){\n\t\t\t\tif(wordVectors.hasWord(t.word().toLowerCase())) {\n\t\t\t\t\ttokensFiltered.add(t.word().toLowerCase().trim());\n\t\t\t\t}\n\t\t\t}\n\t\t\tallTokens.add(tokensFiltered);\n\t\t\tmaxLength = Math.max(maxLength, tokensFiltered.size());\n\t\t}\n\t\t//If longest review exceeds 'truncateLength': only take the first 'truncateLength' words\n\t\t//if(maxLength > truncateLength) \n\t\tmaxLength = truncateLength;\n\n\t\t//Create data for training\n\t\t//Here: we have reviews.size() examples of varying lengths\n\t\t//\t\tINDArray features = Nd4j.create(reviews.size(), vectorSize, maxLength);\n\t\tINDArray features = Nd4j.create(reviews.size(), maxLength * vectorSize);\n\n\t\t//\t\tINDArray feature = Nd4j.create(reviews.size(), maxLength);\n\t\t//\t\tint rj = feature.rows();\n\n\t\tINDArray labels = Nd4j.create(reviews.size(), 2); //Two labels: positive or negative\n\t\t//Because we are dealing with reviews of different lengths and only one output at the final time step: use padding arrays\n\t\t//Mask arrays contain 1 if data is present at that time step for that example, or 0 if data is just padding\n\t\t//\tINDArray featuresMask =\n\t\t//\tNd4j.zeros(reviews.size(), maxLength);\n\t\t//INDArray labelsMask = Nd4j.zeros(reviews.size(), maxLength);\n\n\t\t//int[] temp = new int[2];\n\t\tfor( int i=0; i<reviews.size(); i++ ){\n\t\t\tList<String> tokens = allTokens.get(i);\n\t\t\t//temp[0] = i;\n\t\t\tINDArray overallVector = null;\n\n\t\t\t//Get word vectors for each word in review, and put them in the training data\n\t\t\tfor( int j=0; j<tokens.size() && j<maxLength; j++ ){\n\t\t\t\tString token = tokens.get(j).trim();\n\t\t\t\tINDArray vector = wordVectors.getWordVectorMatrix(token);\n\n\t\t\t\tif(overallVector == null){\n\t\t\t\t\toverallVector = vector;\n\t\t\t\t} else {\n\t\t\t\t\toverallVector = Nd4j.concat(1, overallVector, vector);\t\n\t\t\t\t}\n\n\t\t\t\t//\t\tint rr = vector.rows();\n\t\t\t\t//\tint cc = vector.columns();\n\n\t\t\t\t//temp[1] = j;\n\t\t\t\t//featuresMask.putScalar(temp, 1.0); //Word is present (not padding) for this example + time step -> 1.0 in features mask\n\t\t\t}\n\t\t\tif(overallVector==null){\n\t\t\t\toverallVector = Nd4j.zeros(maxLength * vectorSize);\n\t\t\t}\t\t\t\n\t\t\tint columns = overallVector.columns();\n\t\t\tif(columns!=maxLength * vectorSize){\n\t\t\t\tint diff = (maxLength * vectorSize) - columns;\n\t\t\t\tINDArray zeros = Nd4j.zeros(diff);\n\t\t\t\toverallVector = Nd4j.concat(1, overallVector, zeros);\t\t\t\t\n\t\t\t}\n\t\t\tfeatures.putRow(i, overallVector);\n\t\t//\tSystem.out.println();\n\t\t\t//int rows = features.rows();\n\t\t\t//int columns = features.columns();\n\n\t\t\tint idx = (positive[i] ? 0 : 1);\n\n\t\t\t//labels.putScalar(new int[]{i}, idx); //Set label: [0,1] for negative, [1,0] for positive\n\t\t\tdouble[] label = null;\n\n\t\t\tif(idx == 0){\n\t\t\t\tlabel = new double[2];\n\t\t\t\tlabel[0] = 0;\n\t\t\t\tlabel[1] = 1;\n\t\t\t} else if(idx == 1) {\n\t\t\t\tlabel = new double[2];\n\t\t\t\tlabel[0] = 1;\n\t\t\t\tlabel[1] = 0;\t\t\t\t\n\t\t\t}\n\t\t\tINDArray labInd = Nd4j.create(label);\n\t\t\tlabels.putRow(i, labInd);\n\t\t\t//labelsMask.putScalar(new int[]{i,lastIdx-1},1.0); //Specify that an output exists at the final time step for this example\n\t\t}\n\n\t\treturn new DataSet(features,labels);\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tfinal int K = 1;\n\t\tSystem.out.println(\"Reading raw data...\");\n\t\tList <List<Float>> data = CsvReader.read(\"src/mypackage/abalone.data.csv\");\n\t\t\n\t\t//choose training set and test set\n\t\tRandomNumberGenerator random = new RandomNumberGenerator(data.size());\n\t\tint nRemaining = data.size(); // size of data\n\t\tint nNeeded = nRemaining / 10; // number of sample needed\n\t\t\t\n\t\trandom.algorithm(nNeeded, nRemaining); \n\t\tdouble [] chosenData = random.getData(); //get the result\n\t\t\t\t\n\t\t//split the data into training and test set\n\t\tList<List<Float>> training = new ArrayList();\n\t\tList<List<Float>> test = new ArrayList();\n\t\t\t\t\n\t\tfor(int i = 0; i < data.size(); i++){ // iterate through the dataset\n\t\t\t//String[] currentData = (String[])data.get(i);\n\t\t\tif(chosenData[i] != 0)\n\t\t\t\ttraining.add(data.get(i));\n\t\t\telse\n\t\t\t\ttest.add(data.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Finished choosing training...\");\n\t\t\t\n\t\tfloat[][] trainingMatrix = UtilFunctions.listToMatrix(training);\n\t\tfloat[][] testMatrix = UtilFunctions.listToMatrix(test);\n\t\t\t\t\n\t\tdouble[][] trainingMatrixDouble = new double[trainingMatrix.length] [trainingMatrix[0].length];\n\t\t\n\t\tfor(int i = 0; i < trainingMatrix.length; i++){\n\t\t\ttrainingMatrixDouble[i] = floatToDouble(trainingMatrix[i]);\n\t\t}\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t//do z-scaling of the training set\n\t\tdouble [] meanTrain = UtilFunctions.getMean(trainingMatrixDouble); //store the mean until column n-1\n\t\tdouble [] sdTrain = UtilFunctions.getSD(trainingMatrixDouble); //store the SD until n-1\n\t\tdouble [] [] normalMatrix = UtilFunctions.normalizeMatrix(trainingMatrixDouble);\n\t\t\t\t\n\t\tfor(int i = 0; i < trainingMatrix.length; i++){\n\t\t\ttrainingMatrix[i] = doubleToFloat(normalMatrix[i]);\n\t\t}\t\n\t\t\n\t\ttraining.clear();\n\t\tfor(int i = 0; i < trainingMatrix.length; i++){\n\t\t\tList<Float> temp = new ArrayList();\n\t\t\tfor(int j = 0; j < trainingMatrix[i].length; j++){\n\t\t\t\ttemp.add(trainingMatrix[i][j]);\n\t\t\t}\n\t\t\ttraining.add(temp);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Done z-scaling...\");\n\t\t\n\t\tKMeans kmeans = new KMeans(training, K); // create a KMeans object\n\t\t\n\t\tSystem.out.println(\"Done making Kmeans object\");\n\t\t\n\t\tkmeans.executeKMeans(); // execute the algorithm\n\t\t\n\t\tSystem.out.println(\"Done executing K-means...\");\n\t\t\n\t\tSystem.out.println(\"K used is: \" + K);\n\t\t\n\t\tList<Centroid> clusters = kmeans.getClusters(); //get the resulting centroid\n\t\tfor(int i = 0; i < clusters.size(); i++){\n\t\t\tSystem.out.println(\"Centoid ID: \" + clusters.get(i).getID());\n\t\t\tSystem.out.println(clusters.get(i).getCoordinate().toString());\n\t\t}\t\n\t\t\n\t\tdouble wcss = 0;\n\t\t\n\t\t//calculate the mean and standard deviation of each cluster\n\t\tfor(int i = 0; i < clusters.size(); i++){\n\t\t\tCentroid cluster = clusters.get(i);\n\t\t\tdouble[] mean = UtilFunctions.getMean(cluster.makeDoubleMatrix());\n\t\t\t\n\t\t\tdouble[] SD = UtilFunctions.getSD(cluster.makeDoubleMatrix());\n\t\t\t\n\t\t\tSystem.out.println(\"Centroid ID: \" + cluster.getID());\n\t\t\tSystem.out.print(\"Mean: \");\n\t\t\tfor(int j = 0; j < mean.length; j++){\n\t\t\t\tSystem.out.print(mean[j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.print(\"Standard Deviation: \");\n\t\t\tfor(int j = 0; j < SD.length; j++){\n\t\t\t\tSystem.out.print(SD[j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\tSystem.out.println(\"\\nThe WCSS of this run is: \" + kmeans.getWCSS());\t\n\t\t\n\t\t\n\t\t// run linear regression K times\n\t\tdouble sum = 0;\n\t\t\n\t\tfor (int i = 0; i < K; i++){\n\t\t\t// Y = age of abalone = clusters.get(i).getMemberSize() x 1 matrix (last column of data)\n\t\t\t// X = clusters.get(i).getPointsMember()\n\t\t\t// solves for beta for each cluster\n\t\t\t// getCoordinate() returns List <Float>\n\t\t\t\n\t\t\t// X_Train\n\t\t\tPoint tempPoint = (Point) clusters.get(i).getPointsMember().get(0);\n\t\t\tfloat[][] xFloat = new float [clusters.get(i).getMemberSize()] [tempPoint.getCoordinate().size()];\n\t\t\tdouble[][] xDouble = new double [clusters.get(i).getMemberSize()] [tempPoint.getCoordinate().size()];\n\t\t\t\n\t\t\tfor(int j = 0; j < clusters.get(i).getMemberSize(); j++){\n\t\t\t\tPoint p = (Point) clusters.get(i).getPointsMember().get(j);\n\t\t\t\t\n\t\t\t\tfor(int k = 0; k < tempPoint.getCoordinate().size() - 1; k++){\n\t\t\t\t\txFloat[j][k] = (float) p.getCoordinate().get(k);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j = 0; j < xFloat.length; j++){\n\t\t\t\txDouble[j] = floatToDouble(xFloat[j]);\n\t\t\t}\n\t\t\t\n\t\t\t// Y_Train\n\t\t\tdouble[][] yDouble = new double [clusters.get(i).getMemberSize()] [1];\n\t\t\t\n\t\t\tfor(int j = 0; j < clusters.get(i).getMemberSize(); j++){\n\t\t\t\tyDouble[j][0] = xDouble[j][xDouble[0].length-1];\n\t\t\t}\n\t\t\n\t\t\tSimpleMatrix xTrain = new SimpleMatrix(xDouble);\n\t\t\tSimpleMatrix yTrain = new SimpleMatrix(yDouble);\n\n\t\t\t// xTrain beta = yTrain -> beta = pinv(xTrain) yTrain\n\t\t\tSimpleMatrix beta = (xTrain.pseudoInverse()).mult(yTrain);\n\t\t\t//System.out.println(beta);\n\t\t\t\n\t\t\t// X_Test & Y_Test\n//\t\t\tSimpleMatrix xTest = new SimpleMatrix(xtDouble);\n//\t\t\tSimpleMatrix yTest = new SimpleMatrix(ytDouble);\n\t\t\t\n\t\t\t//sum += mean((xTest.dot(beta) - yTest));\t\n\t\t}\n\t\t\n\t\t// RMSE \n\t\t// np.sqrt(np.mean(((np.dot(X_test, beta) - Y_test) + ... )** 2))\n\t\tdouble rmse = Math.sqrt((1/K)* Math.pow(sum,2));\n\t\tSystem.out.println(\"RMSE: \" + (2.171512325471245 - (K*0.013)));\n\t}", "public static void main(String[] args) throws Exception {\n\t\tint i;\r\n\t\tint [][]preci_recall = new int [5][6]; \r\n\r\n\t\tNGRAM ngram = new NGRAM();\r\n\t\t\r\n\t\tfor(i=0; i<5; i++) {\r\n\t\t\t\r\n\t\t\tSystem.out.println((i+1) + \" th FOLD IS A TEST SET\");\r\n\t\t\t\r\n\t\t\tdouble[][] test_ngram_features = ngram.feature(i,1);\r\n\t\t\tdouble[][] train_ngram_features = ngram.feature(i,0);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"NGRAM FEATURES...OK\");\r\n\t\r\n//\t\t\t\r\n//\t\t\tLIWC liwc = new LIWC();\r\n//\t\t\t\r\n//\t\t\tdouble[][] test_liwc_features = liwc.feature(i,1,test_ngram_features.length);\r\n//\t\t\tdouble[][] train_liwc_features = liwc.feature(i,0,train_ngram_features.length);\r\n//\r\n//\t\t\tSystem.out.println(\"LIWC FEATURES..OK\");\r\n//\t\t\t\r\n//\t\t\tCOMBINE combine = new COMBINE();\r\n//\t\t\tdouble[][] train_features = combine.sum(train_liwc_features,train_ngram_features);\r\n//\t\t\tdouble[][] test_features = combine.sum(test_liwc_features,test_ngram_features);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"COMBINE...OK\");\r\n\t\t\r\n\t\t\tSVMLIGHT svmlight = new SVMLIGHT();\r\n\t\t\tpreci_recall[i]=svmlight.calcc(train_ngram_features, test_ngram_features);\r\n\r\n\t\t}\r\n\t\t\r\n//\t 0 : truthful TP\r\n//\t 1 : truthful TP+FP\r\n//\t 2 : truthful TP+FN\r\n//\t 3 : deceptive TP\r\n//\t 4 : deceptive TP+FP\r\n//\t 5 : deceptive TP+FN\r\n\t\t\r\n\t\tint truthful_TP_sum=0,truthful_TPFP_sum=0,truthful_TPFN_sum=0;\r\n\t\tint deceptive_TP_sum=0,deceptive_TPFP_sum=0,deceptive_TPFN_sum=0;\r\n\t\t\r\n\t\tfor(i=0;i<5;i++) {\r\n\t\t\ttruthful_TP_sum+=preci_recall[i][0];\r\n\t\t\ttruthful_TPFP_sum+=preci_recall[i][1];\r\n\t\t\ttruthful_TPFN_sum+=preci_recall[i][2];\r\n\t\t\t\r\n\t\t\tdeceptive_TP_sum+=preci_recall[i][3];\r\n\t\t\tdeceptive_TPFP_sum+=preci_recall[i][4];\r\n\t\t\tdeceptive_TPFN_sum+=preci_recall[i][5];\r\n\t\t}\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"\\n\\nTRUTHFUL_TP_SUM : \" + truthful_TP_sum);\r\n\t\tSystem.out.println(\"TRUTHFUL_TPFP_SUM : \" + truthful_TPFP_sum);\r\n\t\tSystem.out.println(\"TRUTHFUL_TPFN_SUM : \" + truthful_TPFN_sum);\r\n\t\t\r\n\t\tSystem.out.println(\"DECEPTIVE_TP_SUM : \" + deceptive_TP_sum);\r\n\t\tSystem.out.println(\"DECEPTIVE_TPFP_SUM : \" + deceptive_TPFP_sum);\r\n\t\tSystem.out.println(\"DECEPTIVE_TPFN_SUM : \" + deceptive_TPFN_sum);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nTRUTHFUL PRECISION : \" + (double)(truthful_TP_sum)/(double)(truthful_TPFP_sum));\r\n\t\tSystem.out.println(\"TRUTHFUL RECALL : \" + (double)(truthful_TP_sum)/(double)(truthful_TPFN_sum));\r\n\t\t\r\n\t\tSystem.out.println(\"DECEPTIVE PRECISION : \" + (double)(deceptive_TP_sum)/(double)(deceptive_TPFP_sum));\r\n\t\tSystem.out.println(\"DECEPTIVE RECALL : \" + (double)(deceptive_TP_sum)/(double)(deceptive_TPFN_sum));\r\n\t\t\r\n\r\n\t}", "public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02-24 13:04:41.591 -0500\", hash_original_method = \"FA063F91D44E7D4042E286E05194EEE9\", hash_generated_method = \"669017D820CEDFE100C3C214E1FCE2C7\")\n \nstatic Instance createInstance(int sequenceType, int orientationType, Gesture gesture, String label) {\n float[] pts;\n Instance instance;\n if (sequenceType == GestureStore.SEQUENCE_SENSITIVE) {\n pts = temporalSampler(orientationType, gesture);\n instance = new Instance(gesture.getID(), pts, label);\n instance.normalize();\n } else {\n pts = spatialSampler(gesture);\n instance = new Instance(gesture.getID(), pts, label);\n }\n return instance;\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }" ]
[ "0.596132", "0.59104633", "0.58009225", "0.57836664", "0.5766458", "0.5729434", "0.57189023", "0.57059115", "0.5667132", "0.56449383", "0.5643181", "0.5631013", "0.5629635", "0.55468696", "0.5527917", "0.54962003", "0.5488519", "0.5479328", "0.5430268", "0.54282844", "0.54261255", "0.53555703", "0.53468734", "0.5340223", "0.53146875", "0.53073347", "0.5306756", "0.52957374", "0.52769", "0.5275862", "0.5257967", "0.525599", "0.5246995", "0.5235054", "0.5234923", "0.523459", "0.52289826", "0.52177435", "0.5216696", "0.52100813", "0.5210075", "0.52089584", "0.52083313", "0.519617", "0.5184597", "0.5184517", "0.5169739", "0.5166817", "0.51558405", "0.51429725", "0.5139141", "0.5131356", "0.512837", "0.511919", "0.510743", "0.5107163", "0.5093558", "0.5093271", "0.5087873", "0.50835747", "0.50810945", "0.5078841", "0.5071255", "0.50602186", "0.5058844", "0.5056862", "0.50492746", "0.5044663", "0.5038989", "0.50288695", "0.5019448", "0.5011974", "0.50089216", "0.5004985", "0.49934304", "0.4988426", "0.49787375", "0.49710253", "0.49672896", "0.49670026", "0.49637723", "0.4959821", "0.4959572", "0.4955147", "0.49500787", "0.49498615", "0.49396423", "0.49383873", "0.49383503", "0.49376717", "0.49368513", "0.49359617", "0.49341172", "0.4933855", "0.49288267", "0.49277794", "0.49237838", "0.49177226", "0.4915211", "0.49138868" ]
0.6646067
0
object of the Book class
public static void main(String[] args) { Book book0 = new Book("Ulysses", "James Joyce", 732); Book book0copy2 = new Book("Ulysses", "James Joyce", 732); Book book1 = new Book("Ender's Game", "Orson S. Card", 324); Book book3; //just creates unassigned reference Book[] lotr = new Book[3]; lotr[0] = new Book("The Fellowship of the Ring", "J.R.R. Tolkien", 432); lotr[1] = new Book("The Two Towers", "J.R.R. Tolkien", 322); lotr[2] = new Book("The Return of the King", "J.R.R. Tolkien", 490); book0.ripOutPage(); System.out.print(book0); //calls toString() object method book1.setAuthor("Orson Scott Card"); for(Book b : lotr) { System.out.print(b); } if (book0.isLong()) { System.out.println(book0.getTitle() + " is a long book."); } else { System.out.println(book0.getTitle() + " is a short book."); } System.out.printf("The title of %s by %s is %d characters long.%n", book0.getTitle(), book0.getAuthor(), book0.getTitleLength()); System.out.println(book0.equals(book0copy2)); System.out.println(book0.equals(book1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Book() {\n this.bookName = \"Five Point Someone\";\n this.bookAuthorName = \"Chetan Bhagat\";\n this.bookIsbnNumber = \"9788129104595\";\n\n }", "public Book() {}", "public Book getBook() {\n return book;\n }", "public Book() {\n }", "Book createBook();", "public Book() {\n\t\t// Default constructor\n\t}", "public Book getBook() \t\t{ return this.myBook; }", "public Book getBook() {\r\n\t\treturn b;\r\n\t}", "public Book getBook() {\n\t\treturn book; //changed BoOk to book\r\n\t}", "public BookAuthor(){}", "public BookList(){\n\n }", "@Override\n\tpublic Book getBook() {\n\t\t\n\t\tint isbn;\n\t\tString name;\n\t\tString publication;\n\t\tdouble price;\n\t\t\n\t\tScanner s1= new Scanner(System.in);\n\t\tSystem.out.println(\"enter ISBN: \");\n\t\tisbn=s1.nextInt();\n\t\tSystem.out.println(\"enter Name of the book: \");\n\t\tname=s1.next();\n\t\tSystem.out.println(\"enter Publication \");\n\t\tpublication=s1.next();\n\t\tSystem.out.println(\"enter price: \");\n\t\tprice=s1.nextDouble();\n\t\t\n\t\tBook b1=new Book(isbn, name, publication, price);\n\t\treturn b1;\n\t}", "private BookReader() {\r\n }", "void create(Book book);", "public BookInfoDO() {\n super();\n }", "public BookManager()\n { }", "public Book () {\n\t\tsuper ();\n\t\t_title = \"\";\n\t\t_text = \"\";\n\t\t_publisher = null;\n\t\t_oid = 0;\n\t\t_author = null;\n\t\t_Isbn = \"\";\n\t}", "@Override\r\n\tpublic Book getModel() {\n\t\treturn book;\r\n\t}", "public Library() {\n books = new Book[0];\n numBooks = 0;\n }", "private Book createBook() {\n Book book = null;\n\n try {\n\n //determine if fiction or non-fiction\n if (radFiction.isSelected()) {\n //fiction book\n book = new Fiction(Integer.parseInt(tfBookID.getText()));\n\n } else if (radNonFiction.isSelected()) {\n //non-fiction book\n book = new NonFiction(Integer.parseInt(tfBookID.getText()));\n\n } else {\n driver.errorMessageNormal(\"Please selecte fiction or non-fiction.\");\n }\n } catch (NumberFormatException nfe) {\n driver.errorMessageNormal(\"Please enter numbers only the Borrower ID and Book ID fields.\");\n }\n return book;\n }", "public String getBook() {\n\t\treturn book;\r\n\t}", "private BookReader() {\n\t}", "private static Book createFirstBookTest() {\n var book = new Book();\n book.setOriginalPriceNumber(1760);\n book.setDescription(\"52ヘルツのクジラとは―他の鯨が聞き取れない高い周波数で鳴く\");\n book.setCategory(\"トップページ > 本・コミック > 文芸 > 文芸(日本) > 現代小説 \");\n return book;\n }", "public Book() {\n\t\ttitle = null;\n\t\tauthor = null;\n\t}", "public void getBookDetails() {\n\t}", "public static void main(String[] args) {\n\t\tAuthor ar = new Author();\r\n\t\tBookdetails bk = new Bookdetails();\r\n\t\tbk.setName(\"Revolution 2020\");\r\n\t\tbk.setPrice(1000);\r\n\t\tbk.setQtyinstack(250);\r\n\t\tar.setName(\"Chetan Bhagat\");\r\n\t\tar.setEmail(\"[email protected]\");\r\n\t\tar.setGender('m');\r\n\t\tSystem.out.println(bk.getName()+\" \"+bk.getPrice()+\" \"+bk.getQtyinstack());\r\n\t\tSystem.out.println(ar.getName()+\" \"+ar.getEmail()+\" \"+ar.getGender()); \r\n}", "public Book()\n {\n title = null;\n author = null;\n }", "public Book create(String title,double price, Author author)\r\n {\r\n return new Book(title,price,author);\r\n }", "public BookConverter() {\r\n }", "public void setBook(Book book) {\n this.book = book;\n }", "@RequestMapping(value=\"/getbook\", method=RequestMethod.GET, produces = \"application/json\")\n\tpublic Book getBook() {\n\t\treturn new Book(\"1\", \"Marvel Comics\", \"Stanlee\", 200D, \"Awesome book\");\n\t}", "ListOfBooks(){\n \tlist = new LinkedList<Book>();\n }", "public BookingInfo() {\n }", "Book getLatestBook();", "public BookRecord() {\n super(Book.BOOK);\n }", "public Book(Integer id) {\n\t\tthis.id = id;\n\t}", "Book getBookById(Integer id);", "Book(String t, String a, String g){\n\t\ttitle = t;\n\t\tauthor = a;\n\t\tgenre = g;\n\t\ttags = new ArrayList <String>();\n\t}", "private BookContract() {}", "public BookResource() {\n }", "@Override\n\tpublic void addBook() {\n\t\t\n\t}", "public Library()\r\n\t{\r\n\t\titems = new ArrayList<Book>();\r\n\t}", "public BookRecord(String NameOfTheBook, String NameofWriter, int isbnNumber, double booksCost) \r\n\r\n{ \r\n\r\nthis.NameOfTheBook = NameOfTheBook; \r\n\r\nthis.NameofWriter = NameofWriter; \r\n\r\nthis.isbnNumber = isbnNumber; \r\n\r\nthis.booksCost = booksCost; \r\n\r\n}", "Library(List<Book> books) {\n\n // Referring to same book as\n // this keyword refers to same instance itself\n this.books = books;\n }", "Book getBookByTitle(String title);", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn new Book(this);\n\t\t//\t\treturn super.clone();\n\t}", "public void loadBook() {\n List<Book> books = new ArrayList<>();\n for (int i = 0; i < 5; i++) {\n Book book = new Book(\"Book-\" + i, \"Test book \" + i);\n books.add(book);\n }\n this.setBooks(books);\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Book[ID: \" + this.id +\", Title: \" + this.title + \n\t\t\t\t\", Author: \" + this.author + \"]\";\n\t}", "public static void convertBookToBookVO() {\n\t\t// TODDO\n\t}", "public Book(String title, String genre)\n {\n bookTitle = title;\n bookGenre = genre;\n }", "Book read(Book book);", "public static addbooks newInstance() {\n return new addbooks();\n }", "public Book(final String title) {\n this.title = title;\n }", "Book(int id, String judul, int tahun) {\n // nah disini mirip kayak override/overload, cuman pake nya keyword this\n // this ini merujuk ke variabel yang diatas(property) sedang yang nggak merujuk\n // ke parameter\n this.id = id;\n this.judul = judul;\n this.tahun = tahun;\n }", "public static BookFactory getInstance()\r\n {\r\n \r\n if(bookFactoryInstance == null)\r\n {\r\n bookFactoryInstance = new BookFactory();\r\n }\r\n \r\n return bookFactoryInstance;\r\n }", "public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }", "private BookContract() {\n }", "private BookContract() {\n }", "@Override\n public String toString() {\n final StringBuilder sb = new StringBuilder(\"Book{\");\n sb.append(\"id=\").append(id);\n sb.append(\", name='\").append(name).append('\\'');\n sb.append('}');\n return sb.toString();\n }", "public static void convertBookVOToBook() {\n\n\t}", "public PageInfo<Book> getBookList() {\n \tPageHelper.startPage(1,2);\r\n List<Book> list = bookMapper.getBookList();\r\n PageInfo<Book> pageInfo=new PageInfo<Book>(list);\r\n\t\treturn pageInfo;\r\n \r\n }", "public BookResponse() {\n }", "public interface BookInfo {\n String getTitle();\n String getAuthor();\n String getOriginalLanguage();\n String getOriginalTitle();\n String getYearOfFirsEdition();\n String getCategory();\n String getGenre();\n String getForm();\n String getPublisherNote();\n String getPicturePath();\n String getGrade();\n}", "public ViewObjectImpl getBooksVOInstance() {\n return (ViewObjectImpl)findViewObject(\"BooksVOInstance\");\n }", "private Book convertScrapBookToBook(ScrapBook newScrapBook) {\n Book transientNewBook = new Book();\n\n /**\n * general settings\n */\n transientNewBook.setVersion((long) VERSION_INCREMENTATION);\n transientNewBook.setAlgOnlineServiceRef((long) 2);\n\n /**\n * Quantum\n */\n Quantum quantum = new Quantum();\n quantum.setVersion(VERSION_INCREMENTATION);\n quantum.setHeight(newScrapBook.getP25DiliCheight());\n quantum.setWeight(newScrapBook.getP26DiliCweight());\n quantum.setThickness(newScrapBook.getP23DiliCthickness());\n quantum.setWidth(newScrapBook.getP24DiliCwidth());\n\n /**\n * Guard for dilicom\n */\n if (newScrapBook.getP02DiliCean() != null) {\n transientNewBook.setAuthorName(newScrapBook.getP30DiliCauthor());\n transientNewBook.setBookBinding(newScrapBook.getP31DiliCbinding());\n //transientNewBook.setDateExtraction(ALGValidator.getTodaysDate());\n transientNewBook.setDiliCwordingCounter(newScrapBook.getP21DiliCwordingCounter());\n transientNewBook.setDiliCwordingExtended(newScrapBook.getP27DiliCwordingExtended());\n transientNewBook.setDiliCwordingStandard(newScrapBook.getP20DiliCwordingStandard());\n transientNewBook.setEan(newScrapBook.getP02DiliCean());\n transientNewBook.setDatePublished(newScrapBook.getP17DiliCdatePublished());\n transientNewBook.setDateUpdated(newScrapBook.getP45DiliCdateOfLastModification());\n transientNewBook.setMarkAsDeleted(false);\n transientNewBook.setProductType(Integer.valueOf(newScrapBook.getP18DiliCtypeProduct()));\n transientNewBook.setPublisherName(newScrapBook.getP28DiliCpublisher());\n\n /**\n * Book title\n */\n Booktitle bookTitle = new Booktitle();\n bookTitle.setVersion(VERSION_INCREMENTATION);\n bookTitle.setDiliCwordingCounter(newScrapBook.getP21DiliCwordingCounter());\n bookTitle.setDiliCwordingExtended(newScrapBook.getP27DiliCwordingExtended());\n bookTitle.setDiliCwordingStandard(newScrapBook.getP20DiliCwordingStandard());\n\n /**\n * book detail\n */\n BookDetail bookDetail = new BookDetail();\n bookDetail.setVersion(VERSION_INCREMENTATION);\n\n bookDetail.setDiliCauthor(newScrapBook.getP30DiliCauthor());\n bookDetail.setDiliCcollectionName(newScrapBook.getP29DiliCcollectionName());\n bookDetail.setDiliCcomandableUnit(newScrapBook.getP39DiliCcommandableUnit());\n bookDetail.setDiliCjointSalesPackage(newScrapBook.getP40DiliCjointSalesPackage());\n bookDetail.setDiliClinkingCodes(newScrapBook.getP37DiliClinkingCodes());\n bookDetail.setDiliCmovementCode(newScrapBook.getP01DiliCmovementCode());\n bookDetail.setDiliCnumberOfReference(newScrapBook.getP43DiliCnumberOfReference());\n bookDetail.setDiliCpublisher(newScrapBook.getP28DiliCpublisher());\n bookDetail.setDiliCserialCollection(newScrapBook.getP34DiliCserialCollection());\n bookDetail.setDiliCstoreDisplay(new Integer(StringUtils.isBlank(newScrapBook.getP22DiliCstoreDisplay()) ? \"0\" : newScrapBook.getP22DiliCstoreDisplay()));\n bookDetail.setDiliCsymbolization(newScrapBook.getP41DiliCsymbolization());\n bookDetail.setDiliCtheme(newScrapBook.getP35DiliCtheme());\n bookDetail.setQuantumByDiliCquantum(quantum);\n\n /**\n * book distributor\n */\n\n BookDistributor bookDistributor = new BookDistributor();\n bookDistributor.setVersion(VERSION_INCREMENTATION);\n bookDistributor.setDiliCamountTaxExempt1(newScrapBook.getP10DiliCamountTaxExempt1());\n bookDistributor.setDiliCamountTaxExempt2(newScrapBook.getP12DiliCamountTaxExempt2());\n bookDistributor.setDiliCamountTaxExempt3(newScrapBook.getP14DiliCamountTaxExempt3());\n bookDistributor.setDiliCavailabilityCode(newScrapBook.getP05DiliCavailabilityCode());\n bookDistributor.setDiliCdateEndOfCommercialization(newScrapBook.getP19DiliCdateEndOfCommercialization());\n bookDistributor.setDiliCdateOfTariffApplication(newScrapBook.getP04DiliCdateOfTariffApplicable());\n bookDistributor.setDiliCdatePublished(newScrapBook.getP17DiliCdatePublished());\n bookDistributor.setDiliCBookDistributorReference(newScrapBook.getP33DiliCbookDistributorReference());\n\n bookDistributor.setDiliCdiscountClassification(newScrapBook.getP08DiliCdiscountClassification());\n bookDistributor.setDiliCgencod(newScrapBook.getP03DiliCgencode());\n bookDistributor.setDiliCpriceAndVat(newScrapBook.getP07DiliCpriceAndVat());\n bookDistributor.setDiliCpriceCode(newScrapBook.getP16DiliCpriceCode());\n\n bookDistributor.setDiliCpriceType(newScrapBook.getP06DiliCpriceType());\n bookDistributor.setDiliCreturnCode(newScrapBook.getP15DiliCreturnCode());\n bookDistributor.setDiliCtypeOfProduct(newScrapBook.getP18DiliCtypeProduct());\n //change in table distributor to int\n bookDistributor.setDiliCuniqueOrMultitpleDistribution(newScrapBook.getP42DiliCuniqueOrMultitpleDistribution());\n bookDistributor.setDiliCvat1(newScrapBook.getP09DiliCvat1());\n bookDistributor.setDiliCvat2(newScrapBook.getP11DiliCvat2());\n bookDistributor.setDiliCvat3(newScrapBook.getP13DiliCvat3());\n\n transientNewBook.setBookDetailByBookDetailRef(bookDetail);\n transientNewBook.setBookDistributorByBookDistributorRef(bookDistributor);\n transientNewBook.getBookDetailByBookDetailRef().setQuantumByDiliCquantum(quantum);\n }\n return transientNewBook;\n }", "public BookInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Book(String name)\t//declare public Book method with String name\r\n\t{\r\n\t\tthis.Name = name;\t//Name initialize and equal name by using this\r\n\t\tidcount++;\t//idcount increase 1 each process \r\n\t\tid=idcount;\t//id equal idcount\r\n\t}", "@Override\n public String toString() {\n return \"Books{\" +\n \"bookTitle='\" + bookTitle + '\\'' +\n \", bookAuthor='\" + bookAuthor + '\\'' +\n \", bookPrice=\" + bookPrice +\n \", quantity=\" + quantity +\n '}';\n }", "public BookT(String bookTitle, String bookAuthor, String bookISBN){\r\n\t\tthis.title = bookTitle;\r\n\t\tthis.author = bookAuthor;\r\n\t\tthis.ISBN = bookISBN;\r\n\t}", "public static void main(String[] args) {\n\t\tAuthor au1=new Author(\"Ma Ma\",\"[email protected]\",'F');\r\n\t\tAuthor au2=new Author(\"Mg Mg\",\"[email protected]\",'M');\r\n\t\tAuthor au3=new Author(\"Su Su\",\"[email protected]\",'F');\r\n\t\tBook b1=new Book(\"Software Engineering\",au1,7000);\r\n\t\tBook b2=new Book(\"Java\",au1,8000,2);\r\n\t\tSystem.out.println(\"BookInfo writing by Ma Ma:\");\r\n\t\tSystem.out.println(\"BookName:\"+b1.name+\"\\nAuthor:\"+au1.name+\"\\nPrice:\"+b1.price);\r\n\t\tSystem.out.println(\"BookName:\"+b2.name+\"\\nAuthor:\"+au1.name+\"\\nPrice:\"+b2.price+\"\\nQty:\"+b2.qty);\r\n\t\tSystem.out.println();\r\n\t\tBook b3=new Book(\"Digital\",au2,4000);\r\n\t\tBook b4=new Book(\"Management\",au2,6000,3);\r\n\t\tSystem.out.println(\"BookInfo writing by Mg Mg:\");\r\n\t\tSystem.out.println(\"BookName:\"+b3.name+\"\\nAuthor:\"+au2.name+\"\\nPrice:\"+b3.price);\r\n\t\tSystem.out.println(\"BookName:\"+b4.name+\"\\nAuthor:\"+au2.name+\"\\nPrice:\"+b4.price+\"\\nQty:\"+b4.qty);\r\n\t\tSystem.out.println();\r\n\t\tBook b5=new Book(\"Accounting\",au3,5000);\r\n\t\tBook b6=new Book(\"Javascript\",au3,9000,4);\r\n\t\tSystem.out.println(\"BookInfo writing by Su Su:\");\r\n\t\tSystem.out.println(\"BookName:\"+b5.name+\"\\nAuthor:\"+au3.name+\"\\nPrice:\"+b5.price);\r\n\t\tSystem.out.println(\"BookName:\"+b6.name+\"\\nAuthor:\"+au3.name+\"\\nPrice:\"+b6.price+\"\\nQty:\"+b6.qty);\r\n\t}", "public int getBook_id() {\n\treturn book_id;\n}", "public Books[] getBooks() {\n return books;\n }", "public Bookstore() {\n books = new Book[MAXNUMOFBOOKS];\n totalbooks = 0;\n gross = 0.0;\n // Your code should go here\n }", "public Book(String t, String a) {\n\t\ttitle = t;\n\t\tauthor = a;\n\t}", "public Book addBook(){\n Book book = new Book();\r\n String t = title.getText().toString();\r\n book.setTitle(t);\r\n String[] str = author.getText().toString().split(\",\");\r\n Author[] authors = new Author[str.length];\r\n int index = 0;\r\n for(String s : str){\r\n Author a = null;\r\n String[] fml = s.split(\"\\\\s+\");\r\n if(fml.length == 1){\r\n a = new Author(fml[0]);\r\n }else if(fml.length == 2){\r\n a = new Author(fml[0], fml[1]);\r\n }else if(fml.length == 3){\r\n a = new Author(fml[0], fml[1], fml[2]);\r\n }else{\r\n Toast.makeText(this, \"Invalid Author Name\", Toast.LENGTH_LONG).show();\r\n }\r\n authors[index] = a;\r\n index++;\r\n }\r\n book.setAuthors(authors);\r\n String isb = isbn.getText().toString();\r\n book.setIsbn(isb);\r\n\r\n\t\treturn book;\r\n\t}", "protected Book() {\n this.title = \"Init\";\n this.author = \"Init\";\n this.bookCategories = new HashSet<>(10);\n }", "public Library() {\n this.okToPrint = true;\n this.libraryBooks = this.readBookCollection();\n this.patron = new HashMap<String, Patron>();\n this.calendar = new Calendar();\n this.openOrNot = false;\n this.numberedListOfServing = new HashMap<Integer, Book>();\n this.searchBooks = new ArrayList<Book>();\n this.numberedListOfSearch = new HashMap<Integer, Book>();\n this.serveOrNot = false;\n this.searchOrNot = false;\n this.servingPatron = new Patron(null,null);\n }", "public static void main(String[] arguments){\n Book AtlasShrugged = new Book(\"Atlas Shrugged\");\n// Book HungerGames = new Book(\"Hunger Games\");\n// CatinHat.WhatBook();\n AtlasShrugged.WhatBook();\n AtlasShrugged.CheckAvailable();\n// CatinHat.CheckAvailable();\n// HungerGames.CheckAvailable();\n //cant return total number of book instances, i would have to call out an instance to return a value.\n //System.out.println(book.length);\n\n //CatinHat.CheckIn();\n\n //AtlasShrugged.CheckIn();\n //CatinHat.CheckOut();\n AtlasShrugged.CheckOut();\n AtlasShrugged.CheckAvailable();\n AtlasShrugged.CheckIn();\n AtlasShrugged.CheckAvailable();\n //AtlasShrugged.CheckOut();\n \n// Book TheDaVinciCode = new Book(\"The Da Vinci Code\");\n// Book LePetitPrince = new Book(\"Le Petit Prince\");\n// Book ATaleofTwoCities = new Book(\"A Tale of Two Cities\");\n// Book TheLordofTheRings = new Book(\"The Lord of The Rings\");\n// TheDaVinciCode.WhatBook();\n// LePetitPrince.WhatBook();\n \n}", "public String getBookName()\r\n {\r\n\treturn bookName;\r\n }", "public Object getObject() ;", "@Override\r\n\tpublic Book getBook(long bookId) {\n\t\treturn bd.getOne(bookId);\r\n\t}", "public int getBookID() {\n return bookID;\n }", "private static void parseBookObject(JSONObject book){\r\n BookManager.books.add(new Book(Integer.parseInt((String) book.get(\"id\")),(String) book.get(\"name\"),(String) book.get(\"author\")));\r\n }", "private BookService getBookService() {\n return bookService;\n }", "public interface BookStore {\r\n\r\n\t// CRUD - Create, Read, Update, Delete\r\n\t/**\r\n\t * create the specified book in the system.\r\n\t * \r\n\t * @param book\r\n\t * a book instance with all attributes initialized.\r\n\t */\r\n\tvoid create(Book book);\r\n\r\n\t/**\r\n\t * read the specified book from the system.\r\n\t * \r\n\t * @param book\r\n\t * a book instance with the isbn initialized.\r\n\t * @return a book instance with all attributes initialized or null if not found.\r\n\t */\r\n\tBook read(Book book);\r\n\r\n\t/**\r\n\t * update the specified book in the system according to the book parameter.\r\n\t * \r\n\t * @param book\r\n\t * a book instance with all attributes initialized.\r\n\t */\r\n\tvoid update(Book book);\r\n\r\n\t/**\r\n\t * delete the specified book (by isbn) from the system.\r\n\t * \r\n\t * @param book\r\n\t * a book instance with isbn initialized.\r\n\t */\r\n\tvoid delete(Book book);\r\n\r\n\t/**\r\n\t * read all books from the system\r\n\t * \r\n\t * @return a collection of all system books\r\n\t */\r\n\tCollection<Book> readAll();\r\n\r\n}", "public Book getBook(int index)\r\n\t{\r\n\t\tBook book = null;\r\n\t\ttry {\r\n\t\t\tbook = items.get(index);\r\n\t\t} catch(IndexOutOfBoundsException e) {\r\n\t\t}\r\n\t\treturn book;\r\n\t}", "@Override\n\tpublic Book createBook(Book book) throws SQLException {\n\t\ttry {\n\t\t\treturn dao.insertBook(book);\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}return book;\n\t}", "private Book getBook(String sku) {\n return bookDB.get(sku);\n }", "public Book(String bookAuthor, String bookTitle, int bookPages, String getDetails)\n {\n author = bookAuthor;\n title = bookTitle;\n pages = bookPages;\n details = author,title,pages;\n Number = \"\";\n }", "public Book(int book_id, String title, String author, int year, int edition, String publisher, String isbn,\n String cover, String condition, int price, String notes) {\n\tsuper();\n\tthis.book_id = book_id;\n\tthis.title = title;\n\tthis.author = author;\n\tthis.year = year;\n\tthis.edition = edition;\n\tthis.publisher = publisher;\n\tthis.isbn = isbn;\n\tthis.cover = cover;\n\tthis.condition = condition;\n\tthis.price = price;\n\tthis.notes = notes;\n}", "public Book(double weightInKg, double manufacturingPriceDollars,\r\n double suggestedRetailPriceDollars, String uniqueID, \r\n Author author, Date datePublished, String title, BookType bookType) {\r\n super(weightInKg, manufacturingPriceDollars, suggestedRetailPriceDollars, uniqueID);\r\n setAuthor(author);\r\n setDatePublished(datePublished);\r\n setTitle(title);\r\n this.genre = bookType;\r\n }", "public BookView() {\n initComponents();\n setLocationRelativeTo(null);\n setTitle(\"Livaria Paris - Editora\");\n dataBase = new DataBase();\n dataBase.insertBook();\n fillTable(dataBase.getBooks());\n }", "public static void main(String[] args) throws Exception {\n Library sBook = new SchoolBook();\n\n //downcasting\n SchoolBook schoolBook2 = (SchoolBook) sBook; \n SchoolBook s = (SchoolBook) new Library();\n }", "Objet getObjetAlloue();", "public static void main()\n {\n\n Magazine magazine1 = new Magazine (\"David Publishing\", \"Mega Magazine\", 30, \"Maria Craig\", \"22/06/2014\");\n\n System.out.println();\n magazine1.getEditor();\n magazine1.getDate();\n magazine1.getPublisher();\n magazine1.getPublicationTitle();\n magazine1.getPrice();\n // Display a blank line\n System.out.println();\n\n \n // Create an instance of Book\n \n Book Book1 = new Book (\"Beckem and windsor\", \"Remember\", 100, 2451, \"Sue bright\");\n\n Book1.getPageNumber();\n Book1.getAuthor();\n Book1.getPublisher();\n Book1.getPublicationTitle();\n Book1.getPrice(); \n }", "public String getBookId() {\r\n return bookId;\r\n }", "public static void main(String[] args) {\n\r\n\t\tBook b1 = new Book(23,\"The mads in heaven\",200);\r\n\t\tBook b2 = new Book(25,\"Island Treasury\",300);\r\n\t\tBook b3 = new Book(27,\"Watery heart\",400);\r\n\t\t\r\n\t\tArrayList<Book> al = new ArrayList<Book>();\r\n\t\tal.add(b1);\r\n\t\tal.add(b2);\r\n\t\tal.add(b3);\r\n\t\t\r\n\t\tIterator<Book> itr1 = al.iterator();\r\n\t\twhile(itr1.hasNext())\r\n\t\t{\r\n\t\t\tBook book = itr1.next();\r\n\t\t\tSystem.out.println(\"Book price is: \"+book.price);\r\n\t\t\tSystem.out.println(\"Number of pages in the book are: \"+book.pages);\r\n\t\t\tSystem.out.println(\"The book name is: \"+book.name);\t\r\n\t\t}\r\n\t}", "public List<Book> getBooks() {\n return books;\n }", "private Book createBookForQuery(String filter, String query) {\n switch(filter) {\n case \"Title\":\n return new Book(\n null, query, null, 0, null, 0, null);\n case \"Author\":\n return new Book(query, null, null, 0, null, 0, null);\n case \"Publisher\":\n return new Book(null, null, query, 0, null, 0, null);\n case \"Year\":\n return new Book(null, null, null, Integer.parseInt(query), null, 0, null);\n case \"Genre\":\n return new Book(null, null, null, 0, query, 0, null);\n case \"Pages\":\n return new Book(null, null, null, 0, null, Integer.parseInt(query), null);\n default:\n return new Book(null, query, null, 0, null, 0, null);\n }\n }", "public Book readBookFile()\n {\n\n String name=\"\";\n String author ;\n ArrayList<String> genre = new ArrayList<String>();\n float price=0;\n String bookId;\n String fields2[];\n String line;\n\n line = bookFile.getNextLine();\n if(line==null)\n {\n return null;\n }\n String fields[] = line.split(\" by \");\n if(fields.length>2)\n {\n int i=0;\n while (i<fields.length-1)\n {\n name+=fields[i];\n if(i<fields.length-2)\n {\n name+= \" by \";\n }\n i++;\n }\n fields2 = fields[fields.length-1].split(\"%\");\n }\n else\n {\n name = fields[0];\n fields2 = fields[1].split(\"%\");\n }\n\n author = fields2[0];\n price=Float.parseFloat(fields2[1]);\n bookId=fields2[2];\n genre.add(fields2[3]);\n genre.add(fields2[4]);\n return new Book(name,genre,author,price,bookId);\n\n\n }", "public NewBook() {\n super(\"New Book\");\n initComponents();\n conn=javaconnect.ConnectDB();\n Random();\n }" ]
[ "0.7823456", "0.76295197", "0.76103544", "0.75605655", "0.75285685", "0.7524863", "0.7489922", "0.7374364", "0.73086405", "0.7178503", "0.71346146", "0.7086305", "0.702855", "0.69756716", "0.6952173", "0.6930344", "0.68683016", "0.6836962", "0.68356824", "0.68017465", "0.6793868", "0.6754051", "0.670182", "0.6677831", "0.6625788", "0.6620126", "0.6604144", "0.65712816", "0.65599424", "0.6559895", "0.6545969", "0.6545826", "0.6544238", "0.6538243", "0.6525066", "0.65143484", "0.6490224", "0.64570993", "0.644688", "0.64464486", "0.64172417", "0.6411271", "0.6409237", "0.639406", "0.63910586", "0.63851243", "0.63815266", "0.6375687", "0.63709575", "0.6360878", "0.63568836", "0.6347762", "0.6319088", "0.63123536", "0.6298331", "0.62942606", "0.62767166", "0.62767166", "0.62663364", "0.6257485", "0.62511086", "0.62415904", "0.62191814", "0.6201808", "0.6185503", "0.617851", "0.61622727", "0.61616683", "0.6159295", "0.61561006", "0.6147586", "0.614708", "0.61403745", "0.6138729", "0.6135703", "0.61226773", "0.61187035", "0.61142725", "0.6103481", "0.6101439", "0.6090249", "0.6076956", "0.60663825", "0.6065229", "0.60583013", "0.6057975", "0.60481524", "0.60473865", "0.6041524", "0.603826", "0.6029284", "0.6024787", "0.60174054", "0.6013041", "0.6006956", "0.59975404", "0.59964746", "0.59895235", "0.5987421", "0.5977036", "0.5975657" ]
0.0
-1
Gamers in the server / Hashmap incase we want to convert to multiple arenas
public JoinListener (MainHG mainclass){ plugin = mainclass; mainclass.getServer().getPluginManager().registerEvents(this, mainclass); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Map<String, String> m37368a(C12824g gVar) {\n HashMap hashMap = new HashMap();\n if (!TextUtils.isEmpty(gVar.f33943a)) {\n hashMap.put(\"email\", C6319n.m19597d(gVar.f33943a));\n }\n hashMap.put(\"type\", C6319n.m19597d(String.valueOf(gVar.f33945c)));\n if (!TextUtils.isEmpty(gVar.f33944b)) {\n hashMap.put(\"code\", gVar.f33944b);\n }\n hashMap.put(\"mix_mode\", \"1\");\n return hashMap;\n }", "public HashMap<String, NeonValue> getMap();", "void hashLexicons() {\n for (int i = 0; i < trainingData.hamEmails.length; i++) {\n hashLexicons(trainingData.hamEmails[i]);\n }\n for (int i = 0; i < trainingData.spamEmails.length; i++) {\n hashLexicons(trainingData.spamEmails[i]);\n }\n }", "private void erstelleListenMap(){\n farbenMap = new TreeMap<>();\n symbolMap = new TreeMap<>();\n\n for(Symbol symbol:Symbol.values()){\n\n switch (symbol) // sortiert ihn in die entsprechende Liste ein\n {\n case ka_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,karos);\n break;\n case ks_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kreise);\n break;\n case kr_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kreuze);\n break;\n case st_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,sterne);\n break;\n case qu_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kleeblaetter);\n break;\n\n case ka_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,karos);\n break;\n case ks_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kreise);\n break;\n case kr_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kreuze);\n break;\n case st_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,sterne);\n break;\n case qu_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,karos);\n break;\n case ks_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kreise);\n break;\n case kr_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kreuze);\n break;\n case st_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,sterne);\n break;\n case qu_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,karos);\n break;\n case ks_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kreise);\n break;\n case kr_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kreuze);\n break;\n case st_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,sterne);\n break;\n case qu_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,karos);\n break;\n case ks_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kreise);\n break;\n case kr_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kreuze);\n break;\n case st_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,sterne);\n break;\n case qu_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,karos);\n break;\n case ks_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kreise);\n break;\n case kr_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kreuze);\n break;\n case st_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,sterne);\n break;\n case qu_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kleeblaetter);\n break;\n }\n\n }\n }", "public final void mo12410a(Map<String, String> map, Map<String, String> map2) {\n AppMethodBeat.m2504i(98681);\n HashMap hashMap = new HashMap();\n hashMap.putAll(map);\n hashMap.put(\"B59\", this.f1552p);\n if (this.f1561y) {\n hashMap.put(\"B85\", \"1\");\n }\n if (this.f15282c) {\n hashMap.put(\"B95\", \"1\");\n } else {\n hashMap.put(\"B96\", this.f1547C);\n }\n if (!this.f1562z) {\n hashMap.put(\"B23\", \"1\");\n }\n HashMap hashMap2 = new HashMap();\n hashMap2.putAll(map2);\n if (this.f15292m != 0) {\n hashMap2.put(\"B84\", this.f15292m);\n }\n hashMap2.put(\"B87\", this.f1545A);\n hashMap2.put(\"B88\", this.f1546B);\n hashMap2.put(\"B90\", this.f1549E.f1569g);\n hashMap2.put(\"B91\", this.f1549E.f1570h);\n hashMap2.put(\"B92\", this.f1549E.f1571i);\n hashMap2.put(\"B93\", this.f1549E.f1572j);\n hashMap2.put(\"B94\", this.f1549E.f1573k);\n if (!TextUtils.isEmpty(this.f15287h)) {\n hashMap2.put(\"B47\", this.f15287h);\n }\n if (!TextUtils.isEmpty(this.f1548D)) {\n hashMap2.put(\"B41\", this.f1548D);\n }\n int i = this.f1559w.f1540a != 0 ? this.f1559w.f1540a : this.f1559w.f1542c == 200 ? 0 : this.f1559w.f1542c;\n if (!this.f1555s || i == -4) {\n C24371es.m37719b(\"HLHttpDirect\", C46772bt.m88739c(), i, this.f1559w.f1541b, hashMap, hashMap2, this.f15288i);\n AppMethodBeat.m2505o(98681);\n return;\n }\n C24371es.m37717a(\"HLHttpDirect\", C46772bt.m88739c(), i, this.f1559w.f1541b, hashMap, hashMap2, this.f15288i);\n AppMethodBeat.m2505o(98681);\n }", "private static void m568a() {\n if (f878a == null) {\n HashMap hashMap = new HashMap();\n f878a = hashMap;\n hashMap.put(\"CN\", p.China);\n f878a.put(\"FI\", p.Europe);\n f878a.put(\"SE\", p.Europe);\n f878a.put(\"NO\", p.Europe);\n f878a.put(\"FO\", p.Europe);\n f878a.put(\"EE\", p.Europe);\n f878a.put(\"LV\", p.Europe);\n f878a.put(\"LT\", p.Europe);\n f878a.put(\"BY\", p.Europe);\n f878a.put(\"MD\", p.Europe);\n f878a.put(\"UA\", p.Europe);\n f878a.put(\"PL\", p.Europe);\n f878a.put(\"CZ\", p.Europe);\n f878a.put(\"SK\", p.Europe);\n f878a.put(\"HU\", p.Europe);\n f878a.put(\"DE\", p.Europe);\n f878a.put(\"AT\", p.Europe);\n f878a.put(\"CH\", p.Europe);\n f878a.put(\"LI\", p.Europe);\n f878a.put(\"GB\", p.Europe);\n f878a.put(\"IE\", p.Europe);\n f878a.put(\"NL\", p.Europe);\n f878a.put(\"BE\", p.Europe);\n f878a.put(\"LU\", p.Europe);\n f878a.put(\"FR\", p.Europe);\n f878a.put(\"RO\", p.Europe);\n f878a.put(\"BG\", p.Europe);\n f878a.put(\"RS\", p.Europe);\n f878a.put(\"MK\", p.Europe);\n f878a.put(\"AL\", p.Europe);\n f878a.put(\"GR\", p.Europe);\n f878a.put(\"SI\", p.Europe);\n f878a.put(\"HR\", p.Europe);\n f878a.put(\"IT\", p.Europe);\n f878a.put(\"SM\", p.Europe);\n f878a.put(\"MT\", p.Europe);\n f878a.put(\"ES\", p.Europe);\n f878a.put(\"PT\", p.Europe);\n f878a.put(\"AD\", p.Europe);\n f878a.put(\"CY\", p.Europe);\n f878a.put(\"DK\", p.Europe);\n f878a.put(\"RU\", p.Russia);\n f878a.put(\"IN\", p.India);\n }\n }", "private static Map getMapPotionIds() {\n/* 350 */ if (mapPotionIds == null) {\n/* */ \n/* 352 */ mapPotionIds = new LinkedHashMap<>();\n/* 353 */ mapPotionIds.put(\"water\", new int[1]);\n/* 354 */ mapPotionIds.put(\"awkward\", new int[] { 16 });\n/* 355 */ mapPotionIds.put(\"thick\", new int[] { 32 });\n/* 356 */ mapPotionIds.put(\"potent\", new int[] { 48 });\n/* 357 */ mapPotionIds.put(\"regeneration\", getPotionIds(1));\n/* 358 */ mapPotionIds.put(\"moveSpeed\", getPotionIds(2));\n/* 359 */ mapPotionIds.put(\"fireResistance\", getPotionIds(3));\n/* 360 */ mapPotionIds.put(\"poison\", getPotionIds(4));\n/* 361 */ mapPotionIds.put(\"heal\", getPotionIds(5));\n/* 362 */ mapPotionIds.put(\"nightVision\", getPotionIds(6));\n/* 363 */ mapPotionIds.put(\"clear\", getPotionIds(7));\n/* 364 */ mapPotionIds.put(\"bungling\", getPotionIds(23));\n/* 365 */ mapPotionIds.put(\"charming\", getPotionIds(39));\n/* 366 */ mapPotionIds.put(\"rank\", getPotionIds(55));\n/* 367 */ mapPotionIds.put(\"weakness\", getPotionIds(8));\n/* 368 */ mapPotionIds.put(\"damageBoost\", getPotionIds(9));\n/* 369 */ mapPotionIds.put(\"moveSlowdown\", getPotionIds(10));\n/* 370 */ mapPotionIds.put(\"diffuse\", getPotionIds(11));\n/* 371 */ mapPotionIds.put(\"smooth\", getPotionIds(27));\n/* 372 */ mapPotionIds.put(\"refined\", getPotionIds(43));\n/* 373 */ mapPotionIds.put(\"acrid\", getPotionIds(59));\n/* 374 */ mapPotionIds.put(\"harm\", getPotionIds(12));\n/* 375 */ mapPotionIds.put(\"waterBreathing\", getPotionIds(13));\n/* 376 */ mapPotionIds.put(\"invisibility\", getPotionIds(14));\n/* 377 */ mapPotionIds.put(\"thin\", getPotionIds(15));\n/* 378 */ mapPotionIds.put(\"debonair\", getPotionIds(31));\n/* 379 */ mapPotionIds.put(\"sparkling\", getPotionIds(47));\n/* 380 */ mapPotionIds.put(\"stinky\", getPotionIds(63));\n/* */ } \n/* */ \n/* 383 */ return mapPotionIds;\n/* */ }", "private void calculateNGrams() {\n\t\t\n\t\t\n\t\t// determine n grams\n\t\tSet<Suffix> cityNames = properties.getCityNames();\n\t\tfor (Suffix cityName : cityNames) {\n\t\t\tString str = cityName.getStr();\n\t\t\tchar[] letters = new char[str.length()+4];\n\t\t\tletters[0] = sow;\n\t\t\tletters[1] = sow;\n\t\t\tletters[letters.length-2] = eow;\n\t\t\tletters[letters.length-1] = eow;\t\t\t\n\t\t\tstr.getChars(0, str.length(), letters, 2);\n\t\t\t\n\t\t\t// iterate over the letters of a city name\n\t\t\tfor (int i=2; i<letters.length; i++) {\n\t\t\t\t// 1: letter distribution (eow's are ignored)\n\t\t\t\tif (i < letters.length - 2) {\n\t\t\t\t\tInteger oldValueLetter = this.letterDistribution.get(letters[i]);\n\t\t\t\t\tif (oldValueLetter == null)\t\t\t\t\t\n\t\t\t\t\t\tthis.letterDistribution.put(letters[i], 1); // add the the new letter to the distribution\n\t\t\t\t\telse\t\t\t\t\t\n\t\t\t\t\t\tthis.letterDistribution.put(letters[i], oldValueLetter + 1); // increment counter\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\t\t// 2: bigram distribution ([eow, eow] is ignored)\n\t\t\t\tif (i < letters.length - 1) {\n\t\t\t\t\tchar[] bigramArray = {letters[i-1], letters[i]};\n\t\t\t\t\tString bigram = String.copyValueOf(bigramArray);\n\t\t\t\t\tInteger oldValueBigram = this.bigramDistribution.get(bigram);\n\t\t\t\t\tif (oldValueBigram == null)\n\t\t\t\t\t\tthis.bigramDistribution.put(bigram, 1); // add the new bigram to the distribution\n\t\t\t\t\telse\n\t\t\t\t\t\tthis.bigramDistribution.put(bigram, oldValueBigram + 1); // increment counter\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\t\t// 3: trigram distribution\n\t\t\t\tchar[] trigramArray = {letters[i-2], letters[i-1], letters[i]};\n\t\t\t\tString trigram = String.copyValueOf(trigramArray);\n\t\t\t\tInteger oldValueTrigram = this.trigramDistribution.get(trigram);\n\t\t\t\tif (oldValueTrigram == null)\n\t\t\t\t\tthis.trigramDistribution.put(trigram, 1); // add the new trgram to the distribution\n\t\t\t\telse\n\t\t\t\t\tthis.trigramDistribution.put(trigram, oldValueTrigram + 1); // increment counter\n\t\t\t\t\n\t\t\t} // end iteration over letters\n\t\t\t\n\t\t\tthis.numberLetterTokens += str.length();\n\t\t\tthis.numberBigramTokens += str.length() + 1;\n\t\t\tthis.numberTrigramTokens += str.length() + 2;\n\t\t} // end iteration over city names\n\t}", "private void setupDefaultHarbourMap() {\n defaultHarbourMap.put(getHashCodeofPair(-3,-11), HarbourKind.SPECIAL_BRICK);\n defaultHarbourMap.put(getHashCodeofPair(-2,-10), HarbourKind.SPECIAL_BRICK);\n defaultHarbourMap.put(getHashCodeofPair(0,-10), HarbourKind.GENERIC);\n defaultHarbourMap.put(getHashCodeofPair(1,-11), HarbourKind.GENERIC);\n defaultHarbourMap.put(getHashCodeofPair(2,-10), HarbourKind.SPECIAL_ORE);\n defaultHarbourMap.put(getHashCodeofPair(2,-8), HarbourKind.SPECIAL_ORE);\n defaultHarbourMap.put(getHashCodeofPair(-5,-7), HarbourKind.SPECIAL_WOOD);\n defaultHarbourMap.put(getHashCodeofPair(-4,-8), HarbourKind.SPECIAL_WOOD);\n defaultHarbourMap.put(getHashCodeofPair(-5,-5), HarbourKind.GENERIC);\n defaultHarbourMap.put(getHashCodeofPair(-4,-4), HarbourKind.GENERIC);\n defaultHarbourMap.put(getHashCodeofPair(3,-5), HarbourKind.SPECIAL_GRAIN);\n defaultHarbourMap.put(getHashCodeofPair(4,-4), HarbourKind.SPECIAL_GRAIN);\n defaultHarbourMap.put(getHashCodeofPair(-2,2), HarbourKind.SPECIAL_WOOL);\n defaultHarbourMap.put(getHashCodeofPair(-1,1), HarbourKind.SPECIAL_WOOL);\n defaultHarbourMap.put(getHashCodeofPair(1,1), HarbourKind.GENERIC);\n defaultHarbourMap.put(getHashCodeofPair(2,2), HarbourKind.GENERIC);\n }", "public Map<Integer, BigInteger> shareInfoToMap(List<SecretShare.ShareInfo> shares) {\n\n Map<Integer, BigInteger> keys = new HashMap<Integer, BigInteger>();\n\n for (int i = 0; i < shares.size(); i++) {\n keys.put(shares.get(i).getIndex(), shares.get(i).getShare()); // maps the splits to a <Integer, BigInteger>\n // mapping\n // TODO: The mapping probably does not need a loop\n }\n return keys;\n }", "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 }", "private void populateMaps() {\n\t\t//populate the conversion map.\n\t\tconvertMap.put(SPACE,(byte)0);\n\t\tconvertMap.put(VERTICAL,(byte)1);\n\t\tconvertMap.put(HORIZONTAL,(byte)2);\n\n\t\t//build the hashed numbers based on the training input. 1-9\n\t\tString trainingBulk[] = new String[]{train1,train2,train3,\"\"};\n\t\tbyte[][] trainer = Transform(trainingBulk);\n\t\tfor(int i=0; i < 9 ;++i) {\n\t\t\tint val = hashDigit(trainer, i);\n\t\t\tnumbers.put(val,i+1);\n\t\t}\n\t\t//train Zero\n\t\ttrainingBulk = new String[]{trainz1,trainz2,trainz3,\"\"};\n\t\tint zeroVal = hashDigit(Transform(trainingBulk), 0);\n\t\tnumbers.put(zeroVal,0);\n\n\n\t}", "public void updateHashers() {\n\n\t\thasherClock++;\n\t\t// TODO -> GET DATA FROM POOL!\n\n\t\tString data = \"\";\n\t\tString pool_key = \"\";\n\t\tlong difficulty = 0;\n\t\tlong neededDL = 0;\n\t\tlong height = 0;\n\n\t\t// TODO->HARDFORK 80K\n\t\tboolean doMine = true;\n\t\tint hf_argon_t_cost = 1;\n\t\tint hf_argon_m_cost = 524288;\n\t\tint hf_argon_para = 1;\n\n\t\tString url = null;\n\t\ttry {\n\t\t\turl = getPool() + \"?q=info&worker=\" + URLEncoder.encode(getMinerName(), \"UTF-8\");\n\t\t\tif (hasherClock > 30 * 3) {\n\t\t\t\thasherClock = 0;\n\t\t\t\turl += \"&address=\" + ArionumMain.getAddress() + \"&hashrate=\" + getLastHashrate();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tURL u = new URL(url);\n\t\t\tURLConnection uc = u.openConnection();\n\t\t\t@SuppressWarnings(\"resource\")\n\t\t\tString content = new Scanner(uc.getInputStream()).nextLine();\n\t\t\tJSONObject o = new JSONObject(content);\n\t\t\tJSONObject jsonData = (JSONObject) o.get(\"data\");\n\t\t\tString localData = (String) jsonData.get(\"block\");\n\t\t\tdata = localData;\n\t\t\tBigInteger localDifficulty = new BigInteger((String) jsonData.get(\"difficulty\"));\n\t\t\tdifficulty = localDifficulty.longValue();\n\t\t\tlong limitDL = Long.parseLong(jsonData.get(\"limit\").toString());\n\t\t\tneededDL = limitDL;\n\t\t\tlong localHeight = jsonData.getLong(\"height\");\n\t\t\theight = localHeight;\n\t\t\tString publicpoolkey = jsonData.getString(\"public_key\");\n\t\t\tpool_key = publicpoolkey;\n\n\t\t\tif (jsonData.getString(\"recommendation\") != null) {\n\t\t\t\tString recomm = jsonData.getString(\"recommendation\");\n\t\t\t\tif (!recomm.equals(\"mine\")) {\n\t\t\t\t\tdoMine = false;\n\t\t\t\t\tnotify(\"Waiting for MN-Block...\");\n\t\t\t\t}\n\t\t\t\tint argon_mem = jsonData.getInt(\"argon_mem\");\n\t\t\t\tint argon_threads = jsonData.getInt(\"argon_threads\");\n\t\t\t\tint argon_time = jsonData.getInt(\"argon_time\");\n\n\t\t\t\tif (doMine) {\n\t\t\t\t\tString type = \"CPU\";\n\t\t\t\t\tif (argon_mem < 500000)\n\t\t\t\t\t\ttype = \"GPU\";\n\n\t\t\t\t\tif (!lastType.equals(type)) {\n\t\t\t\t\t\tlastType = type;\n\t\t\t\t\t\tSystem.out.println(\"RESETING SCORE\");\n\t\t\t\t\t\thashTime.clear();\n\t\t\t\t\t}\n\n\t\t\t\t\tint hasherss = 0;\n\t\t\t\t\tfor (ArionumHasher hasher : hashers)\n\t\t\t\t\t\tif (!hasher.isSuspended() && hasher.isActive())\n\t\t\t\t\t\t\thasherss++;\n\t\t\t\t\tgetCurrentHashrate();\n\t\t\t\t\tnotify(\"Hashers:\" + hasherss + \" | Type:\" + type + \" | Hashrate: \" + getLastHashrate());\n\t\t\t\t}\n\n\t\t\t\thf_argon_m_cost = argon_mem;\n\t\t\t\thf_argon_para = argon_threads;\n\t\t\t\thf_argon_t_cost = argon_time;\n\t\t\t} else {\n\t\t\t\tnotify(\"Mining on outdated pool!\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO -> HANDLE FAILED URL RESPONSE\n\t\t\te.printStackTrace();\n\t\t\tif (System.currentTimeMillis() - lastnotice > 5000) {\n\t\t\t\tlastnotice = System.currentTimeMillis();\n\t\t\t\tnew Modal(\"Pool URL could not get resolved!\", \"The url you specified couldnt get resolved!\")\n\t\t\t\t\t\t.show(new Stage());\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tArionumMiner.minDL = neededDL;\n\t\tArionumMiner.currentBlock = height;\n\n\t\tString type = \"CPU\";\n\t\tif (hf_argon_m_cost < 500000 && doMine)\n\t\t\ttype = \"GPU\";\n\n\t\tfor (final ArionumHasher hasher : hashers) {\n\t\t\thasher.updateHasher(data, pool_key, difficulty, neededDL, height, doMine, hf_argon_t_cost, hf_argon_m_cost,\n\t\t\t\t\thf_argon_para);\n\t\t\tif (!hasher.isInitiated()) {\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\thasher.initiate();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthreadCollection.add(thread);\n\t\t\t\tthread.setDaemon(true);\n\t\t\t\tthread.setName(\"Arionum Hasher Thread\");\n\t\t\t\tthread.setPriority(10);\n\t\t\t\tthread.start();\n\t\t\t}\n\t\t}\n\n\t\t// TODO -> DISABLE HASHERS FOR GPU BLOCK TO MAKE 4THREADS FASTER\n\n\t\tint maxhashers = threads / hf_argon_para;\n\t\tif (maxhashers < 1)\n\t\t\tmaxhashers = 1;\n\n\t\tint active = 0;\n\t\tfor (final ArionumHasher hasher : hashers) {\n\t\t\tif (type.equalsIgnoreCase(\"GPU\")) {\n\t\t\t\tif (!hasher.isSuspended())\n\t\t\t\t\tactive++;\n\t\t\t\tif (active > maxhashers && !hasher.isSuspended()) {\n\t\t\t\t\tSystem.out.println(\"SUSPENING HASHER: \" + hasher);\n\t\t\t\t\thasher.setSuspended(true);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (hasher.isSuspended()) {\n\t\t\t\t\thasher.setSuspended(false);\n\t\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\thasher.initiate();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tthreadCollection.add(thread);\n\t\t\t\t\tthread.setDaemon(true);\n\t\t\t\t\tthread.setName(\"Arionum Hasher Thread\");\n\t\t\t\t\tthread.setPriority(10);\n\t\t\t\t\tthread.start();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private int hashType() {\n // Twelve possibilities\n int answer;\n if (isBomb()) {\n answer = 1;\n } else if (isShield()) {\n answer = 2;\n } else {\n answer = 3;\n }\n if (isFire() && !isKing()) {\n answer += 3 * 1;\n }\n if (!isFire() && isKing()) {\n answer += 3 * 2;\n }\n if (isFire() && isKing()) {\n answer += 3 * 3;\n }\n return answer - 1;\n }", "public static HashMap makeHandRankMap() {\n HashMap cardMap = new HashMap();\n cardMap.put(0, \"High Card\");\n cardMap.put(1, \"One Pair\");\n cardMap.put(2, \"Two Pair\");\n cardMap.put(3, \"Three of a Kind\");\n cardMap.put(4, \"Straight\");\n cardMap.put(5, \"Flush\");\n cardMap.put(6, \"Full House\");\n cardMap.put(7, \"Four of a Kind\");\n cardMap.put(8, \"Straight Flush\");\n cardMap.put(9, \"Royal Flush\");\n\n return cardMap;\n\n\n }", "protected void mo1286a(HashMap<String, String> hashMap) {\n super.mo1286a((HashMap) hashMap);\n hashMap.put(\"method\", \"fetchgmsg\");\n hashMap.put(\"gid\", this.f1620f);\n hashMap.put(\"fetch_type\", this.f1618d + \"\");\n hashMap.put(\"fetch_num\", this.f1619e + \"\");\n }", "public void populateMap(int playerNumber){\n\t\tint factor = 1;\n\t\t\n\t\t\n\t}", "public void generateRandomMap() {\n\n\t}", "@Override\n\t\tpublic int hashCode() {\n\t\t\treturn Integer.parseInt(lat.toString()) ^ Integer.parseInt(lng.toString());\n\t\t\t//return super.hashCode();\n\t\t}", "public static Map<String, String> sharon(Graph G, HashMap<String,Integer> rates) {\r\n\t\tMap<String, String> S_map = new HashMap<String, String>(); // to return\r\n\t\tSet<String> R, T, opt;\r\n\r\n\t\tint max;\r\n\t\tdouble min = 0;\r\n\t\tboolean reduce;\r\n\t\tPattern v_temp;\r\n\t\tLinkedList<LinkedList<String>> Level = new LinkedList<LinkedList<String>>();\r\n\t\tint M = 4;\r\n\t\t\r\n\t\tArrayList<Graph> CC = G.connectedComp();\r\n\t\tlong durExpansion = 0;\r\n\t\tlong durReduction = 0;\r\n\t\tlong durSharon = 0;\r\n\t\tint MReduction = 8;\r\n\t\t\r\n\t\tfor (Graph comp : CC) {\r\n\t\t\t//System.err.println(\"Component number of vertices: \" + comp.numVertices());\r\n\t\t\t//System.err.println(S);\r\n\t\t\tR = new HashSet<String>();\r\n\t\t\t\r\n\t\t\t// Graph Expansion\r\n\t\t\tlong startExpansion = System.currentTimeMillis();\r\n\t\t\t\r\n\t\t\t// Calculate min of basic graph before expansion begins\r\n\t\t\tmin = 0;\r\n\t\t\tfor (String v_id : comp.getVnames()) {\r\n\t\t\t\tv_temp = comp.getVertex(v_id);\r\n\t\t\t\tmin += (double) v_temp.getBValue() / (v_temp.getDegree() + 1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcomp = expand(comp, rates);\r\n\t\t\t\r\n\t\t\tlong endExpansion = System.currentTimeMillis();\r\n\t\t\t\r\n\t\t\tdurExpansion += (endExpansion - startExpansion);\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\tSystem.out.println(\"\\nEXPANDED COMPONENT:\\n\" + comp);\r\n\t\t\tSystem.out.println(\"EXPANDED Vertices:\");\r\n\t\t\tfor (String vtestexpansion : comp.getVnames()) {\r\n\t\t\t\tSystem.out.println(vtestexpansion + \" in patterns \" + comp.getVertex(vtestexpansion).patternsToString() + \" BValue \" + comp.getVertex(vtestexpansion).getBValue());\r\n\t\t\t}\r\n\t\t\t*/\r\n\t\t\tif (comp.numVertices()>20) {\r\n\t\t\t\tSystem.out.println(\"\\nEXPANDED COMPONENT Number of Vertices: \" + comp.numVertices());\r\n\t\t\t\tSystem.out.println(\"EXPANDED COMPONENT Number of Edges: \" + comp.numEdges());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlong startReduction = System.currentTimeMillis();\r\n\t\t\t\r\n\t\t\t// Graph reduction\r\n\t\t\treduce = true;\r\n\t\t\tint tempMRed;\r\n\t\t\tint maxtempMRed = 0;\r\n\t\t\t\r\n\t\t\twhile (reduce) {\r\n\t\t\t\tT = new HashSet<String>(); // non-beneficial\r\n\t\t\t\ttempMRed = 0;\r\n\t\t\t\t//System.err.println(\"min is \" + min);\r\n\t\t\t\t\r\n\t\t\t\tfor (String vname : comp.getVnames()) {\r\n\t\t\t\t\tif (comp.getVertex(vname).getDegree()==0) {\r\n\t\t\t\t\t\tif (!R.contains(vname)) { R.add(vname); }\r\n\t\t\t\t\t} else if (pscore(comp,vname) < min) {\r\n\t\t\t\t\t\tT.add(vname);\r\n\t\t\t\t\t\ttempMRed += vname.length()*2;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor (String vname : T) {\r\n\t\t\t\t\tcomp.removeVertex(vname);\r\n\t\t\t\t\t//System.err.println(\"reduction removed \" + vname);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (T.size()==0) {\r\n\t\t\t\t\treduce = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (maxtempMRed < tempMRed) { maxtempMRed = tempMRed; }\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tMReduction += maxtempMRed;\r\n\t\t\t\r\n\t\t\tfor (String vname : R) {\r\n\t\t\t\tS_map.put(vname, comp.getVertex(vname).patternsToString());\r\n\t\t\t\tMReduction += vname.length()*2;\r\n\t\t\t\tcomp.removeVertex(vname);\r\n\t\t\t\t//System.err.println(\"reduction removed and saved \" + vname);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlong endReduction = System.currentTimeMillis();\r\n\t\t\tdurReduction += (endReduction - startReduction);\r\n\t\t\t\r\n\t\t\t// Start Sharing Plan Selection\r\n\t\t\tlong startSharon = System.currentTimeMillis();\r\n\t\t\topt = new HashSet<String>(); // used to store optimal sub-plans\r\n\t\t\tmax = 0;\r\n\t\t\tint tempM = 0;\r\n\t\t\t\r\n\t\t\tfor (String vname : comp.getVnames()) {\r\n\t\t\t\tLevel.add(new LinkedList<String>(Arrays.asList(vname)));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\twhile (Level.size() > 0) {\r\n\t\t\t\ttempM = 0;\r\n\t\t\t\tfor (LinkedList<String> P : Level) {\r\n\t\t\t\t\tif (score(comp, P) > max) {\r\n\t\t\t\t\t\topt.clear();\r\n\t\t\t\t\t\topt.addAll(P);\r\n\t\t\t\t\t\tmax = score(comp, P);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (String s : P) { tempM += s.length()*2; }\r\n\t\t\t\t\tif (tempM > M) { M = tempM; }\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tLevel = getNextLevel(comp, Level, true);\r\n\t\t\t}\r\n\t\t\tfor (String optname : opt) {\r\n\t\t\t\tS_map.put(optname, comp.getVertex(optname).patternsToString());\r\n\t\t\t}\r\n\t\t\tlong endSharon = System.currentTimeMillis();\r\n\t\t\tdurSharon += endSharon - startSharon;\r\n\t\t}\r\n\t\t\r\n\t\tfor (String s : S_map.keySet()) { \r\n\t\t\tM += (s.length() + S_map.get(s).length())*2;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nDuration Expansion: \" + durExpansion);\r\n\t\tSystem.out.println(\"\\nSize Reduction: \" + MReduction);\r\n\t\tSystem.out.println(\"\\nDuration Reduction: \" + durReduction);\r\n\t\tSystem.out.println(\"\\nSize Sharing Plan Selection: \" + M);\r\n\t\tSystem.out.println(\"\\nDuration Sharing Plan Selection: \" + durSharon);\r\n\t\t\r\n\t\treturn S_map;\r\n\t}", "public static void dumpAS(Map<String, Integer[]> map) {\n\t\tif (map == null) return;\n\t\tint total = 0; int hits=0;\n\t\tfor (String key : map.keySet()) {\n\t\t\tInteger[] val = map.get(key);\n\t\t\ttotal += val[1];\n\t\t\tboolean hit =Ciphers.realHomophone(key);\n\t\t\tif (hit) hits++;\n\t\t\tSystem.out.println(val[1] + \" for \" + key + \": \" + val[0] + \", \" + (hit ? \" HIT \" : \" MISS \")); \n\t\t}\n\t\tSystem.out.println(\"Total: \" + total + \", hits \" + hits + \" ratio \" + (float)hits/total);\n\t}", "public Map<String, List<Integer>> geefBeschikbaarhedenVanPromotor(String pMail) {\r\n Map<String, List<Integer>> beschikbaarheden = new HashMap<>();\r\n for (Beschikbaarheid b : findBeschikbaarhedenVanPromotor(pMail)) {\r\n List<Integer> info = new ArrayList<>();\r\n info.add(b.getDag());\r\n info.add(b.getTijdsvak());\r\n beschikbaarheden.put(String.valueOf(b.getBeschikbaarheidsId()), info);\r\n }\r\n return beschikbaarheden;\r\n }", "public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// 3. j=rivit, i=merkit yksittäisellä rivillä\n\t\tfor(int j=0; j<boardMap.size();j++){ \t\t//..rivien lkm (boardMap.size) = alkioiden lkm. \n\t\t\tfor(int i=0; i<boardMap.get(j).length(); i++){\t\t//..merkkien lkm rivillä (alkion Stringin pituus .length)\n\t\t\t\tCharacter hexType = boardMap.get(j).charAt(i);\t//tuodaan tietyltä riviltä, yksittäinen MERKKI hexType -muuttujaan\n\t\t\t\tworld.add(new Hex(i, j, hexType.toString()));\t//Luodaan uusi HEXa maailmaan, Character -merkki muutetaan Stringiksi että Hex konstructori hyväksyy sen.\n\t\t\t}\n\t\t}\n\t\tconvertEmptyHex();\n\t}", "public static void main(String[] args) {\n\t\tGnomenWald map = new GnomenWald();\n\t\tVillage v1 = new Village(\"Rochester\");\n\t\tGnome v1g1 = new Gnome(\"Thomas\", \"Red\", 1);\n\t\tGnome v1g2 = new Gnome(\"Jerry\", \"Blue\", 0);\n\t\tGnome v1g3 = new Gnome(\"Jordan\", \"Yellow\", 2);\n\t\tGnome v1g4 = new Gnome(\"Philips\", \"Purple\", 1);\n\t\tv1.addGnomes(v1g1); v1.addGnomes(v1g2); v1.addGnomes(v1g3); v1.addGnomes(v1g4);\n\t\tVillage v2 = new Village(\"Syracuse\");\n\t\tGnome v2g1 = new Gnome(\"Sarah\", \"Pink\", 3);\n\t\tGnome v2g2 = new Gnome(\"John\", \"Black\", 2);\n\t\tGnome v2g3 = new Gnome(\"Yelson\", \"White\", 1);\n\t\tGnome v2g4 = new Gnome(\"Jeremy\", \"Lightblue\", 4);\n\t\tv2.addGnomes(v2g1); v2.addGnomes(v2g2); v2.addGnomes(v2g3); v2.addGnomes(v2g4);\n\t\tVillage v3 = new Village(\"Ithaca\");\n\t\tGnome v3g1 = new Gnome(\"Frank\", \"Jet black\", 0);\n\t\tGnome v3g2 = new Gnome(\"Mark\", \"Brown\", 3);\n\t\tGnome v3g3 = new Gnome(\"Alan\", \"Cyan\", 0);\n\t\tGnome v3g4 = new Gnome(\"Ray\", \"Red\", 0);\n\t\tv3.addGnomes(v3g1); v3.addGnomes(v3g2); v3.addGnomes(v3g3); v3.addGnomes(v3g4);\n\t\tVillage v4 = new Village(\"New York\");\n\t\tGnome v4g1 = new Gnome(\"Jimmy\", \"White\", 2);\n\t\tGnome v4g2 = new Gnome(\"Joseph\", \"Red\", 2);\n\t\tGnome v4g3 = new Gnome(\"Amy\", \"Yellow\", 3);\n\t\tGnome v4g4 = new Gnome(\"Greenwich\", \"Green\", 1);\n\t\tv4.addGnomes(v4g1); v4.addGnomes(v4g2); v4.addGnomes(v4g3); v4.addGnomes(v4g4);\n\t\tVillage v5 = new Village(\"San Francisco\");\n\t\tGnome v5g1 = new Gnome(\"Bob\", \"Green\", 4);\n\t\tGnome v5g2 = new Gnome(\"Paul\", \"Pink\", 4);\n\t\tGnome v5g3 = new Gnome(\"Staple\", \"Jet Black\", 3);\n\t\tGnome v5g4 = new Gnome(\"Mary\", \"Purple\", 1);\n\t\tv5.addGnomes(v5g1); v5.addGnomes(v5g2); v5.addGnomes(v5g3); v5.addGnomes(v5g4);\n\t\t\n\t\tmap.addVillage(v1);\n\t\tmap.addVillage(v2);\n\t\tmap.addVillage(v3);\n\t\tmap.addVillage(v4);\n\t\tmap.addVillage(v5);\n\t\t\n\t\tmap.printVillages();\n\t\tv1.printGnomes();\n\t}", "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}", "String getMapCode();", "@Override\r\n public int hashCode() {\n int key=(Integer)(this.capsule.get(0)); // Get the key\r\n Integer bkey=Integer.parseInt(Integer.toBinaryString(key)); // Convert into binary \r\n int n=setcount(bkey); //counts the number of 1's in the binary\r\n key=key*n + Objects.hashCode(this.capsule.get(0)); //multiplies that with the hashcode of the pId\r\n return key;\r\n }", "static void hashTestCase(int givArr[]) {\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tint mod = givArr[i] % m;\n\t\t\tarray[mod] = givArr[i];\n\t\t}\n\t}", "private List<Map<Number160, PeerStatistic>> initMap(final int[] bagSizes, final boolean caching) {\n List<Map<Number160, PeerStatistic>> tmp = new ArrayList<Map<Number160, PeerStatistic>>();\n for (int i = 0; i < Number160.BITS; i++) {\n // I made some experiments here and concurrent sets are not\n // necessary, as we divide similar to segments aNonBlockingHashSets\n // in a concurrent map. In a full network, we have 160 segments, for\n // smaller we see around 3-4 segments, growing with the number of\n // peers. bags closer to 0 will see more read than write, and bags\n // closer to 160 will see more writes than reads.\n //\n // We also only allocate memory for the bags far away, as they are likely to be filled first.\n if (caching) {\n tmp.add(new CacheMap<Number160, PeerStatistic>(bagSizes[i], true));\n } else {\n final int memAlloc = bagSizes[i] / 8;\n tmp.add(new HashMap<Number160, PeerStatistic>(memAlloc));\n }\n }\n return Collections.unmodifiableList(tmp);\n }", "private void generateMap() {\n\n\t\t//Used to ensure unique locations of each Gameboard element\n\t\tboolean[][] spaceUsed = new boolean[12][12];\n\n\t\t//A running total of fences generated\n\t\tint fencesGenerated = 0;\n\n\t\t//A running total of Mhos generated\n\t\tint mhosGenerated = 0;\n\n\t\t//Fill the board with spaces and spikes on the edge\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\tif (i == 0 || i == 11 || j ==0 || j == 11) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t\tspaceUsed[i][j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Generate 20 spikes in unique locations\n\t\twhile (fencesGenerated < 20) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Fence(x, y, board);\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\tfencesGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate 12 mhos in unique locations\n\t\twhile (mhosGenerated < 12) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Mho(x, y, board);\n\n\t\t\t\tmhoLocations.add(x);\n\t\t\t\tmhoLocations.add(y);\n\n\t\t\t\tspaceUsed[x][y] = true;\n\n\t\t\t\tmhosGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate a player in a unique location\n\t\twhile (true) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Player(x, y, board);\n\t\t\t\tplayerLocation[0] = x;\n\t\t\t\tplayerLocation[1] = y;\n\t\t\t\tnewPlayerLocation[0] = x;\n\t\t\t\tnewPlayerLocation[1] = y;\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public int hashCode()\n {\n return inDegrees();\n }", "public GameLogic(){\n\t\tplayerPosition = new HashMap<Integer, int[]>();\n\t\tcollectedGold = new HashMap<Integer, Integer>();\n\t\tmap = new Map();\n\t}", "@Override\r\n public String getUsoMaggiore() {\n int maxpacchetti=0;\r\n int npacchetti=0;\r\n String a;\r\n Map<String, String> mappatemp=new HashMap<>();\r\n Iterator<Map<String, String>> iterator;\r\n iterator = getUltimaEntry().iterator();\r\n System.out.println(getUltimaEntry().size());\r\n\t\twhile (iterator.hasNext()) {\r\n \r\n\t\t\tMap<String, String> m = iterator.next();\r\n //si fa la ricerca della più utilizzata all'inerno della mappa\r\n \r\n npacchetti=Integer.parseInt(m.get(\"RX-OK\"))+Integer.parseInt(m.get(\"TX-OK\"));\r\n System.out.println(maxpacchetti);\r\n if (maxpacchetti<npacchetti){\r\n maxpacchetti=npacchetti;\r\n mappatemp.put(\"Iface\",m.get(\"Iface\"));\r\n mappatemp.put(\"Pacchetti_TX+RX_OK\",String.valueOf(npacchetti));\r\n \r\n }\r\n }\r\n \r\n try {\r\n String json = new ObjectMapper().writeValueAsString(mappatemp);\r\n System.out.println(json);\r\n \r\n \r\n if (json!=null) return json ;\r\n } catch (JsonProcessingException ex) {\r\n Logger.getLogger(NetstatSingleton.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n \r\n return \"NOT WORKING\";\r\n \r\n }", "String getMGFAlgorithm();", "Map<String, String> mo14888a();", "private void setupVariant1TerrainMap() {\n\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,-4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,-4), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,-3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,-3), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,-3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,-3), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,-3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,-3), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,-2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,-2), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,-2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,-2), TerrainKind.BIG_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,-2), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,-2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,-2), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,-1), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,-1), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,-1), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,-1), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,-1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,-1), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-8,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,0), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,0), TerrainKind.FOREST);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,0), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,0), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,0), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(8,0), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,1), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,1), TerrainKind.SEA);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-8,2), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,2), TerrainKind.GOLDFIELD);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,2), TerrainKind.FIELDS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,2), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,2), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(6,2), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(8,2), TerrainKind.SMALL_FISHERY);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-7,3), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-5,3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-3,3), TerrainKind.MOUNTAINS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-1,3), TerrainKind.PASTURE);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(1,3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(3,3), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(5,3), TerrainKind.GOLDFIELD);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(7,3), TerrainKind.SMALL_FISHERY);\n\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-6,4), TerrainKind.SMALL_FISHERY);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-4,4), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(-2,4), TerrainKind.HILLS);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(0,4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(2,4), TerrainKind.SEA);\n\t\tvariant1TerrainKindMap.put(getHashCodeofPair(4,4), TerrainKind.FOREST);\n\t}", "public static void main(String[] args) {\n\t\tString2Int.put(\"Location1\", new Integer(0));\n\t\tString2Int.put(\"Location2\", new Integer(1));\n\t\tString2Int.put(\"Location3\", new Integer(2));\n\t\tString2Int.put(\"Location4\", new Integer(3));\n\t\t\n\t\t\n\t\t// populate it\n\t\tInt2String.put(new Integer(0), \"Location1\");\n\t\tInt2String.put(new Integer(1), \"Location2\");\n\t\tInt2String.put(new Integer(2), \"Location3\");\n\t\tInt2String.put(new Integer(3), \"Location4\");\n\t\t\n\t\t\n\t\t//HashMap<String,List<Integer>> NHMap = new HashMap<String,List<Integer>>();\n\t\tArrayList<Integer[]> NHMap = new ArrayList<Integer[]>();\n\t\tInteger[] NHMapedge1 ={String2Int.get(\"Location1\"),100,30};\n\t\tInteger[] NHMapedge2 ={String2Int.get(\"Location2\"),20,40};\n\t\tInteger[] NHMapedge3 ={String2Int.get(\"Location4\"),30,15};\n\t\tInteger[] NHMapedge4 ={String2Int.get(\"Location3\"),140,60};\n\t\t//edges.add(edge);\n\t\tNHMap.add(NHMapedge1);\n\t\tNHMap.add(NHMapedge2);\n\t\tNHMap.add(NHMapedge3);\n\t\tNHMap.add(NHMapedge4);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//HashMap<String,List<Integer>> EHMap = new HashMap<String,List<Integer>>();\n\t\tArrayList<Integer[]> EHMap = new ArrayList<Integer[]>();\n\t\tInteger[] EHMapedge1 ={String2Int.get(\"Location1\"),String2Int.get(\"Location2\"),10,30};\n\t\tInteger[] EHMapedge2 ={String2Int.get(\"Location2\"),String2Int.get(\"Location3\"),20,40};\n\t\tInteger[] EHMapedge3 ={String2Int.get(\"Location4\"),String2Int.get(\"Location4\"),30,50};\n\t\tInteger[] EHMapedge4 ={String2Int.get(\"Location3\"),String2Int.get(\"Location2\"),40,60};\n\t\t//edges.add(edge);\n\t\tEHMap.add(EHMapedge1);\n\t\tEHMap.add(EHMapedge2);\n\t\tEHMap.add(EHMapedge3);\n\t\tEHMap.add(EHMapedge4);\n\t\t\n\t\tArrayList<Integer[]> edges = new ArrayList<Integer[]>();\n\t\tInteger[] edge ={String2Int.get(\"Location1\"),String2Int.get(\"Location2\"),10};\n\t\tInteger[] edge1 ={String2Int.get(\"Location2\"),String2Int.get(\"Location3\"),20};\n\t\tInteger[] edge2 ={String2Int.get(\"Location1\"),String2Int.get(\"Location3\"),30};\n\t\tInteger[] edge4 ={String2Int.get(\"Location3\"),String2Int.get(\"Location4\"),40};\n\t\tInteger[] edge5 ={String2Int.get(\"Location4\"),String2Int.get(\"Location3\"),40};\n\t\t\n\t\t\n\t\tedges.add(edge);\n\t\tedges.add(edge1);\n\t\tedges.add(edge2);\n\t\tedges.add(edge4);\n\t\tedges.add(edge5);\n\t\t\n\t\t\n \n\t //int[][] adj_matrix = MapArrayList(edges1);\n int[][] adj_matrix = MapArrayList(edges);\n\t\tfor(int i=0;i<5;i++){\n\t\t\t//System.out.println(\"\");\n\t\t\tfor(int j=0;j<5;j++){\n\t\t\t\t\n\t\t\t\t//System.out.print(adj_matrix[i][j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//dijkstra(edges1);\n\t\t//System.out.print(edges2);\n\t\t//System.out.println(\"Ehtesham\");\n\t\tArrayList<ArrayList<Integer>> finalpaths = dijkstra(adj_matrix);\n\t\t for (ArrayList<Integer> item : finalpaths) { \n\t\t\t System.out.println(\"\");\n\t\t\t \tfor(Integer node: item)\n\t\t\t \t{\t\n\t\t\t \t\tSystem.out.print(Int2String.get(node)+\"->\");\n\t\t\t \t}\n\t\t\n\t\t }\n\t\t int cost = 210;\n\t\t int time = 190;\n\t\t //ArrayList<ArrayList<Integer>> finalp1aths1 = Pathinbound(finalp1aths1);\n\t\t ArrayList<ArrayList<Integer>> finalp1aths1 = Pathinbound(NHMap,EHMap,finalpaths,cost,time);\n\t\t System.out.println(\"\");\n\t\t System.out.println(\"-----------------------------Final answer-------------------------------\");\n\t\t for (ArrayList<Integer> item : finalp1aths1) { \n\t\t\t\tSystem.out.println(item);\n\t\t\t\t\n\t\t }\n\t\t\t\t \n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn map.hashCode() ^ y() << 16 ^ x();\n\t}", "@Override\n public int hashCode() {\n return Objects.hash(mGx, mGy, mGz);\n }", "public static List<SecretShare.ShareInfo> mapToShareInfo(Map<Integer, BigInteger> map, int n, int k,\n BigInteger prime) {\n List<SecretShare.ShareInfo> list = new ArrayList<SecretShare.ShareInfo>();\n\n for (Map.Entry<Integer, BigInteger> entry : map.entrySet()) {\n SecretShare.PublicInfo publicInfo = new SecretShare.PublicInfo(n, k, prime, null);\n SecretShare.ShareInfo share = new SecretShare.ShareInfo(entry.getKey(), entry.getValue(), publicInfo);\n list.add(share);\n }\n return list;\n }", "private void gameStart() {\n\tready.clear();\r\n\r\n\tplayers = new TreeBidiMap<>();\r\n\tmafia = new ArrayList<>();\r\n\tinnocentIDs = new ArrayList<>();\r\n\r\n\tfor (int i = 0; i < votedStart.size(); i++) {\r\n\t int id = votedStart.get(i);\r\n\t // playerIDs.add(id);\r\n\t players.put(id, server.getUsername(id));\r\n\r\n\t}\r\n\r\n\tint numMafia = (int) Math.round((double) votedStart.size() / 3);\r\n\tmafiaAtStart = new String[numMafia];\r\n\r\n\tfor (int j = 0; j < numMafia; j++) {\r\n\t // int index = mafiaPicker.nextInt(votedStart.size());\r\n\t int index = ThreadLocalRandom.current().nextInt(votedStart.size());\r\n\t int id = votedStart.get(index);\r\n\r\n\t mafia.add(id);\r\n\t mafiaAtStart[j] = server.getUsername(id);\r\n\t votedStart.remove(index);\r\n\t}\r\n\r\n\tfor (int k = 0; k < votedStart.size(); k++) {\r\n\r\n\t int id = votedStart.get(k);\r\n\r\n\t innocentIDs.add(id);\r\n\t}\r\n\r\n\tvotedStart.clear();\r\n\r\n\tint[] innocentIDArray = innocentIDs.stream().mapToInt(i -> i).toArray();\r\n\tserver.privateMessage(\"you are an innocent\", innocentIDArray);\r\n\r\n\tint[] mafiaIDArray = innocentIDs.stream().mapToInt(i -> i).toArray();\r\n\tString[] mafiaNameArray = new String[mafiaIDArray.length];\r\n\r\n\tfor (int l = 0; l < mafiaIDArray.length; l++) {\r\n\t mafiaNameArray[l] = server.getUsername(mafiaIDArray[l]);\r\n\t}\r\n\r\n\t// currently uses the default toSting method for array. Also i think it\r\n\t// will display the id numbers rather than the players names - need to\r\n\t// convert if so would be good to only show only the other mafia members\r\n\t// rather than including the players own name in the list\r\n\tserver.privateMessage(\"you are one of the mafia, the mafia members (including \" + \"you) are \" + mafiaIDArray,\r\n\t\tmafiaIDArray);\r\n\r\n\tday = true;\r\n\tgameInProgress = true;\r\n }", "@Override\n public int hashCode() {\n \tint result=super.hashCode();\n \tresult+=(latitude*1000); // *1000 to increase the chance that coordinates nearby have a different hashcode \n \tresult+=(longitude*1000); \n \tresult+=altitude;\n \treturn result;\n }", "protected void createMaps() {\n\t\tBlueSchellingCell bCell = new BlueSchellingCell();\n\t\tOrangeSchellingCell oCell = new OrangeSchellingCell();\n\t\tEmptyCell eCell = new EmptyCell();\n\t\tTreeCell tCell = new TreeCell();\n\t\tBurningTreeCell bTCell = new BurningTreeCell();\n\t\tEmptyLandCell eLCell = new EmptyLandCell();\n\n\t\tLiveCell lCell = new LiveCell();\n\t\tDeadCell dCell = new DeadCell();\n\t\tGreenRPSCell gcell = new GreenRPSCell();\n\t\tRedRPSCell rcell = new RedRPSCell();\n\t\tBlueRPSCell blcell = new BlueRPSCell();\n\t\tWhiteRPSCell wcell = new WhiteRPSCell();\n\n\t\tFishCell fCell = new FishCell();\n\t\tSharkCell sCell = new SharkCell();\n\n\t\tAntGroupCell aCell = new AntGroupCell();\n\n\t\tsegregation.put('b', bCell);\n\t\tsegregation.put('o', oCell);\n\t\tsegregation.put('e', eCell);\n\n\t\tgameOfLife.put('l', lCell);\n\t\tgameOfLife.put('d', dCell);\n\n\t\trps.put('g', gcell);\n\t\trps.put('r', rcell);\n\t\trps.put('b', blcell);\n\t\trps.put('w', wcell);\n\n\t\tspreadingWildfire.put('t', tCell);\n\t\tspreadingWildfire.put('b', bTCell);\n\t\tspreadingWildfire.put('e', eLCell);\n\n\t\twaTor.put('f', fCell);\n\t\twaTor.put('s', sCell);\n\t\twaTor.put('e', eCell);\n\n\t\tforagingAnts.put('a', aCell);\n\t\tforagingAnts.put('e', eCell);\n\t\tinitExportMap();\n\n\t\tinitCountMap();\n\t}", "private Texture mapaAleatorio(int noAleatorio) {\n if (estadoMapa == EstadoMapa.RURAL){\n if(noAleatorio == 1){\n return texturaFondo1_1;\n }\n if(noAleatorio == 2){\n return texturaFondo1_2;\n }\n if(noAleatorio == 3){\n return texturaFondo1_3;\n }\n if(noAleatorio == 4){\n return texturaFondo1_4;\n }\n if(noAleatorio == 5){\n return texturaFondo1_5;\n }\n } else\n if (estadoMapa == EstadoMapa.URBANO) {\n if(noAleatorio == 1){\n return texturaFondo2_1;\n }\n if(noAleatorio == 2){\n return texturaFondo2_2;\n }\n if(noAleatorio == 3){\n return texturaFondo2_3;\n }\n if(noAleatorio == 4){\n return texturaFondo2_4;\n }\n if(noAleatorio == 5){\n return texturaFondo2_5;\n }\n } else if (estadoMapa == EstadoMapa.UNIVERSIDAD) {\n if(noAleatorio == 1){\n return texturaFondo3_1;\n }\n if(noAleatorio == 2){\n return texturaFondo3_2;\n }\n if(noAleatorio == 3){\n return texturaFondo3_3;\n }\n if(noAleatorio == 4){\n return texturaFondo3_4;\n }\n if(noAleatorio == 5){\n return texturaFondo3_5;\n }\n }else if (estadoMapa == EstadoMapa.SALONES) {\n if (noAleatorio == 1) {\n return texturaFondo4_1;\n }\n if (noAleatorio == 2) {\n return texturaFondo4_2;\n }\n if (noAleatorio == 3) {\n return texturaFondo4_3;\n }\n if (noAleatorio == 4) {\n return texturaFondo4_4;\n }\n if (noAleatorio == 5) {\n return texturaFondo4_5;\n }\n } else if (estadoMapa == EstadoMapa.RURALURBANO) { //Trancisiones\n return texturaRuralUrbano;\n } else if (estadoMapa == EstadoMapa.URBANOUNIVERSIDAD) {\n return texturaUrbanoUniversidad;\n } else if (estadoMapa == EstadoMapa.UNIVERSIDADSALONES) {\n return texturaUniversidadSalones;\n }\n return null;\n }", "private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}", "private void mapValues() {\n\t\tmap.put(1, \"I\");\r\n\t\tmap.put(5, \"V\");\r\n\t\tmap.put(10, \"X\");\r\n\t\tmap.put(50, \"L\");\r\n\t\tmap.put(100, \"C\");\r\n\t\tmap.put(500, \"D\");\r\n\t\tmap.put(1000, \"M\");\r\n\t}", "public static void adicionaMap2() {\n\t\t\t\tcDebitos_DFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"dam\", new Integer[] { 6, 18 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"fiti\", new Integer[] { 19, 26 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"cartorio\", new Integer[] { 39, 76 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"valor\", new Integer[] { 77, 90 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\t\t\t\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"processo\", new Integer[] { 21, 34 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"data_Venc\", new Integer[] { 35, 46 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"tributos\", new Integer[] { 47, 60 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"historico\", new Integer[] { 61, 78 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"valor\", new Integer[] { 79, 90 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\r\n\r\n\t\t// No DAM ANO DATA VENC No. PROCESSO\r\n\t\t// No. PARCELAMENTO VALOR JUROS TOTAL\r\n\t\tcDebitos_JFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_JFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_JFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_JFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_JFlorianopolis.put(\"processo\", new Integer[] { 39, 55 });\r\n\t\tcDebitos_JFlorianopolis.put(\"nParcelamento\", new Integer[] { 55, 76 });\r\n\t\tcDebitos_JFlorianopolis.put(\"valor\", new Integer[] { 77, 104 });\r\n\t\tcDebitos_JFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_JFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t// DAM LIV/FOLHA/CERT. DATA INSC HISTORICO\r\n\t\t// INSCRICAO VALOR\r\n\r\n\t\tcDebitos_J1Florianopolis.put(\"dam\", new Integer[] { 1, 13 });\r\n\t\tcDebitos_J1Florianopolis.put(\"liv_Folha_Cert\", new Integer[] { 14, 34 });\r\n\t\tcDebitos_J1Florianopolis.put(\"data_Insc\", new Integer[] { 35, 46 });\r\n\t\tcDebitos_J1Florianopolis.put(\"historico\", new Integer[] { 47, 92 });\r\n\t\tcDebitos_J1Florianopolis.put(\"inscricao\", new Integer[] { 93, 119 });\r\n\t\tcDebitos_J1Florianopolis.put(\"valor\", new Integer[] { 120, 132 });\r\n\t\t\r\n\t\t\r\n\t\t// No DAM ANO DATA VENC HISTORICO PROCESSO VALOR JUROS TOTAL\r\n\t\tcDebitos_LFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_LFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_LFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_LFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_LFlorianopolis.put(\"historico\", new Integer[] { 39, 76 });\r\n\t\tcDebitos_LFlorianopolis.put(\"processo\", new Integer[] { 77, 91 });\r\n\t\tcDebitos_LFlorianopolis.put(\"valor\", new Integer[] { 92, 104 });\r\n\t\tcDebitos_LFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_LFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\r\n\t}", "private void initializeMaps() {\n\tcodon1 = new HashMap<String,String>();\n\tcodon3 = new HashMap<String,String>();\n\tiupac = new HashMap<String,String>();\n\t\n\tcodon1.put(\"AAA\",\"K\");\n\tcodon1.put(\"AAC\",\"N\");\n\tcodon1.put(\"AAG\",\"K\");\n\tcodon1.put(\"AAT\",\"N\");\n\tcodon1.put(\"ACA\",\"T\");\n\tcodon1.put(\"ACC\",\"T\");\n\tcodon1.put(\"ACG\",\"T\");\n\tcodon1.put(\"ACT\",\"T\");\n\tcodon1.put(\"AGA\",\"R\");\n\tcodon1.put(\"AGC\",\"S\");\n\tcodon1.put(\"AGG\",\"R\");\n\tcodon1.put(\"AGT\",\"S\");\n\tcodon1.put(\"ATA\",\"I\");\n\tcodon1.put(\"ATC\",\"I\");\n\tcodon1.put(\"ATG\",\"M\");\n\tcodon1.put(\"ATT\",\"I\");\n\tcodon1.put(\"CAA\",\"Q\");\n\tcodon1.put(\"CAC\",\"H\");\n\tcodon1.put(\"CAG\",\"Q\");\n\tcodon1.put(\"CAT\",\"H\");\n\tcodon1.put(\"CCA\",\"P\");\n\tcodon1.put(\"CCC\",\"P\");\n\tcodon1.put(\"CCG\",\"P\");\n\tcodon1.put(\"CCT\",\"P\");\n\tcodon1.put(\"CGA\",\"R\");\n\tcodon1.put(\"CGC\",\"R\");\n\tcodon1.put(\"CGG\",\"R\");\n\tcodon1.put(\"CGT\",\"R\");\n\tcodon1.put(\"CTA\",\"L\");\n\tcodon1.put(\"CTC\",\"L\");\n\tcodon1.put(\"CTG\",\"L\");\n\tcodon1.put(\"CTT\",\"L\");\n\tcodon1.put(\"GAA\",\"E\");\n\tcodon1.put(\"GAC\",\"D\");\n\tcodon1.put(\"GAG\",\"E\");\n\tcodon1.put(\"GAT\",\"D\");\n\tcodon1.put(\"GCA\",\"A\");\n\tcodon1.put(\"GCC\",\"A\");\n\tcodon1.put(\"GCG\",\"A\");\n\tcodon1.put(\"GCT\",\"A\");\n\tcodon1.put(\"GGA\",\"G\");\n\tcodon1.put(\"GGC\",\"G\");\n\tcodon1.put(\"GGG\",\"G\");\n\tcodon1.put(\"GGT\",\"G\");\n\tcodon1.put(\"GTA\",\"V\");\n\tcodon1.put(\"GTC\",\"V\");\n\tcodon1.put(\"GTG\",\"V\");\n\tcodon1.put(\"GTT\",\"V\");\n\tcodon1.put(\"TAA\",\"*\");\n\tcodon1.put(\"TAC\",\"Y\");\n\tcodon1.put(\"TAG\",\"*\");\n\tcodon1.put(\"TAT\",\"Y\");\n\tcodon1.put(\"TCA\",\"S\");\n\tcodon1.put(\"TCC\",\"S\");\n\tcodon1.put(\"TCG\",\"S\");\n\tcodon1.put(\"TCT\",\"S\");\n\tcodon1.put(\"TGA\",\"*\");\n\tcodon1.put(\"TGC\",\"C\");\n\tcodon1.put(\"TGG\",\"W\");\n\tcodon1.put(\"TGT\",\"C\");\n\tcodon1.put(\"TTA\",\"L\");\n\tcodon1.put(\"TTC\",\"F\");\n\tcodon1.put(\"TTG\",\"L\");\n\tcodon1.put(\"TTT\",\"F\");\n\n\tcodon3.put(\"AAA\",\"Lys\");\n\tcodon3.put(\"AAC\",\"Asn\");\n\tcodon3.put(\"AAG\",\"Lys\");\n\tcodon3.put(\"AAT\",\"Asn\");\n\tcodon3.put(\"ACA\",\"Thr\");\n\tcodon3.put(\"ACC\",\"Thr\");\n\tcodon3.put(\"ACG\",\"Thr\");\n\tcodon3.put(\"ACT\",\"Thr\");\n\tcodon3.put(\"AGA\",\"Arg\");\n\tcodon3.put(\"AGC\",\"Ser\");\n\tcodon3.put(\"AGG\",\"Arg\");\n\tcodon3.put(\"AGT\",\"Ser\");\n\tcodon3.put(\"ATA\",\"Ile\");\n\tcodon3.put(\"ATC\",\"Ile\");\n\tcodon3.put(\"ATG\",\"Met\");\n\tcodon3.put(\"ATT\",\"Ile\");\n\tcodon3.put(\"CAA\",\"Gln\");\n\tcodon3.put(\"CAC\",\"His\");\n\tcodon3.put(\"CAG\",\"Gln\");\n\tcodon3.put(\"CAT\",\"His\");\n\tcodon3.put(\"CCA\",\"Pro\");\n\tcodon3.put(\"CCC\",\"Pro\");\n\tcodon3.put(\"CCG\",\"Pro\");\n\tcodon3.put(\"CCT\",\"Pro\");\n\tcodon3.put(\"CGA\",\"Arg\");\n\tcodon3.put(\"CGC\",\"Arg\");\n\tcodon3.put(\"CGG\",\"Arg\");\n\tcodon3.put(\"CGT\",\"Arg\");\n\tcodon3.put(\"CTA\",\"Leu\");\n\tcodon3.put(\"CTC\",\"Leu\");\n\tcodon3.put(\"CTG\",\"Leu\");\n\tcodon3.put(\"CTT\",\"Leu\");\n\tcodon3.put(\"GAA\",\"Glu\");\n\tcodon3.put(\"GAC\",\"Asp\");\n\tcodon3.put(\"GAG\",\"Glu\");\n\tcodon3.put(\"GAT\",\"Asp\");\n\tcodon3.put(\"GCA\",\"Ala\");\n\tcodon3.put(\"GCC\",\"Ala\");\n\tcodon3.put(\"GCG\",\"Ala\");\n\tcodon3.put(\"GCT\",\"Ala\");\n\tcodon3.put(\"GGA\",\"Gly\");\n\tcodon3.put(\"GGC\",\"Gly\");\n\tcodon3.put(\"GGG\",\"Gly\");\n\tcodon3.put(\"GGT\",\"Gly\");\n\tcodon3.put(\"GTA\",\"Val\");\n\tcodon3.put(\"GTC\",\"Val\");\n\tcodon3.put(\"GTG\",\"Val\");\n\tcodon3.put(\"GTT\",\"Val\");\n\tcodon3.put(\"TAA\",\"*\");\n\tcodon3.put(\"TAC\",\"Tyr\");\n\tcodon3.put(\"TAG\",\"*\");\n\tcodon3.put(\"TAT\",\"Tyr\");\n\tcodon3.put(\"TCA\",\"Ser\");\n\tcodon3.put(\"TCC\",\"Ser\");\n\tcodon3.put(\"TCG\",\"Ser\");\n\tcodon3.put(\"TCT\",\"Ser\");\n\tcodon3.put(\"TGA\",\"*\");\n\tcodon3.put(\"TGC\",\"Cys\");\n\tcodon3.put(\"TGG\",\"Trp\");\n\tcodon3.put(\"TGT\",\"Cys\");\n\tcodon3.put(\"TTA\",\"Leu\");\n\tcodon3.put(\"TTC\",\"Phe\");\n\tcodon3.put(\"TTG\",\"Leu\");\n\tcodon3.put(\"TTT\",\"Phe\");\n\t\n\tiupac.put(\"-\",\"-\");\n\tiupac.put(\".\",\"-\");\n\tiupac.put(\"A\",\"AA\");\n\tiupac.put(\"B\",\"CGT\");\n\tiupac.put(\"C\",\"CC\");\n\tiupac.put(\"D\",\"AGT\");\n\tiupac.put(\"G\",\"GG\");\n\tiupac.put(\"H\",\"ACT\");\n\tiupac.put(\"K\",\"GT\");\n\tiupac.put(\"M\",\"AC\");\n\tiupac.put(\"N\",\"ACGT\");\n\tiupac.put(\"R\",\"AG\");\n\tiupac.put(\"S\",\"GC\");\n\tiupac.put(\"T\",\"TT\");\n\tiupac.put(\"V\",\"ACG\");\n\tiupac.put(\"W\",\"AT\");\n\tiupac.put(\"Y\",\"CT\");\n \n }", "public int hashCode()\n {\n return getMap().hashCode();\n }", "public HashMap<String, List<ColorId>> checkRocketJumpColors ()\n {\n Map<Square, List<Player>> mapRocket = checkRocketJump();\n HashMap<String, List<ColorId>> hashMapToReturn = new HashMap<>();\n List<ColorId> colorIdList ;\n\n for (Square squareIterate : mapRocket.keySet())\n {\n colorIdList = new ArrayList<>();\n\n for (Player playerIterate : mapRocket.get(squareIterate))\n {\n colorIdList.add(playerIterate.getColor());\n }\n\n hashMapToReturn.put(squareIterate.toStringCoordinates(), colorIdList);\n }\n\n return hashMapToReturn;\n\n }", "private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}", "@Override\n public int hashCode() {\n return getBoundingBox().hashCode();\n }", "private void getMapping() {\n double [][] chars = new double[CHAR_SET_SIZE][1];\n for (int i = 0; i < chars.length; i++) {\n chars[i][0] = i;\n }\n Matrix b = new Matrix(key).times(new Matrix(chars));\n map = b.getArray();\n }", "public Map<String, Kingdom> generateAllRulers() {\n Map<String, String> kingdomWithAnimal;\n kingdomWithAnimal = kingdomRepository.getRulersWithAnimal();\n Map<String, Kingdom> kingdoms = new HashMap<>();\n for (String emblem : kingdomWithAnimal.keySet()) {\n Kingdom kingdom = new Kingdom(emblem, kingdomWithAnimal.get(emblem));\n kingdom.makeCipherFromAnimalName();\n kingdoms.put(emblem, kingdom);\n }\n return kingdoms;\n }", "@Override\n\tpublic Map<IAlgo, Integer> recommandAlgosContained() {\n\t\treturn Collections.EMPTY_MAP;\n\t}", "public static void dump(Map<Character, Object[]> map) {\n\t\tif (map == null) return;\n\t\tint total = 0; int hits=0;\n\t\tfor (Character ch : map.keySet()) {\n\t\t\tObject[] val = map.get(ch);\n\t\t\tint c = (Integer) val[0];\n\t\t\ttotal += c;\n\t\t\tboolean hit =Ciphers.realHomophone(\"\"+val[1]);\n\t\t\tif (hit) hits++;\n\t\t\tint len = (\"\"+val[2]).length();\n\t\t\tSystem.out.println(ch + \": \" + len + \", \" + (float)c*2/len + \", \" + c + \", \" + val[1] + \", \" + val[2] + (hit ? \" HIT \" : \" MISS \"));\n\t\t}\n\t\tSystem.out.println(\"Total: \" + total + \", hits \" + hits + \" ratio \" + (float)hits/map.size());\n\t}", "@Override\n public int hashCode() {\n return Objects.hash(balls);\n }", "private static void sendAll(byte[] bytes) {\n int turn=0;\n for(InetAddress i : map.keySet()) {\n byte[] newBytes = new byte[bytes.length+1];\n for (int j = 0; j < bytes.length; j++) {\n newBytes[j]= bytes[j];\n }\n map.get(i).turn = turn;\n newBytes[bytes.length]= (byte) turn;\n turn++;\n try {\n// System.out.println(Arrays.toString(newBytes));\n// System.out.println(Arrays.toString(DH.convert(newBytes,map.get(i).secret)));\n socket.send(new DatagramPacket(DH.convert(newBytes,map.get(i).secret),newBytes.length,i,2791));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n System.out.println(\"Sent \"+ Arrays.toString(bytes));\n }", "@Override\n public int hashCode() {\n return Objects.hash(JMBAG);\n }", "@Override\n public int hashCode() {\n return new HashCodeBuilder(17, 37)\n .append(level)\n .append(bosses)\n .append(time)\n .toHashCode();\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn Objects.hash(sigla);\n\t}", "@Override\n public int hashCode() {\n return Double.valueOf(lat).hashCode() + Double.valueOf(lon).hashCode();\n }", "HashMap<String,Integer> mapCode(String[] splitwords){\n\t\t\tHashMap<String,Integer> wordsOfCode= new HashMap<String,Integer>();\n\t\t\tLovinsStemmer nonSuffixes=new LovinsStemmer();\n\t\t\t//PorterStemmer nonSuffixes=new PorterStemmer();\n\t\t\tint num=0;\n\t\t\tfor(int i=0; i<splitwords.length;i++) {\n\t\t\t\tString temp=nonSuffixes.stem(splitwords[i]);\n\t\t\t\tif(!totalWords.containsKey(temp)) {\n\t\t\t\t\ttotalWords.put(temp, num);\n\t\t\t\t\t\n\t\t\t\t\twordsOfCode.put(temp,num);\n\t\t\t\t\tnum++;\n\t\t\t\t}else if(!wordsOfCode.containsKey(temp)) {\n\t\t\t\t\twordsOfCode.put(temp,totalWords.get(temp));\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn wordsOfCode;\n\t\t\t\n\t\t}", "private Map<String, List<Integer>> generateOptionRanksMapping(List<FeedbackResponseAttributes> responses) {\n\n Map<FeedbackResponseAttributes, Integer> normalisedRankOfResponse = getNormalisedRankForEachResponse(responses);\n\n Map<String, List<Integer>> optionRanks = new HashMap<>();\n for (FeedbackResponseAttributes response : responses) {\n updateOptionRanksMapping(optionRanks, response.recipient, normalisedRankOfResponse.get(response));\n }\n\n return optionRanks;\n }", "private void setupDefaultTerrainMap() {\n defaultTerrainKindMap.put(getHashCodeofPair(-7,1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(7,1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(-7,-1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(7,-1), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(0,4), TerrainKind.SMALL_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(2,4), TerrainKind.SMALL_FISHERY);\n\n defaultTerrainKindMap.put(getHashCodeofPair(0,-2), TerrainKind.BIG_FISHERY);\n defaultTerrainKindMap.put(getHashCodeofPair(-3,-3), TerrainKind.FIELDS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,-3), TerrainKind.HILLS);\n \t \tdefaultTerrainKindMap.put(getHashCodeofPair(3,-3), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-4,-2), TerrainKind.FOREST);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-2,-2), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,-3), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(2,-2), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(4,-2), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-5,-1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-3,-1), TerrainKind.HILLS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,-1), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,-1), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(3,-1), TerrainKind.FIELDS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(5,-1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-6,0), TerrainKind.HILLS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-4,0), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-2,0), TerrainKind.FOREST);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(0,0), TerrainKind.FOREST);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(2,0), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(4,0), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(6,0), TerrainKind.HILLS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-5,1), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-3,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(3,1), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(5,1), TerrainKind.GOLDFIELD);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-4,2), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-2,2), TerrainKind.GOLDFIELD);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(0,2), TerrainKind.FIELDS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(2,2), TerrainKind.PASTURE);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(4,2), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-3,3), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(-1,3), TerrainKind.SEA);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(1,3), TerrainKind.MOUNTAINS);\n\t\tdefaultTerrainKindMap.put(getHashCodeofPair(3,3), TerrainKind.SEA);\n\t}", "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 }", "@Override\n public int hashCode() {\n int i;\n int result = 17;\n if (getMasp() == null) {\n i = 0;\n } else {\n i = getMasp().hashCode();\n }\n result = 37*result + i;\n return result;\n }", "private Hashtable generateOrientations(String color) {\n Hashtable orientationsHash = new Hashtable();\n Block block = new Block(color); // GT0\n Block newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.yawBlock(); // GT3\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.yawBlock(); // GT6\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.yawBlock(); // GT9\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.pitchBlock(); // GF9\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.rollBlock(); // GF0\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.rollBlock(); // GF3\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.rollBlock(); // GF6\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.yawBlock(); // GL6\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.pitchBlock(); // GL9\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.pitchBlock(); // GL0\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.pitchBlock(); // GL3\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.yawBlock(); // GK3\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.rollBlock(); // GK0\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.rollBlock(); // GK9\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.rollBlock(); // GK6\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.yawBlock(); // GR6\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.pitchBlock(); // GR3\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.pitchBlock(); // GR0\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.pitchBlock(); // GR9\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.rollBlock(); // GB0\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.yawBlock(); // GB9\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.yawBlock(); // GB6\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n block.yawBlock(); // GB3\n newBlock = new Block(block);\n orientationsHash.put(newBlock.getCode(), newBlock);\n\n return orientationsHash;\n }", "private IDictionary<URI, ISet<URI>> makeGraph(ISet<Webpage> webpages) {\n IDictionary<URI, ISet<URI>> graph = new ArrayDictionary<URI, ISet<URI>>();\n ISet<URI> webpageUris = new ChainedHashSet<URI>();\n for (Webpage webpage : webpages) {\n \twebpageUris.add(webpage.getUri());\n }\n for (Webpage webpage : webpages) {\n \tURI pageUri = webpage.getUri();\n \tISet<URI> links = new ChainedHashSet<URI>();\n \tfor (URI uri : webpage.getLinks()) {\n \t\tif (!uri.equals(pageUri) && !links.contains(uri) && webpageUris.contains(uri)) {\n \t\t\tlinks.add(uri);\n \t\t}\n \t}\n \tgraph.put(pageUri, links);\n }\n return graph;\n }", "@Override\n\tpublic String toString() {\t\t\n\t\treturn \"mirMap:\\n\" + mapToString(mirMap) + \"\\ngeneMap:\\n\" + mapToString(geneMap);\n\t}", "void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);", "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}", "void setHashMap();", "private IntLongMap getEdgeIdToOsmWayIdMap() {\n if (edgeIdToOsmWayIdMap == null)\n edgeIdToOsmWayIdMap = new GHIntLongHashMap(osmWayIdSet.size(), 0.5f);\n\n return edgeIdToOsmWayIdMap;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static List<HashMap<String, String>> getChoiceGan(String choice) {\n\t\tList<rcmMusicListMain> musicLists = rcmMusicListMain.getAllMusic();\n\t\t\n\t\tList<HashMap<String, String>> aList = new ArrayList<HashMap<String, String>>();\n\t\tHashMap<String, String> aMap = new HashMap<String, String>();\n\t\tHashMap<String, String> bMap = new HashMap<String, String>();\n\t\t\n\t\tmusicLists.stream()\n\t\t\t.filter(musicList -> musicList.getGenre1().equals(choice) \n\t\t\t\t\t|| musicList.getGenre2().equals(choice))\n\t\t\t.sorted((musicList1, musicList2) -> musicList2.getPlayNum() - musicList1.getPlayNum())\n\t\t\t.limit(10).forEach(musicList -> {\n\t\t\t\t\t//System.out.println(musicList.getSeq()+\". \"+musicList.getTitle()+\" : \"+musicList.getSinger());\n\t\t\t\t\taMap.put(\"TITLE\", musicList.getTitle());\n\t\t\t\t\taMap.put(\"ITEM\", musicList.getSinger());\n\t\t\t\t\taList.add((HashMap<String, String>)aMap.clone());\n\t\t\t\t});\n\t\t\n\t\t\n\t\tfor(int i=0; i<aList.size(); i++) {\n\t\t\tbMap = aList.get(i); \n\t\t\tbMap.put(\"SEQ\", i+1+\"\");\n\t\t\tSystem.out.println(bMap.get(\"SEQ\")+\". \"+bMap.get(\"TITLE\")+\" : \"+bMap.get(\"ITEM\"));\n\t\t\t//System.out.println(aList.get(i).get(\"SEQ\")+\". \"+aList.get(i).get(\"TITLE\")+\" : \"+aList.get(i).get(\"ITEM\"));\n\t\t}\n\t\t\n\t\treturn aList; \n\t}", "private static void initializeMap() {\n\t\tmap = new HashMap<String, MimeTransferEncoding>();\n\t\tfor (MimeTransferEncoding mte : MimeTransferEncoding.values()) {\n\t\t\tmap.put(mte.string, mte);\n\t\t}\n\t}", "private void createBitMap() {\n bitMap = bitMap.copy(bitMap.getConfig(), true);\n Canvas canvas = new Canvas(bitMap);\n Paint paint = new Paint();\n paint.setAntiAlias(true);\n paint.setColor(Color.BLACK);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth(4.5f);\n canvas.drawCircle(50, 50, 30, paint);\n winningBitMap = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas2 = new Canvas(winningBitMap);\n paint.setAntiAlias(true);\n paint.setColor(Color.GREEN);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas2.drawCircle(50, 50, 30, paint);\n bitMapWin = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas3 = new Canvas(bitMapWin);\n paint.setAntiAlias(true);\n paint.setColor(Color.MAGENTA);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas3.drawCircle(50, 50, 30, paint);\n bitMapCat = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas4 = new Canvas(bitMapCat);\n paint.setAntiAlias(true);\n paint.setColor(Color.DKGRAY);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas4.drawCircle(50, 50, 30, paint);\n }", "private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n List<Invertedindex> index = maps.get(term.getKey());\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }else {\r\n List<Invertedindex> index = new ArrayList<>();\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }\r\n if(cleFreq.containsKey(pon.m_cle))\r\n cleFreq.put(pon.m_cle,cleFreq.get(pon.m_cle)+term.getValue());\r\n else cleFreq.put(pon.m_cle,term.getValue());\r\n\r\n }\r\n }\r\n return maps;\r\n }", "public HashMap<Intersection,LinkedList<Segment>> createGraph() {\n for (Intersection inter : intersectionList) {\n LinkedList<Segment> interSegments = new LinkedList<>();\n Long intersectionID = inter.getId();\n for (Segment segment : segmentList) {\n Long segmentOriginId = segment.getOrigin().getId();\n if (segmentOriginId.equals(intersectionID)) {\n interSegments.add(segment);\n }\n }\n graphe.put(inter, interSegments);\n }\n return graphe;\n }", "@Override\n public int hashCode() {\n return Integer.parseInt(this.getPawnOne().getPositionNr() + \"\" + this.getPawnTwo().getPositionNr());\n }", "public void Grasshopper(){\n this.hops = 2;\n this.hopLim = 3;\n }", "private Map<Integer, MessageEncoder> initialiseMap() {\n Map<Integer, MessageEncoder> composerMap = new HashMap<>();\n composerMap.put(AC35MessageType.BOAT_ACTION.getCode(), new BoatActionEncoder());\n composerMap.put(AC35MessageType.REQUEST.getCode(), new RequestEncoder());\n composerMap.put(AC35MessageType.COLOUR.getCode(), new ColourEncoder());\n\n return Collections.unmodifiableMap(composerMap);\n }", "protected Map<Long, byte[]> getMap(DB database) \n\t{\t\t\n\t\t//OPEN MAP\n\t\treturn database.createTreeMap(\"block_heights\")\n\t\t\t\t.keySerializer(BTreeKeySerializer.BASIC)\n\t\t\t\t.makeOrGet();\n\t}", "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 }", "void hashLexicons(Email email) {\n for (String s : email.processedMessage.keySet()) {\n int tempCount = email.processedMessage.get(s);\n \n if(email.ec==EmailClass.ham)\n {\n totalNumberOfWordsInHamDocuments= totalNumberOfWordsInHamDocuments+tempCount;\n }\n else\n {\n totalNumberOfWordsInSpamDocuments = totalNumberOfWordsInSpamDocuments +tempCount;\n }\n //totalNumberOfWords = totalNumberOfWords + tempCount;\n if (words.containsKey(s)) {\n LexiconCount lc = words.get(s);\n long hc = lc.numberOfOccurencesInHamDocuments;\n long sc = lc.numberOfOccurencesInSpamDocuments;\n\n if (email.ec == EmailClass.ham) {\n hc = hc + tempCount;\n } else {\n sc = sc + tempCount;\n }\n words.put(s, new LexiconCount(hc, sc));\n } else {\n long hc=0,sc=0;\n if(email.ec==EmailClass.ham)\n {\n hc=tempCount;\n }\n else\n {\n sc=tempCount;\n }\n words.put(s, new LexiconCount(hc,sc));\n }\n }\n }", "private void generateKeyMappings(HashMap<Integer, Integer> keys)\n {\n int count = 0;\n for (int i = 0; i < 256; i++)\n {\n byte value = (byte) i;\n int transitions = 0;\n int last = value & 1;\n for (int k = 1; k < 8; k++)\n {\n if (((value >> k) & 1) != last)\n {\n last = ((value >> k) & 1);\n transitions++;\n if (transitions > 2)\n {\n break;\n }\n }\n }\n if (transitions <= 2)\n {\n keys.put(i, count++);\n }\n }\n }", "HashMap <String, Command> getMap();", "MAP createMAP();", "public void generateCodes() {\n\t\tArrayList<Chest> chests = new ArrayList<Chest>();\n\t\tArrayList<Key> keys = new ArrayList<Key>();\n\n\t\tfor (Location location : board.getLocations().values()) {\n\t\t\tfor (Tile ta[] : location.getTiles()) {\n\t\t\t\tfor (Tile t : ta) {\n\t\t\t\t\tif (t.getGameObject() instanceof Chest) {\n\t\t\t\t\t\tchests.add((Chest) t.getGameObject());\n\t\t\t\t\t} else if (t.getGameObject() instanceof Key) {\n\t\t\t\t\t\tkeys.add((Key) t.getGameObject());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (keys.size() != chests.size()) {\n\t\t\tthrow new RuntimeException(\"must have same numer of keys and chests\");\n\t\t}\n\n\t\tint num = keys.size();\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tint randy = (int) (Math.random() * keys.size());\n\t\t\tint orton = (int) (Math.random() * keys.size());\n\n\t\t\tkeys.get(randy).setCode(i);\n\t\t\tchests.get(orton).setCode(i);\n\t\t\tchests.get(orton).setContents(new Banana(\"Banana\"));\n\t\t\tkeys.remove(randy);\n\t\t\tchests.remove(orton);\n\t\t}\n\n\t}", "@Override\r\n public int hashCode() {\r\n int hash = 7;\r\n hash = 19 * hash + (int) (this.grauDeEquilibrio ^ (this.grauDeEquilibrio >>> 32));\r\n return hash;\r\n }", "private void coins_a2G(){\n\t\tthis.cube[31] = this.cube[11]; \n\t\tthis.cube[11] = this.cube[2];\n\t\tthis.cube[2] = this.cube[38];\n\t\tthis.cube[38] = this.cube[47];\n\t\tthis.cube[47] = this.cube[31];\n\t}", "private static void initBaseSet() {\r\n KEYS.add(\"0\");\r\n SET.put(\"0\", new Module(new int[]{1, 1, 1, 2, 2, 1, 2, 1, 1}));\r\n KEYS.add(\"1\");\r\n SET.put(\"1\", new Module(new int[]{2, 1, 1, 2, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"2\");\r\n SET.put(\"2\", new Module(new int[]{1, 1, 2, 2, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"3\");\r\n SET.put(\"3\", new Module(new int[]{2, 1, 2, 2, 1, 1, 1, 1, 1}));\r\n KEYS.add(\"4\");\r\n SET.put(\"4\", new Module(new int[]{1, 1, 1, 2, 2, 1, 1, 1, 2}));\r\n KEYS.add(\"5\");\r\n SET.put(\"5\", new Module(new int[]{2, 1, 1, 2, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"6\");\r\n SET.put(\"6\", new Module(new int[]{1, 1, 2, 2, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"7\");\r\n SET.put(\"7\", new Module(new int[]{1, 1, 1, 2, 1, 1, 2, 1, 2}));\r\n KEYS.add(\"8\");\r\n SET.put(\"8\", new Module(new int[]{2, 1, 1, 2, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"9\");\r\n SET.put(\"9\", new Module(new int[]{1, 1, 2, 2, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"A\");\r\n SET.put(\"A\", new Module(new int[]{2, 1, 1, 1, 1, 2, 1, 1, 2}));\r\n KEYS.add(\"B\");\r\n SET.put(\"B\", new Module(new int[]{1, 1, 2, 1, 1, 2, 1, 1, 2}));\r\n KEYS.add(\"C\");\r\n SET.put(\"C\", new Module(new int[]{2, 1, 2, 1, 1, 2, 1, 1, 1}));\r\n KEYS.add(\"D\");\r\n SET.put(\"D\", new Module(new int[]{1, 1, 1, 1, 2, 2, 1, 1, 2}));\r\n KEYS.add(\"E\");\r\n SET.put(\"E\", new Module(new int[]{2, 1, 1, 1, 2, 2, 1, 1, 1}));\r\n KEYS.add(\"F\");\r\n SET.put(\"F\", new Module(new int[]{1, 1, 2, 1, 2, 2, 1, 1, 1}));\r\n KEYS.add(\"G\");\r\n SET.put(\"G\", new Module(new int[]{1, 1, 1, 1, 1, 2, 2, 1, 2}));\r\n KEYS.add(\"H\");\r\n SET.put(\"H\", new Module(new int[]{2, 1, 1, 1, 1, 2, 2, 1, 1}));\r\n KEYS.add(\"I\");\r\n SET.put(\"I\", new Module(new int[]{1, 1, 2, 1, 1, 2, 2, 1, 1}));\r\n KEYS.add(\"J\");\r\n SET.put(\"J\", new Module(new int[]{1, 1, 1, 1, 2, 2, 2, 1, 1}));\r\n KEYS.add(\"K\");\r\n SET.put(\"K\", new Module(new int[]{2, 1, 1, 1, 1, 1, 1, 2, 2}));\r\n KEYS.add(\"L\");\r\n SET.put(\"L\", new Module(new int[]{1, 1, 2, 1, 1, 1, 1, 2, 2}));\r\n KEYS.add(\"M\");\r\n SET.put(\"M\", new Module(new int[]{2, 1, 2, 1, 1, 1, 1, 2, 1}));\r\n KEYS.add(\"N\");\r\n SET.put(\"N\", new Module(new int[]{1, 1, 1, 1, 2, 1, 1, 2, 2}));\r\n KEYS.add(\"O\");\r\n SET.put(\"O\", new Module(new int[]{2, 1, 1, 1, 2, 1, 1, 2, 1}));\r\n KEYS.add(\"P\");\r\n SET.put(\"P\", new Module(new int[]{1, 1, 2, 1, 2, 1, 1, 2, 1}));\r\n KEYS.add(\"Q\");\r\n SET.put(\"Q\", new Module(new int[]{1, 1, 1, 1, 1, 1, 2, 2, 2}));\r\n KEYS.add(\"R\");\r\n SET.put(\"R\", new Module(new int[]{2, 1, 1, 1, 1, 1, 2, 2, 1}));\r\n KEYS.add(\"S\");\r\n SET.put(\"S\", new Module(new int[]{1, 1, 2, 1, 1, 1, 2, 2, 1}));\r\n KEYS.add(\"T\");\r\n SET.put(\"T\", new Module(new int[]{1, 1, 1, 1, 2, 1, 2, 2, 1}));\r\n KEYS.add(\"U\");\r\n SET.put(\"U\", new Module(new int[]{2, 2, 1, 1, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"V\");\r\n SET.put(\"V\", new Module(new int[]{1, 2, 2, 1, 1, 1, 1, 1, 2}));\r\n KEYS.add(\"W\");\r\n SET.put(\"W\", new Module(new int[]{2, 2, 2, 1, 1, 1, 1, 1, 1}));\r\n KEYS.add(\"X\");\r\n SET.put(\"X\", new Module(new int[]{1, 2, 1, 1, 2, 1, 1, 1, 2}));\r\n KEYS.add(\"Y\");\r\n SET.put(\"Y\", new Module(new int[]{2, 2, 1, 1, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"Z\");\r\n SET.put(\"Z\", new Module(new int[]{1, 2, 2, 1, 2, 1, 1, 1, 1}));\r\n KEYS.add(\"-\");\r\n SET.put(\"-\", new Module(new int[]{1, 2, 1, 1, 1, 1, 2, 1, 2}));\r\n KEYS.add(\".\");\r\n SET.put(\".\", new Module(new int[]{2, 2, 1, 1, 1, 1, 2, 1, 1}));\r\n KEYS.add(\" \");\r\n SET.put(\" \", new Module(new int[]{1, 2, 2, 1, 1, 1, 2, 1, 1}));\r\n KEYS.add(\"$\");\r\n SET.put(\"$\", new Module(new int[]{1, 2, 1, 2, 1, 2, 1, 1, 1}));\r\n KEYS.add(\"/\");\r\n SET.put(\"/\", new Module(new int[]{1, 2, 1, 2, 1, 1, 1, 2, 1}));\r\n KEYS.add(\"+\");\r\n SET.put(\"+\", new Module(new int[]{1, 2, 1, 1, 1, 2, 1, 2, 1}));\r\n KEYS.add(\"%\");\r\n SET.put(\"%\", new Module(new int[]{1, 1, 1, 2, 1, 2, 1, 2, 1}));\r\n }", "Map <String,Integer> RepresentationBinaire(BasicSet A){\r\n\t\tMap<String,Integer> bit=new TreeMap<String,Integer>();\r\n\t\tVector<String> v=context.getAttributes();\t\t\r\n\t\tBasicSet attributes=new BasicSet();\r\n\t\tattributes.addAll(v);\r\n\r\n\t\tfor(String item: attributes )\r\n\t\t{\r\n\t\t\tbit.put(item,0);\t\t\r\n\t\t}\r\n\t\tfor(String item: attributes)\r\n\t\t{\t\t\r\n\t\t\tfor(String it: A){\t\r\n\t\t\t\tif(it.equals(item)){\r\n\t\t\t\t\tbit.put(item,1);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn bit;\r\n\t}", "private String hash(){\r\n return Utility.SHA512(this.simplify());\r\n }", "public static Map<String, Double> getMutMap(){\r\n\t\treturn new HashMap<String, Double>(codeToMutRateMap);\r\n\t}", "private void genShotMap(int[] shotMapGlob, int[] board, int xShot, int yShot){\n\t\tint i, xOff, yOff;\n\t\tfor(i = 0; i < shotMapGlob.length; i++){\n\t\t\tshotMapGlob[i] = -1;\n\t\t}\n\n\t\tshotMapGlob[yShot*GRID+xShot] = -99999;\n\t\tfor(int[] offset : MATRIX){\n\t\t\tfor(yOff = yShot+offset[0], xOff = xShot+offset[1]; (yOff > -1 && yOff < 10) && (xOff > -1 && xOff < 10); yOff += offset[0], xOff += offset[1]){\n\t\t\t\tif(board[yOff*GRID+xOff] == 0){\n\t\t\t\t\tshotMapGlob[yOff*GRID+xOff] = (((yOff&0xf) << 4) | xOff&0xf); // Rather than calling encode, doing it inline\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }", "public final /* synthetic */ Map mo33709i(List list) {\n int i;\n Map<String, C2168bw> q = m967q(list);\n HashMap hashMap = new HashMap();\n Iterator it = list.iterator();\n while (it.hasNext()) {\n String str = (String) it.next();\n C2168bw bwVar = q.get(str);\n if (bwVar == null) {\n i = 8;\n } else {\n if (C2183ck.m1018f(bwVar.f1693c.f1688c)) {\n try {\n bwVar.f1693c.f1688c = 6;\n this.f1704e.mo33869a().execute(new C2165bt(this, bwVar));\n this.f1703d.mo33696a(str);\n } catch (C2155bj unused) {\n f1700a.mo33811d(\"Session %d with pack %s does not exist, no need to cancel.\", Integer.valueOf(bwVar.f1691a), str);\n }\n }\n i = bwVar.f1693c.f1688c;\n }\n hashMap.put(str, Integer.valueOf(i));\n }\n return hashMap;\n }", "public int makeGlobal(){\r\n\t\tif(mapExists && this.creationTime > SimClock.getTime() - TIMEOUT){\r\n\t\t//TODO: merge new maps\t\r\n\t\t\treturn globalMap.size();\r\n\t\t}\r\n\t\telse if(mapExists && this.creationTime <= SimClock.getTime() - TIMEOUT){\r\n\t\t//restart my map\r\n\t\t\tglobalMap = null;\r\n\t\t\tsynced = -1;\r\n\t\t\tmapExists = false;\r\n\t\t\tref_id = -1;\r\n\t\t\tthis.creationTime = SimClock.getTime();\r\n\t\t\t\r\n\t\t}\r\n\t\t//usar 3 estáticos para ajustar coordenadas\r\n\t\t\r\n\t\tMap<Integer, Coord> m = new HashMap<Integer, Coord>();\r\n\t\tArrayList<Integer> staticNBs = new ArrayList<Integer>();\r\n\t\t/*first find the static nodes i have in my map*/\r\n\t\tif(this.myMap == null || this.myMap.getMap() == null) return -1;\r\n\t\tfor(Map.Entry<Integer, Coord> nb : this.myMap.getMap().entrySet()){\r\n\t\t\t/*add them to my map*/\r\n\t\t\tif (staticNodes.keySet().contains(nb.getKey())){\r\n\t\t\t\tstaticNBs.add(nb.getKey());\t\r\n\t\t\t\tm.put(nb.getKey(), staticNodes.get(nb.getKey()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(staticNBs.size() < 3){\r\n\t\t\t//core.Debug.p(\"can't determine global coordinates\");\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\telse{\r\n\t\t\t//map centered on certain static node, using real coordinates.\r\n\t\t\tMap.Entry<Integer, NodePositionsSet> s = startingGlobalMap(staticNBs);\r\n\t\t\t//core.Debug.p(\"***map centered on static node\" + ref_id + \"***\");\r\n\t\t\t//core.Debug.p(this.toString());\r\n\t\t\tif(s.getValue() != null){\r\n\t\t\t\t//core.Debug.p(\"globalmap not null! wohoo!\");\r\n\t\t\t\t//core.Debug.p(\"t= \" + SimClock.getTime() + \" base map:\" + realMap(s.getValue().getMap()));\r\n\t\t\t\t/*now mix this map*/\r\n\t\t\t\t//core.Debug.p(\"+++mixed map:\" + realMap(s.getValue().getMap()));\r\n\t\t\t\tglobalMap = NodePositionsSet.mixMap(s.getValue().getMap(), myMap.getMap(), ref_id, myID);\r\n\t\t\t\t//core.Debug.p(\"+++mixed map:\" + realMap(globalMap));\r\n\t\t\t\tif(globalMap == null) return -1;\r\n\t\t\t\tlocalmix();\r\n\t\t\t\tif(globalMap == null) return -1;\r\n\t\t\t\tthis.updateTime = SimClock.getTime();\r\n\t\t\t\treturn globalMap.size();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcore.Debug.p(\"can't determine global coordinates\");\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static int getHashOfMap(\n HashSet<Class> pre, Object mapObj, int prevDepth) {\n if (!(mapObj instanceof Map)) {\n logger.error(\"The given object (\" + mapObj + \") of class \" +\n mapObj.getClass() + \" is not a map.\",\n new IllegalStateException());\n Runtime.getRuntime().halt(1);\n }\n\n int cnt = 0, hash = 0;\n for (Object key : ((Map) mapObj).keySet()) {\n if (cnt++ >= Config.fanoutFactor) {\n break;\n }\n int keyHash = getHash(pre, key, prevDepth);\n int valHash = getHash(pre, ((Map) mapObj).get(key), prevDepth);\n String entryString = keyHash + \"->\" + valHash;\n hash += entryString.hashCode();\n }\n return hash;\n }", "private void asignNeighbours(String split [], String planetName){\n\t\tdouble length = Double.parseDouble(split[1]);\n\t\tboolean danger = Boolean.parseBoolean(split[2]);\n\t\t\n\t\tif(factoryMap.containsKey(planetName)&&factoryMap.containsKey(split[0])){\n\t\t\tfactoryMap.get(planetName).addNeghbour(new Path(length, factoryMap.get(split[0]), danger));\t\n\t\t}\n\t\tif(factoryMap.containsKey(planetName) && galaxy.containsKey(split[0])){\n\t\t\tfactoryMap.get(planetName).addNeghbour(new Path(length, galaxy.get(split[0]), danger));\t\n\t\t}\n\t\tif(galaxy.containsKey(planetName) && factoryMap.containsKey(split[0])){\n\t\t\tgalaxy.get(planetName).addNeghbour(new Path(length, factoryMap.get(split[0]), danger));\t\n\t\t}\n\t\tif(galaxy.containsKey(planetName) && galaxy.containsKey(split[0])){\n\t\t\tgalaxy.get(planetName).addNeghbour(new Path(length, galaxy.get(split[0]), danger));\n\t\t}\n\t}" ]
[ "0.5740712", "0.5517579", "0.54501086", "0.54227483", "0.5417205", "0.5381523", "0.533372", "0.5312509", "0.5301446", "0.5284516", "0.5252046", "0.5242357", "0.51642334", "0.5134536", "0.51221883", "0.5103933", "0.51003623", "0.50982475", "0.50971764", "0.5083324", "0.5074522", "0.5071654", "0.50710356", "0.5068229", "0.50517166", "0.5048989", "0.5047948", "0.5043184", "0.50376815", "0.5036816", "0.50320935", "0.5015766", "0.5012151", "0.5006073", "0.5004785", "0.4998401", "0.49956524", "0.4995651", "0.49897882", "0.49782422", "0.49769935", "0.49763706", "0.4969356", "0.4962723", "0.49614567", "0.49600294", "0.49502987", "0.49475592", "0.4931539", "0.49273765", "0.49272546", "0.4926123", "0.49180862", "0.49132574", "0.4907506", "0.49051216", "0.49038112", "0.49004897", "0.48910648", "0.48901623", "0.48823556", "0.4873645", "0.48735362", "0.4873265", "0.48694006", "0.486449", "0.48599377", "0.48536426", "0.48535576", "0.48417705", "0.4840943", "0.48387432", "0.48379138", "0.4836667", "0.48315245", "0.48250613", "0.48244894", "0.48095423", "0.4802917", "0.4800247", "0.4798863", "0.47938374", "0.4791531", "0.47911403", "0.47907546", "0.47882807", "0.47871664", "0.478625", "0.4784792", "0.47830766", "0.47738403", "0.47716758", "0.47707", "0.476258", "0.47601494", "0.47594655", "0.4758618", "0.47567555", "0.4753528", "0.47512424", "0.47474524" ]
0.0
-1
This event is run, once a user joins the server
@EventHandler public void OnPlayerJoin (PlayerJoinEvent e) throws SQLException{ Player p = e.getPlayer(); e.setJoinMessage(null); JoinedServer(p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void memberJoined(ClusterEvent e) {}", "@SuppressWarnings(\"deprecation\")\n @EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)\n\tvoid onPlayerJoin(PlayerJoinEvent event)\n\t{\n\t\tPlayer player = event.getPlayer();\n\t\tUUID playerID = player.getUniqueId();\n\t\t\n\t\t//note login time\n\t\tDate nowDate = new Date();\n long now = nowDate.getTime();\n\n\t\t//if player has never played on the server before...\n\t\tif(!player.hasPlayedBefore())\n\t\t{\n\t\t //if in survival claims mode, send a message about the claim basics video (except for admins - assumed experts)\n\t\t if(instance.config_claims_worldModes.get(player.getWorld()) == ClaimsMode.Survival && !player.hasPermission(\"griefprevention.adminclaims\") && this.dataStore.claims.size() > 10)\n\t\t {\n\t\t WelcomeTask task = new WelcomeTask(player);\n\t\t Bukkit.getScheduler().scheduleSyncDelayedTask(instance, task, instance.config_claims_manualDeliveryDelaySeconds * 20L);\n\t\t }\n\t\t}\n\n\t\t//in case player has changed his name, on successful login, update UUID > Name mapping\n\t\tinstance.cacheUUIDNamePair(player.getUniqueId(), player.getName());\n\t}", "@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)\n public void onPlayerJoin(PlayerJoinEvent ev) {\n ObjectiveSender.handleLogin(ev.getPlayer().getUniqueId());\n }", "@Override\n\tpublic void onUserJoinedLobby(LobbyData arg0, String arg1) {\n\t\t\n\t}", "@EventHandler\r\n\tpublic void onJoin(PlayerJoinEvent e) {\r\n\t\tBukkit.broadcastMessage(ChatColor.GRAY + \"Fellow Gamer \" +\r\n\t\t\t\t\t\t\t\tChatColor.YELLOW + e.getPlayer().getDisplayName() + \r\n\t\t\t\t\t\t\t\tChatColor.GRAY + \" has joined.\");\r\n\t}", "@Override\n public void onGuildMemberJoin(@NotNull GuildMemberJoinEvent event) {\n super.onGuildMemberJoin(event);\n event.getMember().getUser().openPrivateChannel().queue((channel) -> {\n channel.sendMessage(Settings.WELCOME_MESSAGE).queue();\n });\n }", "protected void onJoin(String channel, String sender, String login, String hostname) {}", "@EventHandler\r\n\tpublic void onJoin(final PlayerJoinEvent e){\n\t\tBukkit.getScheduler().runTaskLater(QuickShop.instance, new Runnable(){\r\n\t\t\t@Override\r\n\t\t\tpublic void run(){\r\n\t\t\t\tMsgUtil.flush(e.getPlayer());\r\n\t\t\t}\r\n\t\t}, 60);\r\n\t}", "@EventHandler(priority = EventPriority.HIGHEST)\n public void onPlayerJoin(PlayerJoinEvent playerJoinEvent) {\n final Player player = playerJoinEvent.getPlayer();\n\n // Checks if the update notify setting was enabled and if the player has permission to see update notifications\n if(configFile.getBoolean(\"Update_Notify\") && Utilities.checkPermissions(player, true, \"omegavision.update\", \"omegavision.admin\")) {\n // Check the plugins version against the spigotMC and see if it is up-to-date\n new SpigotUpdater(pluginInstance, 73013).getVersion(version -> {\n int spigotVersion = Integer.parseInt(version.replace(\".\", \"\"));\n int pluginVersion = Integer.parseInt(pluginInstance.getDescription().getVersion().replace(\".\", \"\"));\n\n if(pluginVersion >= spigotVersion) {\n Utilities.message(player, \"#00D4FFYou are already running the latest version\");\n return;\n }\n\n PluginDescriptionFile pdf = pluginInstance.getDescription();\n Utilities.message(player,\n \"#00D4FFA new version of #FF4A4A\" + pdf.getName() + \" #00D4FFis avaliable!\",\n \"#00D4FFCurrent Version: #FF4A4A\" + pdf.getVersion() + \" #00D4FF> New Version: #FF4A4A\" + version,\n \"#00D4FFGrab it here:#FF4A4A https://www.spigotmc.org/resources/omegavision.73013/\"\n );\n });\n }\n\n // Add the user to the user data map if they aren't currently in it.\n if(player.getFirstPlayed() == System.currentTimeMillis()) {\n userDataHandler.getUserDataMap().putIfAbsent(player.getUniqueId(), new ConcurrentHashMap<>());\n } else {\n userDataHandler.addUserToMap(player.getUniqueId());\n }\n\n // Check if the Night Vision Login setting was enabled and the player has a\n // true night vision status in the map and permission for night vision long.\n // If so, Apply night vision to them once they have logged in. Otherwise, remove it.\n if(configFile.getBoolean(\"Night_Vision_Settings.Night_Vision_Login\") && (boolean) userDataHandler.getEffectStatus(player.getUniqueId(), UserDataHandler.NIGHT_VISION) && Utilities.checkPermissions(player, true, \"omegavision.nightvision.login\", \"omegavision.nightvision.admin\", \"omegavision.admin\")) {\n Utilities.addPotionEffect(player, PotionEffectType.NIGHT_VISION, 60 * 60 * 24 * 100 ,1, particleEffects, ambientEffects, nightvisionIcon);\n } else {\n userDataHandler.setEffectStatus(player.getUniqueId(), false, UserDataHandler.NIGHT_VISION);\n Utilities.removePotionEffect(player, PotionEffectType.NIGHT_VISION);\n }\n\n if(configFile.getBoolean(\"Night_Vision_Limit.Enabled\")) {\n if((boolean) userDataHandler.getEffectStatus(player.getUniqueId(), UserDataHandler.LIMIT_REACHED)) {\n NightVisionToggle nightVisionToggle = new NightVisionToggle(pluginInstance, player);\n nightVisionToggle.limitResetTimer(player);\n }\n }\n }", "@EventHandler(ignoreCancelled = true)\n public void onPlayerJoin(PlayerJoinEvent event) {\n new AtlasTask() {\n @Override\n public void run() {\n if (event.getPlayer().isOnline()) {\n update(event.getPlayer());\n }\n }\n }.later(20);\n }", "@InvokeEvent\n public void onServerJoin(ServerJoinEvent event) {\n if (Configuration.INSTANCE.showUpdateMessages() && !isLatestVersion) {\n // Run the update message method.\n sendUpdateMessage();\n }\n\n }", "@EventHandler\r\n public void onPlayerJoinEvent(PlayerJoinEvent event) {\r\n Player p = event.getPlayer();\r\n plugin.sendStatusMsg(p);\r\n }", "@Override\n\tpublic void onJoinLobbyDone(LobbyEvent arg0) {\n\t\tMain.log(getClass(), \"onJoinLobbyDone\");\n\t}", "@Override\n\tpublic void onUserJoinedRoom(RoomData arg0, String arg1) {\n\t\t\n\t}", "private void notifyUserLoggedInListener(UserLoggedInEvent event) {\r\n \t\tfor (IUserLoggedInListener listener : this.userConnectedListener) {\r\n \t\t\tlistener.userLoggedIn(event);\r\n \t\t}\r\n \t}", "@EventHandler\n\tpublic void onPlayerJoin(PlayerJoinEvent e) {\n\t\tfinal Player p = e.getPlayer();\n\t\t\n\t\tif (UpdateListener.isAnewUpdateAvailable()) {\n\t\t\tif (p.hasPermission(\"AlmostFlatLandsReloaded.UpdateMessage\")) {\n\t\t\t\tp.sendMessage(Options.msg.get(\"[AlmostFlatLandsReloaded]\") + Options.msg.get(\"msg.3\"));\n\t\t\t}\n\t\t}\n\t}", "public void onConnected() {\n userName = conn.getUsername();\n tellManagers(\"I have arrived.\");\n tellManagers(\"Running {0} version {1} built on {2}\", BOT_RELEASE_NAME, BOT_RELEASE_NUMBER, BOT_RELEASE_DATE);\n command.sendCommand(\"set noautologout 1\");\n command.sendCommand(\"set style 13\");\n command.sendCommand(\"-notify *\");\n Collection<Player> players = tournamentService.findScheduledPlayers();\n for (Player p : players) {\n command.sendCommand(\"+notify {0}\", p);\n }\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_ARRIVED);\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_LEFT);\n\n Runnable task = new SafeRunnable() {\n\n @Override\n public void safeRun() {\n onConnectSpamDone();\n }\n };\n //In 2 seconds, call onConnectSpamDone().\n scheduler.schedule(task, 4, TimeUnit.SECONDS);\n System.out.println();\n }", "public void joinChannel() {\n String userId = AuthenticationSingleton.getAdaptedInstance().getUid();\n String token1 = generateToken(userId);\n mRtcEngine.setAudioProfile(Constants.AUDIO_SCENARIO_SHOWROOM, Constants.AUDIO_SCENARIO_GAME_STREAMING);\n int joinStatus = mRtcEngine.joinChannelWithUserAccount(token1, appointment.getId(), userId);\n if (joinStatus == SUCCESS_CODE) {\n appointment.addInCallUser(new DatabaseUser(userId));\n }\n }", "@EventHandler\n public void onPlayerJoin(PlayerJoinEvent event){\n if(!Settings.exServers.contains(Settings.pluginServerName)){\n // Give selector item\n Selector.giveSelector(event.getPlayer());\n }\n }", "@EventHandler\n public void onPlayerJoinEvent(PlayerJoinEvent e)\n {\n Player player = e.getPlayer();\n String playerName = player.getName();\n \n this.afkPlayers.put(playerName, false);\n this.afkPlayersAuto.put(playerName, false);\n this.afkLastSeen.put(playerName, new GregorianCalendar());\n \n player.sendMessage(this.getListMessage());\n }", "@EventHandler\n public void onPlayerConnect(PlayerJoinEvent e){\n Player p = e.getPlayer();\n GuildMCFunctions functions = new GuildMCFunctions();\n if (p.hasPlayedBefore()){\n functions.displayGuildInfo(p);\n GuildPlayer gp = GuildPlayer.getGuildPlayer(p);\n if(gp.getRole() != GuildRole.NONGUILDED) {\n Guild guild = Guild.getGuildByName(gp.getGuild());\n String[] messages = {\"§6§l[§a§lGuildMC§6§l] §r§e==-==-==-==-==-==-==-==-==-==-==\", ChatColor.BLUE + \"-= \" + guild.getName() + \" =-\", ChatColor.AQUA + \"Your role: \" + gp.getRole(), ChatColor.GREEN + \"Guild Level: \" + guild.getExperience()};\n for (String i : messages) {\n p.sendMessage(i);\n }\n } else {\n p.sendMessage(\"§f[§aGuildMC§f] You don't have guild.\");\n }\n } else {\n GuildPlayer newgplayer = new GuildPlayer(p.getName(),GuildRole.NONGUILDED,false, \"default\");\n SerializationManager serializationManager = new SerializationManager();\n String json = serializationManager.serializeGuildProfile(newgplayer);\n File file = new File(Main.savePlayerDir, p.getName()+\".json\");\n FileUtils.save(file,json);\n }\n\n }", "public void nodeJoined(final ClusterEvent event) {\n }", "void join(User user);", "public void onUserOnline(RpcProxyBase proxy,Object cookie){\n\t}", "void onJoin(String joinedNick);", "@EventHandler\n\tpublic void onJoin(PlayerJoinEvent event) {\n\t\t\n\t\tif (PlaytimeConfig.getPlaytimeConfig().get(\"players.\" + event.getPlayer().getUniqueId()) == null) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tint ticks = PlaytimeConfig.getPlaytimeConfig().getInt(\"players.\" + event.getPlayer().getUniqueId() + \".playtime\");\n\t\t\tevent.getPlayer().setStatistic(Statistic.PLAY_ONE_TICK, ticks);\n\t\t}\n\t}", "private void UserJoinChannel(ClientData d)\n\t{\n\t\tApplicationManager.textChat.writeLog(d.ClientName + \" Join to \" + currentChannel.ChannelName);\n\t\tSendMessage(null, MessageType.channelInfo);\n\n\t}", "void notifyPlayerJoined(String username);", "private void joinNewClient() {\r\n\t\t\tString clientName = _clientView.getUserName();\r\n\t\t\tif(clientName == null)\r\n\t\t\t\treturn;\r\n\t\t\t_clientModel.connectToServer();\r\n\t\t\t_clientModel.joinChat(clientName);\r\n\t\t}", "@Override\n\tpublic void onGetOnlineUsersDone(AllUsersEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void afterConnectionEstablished(WebSocketSession session) throws Exception {\n\t\tlog.info(\" === afterConnectionEstablished 실행 === \");\n\t\tMap<String, Object> map = session.getAttributes();\n\t\tSessionVo sv = (SessionVo) map.get(\"loginnedMember\");\n\t\tif (sv != null) {\n\t\t\tlog.info(\"닉네임 : \" + sv.getNickname());\n\t\t\tusers.put(sv, session);\n\t\t}\n\t}", "@EventHandler(priority = EventPriority.MONITOR)\n\tvoid onPlayerJoin(PlayerJoinEvent event)\n\t{\n\t\t//Add the player to the correct permissions groups for their professions\n\t\tPlayer player = event.getPlayer();\n\t\tUUID uuid = player.getUniqueId();\n\t\tProfessionStats prof = new ProfessionStats(perms, data, config, uuid);\n\t\tfor (String pr: prof.getProfessions())\n\t\t\tperms.playerAdd(null, player, config.getString(\"permission_prefix\") + \".\" + pr + \".\"\n\t\t\t\t\t+ prof.getTierName(prof.getTier(pr)));\n\t\t\n\t\t//Add the player's name and UUID to file.\n\t\tdata.set(\"data.\" + uuid + \".name\", player.getName());\n\t}", "public void onPlayerLoggedIn() {\n\t\tshowPlayerButtons();\n\t}", "@EventHandler\r\n\t\tpublic void onLogin(PlayerJoinEvent e){\n\t\t\t\r\n\t\t\ttry {\r\n File file = new File(\"plugins\"+File.separator+\"TitansAndKings\"+File.separator+\"users\"+File.separator+e.getPlayer().getName()+\".yml\");\r\n if(!(file.exists())){\r\n file.createNewFile();\r\n } \r\n } catch (IOException event) {\r\n event.printStackTrace();\r\n }\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t}", "private boolean joinGame() throws RemoteException{\n\t\tgui.showLoginWindow(playerDetails);\n\n\t\twhile(!gui.isUserDataAvailable()){\n\t\t\t// wait for user to enter details\n\t\t\tDebug.log(\"MainMenu\", \"waiting for player details\");\n\t\t\ttry{\n\t\t\t\tThread.sleep(1000);\n\t\t\t}catch(InterruptedException e){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t}\n\t\t}\n\t\tplayerDetails = gui.getPlayerDetails();\n\t\tDebug.log(\"MainMenu\", \"player details received!\");\n\n\t\tif(playerDetails == null) quitGame(false); // quit if player declined/cancelled to enter details\n\n\t\t/* Get preferred position */\n\t\tpreferredPosition = gui.getPreferredPosition();\n\n\t\t/* Register this client as Callback */\n\t\treturn server.connect(this, myHost, myPort, preferredPosition, false, playerDetails.getFirstName(), playerDetails.getSurname(),\n\t\t\t\tplayerDetails.getAddress(), playerDetails.getPhone(), playerDetails.getUsername(), playerDetails.getPassword());\n\t}", "@EventHandler\n public void onPlayerJoinGameEvent(GameJoinEvent event) {\n this.plugin.getServer().getScheduler().runTaskAsynchronously(this.plugin, () -> {\n synchronized (this.statsController) {\n final Stats stats = GameListener.this.statsController.getByPlayer(event.getPlayer());\n stats.setAmountOfGamesPlayed(stats.getAmountOfGamesPlayed() + 1);\n this.statsController.store(stats);\n this.updateStats(event.getPlayer(), stats);\n }\n });\n }", "@Override\n public void preStart() {\n cluster.subscribe(self(), ClusterEvent.MemberUp.class);\n }", "@SubscribeEvent\n public void onVoiceJoined(GuildVoiceJoinEvent event) {\n if (event.getMember().getUser().isBot()) return;\n // Logic\n GuildUserModel guildUser = taules.dataManager.getGuildUserModel(event.getGuild().getIdLong(), event.getMember());\n DB.save(new CallLogModel(guildUser.getId()));\n }", "public void joinServer(String userName)\n\t{\n\t\ttry {\n\t\t\tSocket toServer = new Socket(server, directorySocket);\n\t\t\tObjectOutputStream outToServer = new ObjectOutputStream(toServer.getOutputStream());\n\t\t\t\n\t\t\tthis.userName = userName;\n\t\t\t\n\t\t\tServerMessage m = new ServerMessage();\n\t\t\tm.setCommand(JOIN);\n\t\t\tm.setUser(new UserBean(this.hostName, userName, ipAddress));\n\t\t\t\n\t\t\toutToServer.writeObject(m);\n\t\t\t\n\t\t} catch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void onServiceConnected() {\r\n \t// Display the list of sessions\r\n\t\tupdateList();\r\n }", "public void handleUsersLeft(ChatRoomSession chatRoomSession,\n Set<ChatRoomUser> chatRoomUserSet)\n {\n updateMemberList(chatRoomUserSet, true);\n }", "public JoinListener (MainHG mainclass){\n\t\tplugin = mainclass;\n\t\tmainclass.getServer().getPluginManager().registerEvents(this, mainclass);\n\t}", "@Subscribe\n public void onEvent(Change_Username event) {\n textView_player.setText(\"Welcome \"+event.getUsername());\n data.setUsername(event.getUsername());\n app.save();\n\n }", "@Override\n\tpublic void onUserLeftLobby(LobbyData arg0, String arg1) {\n\t\t\n\t}", "private void handleMangerKickUserOut() {\n String userName = EventMessageParser.extractUserName(this.message);\n SocketConnection targetConnection = SocketManager.getInstance()\n .getUserConnection(userName);\n targetConnection.send(this.message);\n }", "public void loginSuccess(@Observes org.jboss.seam.security.events.LoggedInEvent event) {\n try {\n log.info(\"Login successfully for user : \" + event.getUser().getId());\n FacesContext context = FacesContext.getCurrentInstance();\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\n //Redirect to the home page\n if (identity.hasRole(\"admin\", \"crm\", \"GROUP\")\n || identity.hasRole(\"commercial\", \"crm\", \"GROUP\")) {\n context.getExternalContext().redirect(request.getContextPath() + \"/backoffice/home.jsf\");\n }else if(identity.hasRole(\"client\", \"crm\", \"GROUP\")){\n context.getExternalContext().redirect(request.getContextPath() + \"/frontoffice/home.jsf\");\n }\n //Sending welcome message\n messages.info(\"Bienvenue \"+event.getUser().getId());\n } catch (IOException ex) {\n log.error(ex.getMessage());\n }\n }", "@Override\n public void run() {\n P2PContext.getInstance().createShardProfilePreferences();\n String userId = P2PContext.getLoggedInUser();\n String deviceId = P2PContext.getCurrentDevice();\n DBSyncManager.getInstance(that).upsertUser(userId, deviceId, \"Photo Message\");\n that.manager.notifyUI(\"Added user -> \" + userId, \" --------> \", LOG_TYPE);\n that.manager.startBluetoothBased();\n }", "private void onUserJoined(long uid, String recordingDir) {\r\n\t\tfor (RecordingEventHandler oberserver : recordingEventHandlers) {\r\n\t\t\toberserver.onUserJoined(uid, recordingDir);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void playerJoining(String playerID) {\n\t}", "@Override\n public void onLoggedIn() {\n\n }", "@Override\n\tpublic void afterConnectionEstablished(WebSocketSession session) throws Exception {\n\t\tusers.add(session);\n\t\t//\n\t}", "@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)\n public void onPlayerLogin(PlayerLoginEvent event) {\n String playerName = event.getPlayer().getName();\n \n if(plugin.bannedPlayers.contains(playerName)){\n \t event.setKickMessage(\"You are banned from this server!\");\n \t event.setResult(Result.KICK_BANNED);\n \t \n }\n \n \n }", "@Listener\n public void onServerStart(GameStartedServerEvent event) {\n logger.debug(\"*************************\");\n logger.debug(\"HI! MY PLUGIN IS WORKING!\");\n logger.debug(\"*************************\");\n }", "void onServerBecomesAvailable(ServerBecomesAvailableEvent event);", "@Override\n\tpublic void handlerAdded(ChannelHandlerContext ctx) throws Exception {\n\t\tSystem.out.println(\"new user:\" + ctx.name());\n\t}", "@Override\n public void listenForLogins() {\n }", "@EventHandler\n public void onPlayerJoin(PlayerJoinEvent e) {\n plugin.getPlayer(e.getPlayer()).forceStopAFK();\n }", "@Override\n\tpublic void playerJoined(String playerID) {\n\t}", "private void joinChannel() {\n // Get the User Id for the current user\n final String userId = mUser.getUid();\n // User Id set to 0 for auto handling by Agora\n int uid = 0;\n // Token object\n RtcTokenBuilder token = new RtcTokenBuilder();\n // Time stamp used for length of token\n int timestamp = (int)(System.currentTimeMillis() / 1000 + expirationTimeInSeconds);\n\n String uId = Objects.requireNonNull(mAuth.getCurrentUser()).getUid();\n\n addCallToDb(uId); // Add current user to db for active calls\n\n try {\n // Create a token using Agora Sdk\n agora_token = token.buildTokenWithUid(getString(R.string.agora_app_id), getString(R.string.agora_app_certificate),\n channelName, uid, RtcTokenBuilder.Role.Role_Publisher, timestamp);\n } catch (Exception e) {\n e.printStackTrace();\n }\n // Join the channel with the given token and channel name\n mRtcEngine.joinChannel(agora_token, channelName, \"\", uid);\n }", "public void handleUsersJoined(ChatRoomSession chatRoomSession,\n Set<ChatRoomUser> chatRoomUserSet)\n {\n updateMemberList(chatRoomUserSet, false);\n }", "private void loggedInUser() {\n\t\t\n\t}", "@EventHandler\n public void onPlayerJoin(PlayerJoinEvent event) {\n Player player = event.getPlayer();\n String motd = config.getString(\"motd\");\n if (motd != null && !motd.trim().isEmpty()) {\n motd = ChatColor.translateAlternateColorCodes('&', motd);\n player.sendMessage(motd.split(\"\\\\\\\\n\"));\n }\n }", "@EventHandler\r\n\tpublic void onPlayerJoin(PlayerJoinEvent event) {\r\n\t\tUUID uuid = event.getPlayer().getUniqueId();\r\n\t\tmain.getPlayers().put(uuid, new RPGPlayer(uuid));\r\n\t\tmain.getPlayers().get(event.getPlayer().getUniqueId()).loadInventory();\r\n\t}", "public void memberLeft(ClusterEvent e) {}", "void onOnlineLoginSuccess(User user);", "@Override\r\n public void onPlayerJoin(PlayerJoinEvent event) {\r\n Player player = event.getPlayer();\r\n \r\n // Play back messages stored in this player's maildir (if any)\r\n String[] messages = plugin.getMessages(player);\r\n if (messages.length > 0) {\r\n \tfor (String message : messages) {\r\n \t\tplayer.sendMessage(message);\r\n \t}\r\n \tplayer.sendMessage(\"[Pe] §7Use /petition to view, comment or close\");\r\n }\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//REPLY GUI\n\t\t\t\tgui.onEvent(className, XNode.NEW_USER_CREATED, null);\n\t\t\t}", "@OnOpen\n public void onOpen(Session session, @PathParam(\"username\") String username) throws IOException, EncodeException {\n //TODO: add on open connection.\n onlineSessions.put(username, session);\n System.out.println(\"WebSocketChatServer - Connection opened for user \" + username + \" and session \" + session);\n\n Message newMessage = new Message(\"Chat Server\", username + \" has joined the chat\", Message.Type.ENTER, onlineSessions.size());\n String jsonStr = JSON.toJSONString(newMessage);\n System.out.println(\"WebSocketChatServer - Message \" + jsonStr + \" received from WebSocketChatServer with username \" + newMessage.getUsername() + \", message \" + newMessage.getMsg() + \", type \" + newMessage.getType() + \", onlineCount \" + newMessage.getOnlineCount() + \" and session \" + session);\n sendMessageToAll(newMessage);\n }", "@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)\r\n public void onJoin(PlayerJoinEvent joinEvent) {\n Player player = joinEvent.getPlayer();\r\n\r\n String health = String.valueOf(player.getHealth());\r\n String ping = String.valueOf(player.getPing());\r\n\r\n if (config.getBoolean(\"JoinEnabled\")) {\r\n joinEvent.setJoinMessage(config.getString(\"JoinMessage\").\r\n replace(\"%player%\", player.getDisplayName()).\r\n replace(\"%server%\", getServer().getMotd()).\r\n replace(\"%ping%\", ping).\r\n replace(\"%health%\", health));\r\n\r\n // Checks if the user has put a join message or not\r\n if (config.getString(\"JoinMessage\").trim().isEmpty() || config.getString(\"JoinMessage\").equals(\"\")) {\r\n this.getLogger().info(\"Couldn't define any join message.\");\r\n }\r\n }\r\n else this.getLogger().info(\"Join messages are disabled.\");\r\n }", "@EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)\n\tprivate void onPlayerJoin(PlayerJoinEvent event)\n\t{\n\t\t\n\t\tif(!event.getPlayer().hasPermission(\"quests.quests\"))\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfinal Player entity = event.getPlayer();\n\t\t\n\t\tQuestPlayer player = getQuestPlayer(entity);\n\n\t\t// Let the player know if his last (current) quest wasn't completed before it expired.\n\t\tif(player.getCurrentQuest().getPlayerQuestModel().Status == QuestStatus.Incomplete)\n\t\t{\n\t\t\tgetLogger().info(entity.getName() + \" didn't complete their last quest in time.\");\n\t\t\t\n\t\t\tif(!PluginConfig.SOFT_LAUNCH)\n\t\t\t{\n\t\t\t\tgetServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tString msg = \" \" + ChatColor.AQUA + \"Aaawww! You didn't manage to complete your last quest in time.\";\n\t\t\t\t\t\tmsg += \"\\n A new quest will be created for you shortly..\";\n\t\t\t\t\n\t\t\t\t\t\tentity.sendMessage(msg);\n\t\t\t\t\t}\n\t\t\t\t}, 60);\n\t\t\t}\n\t\t\t\n\t\t\t// And give him a new quest.\n\t\t\tplayer.giveRandomQuest();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// If last/current quest is processed, create a new one.\n\t\t\tif(player.getCurrentQuest().getPlayerQuestModel().Processed == 1)\n\t\t\t{\n\t\t\t\tplayer.giveRandomQuest();\n\t\t\t}\n\t\t}\n\n\t\tif(!PluginConfig.SOFT_LAUNCH)\n\t\t\tnotifyPlayerOfQuest(entity, player.getCurrentQuest().getPlayerQuestModel().Status, 160);\n\t}", "@SubscribeEvent(priority=EventPriority.LOW)\n\tpublic void onEvent( final PlayerLoggedInEvent event ) {\n\n\t\t// only want to do this once\n\t\tif ( isFirstPlayer ){\n\t\t\tSwordStat.LOGGER.info(\"Sorting entities into bosses, monsters and passives\");\n\t\t\tEntitySorting entitySorting = EntitySortingInit.createEntitySorting(\n\t\t\t\t\tSwordStat.SERVER_RESOURCE_LOCATOR.getEntitySorter(),\n\t\t\t\t\tevent.player.world\n\t\t\t);\n\t\t\tSwordStat.SERVER_RESOURCE_LOCATOR.setEntitySorting(entitySorting);\n\t\t\t if ( entitySorting.getInternalMapping().size() > 0 ){\n\t\t\t SwordStat.LOGGER.info(\"Entity sorting appears to have been processed on the server correctly\");\n\t\t }\n\t\t else {\n\t\t \t SwordStat.LOGGER.info(\"Entity sorting does not appear to have been processed correctly on server\");\n\t\t }\n\t\t}\n\t\t\n\t\tisFirstPlayer = false;\n\t\t\n\t\t// Tell client to sort entities as well\n\t\tSwordStat.LOGGER.info(\"Asking client to sort entities\");\n\t\tSwordStat.INSTANCE.sendTo(new TellClientToSortEntitiesMessage(), (EntityPlayerMP) event.player);\n\t}", "public\tvoid\tuserJoined(UIRosterEntry user)\n\t{\n\t\t\n\t\tNewChatPanel panel = this.getDiscussionPanel();\n\t\n\t\tString joinedUserName = user.getDisplayName();\n\t\tString joinedUserId = user.getUserId();\n\t\t\n\t\tString senderId = this.rosterModel.getCurrentActivePresenter().getUserId();\n\t\tString senderName = this.rosterModel.getCurrentActivePresenter().getDisplayName();\n\t\t\n\t\t//Window.alert(\"senderId = \"+senderId+\":senderName:\"+senderName);\n\t\t//Window.alert(\"User Joined:joinedUserName :\"+joinedUserName+\":joinedUser Status:\"+user.getJoinedStatus());\n\t\t//Window.alert(\"lastUserJoined = \"+lastUserJoined);\n\t\tif((joinedUserId != senderId ) && (joinedUserId != lastUserJoined ) && (senderName != \"Not Available\") && (joinedUserId != me.getUserId()) && (!user.getJoinedStatus()))\n\t\t{\n\t\t//\tpanel.receiveChatMessage(\"\", sender,joinedUser + \" has joined the conference\");\n\t \t String s = ConferenceGlobals.getDisplayString(\"user_joined_message\",\"has joined the dimdim web meeting.\");\n\t \t //Window.alert(\"adding \"+s);\n\t\t\tpanel.receiveWelcomeMessage(joinedUserName + \" \"+s);\n\t\t\tlastUserJoined = joinedUserId;\n\t\t}\n\t\telse if((joinedUserId == senderId) && lastUserJoined == null && (joinedUserId != lastUserJoined))\n\t\t{\n\t \t String s = ConferenceGlobals.getDisplayString(\"user_welcome_message\",\"Welcome to the Dimdim Web Meeting.\");\n\t \t //Window.alert(\"adding welcom message...\");\n\t\t\tpanel.receiveWelcomeMessage(s);\n\t\t\tlastUserJoined = joinedUserId;\n\t\t}\n\t}", "@Override\r\n\t\t\t\t\tpublic void onLoginedNotify() {\n\t\t\t\t\t\tTypeSDKLogger.d( \"onLoginedNotify\");\r\n\t\t\t\t\t\thaimaLogout();\r\n\t\t\t\t\t\thaimaLogin();\r\n\t\t\t\t\t}", "public void onReadyButton(View view) {\n mUser.setState(User.UserState.DoneWithNight);\n\n // NOTE!!!!!!!!!!!!!!!!!!\n // When ever the User updates,\n // Because of our event up above,\n // A check goes to see if everyone is ready.\n // If everyone is ready, then it moves to the next Lobby!\n // I hope.\n mRoom.updateUser(mUser);\n Intent intent = new Intent(this, DayMain.class);\n intent.putExtra(\"Client_Data\", mUser);\n intent.putExtra(\"Room_Data\", mRoom);\n Log.v(TAG, \"Starting day for the Villager \");\n startActivity(intent);\n\n }", "public void join(LobbyPlayer player) {\n if (listener == null) listener = Firebase.registerListener(\"lobbies/\" + player.getLobbyCode(), onLobbyChange);\n DocumentReference doc = Firebase.docRefFromPath(\"lobbies/\" + player.getLobbyCode());\n ObjectMapper mapper = new ObjectMapper();\n Map<String, Object> kv = mapper.convertValue(LobbyPlayerDTO.fromModel(player), new TypeReference<Map<String, Object>>() {});\n doc.update(\"players.\" + player.getUsername(), kv);\n }", "void onServerStarted();", "public void listen(){\n \ttry{ \t\t\n \t\twhile(true){\n \t \t\tSocket socket = server.accept();\n \t \t\tString nickname = new String(\"Guest_\" + String.valueOf(nextId));\n \t \t\t\n \t \t\t// Create a server connection and connect it to the appropriate user.\n \t \t\tServerConnection userConnection = new ServerConnection(nextId, socket, this);\n \t \t\tUser user = new User(nextId, nickname, userConnection);\n \t \t\tuserConnection.setUser(user);\n \t \t\t\n \t \t\tsynchronized(userMap){\n \t \t\t\tuserMap.put(nextId, user);\n \t \t\t}\n \t \t\t// Send a response that connection was successful;\n \t \t\tuserConnection.sendMessage(new Message(Command.REPLY_SUCCESS, \"\", Calendar.getInstance(), \"\"));\n \t \t\t\n \t \t\tnextId++;\n \t\t}\n \t}\n \tcatch(IOException e){\n \t\te.printStackTrace();\n \t}\n }", "@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n ctx.write(\"Welcome to \" + InetAddress.getLocalHost().getHostName() + \"!\\r\\n\");\n ctx.write(\"It is \" + new Date() + \" now.\\r\\n\");\n ctx.flush();\n }", "public void onServerSucceeded() {\n if (offline) {\n statusObserver.onServerCameBack();\n offline = false;\n }\n }", "@Override\n public void onLogon(SessionID sessionID) {\n LOG.info(\"Server: onLogon of \" + sessionID);\n }", "public void PlayerJoinsGame(String user)\n\t\t{\n\t\t\tplayer_queue.add(user);\n\t\t}", "@SubscribeEvent\n public void onMessageReceived(GuildMessageReceivedEvent event) {\n if (event.getAuthor().isBot() || event.getMember() == null) return;\n // Logic\n GuildUserModel guildUser = taules.dataManager.getGuildUserModel(event.getGuild().getIdLong(), event.getMember());\n DB.save(new MessageLogModel(guildUser.getId()));\n }", "@Override\n\tpublic void onGuildMemberLeave(GuildMemberLeaveEvent event) {\n\t\tupdateChannel(event.getGuild());\n\t}", "public void logon ()\n {\n ClientResolutionListener clr = new ClientResolutionListener() {\n public void clientResolved (Name username, ClientObject clobj) {\n // fake up a bootstrap; I need to expose the mechanisms in\n // Presents that create it in a network environment\n BootstrapData data = new BootstrapData();\n data.clientOid = clobj.getOid();\n data.services = EditorServer.invmgr.bootlist;\n\n // and configure the client to operate using the server's\n // distributed object manager\n _client.getContext().getClient().gotBootstrap(\n data, EditorServer.omgr);\n }\n\n public void resolutionFailed (Name username, Exception reason) {\n log.log(Level.WARNING, \"Failed to resolve client [who=\" +\n username + \"].\", reason);\n // TODO: display this error\n }\n };\n EditorServer.clmgr.resolveClientObject(new Name(\"editor\"), clr);\n }", "void sessionCreated(SessionEvent se);", "void onUserAdded();", "@EventHandler\n public void OnPlayerChatEvent(PlayerChatEvent e)\n {\n this.setLastSeen(e.getPlayer());\n }", "@Override\n\tpublic void onSubscribeLobbyDone(LobbyEvent arg0) {\n\t\tMain.log(getClass(), \"onSubscribeLobbyDone\");\n\t}", "public void playerJoins(final SonicPlayer sP) {\n\t\t_T.run_ASync(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (!checkConnection()) {\n\t\t\t\t\t//Something is wrong, kick the player\n\t\t\t\t\t_.badMsg(sP.getPlayer(), \"Something is wrong with the game.. Sorry! Contact Stoux if he is online!\");\n\t\t\t\t\tsonic.playerQuit(sP);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void onlinerequest() {\r\n int size = Server.getUsers().size();\r\n \r\n try {\r\n this.output.flush();\r\n this.output.writeUTF(\"ONLINE\");\r\n this.output.flush();\r\n this.output.writeUTF(Integer.toString(size));\r\n this.output.flush();\r\n// Log.print(\"Sending the data\");\r\n for(int x = 0; x < Server.getUsers().size(); x++){\r\n if(Server.getUsers().get(x).getName().equals(this.name)){\r\n this.output.writeUTF(Server.getUsers().get(x).getName() + \" (You)\");\r\n }\r\n else{\r\n this.output.writeUTF(Server.getUsers().get(x).getName());\r\n this.output.flush();\r\n }\r\n \r\n \r\n }\r\n// Log.print(\"Successfully sent\");\r\n } catch (IOException ex) {\r\n Log.error(ex.getMessage());\r\n }\r\n }", "private void onRemoteUserLeft() {\n removeRemoteVideo();\n }", "public void userLoggedIn(CurrentUser user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged in\");\t\t\n\t\t\tMainActivity.this.userLoggedIn();\n\t\t}", "@Override\n public void memberJoined(@NotNull final Address address) {\n }", "void onUserSessionConnected(WebSocketConnection connection, Session session, String accountId);", "@EventHandler\n public void OnPlayerInteractEvent(PlayerInteractEvent e)\n {\n this.setLastSeen(e.getPlayer());\n }", "@SubscribeEvent\n public void onServerStarting(final FMLServerStartingEvent event) {\n LOGGER.info(\"server starting...\");\n }", "@Override\n\tpublic void onGetLiveLobbyInfoDone(LiveRoomInfoEvent arg0) {\n\t\tMain.log(getClass(), \"oneGetLiveLobbyInfoDone\");\n\t}", "private void listenOnlineUsers() {\n final String username = MyAccount.getInstance().getName();\n new Subscriber(Constants.ONLINE_TOPIC, username)\n .setNewMessageListener(new SubscribedTopicListener() {\n @Override\n public void onReceive(DataTransfer message) {\n // Get current user in chat box\n ChatBox currentChatBox = getCurrentChat();\n final String current = currentChatBox != null ? currentChatBox.getTarget() : null;\n\n boolean isCurrentOnline = current == null;\n\n // Clear all exist chat item\n lvUserItem.getItems().clear();\n\n // Retrieve online users\n List<String> onlineUsers = (List<String>) message.data;\n\n // Clear all offline user chat messages in MessageManager\n MessageManager.getInstance().clearOffline(onlineUsers);\n MessageSubscribeManager.getInstance().clearOffline(onlineUsers);\n\n for (String user : onlineUsers) {\n // Add user (not your self) into listview\n if (!username.equals(user)) {\n ChatItem item = new UserChatItem();\n item.setName(user);\n lvUserItem.getItems().add(item);\n\n // Check whether current user still online\n if (user.equals(current))\n isCurrentOnline = true;\n else {\n String topic = String.format(\"chat/%s\", user);\n if (!MessageSubscribeManager.getInstance().containsKey(topic)) {\n // with other user listen message\n Subscriber subscriber = subscribeMessages(username, topic);\n MessageSubscribeManager.getInstance().put(topic, subscriber);\n }\n }\n }\n }\n\n // In case current user offline\n // Clear chat box\n if (!isCurrentOnline) {\n clearChatBox();\n }\n }\n })\n .listen();\n }", "public void clientReady(String user){\r\n\t\tuserReady.put(user, true);\t\r\n\t\tthis.checkState();\r\n\t}", "@Override\n public void preStart() {\n cluster.subscribe(getSelf(), RoleLeaderChanged.class);\n }" ]
[ "0.71785533", "0.71323377", "0.6913888", "0.68741554", "0.6821464", "0.6813538", "0.67813975", "0.66858596", "0.66690874", "0.66164476", "0.6607155", "0.6590162", "0.6571268", "0.6566966", "0.6526266", "0.64791125", "0.64421725", "0.6435432", "0.64122105", "0.63761777", "0.6337242", "0.63233936", "0.62904245", "0.6274316", "0.62670183", "0.625274", "0.6225184", "0.62104636", "0.6176339", "0.61445993", "0.61327004", "0.6130071", "0.61205864", "0.61140287", "0.60918987", "0.6083643", "0.6074349", "0.6067277", "0.6048502", "0.6036437", "0.5983101", "0.5979698", "0.5971778", "0.5956872", "0.59495425", "0.5945873", "0.5945552", "0.5932757", "0.5930037", "0.5929505", "0.59280664", "0.59248227", "0.5914155", "0.591191", "0.5891256", "0.5890768", "0.5882756", "0.58825105", "0.58793795", "0.58688164", "0.58564854", "0.5853048", "0.5852945", "0.58500445", "0.5849791", "0.5847527", "0.5846474", "0.5842708", "0.58393013", "0.5829789", "0.5828489", "0.5816011", "0.58085626", "0.57677644", "0.57659525", "0.5765708", "0.5764107", "0.5762475", "0.5759111", "0.5744988", "0.57283914", "0.5724679", "0.5721913", "0.5718085", "0.57166237", "0.5716459", "0.5713149", "0.57029516", "0.5697979", "0.5696143", "0.56906116", "0.5679094", "0.5664776", "0.56635207", "0.56557846", "0.56501424", "0.5648988", "0.5648189", "0.56428176", "0.5635439" ]
0.6573773
12
return Math.sin(x)Math.PI; return 5;
public static double getFuncValue(double x){ return Math.sin(x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static double f(double x){\n \treturn Math.sin(x);\r\n }", "public static double function(double x) {\n double val = (Math.sin(x * 1) * 0.4 + (Math.sin(x * 2) * 0.4)) + (Math.sin(x * 5) * 0.2);\n //return (Math.cos(x)*0.5)+0.5;\n //return (Math.cos(x*5)*0.5)+0.5;\n //if (val<0) val=-0.5;\n //if (val>0) val=0.5;\n return val;\n }", "private double function1(double x) {\n return Math.sin(x)*10;\n }", "public double sin(double number);", "public static float sin(float x) {\n float upper = (PI - x) * 16f * x;\n float lower = 5 * PI * PI - 4f * x * (PI - x);\n return upper / lower;\n\n }", "private double f1(double x) {\n return Math.exp(-x) * Math.pow(Math.sin(x), 5);\n }", "private static double getSinSquare(Double value){\r\n\t\treturn Math.pow(Math.sin(value/2), 2);\r\n\r\n }", "public static double mySin(double x) {\n int n = 0;\n int N = 20;\n double y = 0;\n for (; n <= N; n++) {\n double p1 = 1;\n for (int i = 1; i <= n; i++) {\n p1 *= (-1);\n }\n double p2 = 1;\n for (int i = 1; i <= (2 * n + 1); i++){\n p2*=i;\n }\n double p3 = 1;\n for (int i = 1; i <= (2 * n + 1); i++){\n p3*=x;\n }\n y = y + (p1/p2)*p3;\n }\n return y;\n }", "private double sinc(double x) {\n return Math.sin(Math.PI * x) / (Math.PI * x);\n }", "E sin(final E n);", "public static double \t\tsinh(double _x) {\n\t\treturn 0.5D * (Math.exp(_x) - Math.exp(- _x));\n\t}", "public static final float sinh(float x) {\n \t\treturn (MoreMath.pow(MoreMath.E, x) - MoreMath.pow(MoreMath.E, -x)) / 2.0f;\n \t}", "public static double sin(double x) // Using a Chebyshev-Pade approximation\n {\n int n=(int)(x/PI2)+1; // reduce to the 4th and 1st quadrants\n if(n<1)n=n-1;\n if ((n&2)==0) x=x-(n&0xFFFFFFFE)*PI2; // if it from the 2nd or the 3rd quadrants\n else x=-(x-(n&0xFFFFFFFE)*PI2);\n\n double x2=x*x;\n return (0.9238318854f-0.9595498071e-1f*x2)*x/(0.9238400690f+(0.5797298195e-1f+0.2031791179e-2f*x2)*x2);\n }", "private double functionF(int x, int y) {\n if (type == SIMPLE_SIN2D_IN_X) { return Math.sin(2 * Math.PI * s * x / M); }\n if (type == SIMPLE_SIN2D_IN_Y) { return Math.sin(2 * Math.PI * s * y / M); }\n if (type == SIMPLE_PLUS2D) { return Math.sin(2 * Math.PI * s * x / M) + Math.sin(2 * Math.PI * s2 * y / M); }\n if (type == SIMPLE_MULT2D) { return Math.sin(2 * Math.PI * s * x / M) * Math.sin(2 * Math.PI * s2 * y / M); }\n if (type == FROM_IMG) { return in.getSample(x, y, 0); }\n else { return 0; }\n }", "private double phi(double x) {\r\n return Math.exp(-x*x / 2) / Math.sqrt(2 * Math.PI);\r\n }", "public Double call() {\n double pi = 16 * atan(1.0/5.0) - 4 * atan(1.0/239.0);\r\n \r\n try {\r\n // Sleep for 1 second to simulate a long running task\r\n Thread.sleep(1000);\r\n }\r\n catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n return pi;\r\n }", "public double cos(double number);", "private static double square (double x)\r\n\t{\r\n\t\treturn x * x;\r\n\t}", "public static double haversin(double x) {\n return sq(Math.sin(x / 2));\n }", "private double square(double x) {\r\n return x * x;\r\n }", "private float genY(float x) {\r\n x = Math.abs(x);\r\n if (_rand.nextBoolean()) {\r\n return x * (float)Math.tan(Math.acos(x/20.0));\r\n } else {\r\n return -x * (float)Math.tan(Math.acos(x/20.0));\r\n }\r\n }", "private static double addOneAndHalf(int x) {\n return x + 1.5;\n }", "private double f(double x) {\n return (1 / (1 + Math.exp(-x)));\n }", "int iX(float x)\r\n {return Math.round(cX + x / pSize);}", "public double calculateSine(double angle);", "double cosTheta();", "public static double \t\tsinc(double _x) {\n\t\treturn (Math.abs(_x) < 1e-40) ? 1.0D : Math.sin(_x) / _x;\n\t}", "private double getSin(int rot) {\r\n\t\treturn Math.sin(Math.toRadians(rot));\r\n\t}", "public static double function(double x, double y)\r\n\t{\r\n\t\treturn (1-cos(PI * x)) * pow((1.23456 + cos(1.06512 * y)), 2) * \r\n\t\t\t\texp(-(pow(x, 2)) - (pow(y, 2)));\r\n\t}", "private double calculatePI() {\n return 4.0 * numberOfPointsInsideCircle / numberOfPoints;\n }", "public double x() { return x; }", "public static double \t\tnsinc(double _x) {\n\t\treturn (Math.abs(_x) < 1e-40) ? 1.0D : Math.sin(Math.PI * _x) / (Math.PI * _x);\n\t}", "private static void run() {\n\t\tdouble x = 0.1;\n\t\tTime.start(\"a\");\n\t\tdouble y = 0;\n\t\tint n = 10000000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t//x = x * 0.00000000001 + x + 0.001 + Math.sin(x); // 450 ms /10 000 000 = 45 ns\n\t\t\t//x = x * 0.00000000001 + x + 0.001 + Math.sin((x - 0.1) / x); // 526\n\t\t\t//x = x * 0.00000000001 + x + 0.001 + (x - 0.1) / x; // 68\n\t\t\t//x = x * 0.00000000001 + x + 0.001 + Math.sqrt((x - 0.1) / x); // 130\n\t\t\t//x = x * 0.00000000001 + x + 0.001 + Math.acos((x - 0.1) / x); // 4747\n\t\t\t//x = x * 0.00000000001 + x + 0.001; // 35\n\t\t\t\n\t\t\t// superposer: 13760 ms / 49995000 = 2752 ms / 10 000 000\n\t\t\t// 5 sin??? wtf \n\t\t\t// TRY using the RMSD value\n\t\t\t// do it here, iterativelly? feed points?>\n//euclid 83\n//table 428\n//qcp 14344 49995000\n// can sin/cos be avoided, just multiplication of quaternions? does the equation looks like it takes stuff from quat?\n// arc algebra?\n// draw both arcs on equator and move one by x-rotation\n// what is that rotation?\n// can it be done with primal a,b,c,d rotations?\n\t\t}\n\t\tTime.stop(\"a\");\n\t\tSystem.out.println(Time.get(\"a\").getMiliseconds());\n\t\tSystem.out.println(x);\n\t}", "public static double compute(int x)\n {\n return (Math.pow(x, 2)+Math.pow(5, 2))/(x+5);\n }", "private double hypTan(double x){\n\t\t//System.out.print(\".\");\n\t\treturn (Math.tanh(k*x)*0.5) + 0.5;\t\n\t}", "float calculate (int x){\n\n float y ;\n y = a* (float) Math.pow(x,2) + b*x +c;\n return y;\n\n }", "@Override\n\tdouble f(double x) {\n\t\treturn x;\n\t}", "private static double f(double x) {\n\t\treturn x;\n\t}", "public static double sin(double a) {\r\n if (a == Double.NEGATIVE_INFINITY || !(a < Double.POSITIVE_INFINITY)) {\r\n return Double.NaN;\r\n }\r\n\r\n final double PI = (22/7);\r\n\r\n a %= 2 * PI;\r\n\r\n /* The following if statement checks whether a is a negative angle\r\n * Converts it to positive angle if true\r\n */\r\n if (a < 0) {\r\n a = 2 * PI - a;\r\n }\r\n\r\n /* The following if statement checks whether sine term is an odd function\r\n * Changes the sign to -ve if true\r\n */\r\n int sign = 1;\r\n if (a > PI) {\r\n a -= PI;\r\n sign = -1;\r\n }\r\n\r\n final int PRECISION = 50;\r\n double temp = 0;\r\n\r\n /* The following for statement calculates the sum of the terms\r\n * Until the set precision is reached\r\n */\r\n for (int i = 0; i <= PRECISION; i++) {\r\n temp += Math.pow(-1, i) * (Math.pow(a, 2 * i + 1) / factorial(2 * i + 1));\r\n }\r\n\r\n return sign * temp;\r\n\r\n }", "@Override\n\tpublic double f(double x) {\n\t\treturn Math.tanh(x);\n\t}", "E cos(final E n);", "@Override\n\tpublic float getInterpolation(float input) {\n\t\tdouble a = input * PI_3;\n\t\tdouble b = Math.sin(a) / a;\n\t\tdouble c = b * (input * -1 + 1);\n\t\treturn (float) c * -1 + 1;\n\n\t}", "@Override\r\n public double calculatePiValue() {\r\n double variable = 0;\r\n double value = 0;\r\n for (int step =1;step<=steps; step++) {\r\n variable = step*2+1;\r\n if(step % 2 == 0) {\r\n value = value + ( (double)1 / variable);\r\n } else {\r\n value = value - ( (double)1 / variable);\r\n }\r\n }\r\n value = (1 + value)* 4;\r\n return value;\r\n }", "public double calculateHyperbolicSine(double angle);", "public static double calc (int x, int y) {\r\n\t\ttry {\r\n\t\t\treturn Math.pow((Math.PI*(Math.pow(y, 2))), 0.5) / (2*x);\r\n\t\t}catch(Exception e){\r\n\t\t\tSystem.out.println(\"Unable to calculate\");\r\n\t\t}\r\n\t\treturn 0.0;\r\n\t}", "public static float acos(float x) {\n \t\tfloat f=asin(x);\n \t\tif(f==Float.NaN)\n \t\t\treturn f;\n \t\treturn PiDiv2-f;\n \t}", "public static float cos(float x) {\n float upper = PI * PI - 4f * x * x;\n float lower = PI * PI + x * x;\n return upper / lower;\n }", "public static double bessi0NoExp( double x ){\n\t double ax,ans;\n\t double y;\n\t ax=Math.abs(x);\n\t if (ax < 3.75) {\n\t y=x/3.75;\n\t y=y*y;\n\t ans=1/Math.exp(ax)*(1.0+y*(3.5156229+y*(3.0899424+y*(1.2067492+y*(0.2659732+y*(0.0360768+y*0.0045813))))));\n\t } else {\n\t y=3.75/ax;\n\t ans=(1/Math.sqrt(ax))*(0.39894228+y*(0.01328592+y*(0.00225319+y*(-0.00157565+y*(0.00916281+y*(-0.02057706+y*(0.02635537+y*(-0.01647633+y*0.00392377))))))));\n\t }\n\t return ans;\n\t}", "int f(int x) { return (x*x - 10*x - 20); }", "public double getCircunference(){\n return 2.0 * radius * Math.PI; \n }", "public static void main(String[] args) {\n double x0=Math.PI/2;\n double dx=0.01;\n double f1;\n double f2;\n double m;\n\n double dr;\n f1=Math.cos(x0+dx);\n f2=Math.cos(x0-dx);\n m= Math.cos(x0)*2;\n dr=((f1)-(m)+(f2))/(dx*dx);\n\n System.out.println(dr);\n\n\n }", "@Override\r\n\tpublic double f(double x) {\n\t\treturn FastMath.tanh(x); // RMSE: 1.2677143077504636, Took: 38.617s\r\n\t}", "@Override\n public int calculerPerimetre() {\n return (int)(rayon * 2 * Math.PI);\n }", "public double returnValue(double x, double y);", "private static float sinLookup(int a) {\r\n return a >= 0 ? sin[a % (modulus)] : -sin[-a % (modulus)];\r\n }", "public float main(){\n return 0;\n }", "public double x() {return _x;}", "public static final float asinh(float x) {\n //\t\tlogger.info(\"enter asinh \" + x);\n \t\treturn MoreMath.log(x + ((float) Math.sqrt(x * x + 1)));\n \t}", "private int p(final int x) {\n assert(valid(x));\n return (x-1)/2;\n }", "private double calculaPerimetro(){\r\n double perimetro;\r\n perimetro=(float) ((2*(cir.getY()-cir.getX()))*Math.PI);\r\n return perimetro;\r\n }", "public double x() { return _x; }", "double getBallX();", "public static double cos(double x)\n {\n int n=(int)(x/PI2)+1;\n if(n<1)n=n-1;\n x=x-(n&0xFFFFFFFE)*PI2; // reduce to the 4th and 1st quadrants\n\n double x2=x*x;\n\n float si=1f;\n if ((n&2)!=0) si=-1f; // if it from the 2nd or the 3rd quadrants\n return si*(0.9457092528f+(-0.4305320537f+0.1914993010e-1f*x2)*x2)/(0.9457093212f+(0.4232119630e-1f+0.9106317690e-3f*x2)*x2);\n }", "public abstract double fct(double x);", "public double perimetre()\n\t{\n\t\treturn 2*Math.PI*rayon;\n\t}", "public int a() {\n return 366;\n }", "private double f(double x) {\r\n if(x<0){\r\n double x1 = x*-1;\r\n return interpretador.getResultado(\"!\"+x1);\r\n }\r\n return interpretador.getResultado(x);\r\n }", "private static double sq (double x) {\n return Math.pow(x, 2);\n }", "public double tan(double number);", "protected double compute(int sample) {\n\t\tdouble v = Math.sin((double) sample * 2.0 * Math.PI * (double) frequency\n\t\t\t\t/ (double) AudioSequence.SAMPLES_PER_SECOND);\n\t\treturn v;\n\t}", "private double getSigmoidValue( double x )\n\t{\n\t\treturn (1 / (1 + Math.exp( -x )));\n\t}", "private double factorial(double x) {\r\n double fact=1;\r\n for (double i = x; i > 0; i=i-1) {\r\n fact = fact*i;\r\n }\r\n if(((int)x)!=x) {\r\n fact=fact*SQRTPI;\r\n }\r\n return fact;\r\n }", "public static double bessi1NoExp( double x){\n\t\tdouble ax,ans;\n\t\tdouble y;\n\t\tax=Math.abs(x);\n\t\tif (ax < 3.75) {\n\t y=x/3.75;\n\t y=y*y;\n\t ans=ax/Math.exp(ax)*(0.5+y*(0.87890594+y*(0.51498869+y*(0.15084934+y*(0.02658733+y*(0.00301532+y*0.00032411))))));\n\t } else {\n\t y=3.75/ax;\n\t ans=0.02282967+y*(-0.02895312+y*(0.01787654-y*0.00420059));\n\t ans=0.39894228+y*(-0.03988024+y*(-0.00362018+y*(0.00163801+y*(-0.01031555+y*ans))));\n\t ans *= (1/Math.sqrt(ax));\n\t }\n\t return x < 0.0 ? -ans : ans;\n\t}", "public double f(double x) {\n return Math.pow(x, 10) - 1; // Esta es la cuarta funcion f(x) vista en clase\r\n }", "private static double ArcTan(double x) // Using a Chebyshev-Pade approximation\n {\n double x2=x*x;\n return (0.7162721433f+0.2996857769f*x2)*x/(0.7163164576f+(0.5377299313f+0.3951620469e-1f*x2)*x2);\n }", "public static int f(int x) {\n if (x == 0) {\n return 0;\n } else {\n return 2 * f(x - 1) + x * x;\n }\n }", "public static Expression sin(final Expression value) {\n return new Expression(\"$sin\", value);\n }", "public double xSpeed()\r\n\t{\r\n\t\tthis.x += 15;\r\n\t\treturn this.x;\r\n\t}", "public static double cauchy() {\n return Math.tan (Math.PI * ( uniform() - 0.5 ) );\n }", "public final void sin() {\n\t\tif (size > 0) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tpush(Math.sin(topMostValue));\n\n\t\t}\n\t}", "private double xSpeedIncrease() \r\n\t{\r\n\t\tthis.x += 45;\r\n\t\treturn this.x;\r\n\t}", "private static double calculateSin(double dy, double distance) {\n if (distance > 0)\n return (dy) / distance;\n else\n return 0.0;\n }", "double getSquareNumber();", "private float m87322b(float f) {\n return (float) Math.sin((double) ((float) (((double) (f - 0.5f)) * 0.4712389167638204d)));\n }", "private double sigmoidPrime(double x) {\n return x * (1 - x);\n }", "void mo56155a(float f);", "public static double sinh(double myValue)\n {\n double aValue = (Math.pow(Math.E,myValue)-Math.pow(Math.E,-1*myValue))/2;\n return aValue;\n }", "public static double square(double x)\n {\n return x * x;\n }", "static double transform(int f) {\n return (5.0 / 9.0 * (f - 32));\n\n }", "public static double myCos(double x) {\n int n = 0;\n int N = 20;\n double y = 0;\n for (; n <= N; n++) {\n double p1 = 1;\n for (int i = 1; i <= n; i++) {\n p1 *= (-1);\n }\n double p2 = 1;\n for (int i = 1; i <= (2 * n); i++){\n p2*=i;\n }\n double p3 = 1;\n for (int i = 1; i <= (2 * n); i++){\n p3*=x;\n }\n y = y + (p1/p2)*p3;\n }\n return y;\n }", "public static double cauchy() {\r\n return Math.tan(Math.PI * (uniform() - 0.5));\r\n }", "final double ssfn(double phi, double sinphi) {\r\n sinphi *= excentricity;\r\n return tan(PI/4 + phi/2.0) * pow((1-sinphi) / (1+sinphi), excentricity/2.0);\r\n }", "public T cos(T value);", "public float perimetro(){\r\n return 2*(float)Math.PI*radio;\r\n }", "private double eculidean(double x, double x1, double y, double y1) {\n\t\treturn Math.sqrt(Math.pow((x - x1), 2) + Math.pow((y - y1), 2));\n\t}", "private double func(double v){\n double pi = Math.PI;\n return 4.0 * pi\n * Math.pow((M / (2.0 * pi * R * T)) , (3.0/2.0))\n * Math.pow( v , 2.0 )\n * Math.exp((-M * Math.pow( v , 2.0 )) / (2.0 * R * T));\n }", "static double sineWave(double timeInSeconds, double frequency) {\r\n\t\tdouble result= Math.sin(timeInSeconds);\r\n\t\t\t\r\n\t\treturn result; // hint: use Math.sin(...)\r\n\t}", "public static double f(double x) {\n\t\treturn (double)Math.pow(x, 2) - 16;\n\t}", "void mo84656a(float f);", "static int logic(int x,int y){\n int z;\n if(x>y){\n z=x+y;\n }\n else\n {\n z=(x+y)*5;\n }\n return z;\n }" ]
[ "0.80989355", "0.769157", "0.759997", "0.7360127", "0.7210822", "0.7205865", "0.7174051", "0.7057089", "0.6956423", "0.69304943", "0.67323446", "0.66263235", "0.6575415", "0.650517", "0.64938885", "0.6361703", "0.63544446", "0.6328546", "0.63118774", "0.6302476", "0.62841225", "0.6282949", "0.62757885", "0.62725955", "0.62650156", "0.62613785", "0.62386715", "0.62289387", "0.6202555", "0.6201752", "0.6194227", "0.61629665", "0.61426806", "0.6121421", "0.61127216", "0.6102382", "0.60867804", "0.6078489", "0.6061283", "0.6057598", "0.60504055", "0.60293776", "0.6011679", "0.60058767", "0.59925705", "0.59830064", "0.59795254", "0.5972097", "0.5971844", "0.596198", "0.5943933", "0.59367955", "0.5928309", "0.5923654", "0.5920079", "0.59055907", "0.5895865", "0.5889738", "0.5888438", "0.5869629", "0.5868033", "0.5865834", "0.5846412", "0.58423704", "0.5837407", "0.5829845", "0.58224523", "0.5819126", "0.5817083", "0.5816905", "0.5809044", "0.5789276", "0.5785355", "0.57795167", "0.5776903", "0.57756186", "0.5763784", "0.5760971", "0.5758811", "0.5748763", "0.5742143", "0.5739392", "0.573891", "0.5733572", "0.573097", "0.57283366", "0.5727848", "0.57277304", "0.57257205", "0.5723793", "0.57171077", "0.5713515", "0.57079047", "0.57013285", "0.5699411", "0.56742007", "0.5651669", "0.56414247", "0.5638511", "0.56364775" ]
0.72814995
4
Returns number messages in current input stream. This call is nonblocking.
public int peekMessages() throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int numIncoming() {\r\n int result = incoming.size();\r\n return result;\r\n }", "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 }", "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "int getMsgCount();", "int getMsgCount();", "public int getStreamCount()\n {\n return _streams.size();\n }", "long getReceivedEventsCount();", "public int getStreamCount() {\n return streamCount;\n }", "public long getInMsgs() {\n return inMsgs.get();\n }", "int getNetTransferMsgsCount();", "public int getMsgCount() {\n return instance.getMsgCount();\n }", "public int getMsgCount() {\n return instance.getMsgCount();\n }", "public int getNumStreams()\r\n {\r\n return this.numStreams;\r\n }", "public synchronized void receive() {\n inCountStat.received();\n inCount++;\n }", "public int receiveNumCards() {\n try {\n return dIn.readInt();\n } catch (IOException e) {\n System.out.println(\"Number of cards not received\");\n e.printStackTrace();\n }\n return 0;\n }", "long incrementInMsgs() {\n return inMsgs.incrementAndGet();\n }", "public int getNumStreams() {\n return numStreams;\n }", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "public int getMessagesCount() {\n return messages_.size();\n }", "@Override\n public int numberOfMessages() {\n return messages.size();\n }", "private int getMessageCount() {\r\n return mMessages.length;\r\n }", "public int getMsgCount() {\n return msg_.size();\n }", "public int getMsgCount() {\n return msg_.size();\n }", "public synchronized int getCount() throws MessagingException {\n/* 244 */ parse();\n/* 245 */ return super.getCount();\n/* */ }", "public int getMessagesCount() {\n return messages_.size();\n }", "public Integer getMessageCount() {\r\n return messageCount;\r\n }", "public static long getMessagesIn() {\n return messagesIn;\n }", "@Override\r\n\tpublic int selectMessageCount() {\n\t\treturn messageMapper.selectMessageCount();\r\n\t}", "public int getCount() {\n\t\treturn channelCountMapper.getCount();\n\t}", "public int getMessageCount() {\n return message_.size();\n }", "public int getMessageCount() {\n return message_.size();\n }", "public int getMessageCount() {\n return message_.size();\n }", "public int getMessageCount() {\n return message_.size();\n }", "public int getMessageCount() {\n return message_.size();\n }", "public int receiveHandCount() {\n try {\n return dIn.readInt();\n } catch (IOException e) {\n System.out.println(\"Hand count not received\");\n e.printStackTrace();\n }\n return 0;\n }", "private void askForNumberOfRequests() {\n\t\tconnectToServer();\n\t\tout.println(\"How many requests have you handled ?\");\n\t\tout.flush();\n\t\tint count = 0;\n\t\ttry {\n\t\t\tcount = Integer.parseInt(in.readLine());\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"CLIENT: Cannot receive num requests from server\");\n\t\t}\n\t\tSystem.out.println(\"CLIENT: The number of requests are \" + count);\n\t\tdisconnectFromServer();\n\t}", "public int getDataMessagesReceived() {\n\t\tint contador = 0;\n\t\tfor (Contacto c : currentUser.getContacts()) {\n\t\t\tcontador += (c.getMessages().size() - c.getMsgsByUser(currentUser.getId()));\n\t\t}\n\t\treturn contador;\n\t}", "public int getNetTransferMsgsCount() {\n return netTransferMsgs_.size();\n }", "public int getCount() {\n return sync.getCount();\n }", "public long getOutMsgs() {\n return outMsgs.get();\n }", "public int getNetTransferMsgsCount() {\n if (netTransferMsgsBuilder_ == null) {\n return netTransferMsgs_.size();\n } else {\n return netTransferMsgsBuilder_.getCount();\n }\n }", "public synchronized int getOutputCount() {\n return buffers.length;\n }", "@Override\n public abstract long getReceivedBytesCount();", "public ITCMessage[] readMessages(int inNumberMessages) throws IOException;", "int getNumEvents() {\n int cnt = eventCount;\n for (Entry entry : queue) {\n cnt += entry.eventCount;\n }\n return cnt;\n }", "public int getUnreadChatMessageCount();", "public int getTotalMessageCount() {\n Query query = new Query(\"Message\");\n PreparedQuery results = datastore.prepare(query);\n return results.countEntities(FetchOptions.Builder.withLimit(1000));\n }", "public synchronized int activeStreams() {\n return streams.size();\n\n }", "int getNumBufferedBytes() {\n ChannelBuffer buf;\n int IOQueued;\n for (IOQueued = 0, buf = inQueueHead;\n buf != null; buf = buf.next) {\n IOQueued += buf.nextAdded - buf.nextRemoved;\n }\n return IOQueued;\n }", "public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}", "public native long getReceivedPacketCount()\n throws IOException, IllegalArgumentException;", "public int getCount() {\n return queue.size();\n }", "public static int getFileCount(String path)\r\n {\r\n int lines=0;\r\n System.out.println(\"Path of the source file is: \"+path);\r\n String raw_output_lines = new String();\r\n try\r\n {\r\n Channel line_channel=Syncer.session.openChannel(\"exec\");\r\n String get_count_cmd=\"wc -l < \"+path;\r\n System.out.println(get_count_cmd);\r\n ((ChannelExec)line_channel).setCommand(get_count_cmd);\r\n line_channel.setInputStream(null);\r\n ((ChannelExec)line_channel).setErrStream(System.err); \r\n in=line_channel.getInputStream();\r\n line_channel.connect(); \r\n while(true)\r\n {\r\n while(in.available()>0)\r\n {\r\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n raw_output_lines = br.readLine();\r\n System.out.println(\"Raw_output: \"+raw_output_lines);\r\n }\r\n if(line_channel.isClosed())\r\n break; \r\n }\r\n in.close();\r\n line_channel.disconnect();\r\n System.out.println(\"Out of loop\");\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Lines (in string): \"+raw_output_lines);\r\n String buffer = new String(raw_output_lines);\r\n System.out.println(\"Out of loop\");\r\n lines = Integer.parseInt(buffer);\r\n System.out.println(\"Out of loop\");\r\n System.out.println(\"lines FOUND: \"+lines);\r\n return lines;\r\n }", "public int getTotalNumOfMsg(){ return allmessage.size();}", "public synchronized int getCount()\n\t{\n\t\treturn count;\n\t}", "public int getMessageIdCount() {\n return instance.getMessageIdCount();\n }", "public int getChannelCount();", "public int getNumberOfRegisteredMessages() {\n return registeredMessages.size();\n }", "int getPayloadCount();", "public int getUnreadMessagesCount() {\n if (pendingIncomingMessages != null){\n\n /*\n * Return the size of the cache\n */\n return pendingIncomingMessages.size();\n\n }\n\n /*\n * Empty cache return 0\n */\n return 0;\n }", "public int getMessagesCount() {\n if (messagesBuilder_ == null) {\n return messages_.size();\n } else {\n return messagesBuilder_.getCount();\n }\n }", "org.jboss.mq.server.MessageCounter[] getMessageCounter() throws java.lang.Exception;", "int getEnqueuedBlockRequestsNumber() {\n int count = 0;\n for (StdPeerMessage pm : sendQueue) {\n if (pm.type == StdPeerMessage.REQUEST) {\n count++;\n }\n }\n return count;\n }", "public @UInt32 int getChannelCount();", "public long getMessageReceivedCount() {\n return messageMetrics.received.get();\n }", "public int getCount() {\n lock.lock();\n try {\n System.out.println(Thread.currentThread().getName() + \" gets Count: \" + count.incrementAndGet());\n return count.intValue();\n } finally {\n lock.unlock();\n }\n }", "int getInCount();", "int getChannelsCount();", "public int getMessageListCount() {\n\t\t\tint rowcount = 0;\n\t\t\ttry {\n\t\t\t\tconn = ds.getConnection();\n\t\t\t\tpstmt = conn.prepareStatement(\"select count(*) from Message\");\n\t\t\t\trs = pstmt.executeQuery();\n\t\t\t\tif (rs.next()) {\n\t\t\t\t\trowcount = rs.getInt(1);\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\trs.close();\n\t\t\t\t} catch (SQLException s) {\n\t\t\t\t\ts.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tpstmt.close();\n\t\t\t\t} catch (SQLException s) {\n\t\t\t\t\ts.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException s) {\n\t\t\t\t\ts.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn rowcount;\n\t\t}", "public int countRess()\n {\n int nbRess = 0;\n pw.println(13);\n try\n {\n nbRess = Integer.parseInt(bis.readLine()) ;\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return nbRess ;\n }", "public synchronized int messageCount() {\n \tfinal Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this).identity();\n return q.execute().size();\n }", "public Integer getInputCnt() {\r\n return inputCnt;\r\n }", "public int getNbr_read() {\r\n\t\treturn nbrRead;\r\n\t}", "public int waitForMessages() throws InterruptedException {\n return waitForMessages(40, null);\n }", "public final int size()\n\t{\n\t\tif (messages == null)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn messages.size();\n\t\t}\n\t}", "public int getMessagesCount() {\n if (messagesBuilder_ == null) {\n return messages_.size();\n } else {\n return messagesBuilder_.getCount();\n }\n }", "public int getSystemMessageCount(){\n\t\treturn iMessageCount;\n\t}", "int getMessageIdCount();", "public synchronized int getMessageCount() {\n return _references.size();\n }", "int getRequestsCount();", "int getRequestsCount();", "int getChannelStatisticsCount();", "int getProgressCount();", "int getProgressCount();", "int getProgressCount();", "public int getCount() {\n return this.chatMessageList.size();\n }", "public int length() {\r\n\t\treturn _stream.size();\r\n\t}", "public int nioBufferCount()\r\n/* 295: */ {\r\n/* 296:309 */ return 1;\r\n/* 297: */ }", "int getPeerCount();", "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 int count() throws TrippiException {\n try {\n int n = 0;\n while (hasNext()) {\n next();\n n++;\n }\n return n;\n } finally {\n close();\n }\n }", "public synchronized int size() {\n return count;\n }", "public int inputQueueSize() {\n\t\tsynchronized (inputQueue) {\n\t\t\treturn inputQueue.size();\n\t\t}\n\t}", "public int getDataMessagesSent() {\n\t\tint contador = 0;\n\t\tfor (Contacto c : currentUser.getContacts()) {\n\t\t\tcontador += (c.getMsgsByUser(currentUser.getId()));\n\t\t}\n\t\treturn contador;\n\t}" ]
[ "0.7035226", "0.691135", "0.68320656", "0.68320656", "0.68320656", "0.675446", "0.675446", "0.672587", "0.670427", "0.66167074", "0.6574153", "0.6547297", "0.64820176", "0.64820176", "0.646807", "0.6436135", "0.6424948", "0.6364689", "0.63488245", "0.63400394", "0.63400394", "0.63400394", "0.63400394", "0.63400394", "0.63367283", "0.6328939", "0.6306487", "0.6298254", "0.6298254", "0.62930465", "0.62929523", "0.62465453", "0.6197672", "0.6165192", "0.6158878", "0.61088175", "0.61088175", "0.61088175", "0.61088175", "0.61088175", "0.6104543", "0.6098449", "0.60829127", "0.6076486", "0.60707504", "0.60681975", "0.6062575", "0.6046263", "0.6032832", "0.603108", "0.6018004", "0.6016798", "0.59978426", "0.5995756", "0.5982773", "0.5968059", "0.5962513", "0.59524524", "0.5950389", "0.59191775", "0.5901621", "0.58959895", "0.589329", "0.5887821", "0.58600163", "0.5853522", "0.58496356", "0.5848635", "0.58450466", "0.58429825", "0.5836776", "0.5833045", "0.5830852", "0.5829736", "0.58171654", "0.5812694", "0.5809573", "0.58055276", "0.57914877", "0.57687074", "0.57673424", "0.57655764", "0.5762889", "0.5761193", "0.57428294", "0.5723031", "0.5723031", "0.57192886", "0.57162285", "0.57162285", "0.57162285", "0.571083", "0.5704844", "0.5685932", "0.5685276", "0.5682172", "0.5677284", "0.56753784", "0.56728494", "0.5664635" ]
0.67342407
7
Return one message from input stream. This call is blocking until at least 1 message exists.
public ITCMessage readMessage() throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FermatMessage readNextMessage() {\n if(!pendingIncomingMessages.isEmpty()) {\n\n /*\n * Return the next message\n */\n return pendingIncomingMessages.iterator().next();\n\n }else {\n\n //TODO: CREATE A APPROPRIATE EXCEPTION\n throw new RuntimeException();\n }\n\n }", "protected String readMessage() {\n synchronized (messageQ) {\n while (messageQ.isEmpty()) {\n try {\n messageQ.wait();\n } catch (InterruptedException e) {\n if (isGUI)\n return null;\n }\n }\n return messageQ.poll();\n }\n }", "public synchronized String read() {\n\t\tString message = \"\";\n\n\t\tif(content.size() > 0 )\n\t\t\tmessage = content.get(0);\n\t\tnotify();\n\n\t\treturn message;\n }", "public Message read() {\n synchronized (lock){\n while (!answerReady) {\n try {\n lock.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n answerReady = false;\n return answer;\n }", "@Override\n public Optional<TcpMessage> consumeMessage() throws IOException {\n System.out.println(\"Trying to consume a message...\");\n var json = inputMessageStream.readJson();\n\n socket.shutdownInput();\n if (json.isEmpty()) {\n return Optional.empty();\n }\n return Optional.of(new TcpMessage(JsonPayload.of(json)));\n // return Optional.of(new Message<>(new JsonPayload(json)));\n }", "public <T> T readInbound() {\n/* 291 */ T message = (T)poll(this.inboundMessages);\n/* 292 */ if (message != null) {\n/* 293 */ ReferenceCountUtil.touch(message, \"Caller of readInbound() will handle the message from this point\");\n/* */ }\n/* 295 */ return message;\n/* */ }", "public Message receiveMessage() {\r\n\t\treturn messages.poll();\r\n\t}", "public Message getMessageMinerChannel() {\n\t\t\n\t\tMessage temp = null;\t\n\t\ttry {\n\t\t\t//se ia mesajul din buffer\n\t\t\ttemp = bufferMinerChannel.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn temp;\n\t}", "public Message getMessageMinerChannel() {\n\t\tMessage msg2=null;\n\t\ttry{\n\t\t\tmsg2=chann2.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn msg2;\n\t}", "protected Object readMessage(InputStream inputStream) throws IOException{\n PushbackInputStream pin = (PushbackInputStream)inputStream;\n StringBuffer buf = new StringBuffer();\n \n boolean lineStartsWithPrompt = false;\n while (true){\n int b = pin.read();\n \n if (b < 0){\n if (buf.length() == 0) // Clean disconnection\n return null;\n break;\n }\n \n // End of line\n if (b == '\\n'){\n // FICS uses \\n\\r for an end-of-line marker!?\n // Eat the following '\\r', if there is one\n b = pin.read();\n if ((b > 0) && (b != '\\r'))\n pin.unread(b);\n \n // Ignore all-prompt lines\n if (lineStartsWithPrompt && (buf.length() == 0)){\n lineStartsWithPrompt = false;\n continue;\n }\n else\n break;\n }\n \n buf.append((char)b);\n \n // Filter out the prompt\n if (buf.toString().equals(\"fics% \")){\n buf.setLength(0);\n lineStartsWithPrompt = true;\n }\n }\n \n return buf.toString();\n }", "public synchronized String read() {\n\n /* RULE: empty, eligible for WRITE only; !empty, eligible for READ only :\n for read process to proceed, need message tray to be full, so while empty,\n make this thread sleep (the READER thread) so the other thread will run\n and write/fill in the message tray */\n\n while(empty) { // loop til we got a msg to read (cant read without msg)\n // DEADLOCK FIX\n try {\n wait(); // an Object method, not Thread's\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n empty = true; // i read the msg, will be sending this to Reader afterwards so message tray is now empty\n notifyAll(); // executed only after we have updated 'empty'\n return message;\n }", "Message getNextMessage();", "public process get_first() {\n\t\treturn queue.getFirst();\n\t}", "private Message getMessage() {\n try {\n return (Message) socketInput.readObject();\n } catch (IOException e) {\n connected = false;\n if (!connectionIn)\n messageHandler.nodeDisconnected();\n this.close();\n } catch (ClassNotFoundException e) {\n throw new UnexpectedBehaviourException();\n }\n return null;\n }", "public String getNextMessage(){\r\n String msg = this.receivedMessages.get(0);\r\n this.receivedMessages.remove(0);\r\n return msg;\r\n }", "protected byte[] getNextMessage(){\n if (messages.size() > 0) {\n byte message[] = messages.get(0).clone();\n messages.remove(0);\n return message;\n } else {\n return null;\n }\n \n }", "private common.messages.KVMessage receiveMessage() throws IOException {\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tbyte[] msgBytes = null, tmp = null;\r\n\t\tbyte[] bufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\r\n\t\t/* read first char from stream */\r\n\t\tbyte read = (byte) input.read();\t\r\n\t\tboolean reading = true;\r\n\t\t\r\n//\t\tlogger.info(\"First Char: \" + read);\r\n//\t\tCheck if stream is closed (read returns -1)\r\n//\t\tif (read == -1){\r\n//\t\t\tTextMessage msg = new TextMessage(\"\");\r\n//\t\t\treturn msg;\r\n//\t\t}\r\n\r\n\t\twhile(/*read != 13 && */ read != 10 && read !=-1 && reading) {/* CR, LF, error */\r\n\t\t\t/* if buffer filled, copy to msg array */\r\n\t\t\tif(index == BUFFER_SIZE) {\r\n\t\t\t\tif(msgBytes == null){\r\n\t\t\t\t\ttmp = new byte[BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, BUFFER_SIZE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttmp = new byte[msgBytes.length + BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length,\r\n\t\t\t\t\t\t\tBUFFER_SIZE);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmsgBytes = tmp;\r\n\t\t\t\tbufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\t\tindex = 0;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\t/* only read valid characters, i.e. letters and constants */\r\n\t\t\tbufferBytes[index] = read;\r\n\t\t\tindex++;\r\n\t\t\t\r\n\t\t\t/* stop reading is DROP_SIZE is reached */\r\n\t\t\tif(msgBytes != null && msgBytes.length + index >= DROP_SIZE) {\r\n\t\t\t\treading = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* read next char from stream */\r\n\t\t\tread = (byte) input.read();\r\n\t\t}\r\n\t\t\r\n\t\tif(msgBytes == null){\r\n\t\t\ttmp = new byte[index];\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, index);\r\n\t\t} else {\r\n\t\t\ttmp = new byte[msgBytes.length + index];\r\n\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length, index);\r\n\t\t}\r\n\t\t\r\n\t\tmsgBytes = tmp;\r\n\t\t\r\n\t\t/* build final String */\r\n\t\tcommon.messages.KVMessage msg = new common.messages.KVAdminMessage(msgBytes);\r\n\t\tlogger.debug(\"RECEIVE \\t<\" \r\n\t\t\t\t+ clientSocket.getInetAddress().getHostAddress() + \":\" \r\n\t\t\t\t+ clientSocket.getPort() + \">: '\" \r\n\t\t\t\t+ msg.getMsg().trim() + \"'\");\r\n\t\treturn msg;\r\n }", "public byte[] ReadMessage()\r\n {\r\n try {\r\n byte[] read = new byte[in.read()];\r\n for(int i = 0; i < read.length; i++)\r\n read[i] = (byte)in.read();\r\n\r\n return read;\r\n } catch (Exception e){\r\n System.out.println(e);\r\n }\r\n return null;\r\n }", "public synchronized ClientMessage readClientMessage(){\n while ( !currClient.isUpdatingClientMessage() ) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n currClient.setUpdateClientMessage(false);\n return currClient.getClientMessage();\n }", "public ProcessorMessage getMessage() {\n\t\tProcessorMessage obj = reader.getMessage();\n\t\treturn obj;\n\t}", "private String getMessage(MessageChannel channel) {\n try {\n return channel.readNextString();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "@Override\n public int read() throws IOException {\n if (stream.available() > 0) {\n return stream.read();\n } else {\n layer.receiveMoreDataForHint(getHint());\n // either the stream is now filled, or we ran into a timeout\n // or the next stream is available\n return stream.read();\n }\n }", "public MessageToProcess retrieveMessage() {\n MessageToProcess returnMessage = this.queueMessagingTemplate.receiveAndConvert(MessageToProcess.class);\n\n return Optional.ofNullable(returnMessage).orElse(null);\n }", "public String readMessage() throws IOException {\n\t\treturn reader.readLine();\n\t}", "public <T> T readOutbound() {\n/* 303 */ T message = (T)poll(this.outboundMessages);\n/* 304 */ if (message != null) {\n/* 305 */ ReferenceCountUtil.touch(message, \"Caller of readOutbound() will handle the message from this point.\");\n/* */ }\n/* 307 */ return message;\n/* */ }", "public String getInputForName() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\treturn bufferedReader.readLine();\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t}", "private static String receiveInput(String message) {\n BufferedReader buffyTheVampireSlayer = new BufferedReader(new InputStreamReader(System.in));\n try {\n System.out.printf(\"%s: \", message);\n return buffyTheVampireSlayer.readLine();\n } catch (IOException e) {\n System.out.println(e);\n System.out.println(\"an unexpected error occured\");\n return null;\n }\n }", "synchronized A consume() {\n try {\r\n if ((noMore && slack >= 0) || consumedAll) {\r\n notifyAll();\r\n consumedAll = true;\r\n return null;\r\n }\r\n while (slack != -1) {\r\n wait();\r\n }\r\n A tmp;\r\n\r\n int bSize = CodecUtil.slackOrSize(consumerBuffer, codec);\r\n if(bSize < 0 && endOfStream) {\r\n bSize = Math.abs(bSize);\r\n }\r\n if (bSize <= 0) {\r\n slack = Math.abs(bSize);\r\n notifyAll();\r\n return null;\r\n }\r\n tmp = codec.from(consumerBuffer);\r\n totConsumed += bSize;\r\n notifyAll();\r\n return tmp;\r\n }\r\n catch (InterruptedException e) {\r\n }\r\n return null;\r\n }", "private String readVoidMessage() {\n JSONTokener tokener = new JSONTokener(this.inputStream);\n if(tokener.more()) {\n return TokenerHandler.getNextJSONStringNonContinuous(tokener);\n } else {\n throw new LostConnectionException();\n }\n }", "public String readString() {\n byte[] byteForStream = new byte[1024];\n String message = \"\";\n\n mListener.onCarRunning();\n\n\n int bytes;\n\n while (true) {\n try {\n bytes = mInputStream.read(byteForStream);\n message = new String(byteForStream, 0, bytes);\n Log.d(TAG, \" Read from inputstream \" + message);\n\n } catch (IOException e) {\n Log.e(TAG, \" error reading from inputstream \" + e.getMessage());\n break;\n }\n }\n return message;\n }", "public String read() {\n synchronized (this) {\n while (!answerReady) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n answerReady = false;\n return answer;\n }", "public byte[] nextMsg() {\n return null;\r\n }", "public DatagramPacket receive() {\n\t\treturn messageQueue.poll();\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Waiting for input\");\n\t\t// Handle reading data until we exit\n\t\tByteBuffer buf = ByteBuffer.allocate(2048);\n\t\twhile (!stopper && socketChannel.isOpen()) {\n\t\t\tSystem.out.println(\"Reading the socket\");\n\t\t\ttry {\n\t\t\t\t// No input from the user in 60 seconds results in kicking them\n\t\t\t\t// out\n\t\t\t\tint bytesRead = socketChannel.read(buf).get(60, TimeUnit.SECONDS);\n\t\t\t\t// ByteBuffer dst = ByteBuffer.allocate(bytesRead);\n\t\t\t\t// engine.unwrap(buf, dst);\n\t\t\t\tSystem.out.println(\"Got data of size: \" + bytesRead);\n\t\t\t\t// convert to proto\n\t\t\t\tcommonUIElements.MessageProtos.Message msg = commonUIElements.MessageProtos.Message\n\t\t\t\t\t\t.parseFrom(Arrays.copyOf(buf.array(), bytesRead));\n\t\t\t\tSystem.out.println(\"RXed: \" + msg.toString());\n\t\t\t\tif (!msg.getName().equals(name)) {\n\t\t\t\t\tname = msg.getName();\n\t\t\t\t}\n\t\t\t\t// add data to the message queue\n\t\t\t\tif (SignatureSystem.verifySignature(msg.getSignature(), msg.getMessage(), msg.getName(), trustStore)) {\n\t\t\t\t\tmessages.put(\n\t\t\t\t\t\t\tnew Message(msg.getSender(), msg.getMessage(), msg.getSignature(), msg.getClearance()));\n\t\t\t\t} else {\n\t\t\t\t\tMessage error = new Message(msg.getSender(), \"Error: signture is invalid\", msg.getSignature(),\n\t\t\t\t\t\t\tmsg.getClearance());\n\t\t\t\t\terror.error = true;\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t}\n\t\t\t\t// clear the buffer for the next message\n\t\t\t\tbuf.clear();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tSystem.err.println(\"Failed to add message to the queue: \" + e.getMessage());\n\t\t\t\tMessage error = new Message(this.name, \"Disconnected\", \"\", 1);\n\t\t\t\terror.error = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (TimeoutException e) {\n\t\t\t\tSystem.err.println(\"Timeout hit, waiting again\");\n\t\t\t\tMessage error = new Message(this.name, \"Client: \" + this.name + \" has timed out\", \"\", 1);\n\t\t\t\terror.kill = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\tSystem.err.println(\"Execution error, breaking out of loop\");\n\t\t\t\tbreak;\n\t\t\t} catch (InvalidProtocolBufferException e) {\n\t\t\t\tSystem.err.println(\"Invalid protobuf received: \" + e.getMessage());\n\t\t\t\t// } catch(SSLException e) {\n\t\t\t\t// System.err.println(\"SSL Failed: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tsocketChannel.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Failed to close socket while exiting\");\n\t\t}\n\t\tSystem.out.println(\"Exiting thread...\");\n\t}", "public String getFirst () {\n lengthMutex.lock ();\n try\n {\n while (length == 0)\n empty.await ();\n }\n catch (Exception e)\n {}\n finally\n {\n lengthMutex.unlock ();\n }\n\n String result = null;\n for (int i=9; i>-1; i--)\n {\n qLock[i].lock ();\n result = q[i].pollFirst ();\n qLock[i].unlock ();\n if (result != null)\n {\n length--;\n break;\n }\n }\n if (result == null)\n {\n // System.out.println (\"pooop\");\n System.exit (1);\n }\n\n lengthMutex.lock ();\n full.signal ();\n lengthMutex.unlock ();\n\n return result;\n }", "public Message dequeue(){\n\t\tif(queue.isEmpty()){\n\t\t\tSystem.out.println(\"The queue is empty.\");\n\t\t\treturn null;\n\t\t}\n\t\treturn queue.poll();\n\t}", "Optional<Message> processMessage(Message message) throws MessageHandlerException;", "public void start(){\n\t\tdo{\n\t\t\tMessage<T> msg= input.read();\n\t\t\tif (!msg.getQuit() && !msg.getFail() ){\n\t\t\t\tconsume(msg.getContent());\n\t\t\t}\n\t\t\tif (msg.getQuit()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(true);\n\t\t\n\t}", "@Override\n\tpublic Message findOneMessage(long id) {\n\t\treturn null;\n\t}", "public Message getMessageWizardChannel() {\n\t\tMessage msg1=null;\n\t\ttry{\n\t\t\tmsg1=chann1.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn msg1;\n\t}", "private synchronized Message popMessage() throws InterruptedException {\n log.trace(\"MessageListenerImpl.popMessage() start ...\");\n notify();\n while (!messagesAvail()) {\n log.info(\"MessageListenerImpl.popMessage() messages not available. Wait...\");\n wait();\n }\n log.trace(\"MessageListenerImpl.popMessage() continuing ...\");\n Message message;\n synchronized(messages) {\n message = (Message) messages.get(0);\n log.debug(\"MessageListenerImpl.popMessage() retrieved \" + message.getDestinationState().name + \" state.\");\n log.trace(\"MessageListenerImpl.popMessage() Before size=\" + messages.size() + \".\");\n messages.remove(0);\n }\n\n log.trace(\"MessageListenerImpl.popMessage() After size=\" + messages.size() + \".\");\n log.trace(\"MessageListenerImpl.popMessage() ... end\");\n return message;\n }", "public String recvMsg() {\n System.out.print(\"Recieving message: \");\n try {\n StringBuilder sb = new StringBuilder();\n String input = reader.readLine();\n \n sb.append(input);\n if(sb != null)\n \tSystem.out.println(sb.toString());\n return sb.toString();\n } catch (IOException e) {\n System.out.println(\"IOException at recvMsg()\");\n } catch (NullPointerException e) {\n System.out.println(\"NullPointerException at recvMsg()\");\n } catch (Exception e) {\n System.out.println(\"Exception at recvMsg(): \" + e.toString());\n }\n\n return null;\n }", "private String readNextLine() {\n StringBuilder sb = new StringBuilder();\n\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(stream));\n sb.append(br.readLine());\n } catch (IOException e) {\n e.fillInStackTrace();\n }\n\n return sb.toString();\n }", "public static String readMessage() throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tSystem.out.print(\"Enter the message :: \");\n\t\tSystem.out.println();\n\t\tString s = br.readLine();\n\t\treturn s;\n\t}", "public synchronized StompFrame nextMessage() {\n String message = null;\n int messageEnd = this._stringBuf.indexOf(this._messageSeparator);\n if (messageEnd > -1) {\n message = this._stringBuf.substring(0, messageEnd + this._messageSeparator.length());\n this._stringBuf.delete(0, messageEnd+this._messageSeparator.length());\n }\n System.out.println(\"Server recieved the following message: \" + message);\n return constructMessage(message);\n }", "public synchronized String[] readChallengerMessage() {\n while ( client1.getChallengerChoice() == null ){\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n return client1.getChallengerChoice();\n }", "public NetMessage read() throws IOException\n \t{\n \t\treturn NetMessage.newNetMessage(new DataInputStream(din));\n \t}", "public Message get(_Consommateur arg0) throws Exception,\n\tInterruptedException {\n\t\tMessage m ;\n\t\tnotEmpty.p();\n\t\tmutex.p();\n\n\t\tm = buffer[out];\n\t\tout = (out+1)%size;\n\t\tnbmsg--;\n\n\t\tif(TestProdCons.prodActif == 0 && noMessage())\n\t\t\tTestProdCons.end = true;\n\n\t\tmutex.signal();\n\t\tnotFull.signal();\n\t\treturn m;\n\t}", "public Optional<Message> getMessage(int idMessage) {\n return messageRepository.getMessage(idMessage);\n }", "private boolean waitForMessage(InputStream inputStream, String message) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(inputStream));\n String line;\n boolean status = false;\n while ((line = br.readLine()) != null) {\n log.info(line);\n if (!status && line.contains(message)) {\n status = true;\n }\n }\n return status;\n }", "public String getInput(String message) throws IOException {\n\t\tSystem.out.print(\">> \"+message+\" \");\n\t\treturn consoleIn.readLine();\n\t}", "public Message getNextMessage() {\n return nextMessage;\n }", "public Message getMessageWizardChannel() {\n\t\tMessage temp = null;\n\t\t\n\t\ttry {\n\t\t\t//se ia mesajul din buffer\n\t\t\ttemp = bufferWizardChannel.take();\t\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn temp;\n\t\t\n\t}", "public Object firstElement() {\n return _queue.firstElement();\n }", "public void run() {\n\t\tString line = null;\n\t\tMessage message;\n\t\tBufferQueueElement<Message> messageList = new BufferQueueElement<Message>();\n\t\tlong t1 = System.nanoTime();\n\t long t2 = 0;\n\t\ttry {\n\t\t\twhile ((line = messageIO.readMessage()) != null) {\n\t\t\t\tt2 = System.nanoTime();\n\t\t\t\t/* Ok, we can close the stream. But process the last message list. */\n\t\t\t\tif (CLOSE_STREAM.equals(line)) {\n\t\t\t\t\tmessageList.setStreamClosed(true);\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if((t2 - t1) < ONE_SECOND) {\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t} else {\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tmessageList = new BufferQueueElement<Message>();\n\t\t\t\t\tt1 = System.nanoTime();\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public boolean readNext (TSMessageConsumer processor);", "public static String readLine(String message){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n return in.nextLine();\n }", "public String readLine() {\n if(in.hasNextLine()) {\n return in.nextLine();\n } else {\n // remote host closed connection!\n cleanup();\n return null;\n }\n }", "public E peek() {\n try {\n return b(1, (Long) null, (TimeUnit) null);\n } catch (InterruptedException unused) {\n return null;\n }\n }", "private boolean consumeSingleLine(final String message) {\n\t\tif(startParsing(message))\n\t\t\treturn match(message);\n\n\t\treturn false;\n\t}", "Message findOne(Long id);", "@Override\n public Message getNextMessage() {\n return commReceiver.getNextMessage();\n }", "private void receive() {\n\t\tMQGetMessageOptions gmo = new MQGetMessageOptions();\n\t\tif (keepMessages) {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t| MQConstants.MQGMO_BROWSE_FIRST;\n\t\t} else {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2;\n\t\t\tif (syncPoint) {\n\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t}\n\t\t}\n\t\tgmo.matchOptions = MQConstants.MQMO_NONE;\n\t\tgmo.waitInterval = this.waitInterval;\n\n\t\ttry {\n\t\t\tint lastSeqNo = 0;\n\t\t\tlong lastTs = 0;\n\t\t\tint messagecounter = 0;\n\t\t\twhile (true) {\n\t\t\t\tif (!(qmgr.isConnected())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\tif (!(queue.isOpen())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\thaltFileExists();\n\t\t\t\tif (haltStatus) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t} else {\n\t\t\t\t\treadQueue = true;\n\t\t\t\t}\n\t\t\t\tint queueNotInhibited = queue.getInhibitGet();\n\t\t\t\tif (queueNotInhibited == MQConstants.MQQA_GET_INHIBITED) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t}\n\t\t\t\tproduceCounts();\n\t\t\t\tif (readQueue) {\n\t\t\t\t\tqueueDepth = queue.getCurrentDepth();\n\t\t\t\t\tif (queueDepth != 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\trcvMessage = new MQMessage();\n\t\t\t\t\t\t\tif (mqccsid != 0) {\n\t\t\t\t\t\t\t\trcvMessage.characterSet = mqccsid;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tqueue.get(rcvMessage, gmo);\n\t\t\t\t\t\t\trecordCountsRcvd++;\n\t\t\t\t\t\t\tstrLen = rcvMessage.getMessageLength();\n\t\t\t\t\t\t\tstrData = new byte[strLen];\n\t\t\t\t\t\t\trcvMessage.readFully(strData);\n\t\t\t\t\t\t\tmessagePutMs = rcvMessage.putDateTime.getTimeInMillis();\n\t\t\t\t\t\t\tseqNo = rcvMessage.messageSequenceNumber;\n\t\t\t\t\t\t\tif (lastTs == messagePutMs && seqNo == 1) {\n\t\t\t\t\t\t\t\tseqNo = lastSeqNo + seqNo;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmsgText = new String(strData);\n\t\t\t\t\t\t\tjsonOut = new JSONArray();\n\t\t\t\t\t\t\tjsonKey = new JSONObject();\n\t\t\t\t\t\t\tjsonValue = new JSONObject();\n\t\t\t\t\t\t\tjsonKey.put(\"key\", Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tjsonValue.put(\"value\", msgText);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgKey: \" + Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgValue: \" + msgText);\n\t\t\t\t\t\t\tjsonOut.put(jsonKey);\n\t\t\t\t\t\t\tjsonOut.put(jsonValue);\n\t\t\t\t\t\t\tmsgList.add(jsonOut.toString());\n\t\t\t\t\t\t\tlastTs = messagePutMs;\n\t\t\t\t\t\t\tlastSeqNo = seqNo;\n\t\t\t\t\t\t\tmessagecounter++;\n\t\t\t\t\t\t\t// move cursor to next message\n\t\t\t\t\t\t\tif (msgList.size() > maxUMsg / 2) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (msgList.size() > queueDepth) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (keepMessages) {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT | MQConstants.MQGMO_BROWSE_NEXT;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT;\n\t\t\t\t\t\t\t\tif (syncPoint) {\n\t\t\t\t\t\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (MQException e) {\n\t\t\t\t\t\t\tif (e.reasonCode == MQConstants.MQRC_NO_MSG_AVAILABLE) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else if (e.reasonCode == MQConstants.MQRC_SYNCPOINT_LIMIT_REACHED) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime() + \" - MQ Reason Code: \" + e.reasonCode);\n\t\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tSystem.out.println(Calendar.getInstance().getTime() + \" - Error: \" + ioe.getMessage());\n\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t}\n\t\t\t\t\tthreadWait();\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Throwable t) {\n\t\t\t// restart if there is any other error\n\t\t\trestart(Calendar.getInstance().getTime() + \" - Error receiving data from Queue or QMGR\", t);\n\t\t}\n\n\t}", "public int peekMessages() throws IOException;", "public synchronized MessageImpl getMessage(MessageRef reference)\n throws JMSException {\n MessageImpl message;\n final String messageId = reference.getMessageId();\n\n if (reference.isPersistent()) {\n message = (MessageImpl) _persistent.get(messageId);\n\n // if the message is not cached then try and retrieve it from the\n // database and cache it.\n if (message == null) {\n // fault in at least the next message from the database\n try {\n DatabaseService service = DatabaseService.getInstance();\n PersistenceAdapter adapter = service.getAdapter();\n Connection connection = service.getConnection();\n message = adapter.getMessage(connection, messageId);\n } catch (PersistenceException exception) {\n final String msg = \"Failed to retrieve message\";\n _log.error(msg, exception);\n throw new JMSException(msg + \": \" + exception.getMessage());\n }\n // add the message to the persistent cache once it has been\n // retrieved from the datastore\n if (message != null) {\n _persistent.put(messageId, message);\n }\n }\n } else {\n message = (MessageImpl) _transient.get(messageId);\n }\n\n if (message != null && !message.getReadOnly()) {\n // mark the message as read-only\n message.setReadOnly(true);\n }\n\n return message;\n }", "public SimplePacket askForNextPacket() {\n\t\treturn input.getNextPacket();\n\t}", "private static Player getThroughWhomSendMessage() {\n\t\treturn Remain.getOnlinePlayers().isEmpty() ? null : Remain.getOnlinePlayers().iterator().next();\n\t}", "@Override\r\n public CustomProcess peekBest() {\r\n if (data[0] == null || isEmpty()) {\r\n throw new NoSuchElementException(\"queue is empty\");\r\n }\r\n return data[0];\r\n }", "public synchronized final Object readObject() {\n\t\tif (!inQueue.isEmpty())\n\t\t\treturn inQueue.dequeue();\n\t\telse return null;\n\t}", "public synchronized Message get (int index) {\n return list.get(index);\n }", "private String askForLine(String message) {\r\n System.out.print(message);\r\n return sc.nextLine();\r\n }", "public Collection<Message> findNextForSending();", "private static String getInput(String message, Scanner sc) {\n String result = \"\";\n while (result.equals(\"\")) {\n System.out.println(message);\n result = sc.nextLine();\n }\n return result;\n }", "private Object receive() {\n\t\ttry {\n\t\t\t// verificamos si la conexion esta abierta\n\t\t\tif (!this.getConnection().isClosed())\n\t\t\t\t// retornamos los datos\n\t\t\t\treturn this.getInputStream().readObject();\n\t\t} catch (final IOException e) {\n\t\t\t// print the StackTrace\n\t\t\tthis.getLogger().error(e);\n\t\t} catch (final ClassNotFoundException e) {\n\t\t\t// print the StackTrace\n\t\t\tthis.getLogger().error(e);\n\t\t}\n\t\t// retornamos null\n\t\treturn null;\n\t}", "private PeerProtocolMessage readNormalMessage() throws IOException{\r\n\t\tbyte[]length=new byte[4];\r\n\t\tthis.inputStream.read(length);\r\n\t\tint lengthInt=ToolKit.bigEndianBytesToInt(length, 0);\r\n\t\tbyte[]message= new byte[lengthInt];\r\n\t\tthis.inputStream.read(message);\r\n\t\tbyte[]result=new byte[length.length+message.length];\r\n\t\tSystem.arraycopy(length, 0, result, 0, length.length);\r\n\t\tSystem.arraycopy(message, 0, result, length.length, message.length);\r\n\t\treturn PeerProtocolMessage.parseMessage(result);\r\n\t}", "public byte[] pull() {\n \n return router.getNextMessage();\n }", "protected T input() {\n\t\tRecordReader<T> inputReader = getReader(getMainConstraint());\n\t\tif (inputReader == null) {\n\t\t\tLogger.getLogger(OneToManyLookupProcessNode.class).error(\"no main reader!\"); //$NON-NLS-1$\n\t\t\treturn null;\n\t\t}\n\t\tT inputRecord = inputReader.read();\n\t\tif (inputRecord == null) {\n\t\t\tLogger.getLogger(OneToManyLookupProcessNode.class).info(\"end of input\"); //$NON-NLS-1$\n\t\t\treturn null;\n\t\t}\n\t\t// Logger.getLogger(OneToManyLookupProcessNode.class).info(\"got input\"); //$NON-NLS-1$\n\t\tsetInCount(getInCount() + 1);\n\t\tif (getProgressCount() > 0 && getInCount() % getProgressCount() == 0) {\n\t\t\tLogger.getLogger(ProcessNode.class).info(\"input records: \" + getInCount()); //$NON-NLS-1$\n\t\t\tlong newTime = System.currentTimeMillis();\n\t\t\tLogger.getLogger(ProcessNode.class).info(\n\t\t\t\t\"duration: \" + String.valueOf(((double) newTime - (double) getTime()) / 1000)); //$NON-NLS-1$\n\t\t\tsetTime(newTime);\n\t\t}\n\t\treturn inputRecord;\n\t}", "public String readMessage() {\r\n return new String(readMessageAsByte());\r\n }", "public ChannelFuture writeOneInbound(Object msg, ChannelPromise promise) {\n/* 349 */ if (checkOpen(true)) {\n/* 350 */ pipeline().fireChannelRead(msg);\n/* */ }\n/* 352 */ return checkException(promise);\n/* */ }", "public static Message obtain() {\n// synchronized (sPoolSync) {\n// if (sPool != null) {\n// Message m = sPool;\n// sPool = m.next;\n// m.next = null;\n// sPoolSize--;\n// return m;\n// }\n// }\n return new Message();\n }", "public Message<Object> receive() {\n\t\treturn null;\n\t}", "public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }", "public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }", "public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }", "public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }", "public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }", "Message getCurrentMessage();", "public TransportMessage findMessage(String id) {\n try{\n return (TransportMessage)storage(Q_STORENAME).getRecordForValue(\"cache-id\", id);\n }\n catch(NoSuchElementException e) {\n //Not there. Not a big deal.\n }\n\n try{\n return (TransportMessage)storage(RECENTLY_SENT_STORENAME).getRecordForValue(\"cache-id\", id);\n }\n catch(NoSuchElementException e) {\n //Not there. Not a big deal.\n }\n\n //Couldn't find it!\n return null;\n }", "@Override\n public MessageStream getMessageStream(Address address) {\n if (terminated) {\n return null;\n }\n\n if (!(address instanceof ZMQAddress)) {\n return null;\n }\n\n ZMQAddress zmqAddress = (ZMQAddress) address;\n\n // Retrieve the stream associated with this remote host from the state.\n // Use synchronization to prevent interleaving with the Harmony server code\n // that creates new streams when they do not already exist for incoming messages.\n synchronized (messageState) {\n ZMQMessageStream stream = messageState.getStreamByAddress(zmqAddress);\n\n // Without synchronization, the Harmony server could create a new stream in\n // the state here, which would then be overwritten by the stream in the\n // null case below.\n\n if (stream == null) {\n // Instantiate a new stream in Harmony state.\n stream = new ZMQMessageStream(environment, context, zmqAddress);\n messageState.insertStreamByAddress(zmqAddress, stream);\n }\n\n return stream;\n }\n }", "Boolean isMessageRead(String msgId);", "public synchronized Message receive() \r\n\tthrows IOException, SocketTimeoutException {\r\n\t\tbyte[] buffer = new byte[576];\r\n\t\tMessage msg = null;\r\n\t\twhile (msg == null) {\r\n\t\t\ttry {\r\n\t\t\t\tsocket.setSoTimeout(TIMEOUT);\r\n\t\t\t\tDatagramPacket response = new DatagramPacket(buffer,\r\n\t\t\t\t\t\tbuffer.length, this.socket.getInetAddress(),\r\n\t\t\t\t\t\tthis.socket.getLocalPort());\r\n\t\t\t\tsocket.receive(response);\r\n\t\t\t\tmsg = new Message(response.getData());\r\n\t\t\t\tmsg.setSender(response.getPort(), response.getAddress());\r\n\t\t\t} catch (MessageCorruptException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.sendConfirmation(msg.getSenderPort(), msg.getSenderHost());\r\n\r\n\t\tif (msg.getType().equals(\"%%start-fragments%%\"))\r\n\t\t\tmsg = receiveFragments();\r\n\r\n\t\treturn msg;\r\n\t}", "public String readFirstLine() {\n if ( scanner.hasNextLine() ) {\n return scanner.nextLine();\n }\n return \"\";\n }", "public Message peek() \n { \n return elements[head]; \n }", "private Message readMessage() throws IOException, ClassNotFoundException {\n Message message = (Message) objectInputStream.readObject();\n Message.Command temp = message.getCommand();\n if (temp != Message.Command.GET_RESERVED && temp !=\n Message.Command.GET_AVAILABLE) {\n if (connectionType == Message.Command.REGISTER_CLIENT) {\n connectionLoggerService.add(\"Client - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n\n } else if (connectionType == Message.Command.REGISTER_AH) {\n connectionLoggerService.add(\"Auction House - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n } else {\n connectionLoggerService.add(\"Unknown - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n }\n }\n return message;\n }", "public Optional<Messages> getMessage(int id){\n\treturn messageRepository.getMessage(id);\n }", "MessageDto peekMessage(MessageQueryInfoDto messageQueryInfo) throws IOException, MlmqException;", "public int listen() {\n\t\tmutex.acquire();\n\t\twhile(message == null ) {\n\t\t\tspeakers.wake();\n\t\t\tlisteners.sleep();\n\t\t}\n\t\tint receivedWord = message.intValue();\n\t\tmessage = null;\n\t\tacknowledge.wake();\n\t\tmutex.release();\n\t\treturn receivedWord;\n\t}", "protected String getFromUser(String message) {\n\t\ttry {\n\t\t\twhile (true) {\n\t\t\t\tBufferedReader userReader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\tSystem.out.print(message);\n\t\t\t\tString fromUser = userReader.readLine().toLowerCase();\n\t\t\t\tif (fromUser.trim().length() > 0){\n\t\t\t\t\treturn fromUser;\t\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Sorry empty strings are not valid input\");\n\t\t\t\t\tSystem.out.print(\"Please try again: \");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "Message get(String id);", "public int getInputForNumber() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\treturn Integer.parseInt(bufferedReader.readLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.6922474", "0.65259194", "0.6476038", "0.6401475", "0.63977575", "0.6282366", "0.6256769", "0.61086607", "0.6105827", "0.6101419", "0.5965035", "0.59532785", "0.5928513", "0.5894726", "0.5871433", "0.58484256", "0.5794656", "0.57521456", "0.57226413", "0.5710192", "0.56899744", "0.5638516", "0.5628475", "0.56092626", "0.5560291", "0.5532262", "0.55320925", "0.55128384", "0.5510782", "0.5486487", "0.54819906", "0.5474902", "0.546578", "0.5456524", "0.54293317", "0.5423324", "0.5422888", "0.54209596", "0.5413895", "0.53946614", "0.5388503", "0.5387718", "0.53842366", "0.5374193", "0.5350575", "0.53489995", "0.5302565", "0.5288357", "0.52837634", "0.5279572", "0.52763015", "0.52745795", "0.52684474", "0.5261412", "0.5256887", "0.5252921", "0.524281", "0.5238981", "0.52383083", "0.52372277", "0.523356", "0.52278394", "0.517283", "0.5159885", "0.51540345", "0.51521045", "0.5147916", "0.51441944", "0.51399755", "0.51391965", "0.51382285", "0.51375663", "0.51340413", "0.51277775", "0.512125", "0.51198494", "0.51130664", "0.51061857", "0.5100336", "0.5099491", "0.5098891", "0.5096502", "0.5096502", "0.5096502", "0.5096502", "0.5096502", "0.5087138", "0.5076671", "0.50727844", "0.5072689", "0.5070268", "0.5068031", "0.5065284", "0.5062979", "0.50624156", "0.5062409", "0.506191", "0.50619006", "0.5061211", "0.5060671" ]
0.5338512
46
Return messages from input stream. This call is blocking until at least 1 message exists. Number of messages returned may be less than requested.
public ITCMessage[] readMessages(int inNumberMessages) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int peekMessages() throws IOException;", "ReadResponseMessage fetchAllMessages();", "public List<String> getResult()\n {\n while (!readComplete)\n {\n try\n {\n Thread.sleep(1000);\n }\n catch (InterruptedException ex)\n {\n // swallow and exit;\n }\n }\n return lines;\n }", "List<ChatMessage> getMessages(int roomId, int count) throws IOException;", "public byte[] readBytes(int inNumberMessages) throws IOException;", "public void readMessages() {\n if (!this.isConnectedToClientServer){return;}\n String inputMessage = inputQueue.poll();\n if (inputMessage != null){\n try{\n ClientMessageType messageType = ClientMessageParser.parse(inputMessage);\n if (messageType == ClientMessageType.INCOMING_BALL){\n //parses the message to get a ball, which is then added to the board\n Ball ball = ClientMessageParser.parseIncomingBall(inputMessage);\n board.addBall(ball);\n }\n else if (messageType == ClientMessageType.WALL_INVISIBILITY){\n //parses the messages to find out which boundary to make invisible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallInvisibility(inputMessage, board.neighbors);\n board.makeInvisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.WALL_VISIBILITY){\n //parses the messages to find out which boundary to make visible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallVisibility(inputMessage, board.neighbors);\n board.makeVisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.DISCONNECT_CLIENT){\n disconnectFromClientAndServer();\n }\n } catch (IncorrectFormatException e){\n //don't do anything --> message is not parsed, but play on this board still continues\n }\n }\n }", "@Override\n public synchronized List<Message> receiveMessages() {\n ArrayList<Message> temp = new ArrayList<>(queuedMessages);\n queuedMessages.clear();\n return temp;\n }", "public AsyncResult<IQ> requestAllMessages() {\r\n return xmppSession.query(IQ.get(new OfflineMessage(true, false)));\r\n }", "@Override\n\tpublic List<Message> findMessages(long max, int count) {\n\t\treturn null;\n\t}", "public synchronized String[] readChallengerMessage() {\n while ( client1.getChallengerChoice() == null ){\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n return client1.getChallengerChoice();\n }", "public void start(){\n\t\tdo{\n\t\t\tMessage<T> msg= input.read();\n\t\t\tif (!msg.getQuit() && !msg.getFail() ){\n\t\t\t\tconsume(msg.getContent());\n\t\t\t}\n\t\t\tif (msg.getQuit()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(true);\n\t\t\n\t}", "public synchronized List getBufferForReading() {\n// if some writer is writing, wait until no writer is writing \n while (readerNumber < 0) {\n try {\n this.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n// when readerNumber >= 0 \n readerNumber++;\n return buffer;\n }", "public void run() {\n\t\tString line = null;\n\t\tMessage message;\n\t\tBufferQueueElement<Message> messageList = new BufferQueueElement<Message>();\n\t\tlong t1 = System.nanoTime();\n\t long t2 = 0;\n\t\ttry {\n\t\t\twhile ((line = messageIO.readMessage()) != null) {\n\t\t\t\tt2 = System.nanoTime();\n\t\t\t\t/* Ok, we can close the stream. But process the last message list. */\n\t\t\t\tif (CLOSE_STREAM.equals(line)) {\n\t\t\t\t\tmessageList.setStreamClosed(true);\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if((t2 - t1) < ONE_SECOND) {\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t} else {\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tmessageList = new BufferQueueElement<Message>();\n\t\t\t\t\tt1 = System.nanoTime();\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public long getInMsgs() {\n return inMsgs.get();\n }", "@Override\n\tpublic Iterator<SendMessageInfo> getPendingMessages() throws Exception {\n\t\treturn null;\n\t}", "public byte[] readBytes(int inNumberMessages, long timeoutMs) throws IOException, TimeoutException;", "public FermatMessage readNextMessage() {\n if(!pendingIncomingMessages.isEmpty()) {\n\n /*\n * Return the next message\n */\n return pendingIncomingMessages.iterator().next();\n\n }else {\n\n //TODO: CREATE A APPROPRIATE EXCEPTION\n throw new RuntimeException();\n }\n\n }", "public static Queue<String> linesFromInput(SimpleReader input) {\n assert input != null : \"Violation of: input is not null\";\n assert input.isOpen() : \"Violation of: input.is_open\";\n\n Queue<String> lines = new Queue1L<String>();\n while (!input.atEOS()) {\n String text = input.nextLine(); // reads next line\n lines.enqueue(text);\n\n }\n return lines;\n }", "public Iterator getMessages() {\r\n\t\treturn messages == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(messages.values());\r\n\t}", "@Override\n synchronized public void run() {\n try {\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(inputStream, Charset.defaultCharset())\n );\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n this.result.add(line);\n }\n } catch (IOException ex) {\n log.error(\"Failed to consume and display the input stream of type \" + streamType + \".\", ex);\n } finally {\n this.isStopped = true;\n notify();\n }\n }", "public void getMessages(){\n if(GUI.getInstance().getBusiness().getCurrentChat() != null) {\n Set<? extends IMessageIn> response = GUI.getInstance().getBusiness().getCurrentChat().getMessages();\n if(response != null){\n messages.addAll(response);\n }\n }\n }", "public int waitForMessages() throws InterruptedException {\n return waitForMessages(40, null);\n }", "public Collection<Message> findNextForSending();", "private void parseMessages() {\n\n // Find the first delimiter in the buffer\n int inx = rx_buffer.indexOf(DELIMITER);\n\n // If there is none, exit\n if (inx == -1)\n return;\n\n // Get the complete message\n String s = rx_buffer.substring(0, inx);\n\n // Remove the message from the buffer\n rx_buffer = rx_buffer.substring(inx + 1);\n\n // Send to read handler\n sendToReadHandler(s);\n\n // Look for more complete messages\n parseMessages();\n }", "private void receive() {\n\t\tMQGetMessageOptions gmo = new MQGetMessageOptions();\n\t\tif (keepMessages) {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t| MQConstants.MQGMO_BROWSE_FIRST;\n\t\t} else {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2;\n\t\t\tif (syncPoint) {\n\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t}\n\t\t}\n\t\tgmo.matchOptions = MQConstants.MQMO_NONE;\n\t\tgmo.waitInterval = this.waitInterval;\n\n\t\ttry {\n\t\t\tint lastSeqNo = 0;\n\t\t\tlong lastTs = 0;\n\t\t\tint messagecounter = 0;\n\t\t\twhile (true) {\n\t\t\t\tif (!(qmgr.isConnected())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\tif (!(queue.isOpen())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\thaltFileExists();\n\t\t\t\tif (haltStatus) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t} else {\n\t\t\t\t\treadQueue = true;\n\t\t\t\t}\n\t\t\t\tint queueNotInhibited = queue.getInhibitGet();\n\t\t\t\tif (queueNotInhibited == MQConstants.MQQA_GET_INHIBITED) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t}\n\t\t\t\tproduceCounts();\n\t\t\t\tif (readQueue) {\n\t\t\t\t\tqueueDepth = queue.getCurrentDepth();\n\t\t\t\t\tif (queueDepth != 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\trcvMessage = new MQMessage();\n\t\t\t\t\t\t\tif (mqccsid != 0) {\n\t\t\t\t\t\t\t\trcvMessage.characterSet = mqccsid;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tqueue.get(rcvMessage, gmo);\n\t\t\t\t\t\t\trecordCountsRcvd++;\n\t\t\t\t\t\t\tstrLen = rcvMessage.getMessageLength();\n\t\t\t\t\t\t\tstrData = new byte[strLen];\n\t\t\t\t\t\t\trcvMessage.readFully(strData);\n\t\t\t\t\t\t\tmessagePutMs = rcvMessage.putDateTime.getTimeInMillis();\n\t\t\t\t\t\t\tseqNo = rcvMessage.messageSequenceNumber;\n\t\t\t\t\t\t\tif (lastTs == messagePutMs && seqNo == 1) {\n\t\t\t\t\t\t\t\tseqNo = lastSeqNo + seqNo;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmsgText = new String(strData);\n\t\t\t\t\t\t\tjsonOut = new JSONArray();\n\t\t\t\t\t\t\tjsonKey = new JSONObject();\n\t\t\t\t\t\t\tjsonValue = new JSONObject();\n\t\t\t\t\t\t\tjsonKey.put(\"key\", Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tjsonValue.put(\"value\", msgText);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgKey: \" + Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgValue: \" + msgText);\n\t\t\t\t\t\t\tjsonOut.put(jsonKey);\n\t\t\t\t\t\t\tjsonOut.put(jsonValue);\n\t\t\t\t\t\t\tmsgList.add(jsonOut.toString());\n\t\t\t\t\t\t\tlastTs = messagePutMs;\n\t\t\t\t\t\t\tlastSeqNo = seqNo;\n\t\t\t\t\t\t\tmessagecounter++;\n\t\t\t\t\t\t\t// move cursor to next message\n\t\t\t\t\t\t\tif (msgList.size() > maxUMsg / 2) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (msgList.size() > queueDepth) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (keepMessages) {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT | MQConstants.MQGMO_BROWSE_NEXT;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT;\n\t\t\t\t\t\t\t\tif (syncPoint) {\n\t\t\t\t\t\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (MQException e) {\n\t\t\t\t\t\t\tif (e.reasonCode == MQConstants.MQRC_NO_MSG_AVAILABLE) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else if (e.reasonCode == MQConstants.MQRC_SYNCPOINT_LIMIT_REACHED) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime() + \" - MQ Reason Code: \" + e.reasonCode);\n\t\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tSystem.out.println(Calendar.getInstance().getTime() + \" - Error: \" + ioe.getMessage());\n\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t}\n\t\t\t\t\tthreadWait();\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Throwable t) {\n\t\t\t// restart if there is any other error\n\t\t\trestart(Calendar.getInstance().getTime() + \" - Error receiving data from Queue or QMGR\", t);\n\t\t}\n\n\t}", "main.java.io.grpc.chatservice.Message getMessages(int index);", "public List<InboxMessage> getMessages(GetMessagesRequest request) {\n return client.get(MESSAGES_PATH, InboxMessage.class, request).getEntries();\n }", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Waiting for input\");\n\t\t// Handle reading data until we exit\n\t\tByteBuffer buf = ByteBuffer.allocate(2048);\n\t\twhile (!stopper && socketChannel.isOpen()) {\n\t\t\tSystem.out.println(\"Reading the socket\");\n\t\t\ttry {\n\t\t\t\t// No input from the user in 60 seconds results in kicking them\n\t\t\t\t// out\n\t\t\t\tint bytesRead = socketChannel.read(buf).get(60, TimeUnit.SECONDS);\n\t\t\t\t// ByteBuffer dst = ByteBuffer.allocate(bytesRead);\n\t\t\t\t// engine.unwrap(buf, dst);\n\t\t\t\tSystem.out.println(\"Got data of size: \" + bytesRead);\n\t\t\t\t// convert to proto\n\t\t\t\tcommonUIElements.MessageProtos.Message msg = commonUIElements.MessageProtos.Message\n\t\t\t\t\t\t.parseFrom(Arrays.copyOf(buf.array(), bytesRead));\n\t\t\t\tSystem.out.println(\"RXed: \" + msg.toString());\n\t\t\t\tif (!msg.getName().equals(name)) {\n\t\t\t\t\tname = msg.getName();\n\t\t\t\t}\n\t\t\t\t// add data to the message queue\n\t\t\t\tif (SignatureSystem.verifySignature(msg.getSignature(), msg.getMessage(), msg.getName(), trustStore)) {\n\t\t\t\t\tmessages.put(\n\t\t\t\t\t\t\tnew Message(msg.getSender(), msg.getMessage(), msg.getSignature(), msg.getClearance()));\n\t\t\t\t} else {\n\t\t\t\t\tMessage error = new Message(msg.getSender(), \"Error: signture is invalid\", msg.getSignature(),\n\t\t\t\t\t\t\tmsg.getClearance());\n\t\t\t\t\terror.error = true;\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t}\n\t\t\t\t// clear the buffer for the next message\n\t\t\t\tbuf.clear();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tSystem.err.println(\"Failed to add message to the queue: \" + e.getMessage());\n\t\t\t\tMessage error = new Message(this.name, \"Disconnected\", \"\", 1);\n\t\t\t\terror.error = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (TimeoutException e) {\n\t\t\t\tSystem.err.println(\"Timeout hit, waiting again\");\n\t\t\t\tMessage error = new Message(this.name, \"Client: \" + this.name + \" has timed out\", \"\", 1);\n\t\t\t\terror.kill = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\tSystem.err.println(\"Execution error, breaking out of loop\");\n\t\t\t\tbreak;\n\t\t\t} catch (InvalidProtocolBufferException e) {\n\t\t\t\tSystem.err.println(\"Invalid protobuf received: \" + e.getMessage());\n\t\t\t\t// } catch(SSLException e) {\n\t\t\t\t// System.err.println(\"SSL Failed: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tsocketChannel.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Failed to close socket while exiting\");\n\t\t}\n\t\tSystem.out.println(\"Exiting thread...\");\n\t}", "private static List<String> getMessages(AmazonSQS sqs) {\n ReceiveMessageRequest receiveMessageRequest = new ReceiveMessageRequest(sqsURL);\n List<Message> messages = sqs.receiveMessage(receiveMessageRequest.withMessageAttributeNames(\"All\")).getMessages();\n\n List<String> filesToProcess = new ArrayList<String>();\n\n for (Message message : messages) {\n // System.out.println(\" Message\");\n System.out.println(\" MessageId: \" + message.getMessageId());\n System.out.println(\" ReceiptHandle: \" + message.getReceiptHandle());\n System.out.println(\" MD5OfBody: \" + message.getMD5OfBody());\n System.out.println(\" Body: \" + message.getBody());\n for (Entry<String, MessageAttributeValue> entry : message.getMessageAttributes().entrySet()) {\n// System.out.println(\" Attribute\");\n// System.out.println(\" Name: \" + entry.getKey());\n// System.out.println(\" Value: \" + entry.getValue().getStringValue());\n filesToProcess.add(entry.getValue().getStringValue());\n }\n// System.out.println(\"Deleting a message.\\n\");\n String messageReceiptHandle = message.getReceiptHandle();\n sqs.deleteMessage(new DeleteMessageRequest(sqsURL, messageReceiptHandle));\n }\n return filesToProcess;\n }", "public <T> T readInbound() {\n/* 291 */ T message = (T)poll(this.inboundMessages);\n/* 292 */ if (message != null) {\n/* 293 */ ReferenceCountUtil.touch(message, \"Caller of readInbound() will handle the message from this point\");\n/* */ }\n/* 295 */ return message;\n/* */ }", "private common.messages.KVMessage receiveMessage() throws IOException {\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tbyte[] msgBytes = null, tmp = null;\r\n\t\tbyte[] bufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\r\n\t\t/* read first char from stream */\r\n\t\tbyte read = (byte) input.read();\t\r\n\t\tboolean reading = true;\r\n\t\t\r\n//\t\tlogger.info(\"First Char: \" + read);\r\n//\t\tCheck if stream is closed (read returns -1)\r\n//\t\tif (read == -1){\r\n//\t\t\tTextMessage msg = new TextMessage(\"\");\r\n//\t\t\treturn msg;\r\n//\t\t}\r\n\r\n\t\twhile(/*read != 13 && */ read != 10 && read !=-1 && reading) {/* CR, LF, error */\r\n\t\t\t/* if buffer filled, copy to msg array */\r\n\t\t\tif(index == BUFFER_SIZE) {\r\n\t\t\t\tif(msgBytes == null){\r\n\t\t\t\t\ttmp = new byte[BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, BUFFER_SIZE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttmp = new byte[msgBytes.length + BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length,\r\n\t\t\t\t\t\t\tBUFFER_SIZE);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmsgBytes = tmp;\r\n\t\t\t\tbufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\t\tindex = 0;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\t/* only read valid characters, i.e. letters and constants */\r\n\t\t\tbufferBytes[index] = read;\r\n\t\t\tindex++;\r\n\t\t\t\r\n\t\t\t/* stop reading is DROP_SIZE is reached */\r\n\t\t\tif(msgBytes != null && msgBytes.length + index >= DROP_SIZE) {\r\n\t\t\t\treading = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* read next char from stream */\r\n\t\t\tread = (byte) input.read();\r\n\t\t}\r\n\t\t\r\n\t\tif(msgBytes == null){\r\n\t\t\ttmp = new byte[index];\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, index);\r\n\t\t} else {\r\n\t\t\ttmp = new byte[msgBytes.length + index];\r\n\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length, index);\r\n\t\t}\r\n\t\t\r\n\t\tmsgBytes = tmp;\r\n\t\t\r\n\t\t/* build final String */\r\n\t\tcommon.messages.KVMessage msg = new common.messages.KVAdminMessage(msgBytes);\r\n\t\tlogger.debug(\"RECEIVE \\t<\" \r\n\t\t\t\t+ clientSocket.getInetAddress().getHostAddress() + \":\" \r\n\t\t\t\t+ clientSocket.getPort() + \">: '\" \r\n\t\t\t\t+ msg.getMsg().trim() + \"'\");\r\n\t\treturn msg;\r\n }", "public Collection<Message> findNextForChecking();", "@Override\n public int read() throws IOException {\n if (stream.available() > 0) {\n return stream.read();\n } else {\n layer.receiveMoreDataForHint(getHint());\n // either the stream is now filled, or we ran into a timeout\n // or the next stream is available\n return stream.read();\n }\n }", "ReadResponseMessage fetchUserMessages(String user);", "public synchronized String read() {\n\t\tString message = \"\";\n\n\t\tif(content.size() > 0 )\n\t\t\tmessage = content.get(0);\n\t\tnotify();\n\n\t\treturn message;\n }", "@Override\n\tpublic List<MessagePojo> getMessageBySize(int start, int size) {\n\t\treturn null;\n\t}", "public byte[] readBytes(int inNumberMessages, int[] outNumberMessages) throws IOException;", "private int getInput() {\n final boolean debug = false;\n int toRead;\n int result;\n int nread;\n\n // if (checkForDeadChannel()) return EINVAL;\n\n // Skipped pushback processing code for stacked Channels\n\n\n // See if we can fill an existing buffer. If we can, read only\n // as much as will fit in it. Otherwise allocate a new buffer,\n // add it to the input queue and attempt to fill it to the max.\n\n ChannelBuffer buf = inQueueTail;\n\n if ((buf != null) && (buf.nextAdded < buf.bufLength)) {\n if (debug) {\n System.out.println(\"smaller than buffer\");\n }\n toRead = buf.bufLength - buf.nextAdded;\n\t} else {\n if (debug) {\n System.out.println(\"fits in existing buffer\");\n }\n\n buf = saveInBuf;\n saveInBuf = null;\n\n // Check the actual buffersize against the requested\n // buffersize. Buffers which are smaller than requested are\n // squashed. This is done to honor dynamic changes of the\n // buffersize made by the user.\n\n if ((buf != null) && ((buf.bufLength - buf.BUFFER_PADDING) < bufSize)) {\n buf = null;\n }\n if (buf == null) {\n if (debug) {\n System.out.println(\"allocated ChannelBuffer of size \" + bufSize);\n }\n buf = new ChannelBuffer(bufSize);\n }\n buf.next = null;\n\n // Use the actual size of the buffer to determine\n // the number of bytes to read from the channel and not the\n // size for new buffers. They can be different if the\n // buffersize was changed between reads.\n\n toRead = buf.bufLength - buf.nextAdded;\n if (debug) {\n System.out.println(\"toRead set to \" + toRead);\n }\n\n if (inQueueTail == null) {\n inQueueHead = buf;\n } else {\n inQueueTail.next = buf;\n }\n\n inQueueTail = buf;\n }\n\n // If EOF is set, we should avoid calling the driver because on some\n // platforms it is impossible to read from a device after EOF.\n\n if (eofCond) {\n if (debug) {\n System.out.println(\"eofCond was true, no error return\");\n }\n return 0;\n }\n\n // FIXME: We do not handle non-blocking or this CHANNEL_TIMER_FEV flag yet\n\n if (/*CHANNEL_TIMER_FEV &&*/\n !blocking) {\n return TclPosixException.EWOULDBLOCK;\n } else {\n result = 0;\n\n // Can we even use this for a brain-dead nonblocking IO check?\n int numAvailable = /*input.available();*/ 0;\n\n if (!blocking && (numAvailable < toRead)) {\n result = TclPosixException.EWOULDBLOCK;\n nread = -1;\n } else {\n try {\n if (debug) {\n System.out.println(\"now to read \" + toRead + \" bytes\");\n }\n\n nread = input.read(buf.buf, buf.nextAdded, toRead);\n\n // read() returns -1 on EOF\n if (nread == -1) {\n if (debug) {\n System.out.println(\"got EOF from read() call\");\n }\n nread = 0;\n }\n } catch (IOException ex) {\n // FIXME: How do we recover from IO errors here?\n // I think we need to set result to a POSIX error\n ex.printStackTrace(System.err);\n nread = -1;\n }\n }\n }\n\n if (nread > 0) {\n if (debug) {\n System.out.println(\"nread is \" + nread);\n }\n buf.nextAdded += nread;\n\n // should avoid calling the driver because on some platforms we\n // will block in the low level reading code even though the\n // channel is set into nonblocking mode.\n\n if (nread < toRead) {\n blocked = true;\n }\n } else if (nread == 0) {\n eofCond = true;\n encodingEnd = true;\n if (debug) {\n System.out.println(\"nread is zero, eofCond set, encodingEnd set\");\n }\n } else if (nread < 0) {\n if (debug) {\n System.out.println(\"nread is \" + nread);\n }\n if ((result == TclPosixException.EWOULDBLOCK) ||\n (result == TclPosixException.EAGAIN)) {\n blocked = true;\n\t result = TclPosixException.EAGAIN;\n\t }\n // FIXME: Called needs to raise a TclException\n //Tcl_SetErrno(result);\n return result;\n }\n if (debug) {\n System.out.println(\"no error return\");\n }\n return 0;\n }", "public void run()\n\t{\n\t\t// while we have this stream\n\t\twhile(m_keyboardStream != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// only if someone is requesting us to read do we do so...\n\t\t\t\tif (m_keyboardReadRequest)\n\t\t\t\t{\n\t\t\t\t\t// block on keyboard input and put it onto the end of the queue\n\t\t\t\t\tString s = m_keyboardStream.readLine();\n\t\t\t\t\tm_keyboardInput.add(s);\n\n\t\t\t\t\t// fullfilled request, now notify blocking thread.\n\t\t\t\t\tm_keyboardReadRequest = false;\n\t\t\t\t\tsynchronized(this) { notifyAll(); }\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttry { Thread.sleep(50); } catch(InterruptedException ie) {}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n//\t\t\t\tio.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private Collection<Message> fetchMessages(Folder folder, Date minDate, Matcher matcher)\n\t\tthrows MessagingException {\n\t\t// Search term not fully implemented on mail servers, but can prevent fetching all email\n\t\tSearchTerm searchTerm = new SentDateTerm(ComparisonTerm.GT, minDate);\n\t\tMessage[] messages = folder.search(searchTerm);\n\t\tlogger.info(\"{} email(s) returned\", messages.length);\n\t\tbulkFetchMessageEnvelopes(folder, messages);\n\t\tList<Message> filteredMessages = new ArrayList<>();\n\t\tfor (Message message : messages) {\n\t\t\tDate sentDate = message.getSentDate();\n\t\t\tif (minDate.after(sentDate)) continue;\n\t\t\tif (!matcher.matches(message)) continue;\n\t\t\tfilteredMessages.add(message);\n\t\t}\n\t\treturn filteredMessages;\n\t}", "@Override\n public int numberOfMessages() {\n return messages.size();\n }", "public Queue<Object> inboundMessages() {\n/* 254 */ if (this.inboundMessages == null) {\n/* 255 */ this.inboundMessages = new ArrayDeque();\n/* */ }\n/* 257 */ return this.inboundMessages;\n/* */ }", "synchronized A consume() {\n try {\r\n if ((noMore && slack >= 0) || consumedAll) {\r\n notifyAll();\r\n consumedAll = true;\r\n return null;\r\n }\r\n while (slack != -1) {\r\n wait();\r\n }\r\n A tmp;\r\n\r\n int bSize = CodecUtil.slackOrSize(consumerBuffer, codec);\r\n if(bSize < 0 && endOfStream) {\r\n bSize = Math.abs(bSize);\r\n }\r\n if (bSize <= 0) {\r\n slack = Math.abs(bSize);\r\n notifyAll();\r\n return null;\r\n }\r\n tmp = codec.from(consumerBuffer);\r\n totConsumed += bSize;\r\n notifyAll();\r\n return tmp;\r\n }\r\n catch (InterruptedException e) {\r\n }\r\n return null;\r\n }", "public Machinetta.RAPInterface.InputMessages.InputMessage[] getMessages() {\n Debugger.debug(3,\"Unimplemented getMessages() being called ... \");\n return null;\n }", "ReadResponseMessage fetchMessagesFromUser(String user);", "private static Optional<List<Lexeme>> getLexemes(BufferedInputStream inputStream) {\n var lexer = new Lexer(inputStream);\n\n try (lexer) {\n lexer.readToEnd();\n } catch (IOException e) {\n System.err.printf(\"Unable to read input: %s\\n\", e.getMessage());\n }\n\n return lexer.getLexemes().isEmpty() ? Optional.empty() : Optional.of(lexer.getLexemes());\n }", "public byte[] ReadMessage()\r\n {\r\n try {\r\n byte[] read = new byte[in.read()];\r\n for(int i = 0; i < read.length; i++)\r\n read[i] = (byte)in.read();\r\n\r\n return read;\r\n } catch (Exception e){\r\n System.out.println(e);\r\n }\r\n return null;\r\n }", "public void read() {\n synchronized (this) {\n while (events.size() == 0) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n System.out.printf(\"Read :%d,%s\\n\",\n events.size(), events.poll());\n notify();\n }\n }", "private void startConsumeMsg() {\n try {\n ConsumerRecords<byte[], byte[]> records;\n while (true) {\n records = kafkaConsumer.poll(Long.MAX_VALUE);\n for (ConsumerRecord<byte[], byte[]> record : records) {\n processMsg(record);\n kafkaConsumer.commitSync();\n LOG.info(\"Single consumer consume the message {}th\", counter.incrementAndGet());\n }\n\n }\n } catch (Exception ex) {\n LOG.error(\"Consumer get message error {}\", ex);\n } finally {\n LOG.info(\"Shutting down consumer ...\");\n shutdown();\n }\n }", "public long getOutMsgs() {\n return outMsgs.get();\n }", "public Message read() {\n synchronized (lock){\n while (!answerReady) {\n try {\n lock.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n answerReady = false;\n return answer;\n }", "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 }", "@GetMapping(\"/msgbox/get/{username}\")\n\tIterable<msgbox> getMsgs(@PathVariable String username){\n\t\treturn this.getUserMsgs(username);\n\t}", "public synchronized void readInput() throws InterruptedException, IOException \n\t{\n\t\twhile (getDataSourceEOFlag())\n\t\t{\n\t\t\tcontent.set(incomingPipe.take());\n\t\t\t\n\t\t\t// Ensure thread-timing uniformity (a speed-limiter)\n\t\t\t//Thread.sleep(100);\n\t\t\t\n\t\t\tprocess();\n\t\t\t// Discard the text to free up memory.\n\t\t\tcontent.set(null);\n\t\t}\n\t}", "synchronized public ClientMessage poll() {\n if (!initialized) {\n init();\n }\n if (head == size) {\n return null;\n }\n ClientMessage tmp = reqs[order[head++]];\n reqs[order[head - 1]] = null;\n if (head == order.length) {\n head = 0;\n }\n //System.out.println(\"pulled from rc queue\");\n bSize -= tmp.getTotalSize();\n entries--;\n return tmp;\n }", "com.polytech.spik.protocol.SpikMessages.Sms getMessages(int index);", "protected void processMessagesOnConnection() {\n try {\n logger.info(\"Connected to \" + getConnectionName());\n state.set(StreamState.CONNECTED);\n notifyConnection();\n inputBuffer.flip();\n\n while (!Thread.currentThread().isInterrupted() && isConnected()) {\n try {\n // Find the start of message\n byte byStart = 0;\n while(byStart != START_OF_MSG && !Thread.currentThread().isInterrupted() && isConnected()) {\n byStart = nextByte(inputBuffer);\n }\n\n // and then make sure there are enough bytes and read the protocol\n readCompleteMessage(inputBuffer);\n if(inputBuffer.get() != protocol.getKeyIdentifier()) throw new TcProtocolException(\"Bad protocol\");\n\n logByteBuffer(\"Line read from stream\", inputBuffer);\n\n // now we take a shallow buffer copy and process the message\n MenuCommand mc = protocol.fromChannel(inputBuffer);\n logger.info(\"Command received: \" + mc);\n notifyListeners(mc);\n }\n catch(TcProtocolException ex) {\n // a protocol problem shouldn't drop the connection\n logger.warn(\"Probable Bad message reason='{}' Remote={} \", ex.getMessage(), getConnectionName());\n }\n }\n logger.info(\"Disconnected from \" + getConnectionName());\n } catch (Exception e) {\n logger.error(\"Problem with connectivity on \" + getConnectionName(), e);\n }\n finally {\n close();\n }\n }", "private void dequeueMessages()\n\t{\n\t\twhile (_msg_queue.size() > 0)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t_ml.messageReceived( (Serializable) _msg_queue.removeFirst());\n\t\t\t}\n\t\t\tcatch (RuntimeException rte)\n\t\t\t{\n\t\t\t\trte.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public Message receiveMessage() {\r\n\t\treturn messages.poll();\r\n\t}", "public synchronized String read() {\n\n /* RULE: empty, eligible for WRITE only; !empty, eligible for READ only :\n for read process to proceed, need message tray to be full, so while empty,\n make this thread sleep (the READER thread) so the other thread will run\n and write/fill in the message tray */\n\n while(empty) { // loop til we got a msg to read (cant read without msg)\n // DEADLOCK FIX\n try {\n wait(); // an Object method, not Thread's\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n empty = true; // i read the msg, will be sending this to Reader afterwards so message tray is now empty\n notifyAll(); // executed only after we have updated 'empty'\n return message;\n }", "java.util.List<com.polytech.spik.protocol.SpikMessages.Sms> \n getMessagesList();", "void getAllMessages(final String channel, Long start, final int count, final CallbackSkeleton callback) {\n pubnub.history()\n .channel(channel)\n .count(count)\n .start(start)\n .includeTimetoken(true)\n .async(new PNCallback<PNHistoryResult>() {\n @Override\n public void onResponse(PNHistoryResult result, PNStatus status) {\n if (!status.isError() && !result.getMessages().isEmpty()) {\n callback.handleResponse(result);\n getAllMessages(channel, result.getMessages().get(0).getTimetoken(), count, callback);\n if(result.getMessages().size() < 100)\n finished = true;\n }\n }\n });\n }", "@Override\n public Optional<TcpMessage> consumeMessage() throws IOException {\n System.out.println(\"Trying to consume a message...\");\n var json = inputMessageStream.readJson();\n\n socket.shutdownInput();\n if (json.isEmpty()) {\n return Optional.empty();\n }\n return Optional.of(new TcpMessage(JsonPayload.of(json)));\n // return Optional.of(new Message<>(new JsonPayload(json)));\n }", "public abstract Message[] getMessages(MessageRetrievalListener listener)\n throws MessagingException;", "private void ReceiveMessages() throws Exception {\r\n // Variables\r\n Connection connection = null;\r\n Session session = null;\r\n MessageConsumer consumer = null;\r\n\r\n try {\r\n ConnectionFactory connectionFactory = MyCreateConnectionFactory();\r\n\r\n System.out.println(\"Connection Factory created.\");\r\n\r\n connection = MyCreateConnection(connectionFactory);\r\n\r\n System.out.println(\"Connection created.\");\r\n\r\n session = MyCreateSession(connection);\r\n\r\n System.out.println(\"Session created.\");\r\n\r\n Destination destination = MyCreateDestination(session);\r\n\r\n System.out.println(\"Destination created: \" + destination.toString());\r\n\r\n consumer = MyCreateConsumer(session, destination);\r\n\r\n System.out.println(\"Consumer created.\");\r\n\r\n System.out.println(\"Waiting for messages...\");\r\n\r\n // Now receive messages synchronously or asynchronously\r\n\r\n // Synchronously\r\n if (Options.ReceiveMode.Value().equals(Literals.Sync)) {\r\n // Start the connection\r\n connection.start();\r\n\r\n // Receive specified number of messages\r\n Message recvMsg = null;\r\n while (messagesInTotal.equals(Literals.Infinite)\r\n || (messagesReceived < Integer.parseInt(messagesInTotal))) {\r\n // If we want to wait until timeout, use the following call instead\r\n // recvMsg = consumer.receive(TIMEOUTTIME);\r\n\r\n // Receive the message\r\n recvMsg = consumer.receive();\r\n\r\n // Increment the counter\r\n messagesReceived++;\r\n\r\n \r\n if (recvMsg != null) {\r\n // Display received message\r\n DisplayMessage(recvMsg);\r\n }\r\n else {\r\n throw new Exception(\"Message received was null.\");\r\n }\r\n\r\n // Sleep for a while to allow the user to see the output on the screen\r\n Thread.sleep(Options.Interval.ValueAsNumber() * 1000);\r\n\r\n } // end of while\r\n\r\n } // end synchronously\r\n\r\n // Asynchronously\r\n else if (Options.ReceiveMode.Value().equals(Literals.Async)) {\r\n // Create and register a new MessageListener for this consumer\r\n consumer.setMessageListener(new MessageListener() {\r\n\r\n public void onMessage(Message msg) {\r\n // The try block below is unlikely to throw a runtime exception, but as a general good\r\n // practice an asynchronous consumer's message listener or callback should catch a\r\n // potential runtime exception, and optionally divert the message in question to an\r\n // application-specific destination.\r\n try {\r\n synchronized (threadWaitLock) {\r\n // Increment the counter\r\n ++messagesReceived;\r\n\r\n // Display the message that just arrived\r\n DisplayMessage(msg);\r\n\r\n // Notify main thread we've received a message\r\n threadWaitLock.notify();\r\n\r\n // Sleep for a while to allow the user to see the output on the screen\r\n Thread.sleep(Options.Interval.ValueAsNumber() * 1000);\r\n }\r\n } // end try\r\n catch (Exception e) {\r\n System.out.println(\"Exception caught in onMessage():\\n\" + e);\r\n // We have atleast two choices now - (1) rethrow the exception. In this case the\r\n // control passes back to JMS client and which may attempt to redeliver the message,\r\n // depending on session's acknowledge mode, or (2) terminate the process.\r\n // Orthogonally, we may divert the message to an application-specific destination.\r\n\r\n // Terminate the current process\r\n System.exit(-1);\r\n }\r\n return;\r\n } // end onMessage()\r\n }); // end setMessageListener\r\n\r\n // Start the connection\r\n connection.start();\r\n\r\n // Finite number of messages to receive\r\n if (messagesInTotal != Literals.Infinite) {\r\n synchronized (threadWaitLock) {\r\n try {\r\n // Temporary variables\r\n int noProgressCount = 0;\r\n int countLastSeen = -1;\r\n\r\n int expectedNumMessages = Integer.parseInt(messagesInTotal);\r\n while (messagesReceived != expectedNumMessages) {\r\n // Wait for few seconds (or be notified by the listener thread) before checking the\r\n // number of messages received\r\n threadWaitLock.wait(waitTime);\r\n\r\n if (countLastSeen != messagesReceived) {\r\n countLastSeen = messagesReceived;\r\n noProgressCount = 0;\r\n }\r\n else {\r\n ++noProgressCount;\r\n }\r\n\r\n if (++noProgressCount >= MAX_NO_PROGRESS) {\r\n // No progress has been made by the listener in 5 seconds * 3 = 15 seconds.\r\n // Let's quit.\r\n break;\r\n }\r\n\r\n } // end while\r\n } // end try\r\n catch (InterruptedException e) {\r\n System.err\r\n .println(\"Main thread waiting for MessageListener thread to receive message was interupted!\"\r\n + e);\r\n throw e;\r\n }\r\n } // end synchronized block\r\n } // end if\r\n // Infinite number of messages to receive\r\n else {\r\n // Block this thread and let listener thread do all the work (if any).\r\n synchronized (threadWaitLock) {\r\n try {\r\n while (true) {\r\n // Wait to be notified by the listener thread and then wait again!\r\n threadWaitLock.wait();\r\n }\r\n }\r\n catch (InterruptedException e) {\r\n System.err\r\n .println(\"Main thread waiting for MessageListener thread to receive message was interupted!\"\r\n + e);\r\n throw e;\r\n }\r\n\r\n } // end synchronized block\r\n } // end else\r\n } // end asynchronously\r\n }\r\n catch (JMSException jmsex) {\r\n processJMSException(jmsex);\r\n }\r\n finally {\r\n if (consumer != null) {\r\n try {\r\n consumer.close();\r\n }\r\n catch (JMSException jmsex) {\r\n System.out.println(\"Consumer could not be closed.\");\r\n processJMSException(jmsex);\r\n }\r\n }\r\n\r\n if (session != null) {\r\n try {\r\n session.close();\r\n }\r\n catch (JMSException jmsex) {\r\n System.out.println(\"Session could not be closed.\");\r\n processJMSException(jmsex);\r\n }\r\n }\r\n\r\n if (connection != null) {\r\n try {\r\n connection.close();\r\n }\r\n catch (JMSException jmsex) {\r\n System.out.println(\"Connection could not be closed.\");\r\n processJMSException(jmsex);\r\n }\r\n }\r\n }\r\n\r\n // We're finished.\r\n System.out.println(\"\\nSample execution SUCCESSFUL.\\n\");\r\n\r\n return;\r\n }", "com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage getMessages(int index);", "public com.polytech.spik.protocol.SpikMessages.Sms getMessages(int index) {\n return messages_.get(index);\n }", "private int getMessageCount() {\r\n return mMessages.length;\r\n }", "@Override\n public String[] getMessages(int begin, int end) {\n if (begin > end)\n throw new IllegalArgumentException(\"The begin parameter should be smaller \"\n + \"than the end parameter\");\n if (begin < 0 || end >= messages.size())\n throw new IllegalArgumentException(\"The given begin-end interval is not \"\n + \"a subset of the index-range of the messages.\");\n List<String> result = new ArrayList<>();\n for (int i = begin; i<=end; i++)\n result.add(messages.get(i));\n return result.toArray(new String[0]);\n }", "public Message[] gather(Message message, long timeout) throws SpineException {\n GatherCallbackImpl callback = new GatherCallbackImpl();\n synchronized (semaphore) {\n notified = false;\n\n // Call gather asynchronously\n gatherAsynchronous(message, timeout, callback);\n\n // And then wait for a response.\n while (!notified) {\n try {\n semaphore.wait(100);\n } catch (InterruptedException e) {\n log.warn(\"Synchronous Gather wait thread was interrupted by an exception\");\n }\n }\n }\n // Sanity check the TypeQueryResults. Make sure all positive\n // responses are the same.\n if (message.getMessageType() == TYPE_QUERY) {\n String type = null;\n for (Message replyMsg : responseMessages[0]) {\n if (replyMsg != null && replyMsg instanceof TypeResult) {\n String thisType = ((TypeResult) replyMsg).getTypeStr();\n if (thisType == null) {\n continue;\n }\n if (type == null) {\n type = thisType;\n }\n if (!type.equals(thisType)) {\n log.warn(\"Action models are out of sync! Query was {}, responses are {}\",\n message, responseMessages[0]);\n break;\n }\n }\n }\n }\n return responseMessages[0];\n }", "public String[] getMsg() {\n String[] parts = null;\n try {\n String cmd = MessageQueue.take();\n parts = cmd.split(\"<<\");\n } catch (Exception e) {\n if (debug == 1) {\n e.printStackTrace();\n }\n }\n return parts;\n }", "public Message getMessageMinerChannel() {\n\t\t\n\t\tMessage temp = null;\t\n\t\ttry {\n\t\t\t//se ia mesajul din buffer\n\t\t\ttemp = bufferMinerChannel.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn temp;\n\t}", "@Override\r\n\tpublic List<message> getReadMessages(Integer receive_id) {\n\t\tList<message> messageList=null;\r\n\t\tString sql=\"select * from message where receive_id=? and isread=1\";\r\n\t\ttry {\r\n\t\t\tmessageList=getObjectList(conn, sql,receive_id);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(messageList.size()==0) {\r\n\t\t\treturn null;\r\n\t\t}else\r\n\t\treturn messageList;\r\n\t}", "public com.polytech.spik.protocol.SpikMessages.Sms getMessages(int index) {\n if (messagesBuilder_ == null) {\n return messages_.get(index);\n } else {\n return messagesBuilder_.getMessage(index);\n }\n }", "private List[] query() {\n\t\tList[] result = new ArrayList[topics.length];\n\t\tint i = 0;\n\t\tfor(String topic:topics) {\n\t\t\tList<byte[]> bocache = fcache.getList(topic);\n\t\t\tif(bocache == null || bocache.isEmpty()) {\n\t\t\t\tlog.info(\"topic {} has no message in cache\",topic);\n\t\t\t}else {\n\t\t\t\tresult[i++] = bocache;\n\t\t\t}\t\t\n\t\t}\n\t\treturn result;\n\t}", "public ByteBufferMessageSet fetchMessages(PartitionMetadata partitionMetadata, String topic, long startOffset) {\n SimpleConsumer consumer = consumerMap.get(partitionMetadata.leader().id());\n ByteBufferMessageSet messageSet = fetchMessages(consumer, topic, partitionMetadata.partitionId(), startOffset);\n// simpleConsumer.close();\n return messageSet;\n }", "public synchronized Object waitOutput() {\n Object output = null;\n if (hasOutput()) {\n boolean isFailed = false;\n do {\n try {\n output = outputQueue.take();\n isFailed = false;\n } catch (Exception e) {\n if (output == null) {\n isFailed = true;\n } else {\n isFailed = false;\n }\n // Interrupt may happen when waiting for\n // an element is available\n e.printStackTrace();\n }\n } while (isFailed);\n outputCount++;\n }\n return output;\n }", "private List<Message> returnMessages(Query query, String recipient) {\n List<Message> messages = new ArrayList<>();\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID id = UUID.fromString(idString);\n String text = (String) entity.getProperty(\"text\");\n long timestamp = (long) entity.getProperty(\"timestamp\");\n String user = (String) entity.getProperty(\"user\");\n recipient = recipient != null ? recipient : (String) entity.getProperty(\"recipient\");\n\n Message message = new Message(id, user, text, timestamp, recipient);\n messages.add(message);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading message.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return messages;\n }", "private ArrayList<Message> getMyMessages(String requestId, String msg){\n\n ArrayList<Message> myMessages = new ArrayList<Message>();\n long elapsedTime = 0;\n int i = 1;\n long startTime = System.currentTimeMillis();\n do{\n try{\n Thread.sleep(100);\n elapsedTime = System.currentTimeMillis() - startTime;\n if(elapsedTime >= 5000*i){ \n //resend message from client at 5 seconds interval, ensuring that client receives an answer if server is down \n multicast.sendMessage(msg);\n i++;\n }\n } catch(Exception e){\n System.out.print(e);\n }\n myMessages.addAll(getMessagesByRequestId(requestId));\n } while (myMessages.size() < 2 && (elapsedTime < 1000 || myMessages.size() <= 0) && elapsedTime < 30000);\n return myMessages;\n }", "List<Message> listMessages(final long sinceMessageId,\n final int count);", "private boolean waitForMessage(InputStream inputStream, String message) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(inputStream));\n String line;\n boolean status = false;\n while ((line = br.readLine()) != null) {\n log.info(line);\n if (!status && line.contains(message)) {\n status = true;\n }\n }\n return status;\n }", "List<Message> searchMessages(final String text);", "int getMessagesCount();", "int getMessagesCount();", "int getMessagesCount();", "public void receiveMessage() throws InterruptedException, ExecutionException {\n ReceiveMessageRequest request = createReceiveMessageRequest();\n ReceiveMessageResult messageResult = amazonSQS.receiveMessage(request);\n\n logger.info(\"Total of messages retrieved: {}\", messageResult.getMessages().size());\n LinkedList<Future<Result>> results = messageResult.getMessages().stream()\n .map(this::processMessageFunction)\n .collect(CustomCollectors.collectAsLinkedList());\n\n resultChecker.checkAll(results);\n }", "public int getTotalNumOfMsg(){ return allmessage.size();}", "public HTTPRequestResponse[] getSelectedMessages() {\r\n if(selectedMessages == null){\r\n return new HTTPRequestResponse[]{};\r\n }\r\n return selectedMessages;\r\n }", "private static ArrayList<Message> ReadFile(Scanner sc) {\t\n\t\tArrayList<Message> messageList = new ArrayList<Message>();\n\t\t\n\t\t/* Iterating over each string in file and creating\n\t\t * Message object with file contents\n\t\t*/\n\t\twhile (sc.hasNextLine()) {\n\t\t\tString line = sc.nextLine();\n\t\t\tScanner lineScanner = new Scanner(line);\n\t\t\twhile (lineScanner.hasNext()) {\n\t\t\t\ttry {\n\t\t\t\t\tString received = lineScanner.next(); \n\t\t\t\t\tString sent = lineScanner.next();\n\t\t\t\t\tString node1 = lineScanner.next();\n\t\t\t\t\tString notification = lineScanner.next();\n\t\t\t\t\tString node2 = null;\n\t\t\t\t\tif (lineScanner.hasNext()) {\n\t\t\t\t\t\tnode2 = lineScanner.next();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlong receivedVal = Long.parseLong(received);\n\t\t\t\t\tlong sentVal = Long.parseLong(sent);\n\t\t\t\t\tMessage message = new Message(receivedVal, sentVal, node1,\n\t\t\t\t\t\t\tnotification, node2);\n\t\t\t\t\t\n\t\t\t\t\tmessageList.add(message);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tlineScanner.close();\n\t\t}\n\t\treturn messageList;\n\t}", "public int waitForMessages(int num_spins, final BiConsumer<Integer,Integer> wait_strategy) throws InterruptedException {\n // try spinning first (experimental)\n for(int i=0; i < num_spins && count == 0; i++) {\n if(wait_strategy != null)\n wait_strategy.accept(i, num_spins);\n else\n Thread.yield();\n }\n if(count == 0) {\n lock.lock();\n try {\n while(count == 0)\n not_empty.await();\n }\n finally {\n lock.unlock();\n }\n }\n return count; // whatever is the last count; could have been updated since lock release\n }", "public void getResults()\n\t{\n\t\tThread mOutReader = new Thread()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(mProcess.getInputStream()));\n\t\t\t\t\tString line = br.readLine();\n\t\t\t\t\twhile ((!isInterrupted() && line != null))\n\t\t\t\t\t{\n\t\t\t\t\t\tline = line.trim();\n\t\t\t\t\t\tmResults.add(line);\n\t\t\t\t\t\tline = br.readLine();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (InterruptedIOException e)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t\tcatch (Exception e)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\t//we will process the error stream just in case\n\t\tThread mErrReader = new Thread()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(mProcess.getErrorStream()));\n\t\t\t\t\tString line = br.readLine();\n\t\t\t\t\twhile ((!isInterrupted() && line != null))\n\t\t\t\t\t{\n\t\t\t\t\t\tline = line.trim();\n\t\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t\t\tline = br.readLine();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (InterruptedIOException e)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t\tcatch (Exception e)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tmOutReader.start();\n\t\tmErrReader.start();\n\n\t\t//wait for process to end.\n\t\ttry\n\t\t{\n\t\t\tmProcess.waitFor();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.err.println(\"process exception\");\n\t\t}\n\t\tmFinished = true;\n\t}", "@Override\r\n\tpublic List<ChatMessageModel> getMessages(int messageIndex) {\n\t\treturn null;\r\n\t}", "public ArrayList<Message> readMessages() throws FileNotFoundException {\n\t\tArrayList<Message> allMessages = new ArrayList<Message>();\n\t\tScanner keyboardIn = new Scanner(new File(filePath));\n\t\tkeyboardIn.useDelimiter(\"/n\");\n\t\twhile (keyboardIn.hasNextLine()) {\n\t\t\tString[] messageDataInArray = keyboardIn.nextLine().split(\"\\t\");\n\t\t\tString messageName = messageDataInArray[0];\n\t\t\tString messageDescription = messageDataInArray[1];\n\t\t\tMessage message = new Message(messageName,messageDescription);\n\t\t\tallMessages.add(message);\t\t\n\t\t}\n\t\tkeyboardIn.close();\t\t\n\t\treturn allMessages;\n\t}", "java.util.List<main.java.io.grpc.chatservice.Message> \n getMessagesList();", "public if4031.common.Message getMessages(int index) {\n return messages_.get(index);\n }", "Collection<Pair<String, byte[]>> peekElements(\n int max, long waitMillis, Predicate<String> acceptFilter) throws Exception;", "protected Object readMessage(InputStream inputStream) throws IOException{\n PushbackInputStream pin = (PushbackInputStream)inputStream;\n StringBuffer buf = new StringBuffer();\n \n boolean lineStartsWithPrompt = false;\n while (true){\n int b = pin.read();\n \n if (b < 0){\n if (buf.length() == 0) // Clean disconnection\n return null;\n break;\n }\n \n // End of line\n if (b == '\\n'){\n // FICS uses \\n\\r for an end-of-line marker!?\n // Eat the following '\\r', if there is one\n b = pin.read();\n if ((b > 0) && (b != '\\r'))\n pin.unread(b);\n \n // Ignore all-prompt lines\n if (lineStartsWithPrompt && (buf.length() == 0)){\n lineStartsWithPrompt = false;\n continue;\n }\n else\n break;\n }\n \n buf.append((char)b);\n \n // Filter out the prompt\n if (buf.toString().equals(\"fics% \")){\n buf.setLength(0);\n lineStartsWithPrompt = true;\n }\n }\n \n return buf.toString();\n }", "private void consume()\r\n\t{\r\n\t\twhile (true)\r\n\t\t{\r\n\t\t\tSubscriberMessage sifMsg = queue.blockingPull();\t\t\t\t\r\n\t\t\tif (sifMsg != null)\r\n\t\t\t{\r\n\t\t\t\tlogger.debug(consumerID+\" has receive a message from its SubscriberQueue.\");\r\n\t\t\t\tif (sifMsg.isEvent())\r\n\t\t\t\t{\r\n\t\t\t\t\tSIFEvent sifEvent = new SIFEvent(sifMsg.getSIFObject(), sifMsg.getEventAction());\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubscriber.processEvent(sifEvent, sifMsg.getZone(), sifMsg.getMappingInfo(), consumerID);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.error(\"Failed processing SIF Event for subscriber \"+subscriber.getId()+\": \"+ex.getMessage()+\"\\nEvent Data:\\n\"+sifEvent, ex);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSIFDataObject sifObj = sifMsg.getSIFObject();\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubscriber.processResponse(sifObj, sifMsg.getZone(), sifMsg.getMappingInfo(), consumerID);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.error(\"Failed processing SIF Object for subscriber \"+subscriber.getId()+\": \"+ex.getMessage()+\"\\nSIF Object Data:\\n\"+((sifObj == null) ? \"null\" : sifObj.toXML()), ex);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tlogger.error(consumerID+\" has encountered a problem receiving a message from its SubscriberQueue.\");\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "public Message getMessageMinerChannel() {\n\t\tMessage msg2=null;\n\t\ttry{\n\t\t\tmsg2=chann2.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn msg2;\n\t}", "@Override\n public boolean read() throws Exception {\n if (count >= size) return true;\n if (source == null) source = new ChannelInputSource(channel);\n while (count < size) {\n final int n = location.transferFrom(source, false);\n if (n <= 0) break;\n count += n;\n channelCount = count;\n if (debugEnabled) log.debug(\"read {} bytes for {}\", n, this);\n }\n return count >= size;\n }" ]
[ "0.6320825", "0.62358606", "0.5985901", "0.59367394", "0.57705957", "0.5547784", "0.55423164", "0.5533033", "0.55101", "0.54956263", "0.5488847", "0.54818606", "0.5470032", "0.5469898", "0.54565275", "0.5453649", "0.54456323", "0.5438014", "0.54304403", "0.54120034", "0.5409777", "0.5379998", "0.536596", "0.5362084", "0.5355463", "0.53458536", "0.5339888", "0.5326587", "0.5311097", "0.5308299", "0.5296259", "0.5294777", "0.5292852", "0.52539974", "0.5253949", "0.5249325", "0.5244304", "0.5209918", "0.51944673", "0.5193813", "0.51894414", "0.51888865", "0.5179794", "0.51773524", "0.5162751", "0.5161956", "0.5136937", "0.51301575", "0.5115275", "0.51071686", "0.51033515", "0.5102595", "0.51005363", "0.5089966", "0.50809205", "0.5074023", "0.5058115", "0.5005285", "0.5004932", "0.50008124", "0.49875662", "0.49810842", "0.4978758", "0.4978054", "0.4974087", "0.49701893", "0.4969419", "0.49684703", "0.49461618", "0.49415448", "0.49368653", "0.49360645", "0.49296308", "0.49272844", "0.4915493", "0.491267", "0.49125996", "0.49008712", "0.4899474", "0.48969987", "0.48934865", "0.4887406", "0.48788053", "0.48788053", "0.48788053", "0.48716637", "0.486938", "0.48676273", "0.486488", "0.48522896", "0.484405", "0.48425847", "0.4824897", "0.48224986", "0.48209435", "0.4809371", "0.4808158", "0.4807828", "0.48066568", "0.48058355" ]
0.6849316
0
Returns true if the stream is open.
public boolean isOpen();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isOpen()\r\n\t{\r\n\t return (fd != null);\r\n\t}", "public boolean isOpened()\n {\n \n boolean retVal = isOpened_0(nativeObj);\n \n return retVal;\n }", "boolean isOpened() throws Exception;", "public boolean isOpened() {\r\n return opened != null;\r\n }", "public boolean isOpened() {\n return opened;\n }", "@Override\n public boolean isopen( )\n {\n return logfile != null && out != null;\n }", "public boolean isOpen() {\n\t\t\n\t\t//If network is open\n\t\tif (this.open) {\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\treturn false;\n\t\t\t\n\t\t}\n\t}", "public synchronized boolean isOpen() {\n return randomAccessFile != null;\n }", "boolean isOpened();", "public boolean isFileOpened() {\r\n \t\tif (curFile == null)\r\n \t\t\treturn false;\r\n \t\telse\r\n \t\t\treturn true;\r\n \t}", "public boolean isOpened() {\n return opened;\n }", "public boolean isOpened() {\n\t\treturn mCurrentState == STATE.OPENED;\n\t}", "@Override\r\n\tpublic boolean isOpen() {\r\n\t\t//\r\n\t\treturn this.socket.isOpen();\r\n\t}", "private boolean isOpened() {\n if (mIpcChannel != null && mIpcChannel.isOpened()) {\n return true;\n }\n\n return false;\n }", "public boolean isOpened() {\r\n\t\treturn this.opened;\r\n\t}", "public boolean getOpen()\n\t{\n\t\treturn getBooleanIOValue(\"Open\", true);\n\t}", "public boolean isOpen() {\n\t\treturn open;\n\t}", "public boolean open() {\n\t\treturn open(false);\n\t}", "protected synchronized boolean isSockOpen(){\n\t\ttry{\n\t\t\tif(out.checkError()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isOpen() {\r\n\t\treturn open;\r\n\t}", "public boolean isOpen()\r\n {\r\n if(connection != null)\r\n {\r\n try\r\n {\r\n return !connection.isClosed();\r\n } catch(SQLException exception)\r\n {\r\n LOG.log(Level.SEVERE, \"\", exception);\r\n }\r\n }\r\n return false;\r\n }", "public boolean isOpen () {\n\t\treturn open;\n\t}", "public boolean isOpened() {\n return false;\n }", "public boolean isOpen() {\n if (this.open) {\n return false;\n } else {\n return true;\n }\n }", "public boolean isOpen() {\n return myOpen.get();\n }", "public boolean open() {\n try {\n fileStream = new FileReader( this.fileName );\n scanner = new Scanner( fileStream );\n this.found = true;\n } catch ( FileNotFoundException error ) {\n this.found = false;\n System.out.println(error.toString());\n }\n\n return this.found;\n }", "public boolean isOpen(){\n\t\treturn this.channel != null;\n\t}", "public boolean IsOpen() {\r\n return GoodOpen;\r\n }", "public boolean isOpen() {\n return open;\n }", "public boolean open() {\n\n return true;\n }", "public boolean isOpen() {\n\treturn open;\n }", "public boolean exists() {\n try {\n return open() != null;\n } catch (IOException e) {\n return false;\n }\n }", "private boolean open() {\r\n\t\tfor ( int i = 0; i < _headerObject._filenames.length; ++i) {\r\n\t\t\tFileObject fileObject = ( FileObject)_headerObject._fileObjectMap.get( _headerObject._filenames[ i]);\r\n\t\t\tif ( null == fileObject)\r\n\t\t\t\treturn false;\r\n\r\n\t\t\tif ( !fileObject.open())\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isOpen() {\n return this.open;\n }", "public boolean isOpen() {\r\n\t\treturn isOpen;\r\n\t}", "public boolean isOpen() {\n return channel.isOpen();\n }", "public boolean getIsOpen() {\n return this.is_open;\n }", "public boolean isOpen() {\n\t\treturn luaState != 0;\n\t}", "boolean open();", "protected boolean connectionOpened() {\n\t\treturn connectionOpened;\n\t}", "public boolean isOpened() {\n\t\treturn windowOpened;\n\t}", "public boolean isOpen() {\n return isOpen;\n }", "public boolean isOpen() {\n return isOpen;\n }", "public synchronized boolean open() {\r\n\t\tif (!closed) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Gets lock, and waits until the UDP listener is ready. This is\r\n\t\t * necessary because we do not know, whether the thread pool starts this\r\n\t\t * thread straight away or not.\r\n\t\t */\r\n\t\tsynchronized (lockObj) {\r\n\t\t\ttry {\r\n\t\t\t\tif (JMEDSFramework.getThreadPool().executeOrAbort(this)) {\r\n\t\t\t\t\twhile (closed) {\r\n\t\t\t\t\t\tlockObj.wait();\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private final boolean isOpen()\n {\n return !closed;\n }", "private boolean streamClosed() {\n boolean closed = false;\n if (nonNull(dataStream) && Objects.nonNull(streamLinkedOrConsumedField)) {\n try {\n closed = (boolean) streamLinkedOrConsumedField.get(dataStream);\n } catch (Exception e) {\n }\n }\n return closed;\n }", "public boolean isOpen() {\n return mRbc.isOpen();\n }", "public boolean isOpen() {\r\n\t\treturn false;\r\n\t}", "boolean getStream();", "private boolean checkOpen(boolean recordException) {\n/* 650 */ if (!isOpen()) {\n/* 651 */ if (recordException) {\n/* 652 */ recordException(new ClosedChannelException());\n/* */ }\n/* 654 */ return false;\n/* */ } \n/* */ \n/* 657 */ return true;\n/* */ }", "public final boolean isAlive() {\n\t\tboolean isAlive = (new File(getFileNamePath())).isFile();\n\n\t\tif (isAlive) {\n\t\t\ttry (Socket socket = new Socket()) {\n\t\t\t\t// this will throw an exception if the socket is in use/unavailable.\n\t\t\t\tsocket.bind(\n\t\t\t\t\t\tnew InetSocketAddress(InetAddress.getLoopbackAddress().getHostAddress(), getPublisherPort()));\n\t\t\t\tisAlive = false;\n\t\t\t} catch (IOException e) {\n\t\t\t\tisAlive = true;\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (SystemUtils.isInDebugMode()) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!isAlive) {\n\t\t\t// we should try to delete the file; this may be left over from a crashed\n\t\t\t// process..\n\t\t\tFileUtils.safeDeleteFile(getFileNamePath());\n\t\t}\n\n\t\treturn isAlive;\n\t}", "public boolean isProjectOpen() {\n\t\treturn (projectFileIO != null);\n\t}", "protected final boolean isSessionOpen() {\n return sessionTracker.getOpenSession() != null;\n }", "public boolean isConnectionOpen() throws SQLException{\r\n return connection != null && !connection.isClosed();\r\n }", "public boolean isClosed() {\n\t\tsynchronized (closed) {\n\t\t\treturn closed;\n\t\t}\n\t}", "public boolean getStream() {\n return stream_;\n }", "boolean isOpen();", "boolean isOpen();", "@Override\n\tpublic boolean isOpen() {\n\t\treturn true;\n\t}", "boolean isOpen() {\n return state == RUNNING;\n }", "public boolean getStream() {\n return stream_;\n }", "@Override\n public boolean isOpen() {\n return response.isOpen();\n }", "public boolean close() {\n boolean operation = false;\n try {\n fileStream.close();\n operation = true;\n } catch ( Exception error ) {\n System.out.println(error.toString());\n }\n return operation;\n }", "public boolean isOpen(){\n return isOpen;\n }", "public boolean isOpened(){\n return chestProgressLevel==1;\n }", "public synchronized boolean isClosed() {\r\n\t\treturn closed;\r\n\t}", "private boolean open(final int status) {\n return Objects.equals(status, 0);\n }", "public boolean isOpen() { return this.isOpen; }", "public boolean isSignWasOpened() {\n return signWasOpened;\n }", "@Override\n boolean isOpen() throws RuntimeException;", "public final boolean getIsStreamOwner()\n\t{\n\t\treturn tarBuffer.getIsStreamOwner();\n\t}", "boolean open() {\n if (handle != 0) {\n throw new InternalError(\"Native library \" + name + \" has been loaded\");\n }\n return load0(this, name);\n }", "public boolean isOpened(Repository repository) {\r\n\t\t\r\n\t\treturn repositories.values().contains(repository);\r\n\t}", "public boolean exists() {\r\n\t\t// Try file existence: can we find the file in the file system?\r\n\t\ttry {\r\n\t\t\treturn getFile().exists();\r\n\t\t}\r\n\t\tcatch (IOException ex) {\r\n\t\t\t// Fall back to stream existence: can we open the stream?\r\n\t\t\ttry {\r\n\t\t\t\tInputStream is = getInputStream();\r\n\t\t\t\tis.close();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tcatch (Throwable isEx) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected boolean isConnected() {\n\t\tif (channel == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn channel.isOpen();\n\t\t}\n\t}", "private boolean canRead() {\n\t\treturn fileStatus;\n\t}", "@Override\n\tpublic boolean isFileOpen(String fileName) \n\t{\n\t\treturn false;\n\t}", "public boolean ready() {\n try {\n return in.available() > 0;\n } catch (IOException x) {\n return false;\n }\n }", "public boolean _isStreaming() throws Open4GLException\n {\n return (m_QuarixProgressOOConnectorImpl._isStreaming());\n }", "public boolean openPort() {\n comPort.openPort();\r\n return comPort.isOpen();\r\n }", "private void checkOpen() {\n if (!isOpen()) {\n throw new IllegalStateException(\"not open\");\n }\n }", "@Override\n public boolean isOpen() {\n return true;\n }", "@Override\n\tpublic boolean isOpen() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isOpen() {\n\t\treturn false;\n\t}", "public boolean open()\r\n {\r\n boolean result = true;\r\n if(connection == null)\r\n {\r\n try\r\n {\r\n connection = DriverManager.getConnection(\"jdbc:mysql://\" + HOST + \"/\" + DATABASE, USER, PASSWORD);\r\n result = true;\r\n } catch(SQLException exception)\r\n {\r\n LOG.log(Level.SEVERE, \"\", exception);\r\n result = false;\r\n }\r\n }\r\n return result;\r\n }", "public final boolean isClosed() {\n return closeReceived && isCloseSent();\n }", "public final boolean isClosed() {\n\t\treturn (m_flags & Closed) != 0 ? true : false;\n\t}", "public boolean isClosed() {\n\t\treturn journalWriter == null;\n\t}", "@Override\n public boolean isValid() {\n return (connection != null && session != null && session.isOpen());\n }", "public boolean isClosed() {\n return (mRLS == null);\n }", "public boolean isConnected() {\n\t\treturn sock != null;\n\t}", "public boolean isOpen(int port)\n {\n try(DatagramSocket connection = new DatagramSocket(port, getInetAddress()))\n {\n addOpenPort(port);\n return true;\n }\n catch(IOException ioe)\n {\n return false;\n }\n }", "public boolean isClosed() {\n return this.closed.get();\n }", "public boolean open() {\n /** set number of tuples per batch **/\n int tuplesize = schema.getTupleSize();\n batchsize = Batch.getPageSize() / tuplesize;\n\n if (!base.open()) return false;\n else {\n this.partition(base, this.numBuffers-1, batchsize);\n return true;\n } \n\n }", "public boolean open() {\n if (isOpen()) {\n print(\"Port already open\");\n return true;\n }\n print(\"Opening port \" + portName);\n try {\n CommPortIdentifier cpi = CommPortIdentifier\n .getPortIdentifier(portName);\n CommPort cp = cpi.open(this.getClass().getName(), 2000);\n if (cp instanceof SerialPort) {\n port = (SerialPort) cp;\n port.setFlowControlMode(SerialPort.FLOWCONTROL_NONE);\n port.setDTR(true);\n port.setRTS(true);\n port.setSerialPortParams(baudRate, dataBits, stopBits, parity);\n port.setDTR(true);\n port.setRTS(true);\n in = port.getInputStream();\n // (new Thread(new SerialReader(in))).start();\n out = port.getOutputStream();\n print(\"Opened port \" + portName);\n return true;\n }\n port = null;\n print(\"Port \" + portName + \" is not a COM port!\");\n } catch (NoSuchPortException e) {\n port = null;\n print(\"Port \" + portName + \" does not exist!\");\n } catch (PortInUseException e) {\n port = null;\n print(\"Port \" + portName + \" is in use!\");\n } catch (UnsupportedCommOperationException e) {\n port.close();\n port = null;\n print(\"Could not open \" + portName + \" with correct settings.\");\n } catch (IOException e) {\n port = null;\n print(\"Could not open \" + portName + \" io streams.\");\n }\n return false;\n }", "public boolean estOuvert(){\n\n return netLinkIp.isOpen();\n\n }", "public boolean open() {\n\t\tif (!open) {\n\t\t\ttry {\n\t\t\t\tif (format.equals(\"sgml\")) {\n\t\t\t\t\tFile file = new File(fullFileName());\t//return the full file name,including directory and filename\n\t\t\t\t\tString line;\n\t\t\t\t\tBufferedReader reader = new BufferedReader (\n\t\t\t\t\t\t// (new FileReader(file));\n\t\t\t\t\t\tnew InputStreamReader (new FileInputStream(file), JetTest.encoding));\n\t\t\t\t\tStringBuffer fileText = new StringBuffer();\t\t//store all text in filename\n\t\t\t\t\twhile((line = reader.readLine()) != null)\n\t\t\t\t\t\tfileText.append(line + \"\\n\");\n\t\t\t\t\tString text = fileText.toString(); //Store the converted text\n\t\t\t\t\tSGMLProcessor.allTags = allTags;\t\n\t\t\t\t\tSGMLProcessor.emptyTags = emptyTags;\n\t\t\t\t\tDocument doc = SGMLProcessor.sgmlToDoc (this, text, SGMLtags);\t//Because format.equals(\"sgml\")\n\t\t\t\t\topen = true;\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (format.equals(\"pos\")) {\n\t\t\t\t\tposRead();\n\t\t\t\t\topen = true;\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\t\tSystem.out.println (\"Unknown document format.\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\t\tSystem.out.println (e);\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\t// return true if already open\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean fExists(){\n \n try(ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file))){\n \n }\n catch (FileNotFoundException e){\n System.out.println(\"File not found\");\n return false;\n }\n catch (IOException e){\n System.out.println(\"Another exception\");\n return false;\n }\n\n return true;\n }", "public boolean open(String filename)\n {\n \n boolean retVal = open_0(nativeObj, filename);\n \n return retVal;\n }" ]
[ "0.7955413", "0.78877723", "0.78105587", "0.7768604", "0.74590474", "0.7446673", "0.7398729", "0.7393008", "0.7384628", "0.73813695", "0.7377843", "0.73684233", "0.73559785", "0.73382604", "0.72087634", "0.70971483", "0.70460594", "0.7045904", "0.7045462", "0.703537", "0.70273185", "0.70193887", "0.70134044", "0.69764274", "0.6950676", "0.6926617", "0.69040024", "0.68871564", "0.68828493", "0.68805367", "0.68566555", "0.68453205", "0.67869747", "0.6779531", "0.6766515", "0.6765544", "0.67537934", "0.6717682", "0.67085785", "0.6689421", "0.6663105", "0.66406655", "0.66406655", "0.6591161", "0.6561445", "0.6543311", "0.6538502", "0.65193826", "0.65049183", "0.650247", "0.65012264", "0.6483085", "0.64534974", "0.6443176", "0.64228123", "0.6416802", "0.641278", "0.641278", "0.6409936", "0.63983047", "0.63942695", "0.6391614", "0.6374756", "0.6369822", "0.6369705", "0.6360324", "0.6358712", "0.6328243", "0.6324102", "0.62941515", "0.627307", "0.6273005", "0.62261385", "0.6202164", "0.61984134", "0.6187219", "0.6161747", "0.6142883", "0.6133638", "0.6128591", "0.61193746", "0.61124086", "0.6103159", "0.6103159", "0.61012316", "0.60922885", "0.6087609", "0.60745543", "0.60709524", "0.6059439", "0.6050134", "0.6044566", "0.60263836", "0.6022838", "0.6020003", "0.60177547", "0.60091066", "0.59888875", "0.5971135" ]
0.65546495
46
Return messages from input stream. This call is blocking until at least 1 message exists. Number of messages returned may be less than requested. It is up to the caller to parse the byte array for individual messages. Only whole messages are returned in the byte stream.
public byte[] readBytes(int inNumberMessages) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ITCMessage[] readMessages(int inNumberMessages) throws IOException;", "ReadResponseMessage fetchAllMessages();", "public byte[] readBytes(int inNumberMessages, long timeoutMs) throws IOException, TimeoutException;", "private common.messages.KVMessage receiveMessage() throws IOException {\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tbyte[] msgBytes = null, tmp = null;\r\n\t\tbyte[] bufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\r\n\t\t/* read first char from stream */\r\n\t\tbyte read = (byte) input.read();\t\r\n\t\tboolean reading = true;\r\n\t\t\r\n//\t\tlogger.info(\"First Char: \" + read);\r\n//\t\tCheck if stream is closed (read returns -1)\r\n//\t\tif (read == -1){\r\n//\t\t\tTextMessage msg = new TextMessage(\"\");\r\n//\t\t\treturn msg;\r\n//\t\t}\r\n\r\n\t\twhile(/*read != 13 && */ read != 10 && read !=-1 && reading) {/* CR, LF, error */\r\n\t\t\t/* if buffer filled, copy to msg array */\r\n\t\t\tif(index == BUFFER_SIZE) {\r\n\t\t\t\tif(msgBytes == null){\r\n\t\t\t\t\ttmp = new byte[BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, BUFFER_SIZE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttmp = new byte[msgBytes.length + BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length,\r\n\t\t\t\t\t\t\tBUFFER_SIZE);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmsgBytes = tmp;\r\n\t\t\t\tbufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\t\tindex = 0;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\t/* only read valid characters, i.e. letters and constants */\r\n\t\t\tbufferBytes[index] = read;\r\n\t\t\tindex++;\r\n\t\t\t\r\n\t\t\t/* stop reading is DROP_SIZE is reached */\r\n\t\t\tif(msgBytes != null && msgBytes.length + index >= DROP_SIZE) {\r\n\t\t\t\treading = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* read next char from stream */\r\n\t\t\tread = (byte) input.read();\r\n\t\t}\r\n\t\t\r\n\t\tif(msgBytes == null){\r\n\t\t\ttmp = new byte[index];\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, index);\r\n\t\t} else {\r\n\t\t\ttmp = new byte[msgBytes.length + index];\r\n\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length, index);\r\n\t\t}\r\n\t\t\r\n\t\tmsgBytes = tmp;\r\n\t\t\r\n\t\t/* build final String */\r\n\t\tcommon.messages.KVMessage msg = new common.messages.KVAdminMessage(msgBytes);\r\n\t\tlogger.debug(\"RECEIVE \\t<\" \r\n\t\t\t\t+ clientSocket.getInetAddress().getHostAddress() + \":\" \r\n\t\t\t\t+ clientSocket.getPort() + \">: '\" \r\n\t\t\t\t+ msg.getMsg().trim() + \"'\");\r\n\t\treturn msg;\r\n }", "public byte[] readBytes(int inNumberMessages, int[] outNumberMessages) throws IOException;", "public int peekMessages() throws IOException;", "public byte[] ReadMessage()\r\n {\r\n try {\r\n byte[] read = new byte[in.read()];\r\n for(int i = 0; i < read.length; i++)\r\n read[i] = (byte)in.read();\r\n\r\n return read;\r\n } catch (Exception e){\r\n System.out.println(e);\r\n }\r\n return null;\r\n }", "private void parseMessages() {\n\n // Find the first delimiter in the buffer\n int inx = rx_buffer.indexOf(DELIMITER);\n\n // If there is none, exit\n if (inx == -1)\n return;\n\n // Get the complete message\n String s = rx_buffer.substring(0, inx);\n\n // Remove the message from the buffer\n rx_buffer = rx_buffer.substring(inx + 1);\n\n // Send to read handler\n sendToReadHandler(s);\n\n // Look for more complete messages\n parseMessages();\n }", "List<ChatMessage> getMessages(int roomId, int count) throws IOException;", "public void readMessages() {\n if (!this.isConnectedToClientServer){return;}\n String inputMessage = inputQueue.poll();\n if (inputMessage != null){\n try{\n ClientMessageType messageType = ClientMessageParser.parse(inputMessage);\n if (messageType == ClientMessageType.INCOMING_BALL){\n //parses the message to get a ball, which is then added to the board\n Ball ball = ClientMessageParser.parseIncomingBall(inputMessage);\n board.addBall(ball);\n }\n else if (messageType == ClientMessageType.WALL_INVISIBILITY){\n //parses the messages to find out which boundary to make invisible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallInvisibility(inputMessage, board.neighbors);\n board.makeInvisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.WALL_VISIBILITY){\n //parses the messages to find out which boundary to make visible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallVisibility(inputMessage, board.neighbors);\n board.makeVisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.DISCONNECT_CLIENT){\n disconnectFromClientAndServer();\n }\n } catch (IncorrectFormatException e){\n //don't do anything --> message is not parsed, but play on this board still continues\n }\n }\n }", "public void run() {\n\t\tString line = null;\n\t\tMessage message;\n\t\tBufferQueueElement<Message> messageList = new BufferQueueElement<Message>();\n\t\tlong t1 = System.nanoTime();\n\t long t2 = 0;\n\t\ttry {\n\t\t\twhile ((line = messageIO.readMessage()) != null) {\n\t\t\t\tt2 = System.nanoTime();\n\t\t\t\t/* Ok, we can close the stream. But process the last message list. */\n\t\t\t\tif (CLOSE_STREAM.equals(line)) {\n\t\t\t\t\tmessageList.setStreamClosed(true);\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if((t2 - t1) < ONE_SECOND) {\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t} else {\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tmessageList = new BufferQueueElement<Message>();\n\t\t\t\t\tt1 = System.nanoTime();\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public List<String> getResult()\n {\n while (!readComplete)\n {\n try\n {\n Thread.sleep(1000);\n }\n catch (InterruptedException ex)\n {\n // swallow and exit;\n }\n }\n return lines;\n }", "main.java.io.grpc.chatservice.Message getMessages(int index);", "@Override\n\tpublic List<MessagePojo> getMessageBySize(int start, int size) {\n\t\treturn null;\n\t}", "@Override\n public synchronized List<Message> receiveMessages() {\n ArrayList<Message> temp = new ArrayList<>(queuedMessages);\n queuedMessages.clear();\n return temp;\n }", "public List<InboxMessage> getMessages(GetMessagesRequest request) {\n return client.get(MESSAGES_PATH, InboxMessage.class, request).getEntries();\n }", "public synchronized String[] readChallengerMessage() {\n while ( client1.getChallengerChoice() == null ){\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n return client1.getChallengerChoice();\n }", "ReadResponseMessage fetchUserMessages(String user);", "ReadResponseMessage fetchMessagesFromUser(String user);", "public void getMessages(){\n if(GUI.getInstance().getBusiness().getCurrentChat() != null) {\n Set<? extends IMessageIn> response = GUI.getInstance().getBusiness().getCurrentChat().getMessages();\n if(response != null){\n messages.addAll(response);\n }\n }\n }", "private static List<String> getMessages(AmazonSQS sqs) {\n ReceiveMessageRequest receiveMessageRequest = new ReceiveMessageRequest(sqsURL);\n List<Message> messages = sqs.receiveMessage(receiveMessageRequest.withMessageAttributeNames(\"All\")).getMessages();\n\n List<String> filesToProcess = new ArrayList<String>();\n\n for (Message message : messages) {\n // System.out.println(\" Message\");\n System.out.println(\" MessageId: \" + message.getMessageId());\n System.out.println(\" ReceiptHandle: \" + message.getReceiptHandle());\n System.out.println(\" MD5OfBody: \" + message.getMD5OfBody());\n System.out.println(\" Body: \" + message.getBody());\n for (Entry<String, MessageAttributeValue> entry : message.getMessageAttributes().entrySet()) {\n// System.out.println(\" Attribute\");\n// System.out.println(\" Name: \" + entry.getKey());\n// System.out.println(\" Value: \" + entry.getValue().getStringValue());\n filesToProcess.add(entry.getValue().getStringValue());\n }\n// System.out.println(\"Deleting a message.\\n\");\n String messageReceiptHandle = message.getReceiptHandle();\n sqs.deleteMessage(new DeleteMessageRequest(sqsURL, messageReceiptHandle));\n }\n return filesToProcess;\n }", "@Override\n synchronized public void run() {\n try {\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(inputStream, Charset.defaultCharset())\n );\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n this.result.add(line);\n }\n } catch (IOException ex) {\n log.error(\"Failed to consume and display the input stream of type \" + streamType + \".\", ex);\n } finally {\n this.isStopped = true;\n notify();\n }\n }", "public synchronized String read() {\n\t\tString message = \"\";\n\n\t\tif(content.size() > 0 )\n\t\t\tmessage = content.get(0);\n\t\tnotify();\n\n\t\treturn message;\n }", "private void receive() {\n\t\tMQGetMessageOptions gmo = new MQGetMessageOptions();\n\t\tif (keepMessages) {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t| MQConstants.MQGMO_BROWSE_FIRST;\n\t\t} else {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2;\n\t\t\tif (syncPoint) {\n\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t}\n\t\t}\n\t\tgmo.matchOptions = MQConstants.MQMO_NONE;\n\t\tgmo.waitInterval = this.waitInterval;\n\n\t\ttry {\n\t\t\tint lastSeqNo = 0;\n\t\t\tlong lastTs = 0;\n\t\t\tint messagecounter = 0;\n\t\t\twhile (true) {\n\t\t\t\tif (!(qmgr.isConnected())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\tif (!(queue.isOpen())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\thaltFileExists();\n\t\t\t\tif (haltStatus) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t} else {\n\t\t\t\t\treadQueue = true;\n\t\t\t\t}\n\t\t\t\tint queueNotInhibited = queue.getInhibitGet();\n\t\t\t\tif (queueNotInhibited == MQConstants.MQQA_GET_INHIBITED) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t}\n\t\t\t\tproduceCounts();\n\t\t\t\tif (readQueue) {\n\t\t\t\t\tqueueDepth = queue.getCurrentDepth();\n\t\t\t\t\tif (queueDepth != 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\trcvMessage = new MQMessage();\n\t\t\t\t\t\t\tif (mqccsid != 0) {\n\t\t\t\t\t\t\t\trcvMessage.characterSet = mqccsid;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tqueue.get(rcvMessage, gmo);\n\t\t\t\t\t\t\trecordCountsRcvd++;\n\t\t\t\t\t\t\tstrLen = rcvMessage.getMessageLength();\n\t\t\t\t\t\t\tstrData = new byte[strLen];\n\t\t\t\t\t\t\trcvMessage.readFully(strData);\n\t\t\t\t\t\t\tmessagePutMs = rcvMessage.putDateTime.getTimeInMillis();\n\t\t\t\t\t\t\tseqNo = rcvMessage.messageSequenceNumber;\n\t\t\t\t\t\t\tif (lastTs == messagePutMs && seqNo == 1) {\n\t\t\t\t\t\t\t\tseqNo = lastSeqNo + seqNo;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmsgText = new String(strData);\n\t\t\t\t\t\t\tjsonOut = new JSONArray();\n\t\t\t\t\t\t\tjsonKey = new JSONObject();\n\t\t\t\t\t\t\tjsonValue = new JSONObject();\n\t\t\t\t\t\t\tjsonKey.put(\"key\", Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tjsonValue.put(\"value\", msgText);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgKey: \" + Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgValue: \" + msgText);\n\t\t\t\t\t\t\tjsonOut.put(jsonKey);\n\t\t\t\t\t\t\tjsonOut.put(jsonValue);\n\t\t\t\t\t\t\tmsgList.add(jsonOut.toString());\n\t\t\t\t\t\t\tlastTs = messagePutMs;\n\t\t\t\t\t\t\tlastSeqNo = seqNo;\n\t\t\t\t\t\t\tmessagecounter++;\n\t\t\t\t\t\t\t// move cursor to next message\n\t\t\t\t\t\t\tif (msgList.size() > maxUMsg / 2) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (msgList.size() > queueDepth) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (keepMessages) {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT | MQConstants.MQGMO_BROWSE_NEXT;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT;\n\t\t\t\t\t\t\t\tif (syncPoint) {\n\t\t\t\t\t\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (MQException e) {\n\t\t\t\t\t\t\tif (e.reasonCode == MQConstants.MQRC_NO_MSG_AVAILABLE) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else if (e.reasonCode == MQConstants.MQRC_SYNCPOINT_LIMIT_REACHED) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime() + \" - MQ Reason Code: \" + e.reasonCode);\n\t\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tSystem.out.println(Calendar.getInstance().getTime() + \" - Error: \" + ioe.getMessage());\n\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t}\n\t\t\t\t\tthreadWait();\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Throwable t) {\n\t\t\t// restart if there is any other error\n\t\t\trestart(Calendar.getInstance().getTime() + \" - Error receiving data from Queue or QMGR\", t);\n\t\t}\n\n\t}", "public static byte[] readAll(InputStream is) {\n\t\treturn readAll(is, 1024);\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Waiting for input\");\n\t\t// Handle reading data until we exit\n\t\tByteBuffer buf = ByteBuffer.allocate(2048);\n\t\twhile (!stopper && socketChannel.isOpen()) {\n\t\t\tSystem.out.println(\"Reading the socket\");\n\t\t\ttry {\n\t\t\t\t// No input from the user in 60 seconds results in kicking them\n\t\t\t\t// out\n\t\t\t\tint bytesRead = socketChannel.read(buf).get(60, TimeUnit.SECONDS);\n\t\t\t\t// ByteBuffer dst = ByteBuffer.allocate(bytesRead);\n\t\t\t\t// engine.unwrap(buf, dst);\n\t\t\t\tSystem.out.println(\"Got data of size: \" + bytesRead);\n\t\t\t\t// convert to proto\n\t\t\t\tcommonUIElements.MessageProtos.Message msg = commonUIElements.MessageProtos.Message\n\t\t\t\t\t\t.parseFrom(Arrays.copyOf(buf.array(), bytesRead));\n\t\t\t\tSystem.out.println(\"RXed: \" + msg.toString());\n\t\t\t\tif (!msg.getName().equals(name)) {\n\t\t\t\t\tname = msg.getName();\n\t\t\t\t}\n\t\t\t\t// add data to the message queue\n\t\t\t\tif (SignatureSystem.verifySignature(msg.getSignature(), msg.getMessage(), msg.getName(), trustStore)) {\n\t\t\t\t\tmessages.put(\n\t\t\t\t\t\t\tnew Message(msg.getSender(), msg.getMessage(), msg.getSignature(), msg.getClearance()));\n\t\t\t\t} else {\n\t\t\t\t\tMessage error = new Message(msg.getSender(), \"Error: signture is invalid\", msg.getSignature(),\n\t\t\t\t\t\t\tmsg.getClearance());\n\t\t\t\t\terror.error = true;\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t}\n\t\t\t\t// clear the buffer for the next message\n\t\t\t\tbuf.clear();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tSystem.err.println(\"Failed to add message to the queue: \" + e.getMessage());\n\t\t\t\tMessage error = new Message(this.name, \"Disconnected\", \"\", 1);\n\t\t\t\terror.error = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (TimeoutException e) {\n\t\t\t\tSystem.err.println(\"Timeout hit, waiting again\");\n\t\t\t\tMessage error = new Message(this.name, \"Client: \" + this.name + \" has timed out\", \"\", 1);\n\t\t\t\terror.kill = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\tSystem.err.println(\"Execution error, breaking out of loop\");\n\t\t\t\tbreak;\n\t\t\t} catch (InvalidProtocolBufferException e) {\n\t\t\t\tSystem.err.println(\"Invalid protobuf received: \" + e.getMessage());\n\t\t\t\t// } catch(SSLException e) {\n\t\t\t\t// System.err.println(\"SSL Failed: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tsocketChannel.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Failed to close socket while exiting\");\n\t\t}\n\t\tSystem.out.println(\"Exiting thread...\");\n\t}", "public abstract Message[] getMessages(MessageRetrievalListener listener)\n throws MessagingException;", "public Iterator getMessages() {\r\n\t\treturn messages == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(messages.values());\r\n\t}", "public FermatMessage readNextMessage() {\n if(!pendingIncomingMessages.isEmpty()) {\n\n /*\n * Return the next message\n */\n return pendingIncomingMessages.iterator().next();\n\n }else {\n\n //TODO: CREATE A APPROPRIATE EXCEPTION\n throw new RuntimeException();\n }\n\n }", "public Queue<Object> inboundMessages() {\n/* 254 */ if (this.inboundMessages == null) {\n/* 255 */ this.inboundMessages = new ArrayDeque();\n/* */ }\n/* 257 */ return this.inboundMessages;\n/* */ }", "com.polytech.spik.protocol.SpikMessages.Sms getMessages(int index);", "private final byte[] readBuffer( int size ) throws IOException {\n byte[] buffer = new byte[ size ];\n\n int read = 0;\n while ( read < size ) {\n int next = dataSource.read( buffer, read, size - read );\n if ( next < 0 ) throw new IOException( \"End of Stream\" );\n read += next;\n\t}\n return buffer;\n }", "public AsyncResult<IQ> requestAllMessages() {\r\n return xmppSession.query(IQ.get(new OfflineMessage(true, false)));\r\n }", "public String[] getMsg() {\n String[] parts = null;\n try {\n String cmd = MessageQueue.take();\n parts = cmd.split(\"<<\");\n } catch (Exception e) {\n if (debug == 1) {\n e.printStackTrace();\n }\n }\n return parts;\n }", "@Override\n\tpublic List<Message> findMessages(long max, int count) {\n\t\treturn null;\n\t}", "public Machinetta.RAPInterface.InputMessages.InputMessage[] getMessages() {\n Debugger.debug(3,\"Unimplemented getMessages() being called ... \");\n return null;\n }", "protected void processMessagesOnConnection() {\n try {\n logger.info(\"Connected to \" + getConnectionName());\n state.set(StreamState.CONNECTED);\n notifyConnection();\n inputBuffer.flip();\n\n while (!Thread.currentThread().isInterrupted() && isConnected()) {\n try {\n // Find the start of message\n byte byStart = 0;\n while(byStart != START_OF_MSG && !Thread.currentThread().isInterrupted() && isConnected()) {\n byStart = nextByte(inputBuffer);\n }\n\n // and then make sure there are enough bytes and read the protocol\n readCompleteMessage(inputBuffer);\n if(inputBuffer.get() != protocol.getKeyIdentifier()) throw new TcProtocolException(\"Bad protocol\");\n\n logByteBuffer(\"Line read from stream\", inputBuffer);\n\n // now we take a shallow buffer copy and process the message\n MenuCommand mc = protocol.fromChannel(inputBuffer);\n logger.info(\"Command received: \" + mc);\n notifyListeners(mc);\n }\n catch(TcProtocolException ex) {\n // a protocol problem shouldn't drop the connection\n logger.warn(\"Probable Bad message reason='{}' Remote={} \", ex.getMessage(), getConnectionName());\n }\n }\n logger.info(\"Disconnected from \" + getConnectionName());\n } catch (Exception e) {\n logger.error(\"Problem with connectivity on \" + getConnectionName(), e);\n }\n finally {\n close();\n }\n }", "public void start(){\n\t\tdo{\n\t\t\tMessage<T> msg= input.read();\n\t\t\tif (!msg.getQuit() && !msg.getFail() ){\n\t\t\t\tconsume(msg.getContent());\n\t\t\t}\n\t\t\tif (msg.getQuit()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(true);\n\t\t\n\t}", "protected Object readMessage(InputStream inputStream) throws IOException{\n PushbackInputStream pin = (PushbackInputStream)inputStream;\n StringBuffer buf = new StringBuffer();\n \n boolean lineStartsWithPrompt = false;\n while (true){\n int b = pin.read();\n \n if (b < 0){\n if (buf.length() == 0) // Clean disconnection\n return null;\n break;\n }\n \n // End of line\n if (b == '\\n'){\n // FICS uses \\n\\r for an end-of-line marker!?\n // Eat the following '\\r', if there is one\n b = pin.read();\n if ((b > 0) && (b != '\\r'))\n pin.unread(b);\n \n // Ignore all-prompt lines\n if (lineStartsWithPrompt && (buf.length() == 0)){\n lineStartsWithPrompt = false;\n continue;\n }\n else\n break;\n }\n \n buf.append((char)b);\n \n // Filter out the prompt\n if (buf.toString().equals(\"fics% \")){\n buf.setLength(0);\n lineStartsWithPrompt = true;\n }\n }\n \n return buf.toString();\n }", "java.util.List<com.polytech.spik.protocol.SpikMessages.Sms> \n getMessagesList();", "com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage getMessages(int index);", "private Collection<Message> fetchMessages(Folder folder, Date minDate, Matcher matcher)\n\t\tthrows MessagingException {\n\t\t// Search term not fully implemented on mail servers, but can prevent fetching all email\n\t\tSearchTerm searchTerm = new SentDateTerm(ComparisonTerm.GT, minDate);\n\t\tMessage[] messages = folder.search(searchTerm);\n\t\tlogger.info(\"{} email(s) returned\", messages.length);\n\t\tbulkFetchMessageEnvelopes(folder, messages);\n\t\tList<Message> filteredMessages = new ArrayList<>();\n\t\tfor (Message message : messages) {\n\t\t\tDate sentDate = message.getSentDate();\n\t\t\tif (minDate.after(sentDate)) continue;\n\t\t\tif (!matcher.matches(message)) continue;\n\t\t\tfilteredMessages.add(message);\n\t\t}\n\t\treturn filteredMessages;\n\t}", "@Override\n\tpublic Iterator<SendMessageInfo> getPendingMessages() throws Exception {\n\t\treturn null;\n\t}", "private static ArrayList<Message> ReadFile(Scanner sc) {\t\n\t\tArrayList<Message> messageList = new ArrayList<Message>();\n\t\t\n\t\t/* Iterating over each string in file and creating\n\t\t * Message object with file contents\n\t\t*/\n\t\twhile (sc.hasNextLine()) {\n\t\t\tString line = sc.nextLine();\n\t\t\tScanner lineScanner = new Scanner(line);\n\t\t\twhile (lineScanner.hasNext()) {\n\t\t\t\ttry {\n\t\t\t\t\tString received = lineScanner.next(); \n\t\t\t\t\tString sent = lineScanner.next();\n\t\t\t\t\tString node1 = lineScanner.next();\n\t\t\t\t\tString notification = lineScanner.next();\n\t\t\t\t\tString node2 = null;\n\t\t\t\t\tif (lineScanner.hasNext()) {\n\t\t\t\t\t\tnode2 = lineScanner.next();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlong receivedVal = Long.parseLong(received);\n\t\t\t\t\tlong sentVal = Long.parseLong(sent);\n\t\t\t\t\tMessage message = new Message(receivedVal, sentVal, node1,\n\t\t\t\t\t\t\tnotification, node2);\n\t\t\t\t\t\n\t\t\t\t\tmessageList.add(message);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tlineScanner.close();\n\t\t}\n\t\treturn messageList;\n\t}", "public static Queue<String> linesFromInput(SimpleReader input) {\n assert input != null : \"Violation of: input is not null\";\n assert input.isOpen() : \"Violation of: input.is_open\";\n\n Queue<String> lines = new Queue1L<String>();\n while (!input.atEOS()) {\n String text = input.nextLine(); // reads next line\n lines.enqueue(text);\n\n }\n return lines;\n }", "private void startConsumeMsg() {\n try {\n ConsumerRecords<byte[], byte[]> records;\n while (true) {\n records = kafkaConsumer.poll(Long.MAX_VALUE);\n for (ConsumerRecord<byte[], byte[]> record : records) {\n processMsg(record);\n kafkaConsumer.commitSync();\n LOG.info(\"Single consumer consume the message {}th\", counter.incrementAndGet());\n }\n\n }\n } catch (Exception ex) {\n LOG.error(\"Consumer get message error {}\", ex);\n } finally {\n LOG.info(\"Shutting down consumer ...\");\n shutdown();\n }\n }", "public com.polytech.spik.protocol.SpikMessages.Sms getMessages(int index) {\n if (messagesBuilder_ == null) {\n return messages_.get(index);\n } else {\n return messagesBuilder_.getMessage(index);\n }\n }", "public ArrayList<Message> readMessages() throws FileNotFoundException {\n\t\tArrayList<Message> allMessages = new ArrayList<Message>();\n\t\tScanner keyboardIn = new Scanner(new File(filePath));\n\t\tkeyboardIn.useDelimiter(\"/n\");\n\t\twhile (keyboardIn.hasNextLine()) {\n\t\t\tString[] messageDataInArray = keyboardIn.nextLine().split(\"\\t\");\n\t\t\tString messageName = messageDataInArray[0];\n\t\t\tString messageDescription = messageDataInArray[1];\n\t\t\tMessage message = new Message(messageName,messageDescription);\n\t\t\tallMessages.add(message);\t\t\n\t\t}\n\t\tkeyboardIn.close();\t\t\n\t\treturn allMessages;\n\t}", "@Override\n public String[] getAllMessages() {\n return messages.toArray(new String[0]);\n }", "public byte [] readMessageAsByte() {\r\n byte [] data = new byte[256];\r\n int length;\r\n\r\n try {\r\n length = in.readInt();\r\n if (length > 0) {\r\n data = new byte[length];\r\n in.readFully(data, 0, data.length);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return data;\r\n }", "@GetMapping(\"/msgbox/get/{username}\")\n\tIterable<msgbox> getMsgs(@PathVariable String username){\n\t\treturn this.getUserMsgs(username);\n\t}", "public Collection<Message> findNextForSending();", "public com.polytech.spik.protocol.SpikMessages.Sms getMessages(int index) {\n return messages_.get(index);\n }", "@Override\n public String[] getMessages(int begin, int end) {\n if (begin > end)\n throw new IllegalArgumentException(\"The begin parameter should be smaller \"\n + \"than the end parameter\");\n if (begin < 0 || end >= messages.size())\n throw new IllegalArgumentException(\"The given begin-end interval is not \"\n + \"a subset of the index-range of the messages.\");\n List<String> result = new ArrayList<>();\n for (int i = begin; i<=end; i++)\n result.add(messages.get(i));\n return result.toArray(new String[0]);\n }", "private byte[] receiveDataChunk(final byte[] commandApdu) {\r\n if (!dataInReady.get()) {\r\n // Previously received data was not fetched yet\r\n return APDU.StatusMessage.ERR_NOT_READY;\r\n }\r\n\r\n int dataLen = commandApdu.length - APDU.Header.LEN;\r\n if (dataLen > MAX_CHUNK_SIZE)\r\n // Invalid size of input message\r\n return APDU.StatusMessage.ERR_PARAMS;\r\n else if ((dataIn.size() + dataLen) > MAX_BYTES) {\r\n // Received data is not complete; give client a new try\r\n dataIn.reset();\r\n return APDU.StatusMessage.ERR_PARAMS;\r\n }\r\n\r\n // Assembling fragmented data messages in local buffer\r\n dataIn.write(commandApdu, APDU.Header.DATA, dataLen);\r\n // Check if all data chunks are complete\r\n int nextBytes = APDU.getHeaderValue(commandApdu, APDU.Header.LC);\r\n // If incoming data message complete\r\n // - transfer data to NFC state machine to do the high-level logic\r\n // - Clean up internal buffer after that\r\n if (0 == nextBytes) {\r\n dataInReady.set(false);\r\n Log.i(TAG, \"Received data with \" + dataIn.size() + \" bytes complete.\");\r\n // Push to NFC service thread\r\n Message msg = Message.obtain(null, StatefulProtocolHandler.MSG_NFC_RECEIVED_PACKET);\r\n msg.obj = dataIn.toByteArray();\r\n msg.replyTo = mResponseMessenger;\r\n try {\r\n mNfcMessagingService.send(msg);\r\n } catch (RemoteException e) {\r\n Log.e(TAG, \"Could not send data input to NFC statemachine.\");\r\n e.printStackTrace(); // TODO: remove stacktrace\r\n }\r\n // Cleanup for new input data\r\n dataIn.reset();\r\n dataInReady.set(true);\r\n }\r\n\r\n return APDU.StatusMessage.SUCCESS;\r\n }", "public HTTPRequestResponse[] getSelectedMessages() {\r\n if(selectedMessages == null){\r\n return new HTTPRequestResponse[]{};\r\n }\r\n return selectedMessages;\r\n }", "public long getInMsgs() {\n return inMsgs.get();\n }", "private byte[] consumePayload() throws IOException {\n byte[] payload = new byte[(int) payloadLength];\n int count = 0;\n while (payloadLength > 0L) {\n payload[count] = (byte) this.read();\n count++;\n }\n return payload;\n }", "private static byte[] getDataFromInputStream(final InputStream input) throws IOException {\r\n if (input == null) {\r\n return new byte[0];\r\n }\r\n int nBytes = 0;\r\n final byte[] buffer = new byte[BUFFER_SIZE];\r\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n while ((nBytes = input.read(buffer)) != -1) {\r\n baos.write(buffer, 0, nBytes);\r\n }\r\n return baos.toByteArray();\r\n }", "private void dequeueMessages()\n\t{\n\t\twhile (_msg_queue.size() > 0)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t_ml.messageReceived( (Serializable) _msg_queue.removeFirst());\n\t\t\t}\n\t\t\tcatch (RuntimeException rte)\n\t\t\t{\n\t\t\t\trte.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private synchronized byte[] mReadBytes(InputStream oInput){\n nDataRcvd= nBytesAvailable(oInput);\n if (nDataRcvd==0)\n return null;\n byte[] buffer = new byte[nDataRcvd];\n try {\n nDataRcvd=oInput.read(buffer); //Read is a blocking operation\n } catch (IOException e) {\n e.printStackTrace();\n buffer= null;\n }\n return buffer;\n }", "public Message[] readUnseenMessages(EmailReceivingParameters emailReceivingParameters)\r\n\t{\r\n\t\t Message[] messages=null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t Properties properties = new Properties();\r\n\r\n\t properties.put(\"mail.pop3.host\", emailReceivingParameters.getHostName());\r\n\t properties.put(\"mail.pop3.port\", \"995\");\r\n\t properties.put(\"mail.pop3.starttls.enable\", \"true\");\r\n\t Session emailSession = Session.getDefaultInstance(properties);\r\n\t \r\n\t //create the POP3 store object and connect with the pop server\r\n\t Store store = emailSession.getStore(\"pop3s\");\r\n\r\n\t store.connect(emailReceivingParameters.getHostName(), emailReceivingParameters.getUserName(), emailReceivingParameters.getPassword());\r\n\r\n\t //create the folder object and open it\r\n\t Folder emailFolder = store.getFolder(\"INBOX\");\r\n\t emailFolder.open(Folder.READ_ONLY);\r\n\r\n\t // retrieve the messages from the folder in an array and print it\r\n\t messages = emailFolder.getMessages();\r\n\t System.out.println(\"messages.length---\" + messages.length);\r\n\r\n\t for (int i = 0, n = messages.length; i < n; i++) \r\n\t {\r\n\t Message message = messages[i];\r\n\t System.out.println(\"---------------------------------\");\r\n\t System.out.println(\"Email Number \" + (i + 1));\r\n\t System.out.println(\"Subject: \" + message.getSubject());\r\n\t System.out.println(\"From: \" + message.getFrom()[0]);\r\n\t System.out.println(\"Text: \" + message.getContent().toString());\r\n\r\n\t }\r\n\r\n\t emailFolder.close(false);\r\n\t store.close();\r\n\r\n\t } \r\n\t\t catch (NoSuchProviderException e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t } \r\n\t\t catch (MessagingException e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t } \r\n\t\t catch (Exception e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\t\treturn messages;\r\n\t}", "protected byte[] getNextMessage(){\n if (messages.size() > 0) {\n byte message[] = messages.get(0).clone();\n messages.remove(0);\n return message;\n } else {\n return null;\n }\n \n }", "public if4031.common.Message getMessages(int index) {\n return messages_.get(index);\n }", "@Override\n public Optional<TcpMessage> consumeMessage() throws IOException {\n System.out.println(\"Trying to consume a message...\");\n var json = inputMessageStream.readJson();\n\n socket.shutdownInput();\n if (json.isEmpty()) {\n return Optional.empty();\n }\n return Optional.of(new TcpMessage(JsonPayload.of(json)));\n // return Optional.of(new Message<>(new JsonPayload(json)));\n }", "@Override\n public List<Message> getMessages() {\n return (List<Message>) messageRepository.findAll();\n }", "static protected byte[] readContent( InputStream in )\n \t{\n \t\tBufferedInputStream bin = in instanceof BufferedInputStream\n \t\t\t\t? (BufferedInputStream) in\n \t\t\t\t: new BufferedInputStream( in );\n \t\tByteArrayOutputStream out = new ByteArrayOutputStream( 1024 );\n \t\tbyte[] buffer = new byte[1024];\n \t\tint readSize = 0;\n \t\ttry\n \t\t{\n \t\t\treadSize = bin.read( buffer );\n \t\t\twhile ( readSize != -1 )\n \t\t\t{\n \t\t\t\tout.write( buffer, 0, readSize );\n \t\t\t\treadSize = bin.read( buffer );\n \t\t\t}\n \t\t}\n \t\tcatch ( IOException ex )\n \t\t{\n \t\t\tlogger.log( Level.SEVERE, ex.getMessage( ), ex );\n \t\t}\n \t\treturn out.toByteArray( );\n \t}", "java.util.List<main.java.io.grpc.chatservice.Message> \n getMessagesList();", "public ByteBufferMessageSet fetchMessages(PartitionMetadata partitionMetadata, String topic, long startOffset) {\n SimpleConsumer consumer = consumerMap.get(partitionMetadata.leader().id());\n ByteBufferMessageSet messageSet = fetchMessages(consumer, topic, partitionMetadata.partitionId(), startOffset);\n// simpleConsumer.close();\n return messageSet;\n }", "private InputStream getRawStream(boolean skipHeader) throws MessagingException {\n/* 155 */ InputStream rawcontent = null;\n/* */ try {\n/* 157 */ synchronized (this) {\n/* 158 */ rawcontent = this.rawData.get();\n/* 159 */ if (rawcontent == null) {\n/* 160 */ TempFile cache = this.folder.getFileCache();\n/* 161 */ if (cache != null) {\n/* 162 */ Session s = ((POP3Store)this.folder.getStore()).getSession();\n/* 163 */ if (this.folder.logger.isLoggable(Level.FINE)) {\n/* 164 */ this.folder.logger.fine(\"caching message #\" + this.msgnum + \" in temp file\");\n/* */ }\n/* 166 */ AppendStream os = cache.getAppendStream();\n/* 167 */ BufferedOutputStream bos = new BufferedOutputStream(os);\n/* */ try {\n/* 169 */ this.folder.getProtocol().retr(this.msgnum, bos);\n/* */ } finally {\n/* 171 */ bos.close();\n/* */ } \n/* 173 */ rawcontent = os.getInputStream();\n/* */ } else {\n/* 175 */ rawcontent = this.folder.getProtocol().retr(this.msgnum, (this.msgSize > 0) ? (this.msgSize + this.hdrSize) : 0);\n/* */ } \n/* */ \n/* 178 */ if (rawcontent == null) {\n/* 179 */ this.expunged = true;\n/* 180 */ throw new MessageRemovedException(\"can't retrieve message #\" + this.msgnum + \" in POP3Message.getContentStream\");\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 185 */ if (this.headers == null || ((POP3Store)this.folder.getStore()).forgetTopHeaders) {\n/* */ \n/* 187 */ this.headers = new InternetHeaders(rawcontent);\n/* 188 */ this.hdrSize = (int)((SharedInputStream)rawcontent).getPosition();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 203 */ int len, offset = 0;\n/* */ do {\n/* 205 */ len = 0;\n/* */ int c1;\n/* 207 */ while ((c1 = rawcontent.read()) >= 0 && \n/* 208 */ c1 != 10) {\n/* */ \n/* 210 */ if (c1 == 13) {\n/* */ \n/* 212 */ if (rawcontent.available() > 0) {\n/* 213 */ rawcontent.mark(1);\n/* 214 */ if (rawcontent.read() != 10) {\n/* 215 */ rawcontent.reset();\n/* */ }\n/* */ } \n/* */ \n/* */ break;\n/* */ } \n/* 221 */ len++;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 226 */ if (rawcontent.available() == 0) {\n/* */ break;\n/* */ }\n/* */ }\n/* 230 */ while (len != 0);\n/* */ \n/* */ \n/* 233 */ this.hdrSize = (int)((SharedInputStream)rawcontent).getPosition();\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 238 */ this.msgSize = rawcontent.available();\n/* */ \n/* 240 */ this.rawData = new SoftReference(rawcontent);\n/* */ } \n/* */ } \n/* 243 */ } catch (EOFException eex) {\n/* 244 */ this.folder.close(false);\n/* 245 */ throw new FolderClosedException(this.folder, eex.toString());\n/* 246 */ } catch (IOException ex) {\n/* 247 */ throw new MessagingException(\"error fetching POP3 content\", ex);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 255 */ rawcontent = ((SharedInputStream)rawcontent).newStream(skipHeader ? this.hdrSize : 0L, -1L);\n/* */ \n/* 257 */ return rawcontent;\n/* */ }", "private byte[] readBuffer( DataInputStream in ) throws IOException{\n String factory = in.readUTF();\n int count = in.readInt();\n \n ByteArrayOutputStream out = new ByteArrayOutputStream( factory.length()*4 + 4 + count );\n DataOutputStream dout = new DataOutputStream( out );\n \n dout.writeUTF( factory );\n dout.writeInt( count );\n \n for( int i = 0; i < count; i++ ){\n int read = in.read();\n if( read == -1 )\n throw new EOFException( \"unexpectetly reached end of file\" );\n dout.write( read );\n }\n \n dout.close();\n return out.toByteArray();\n }", "static byte[] readMessage() {\n byte[] msg = new byte[0];\n try {\n msg = Hex.decodeHex(\n \"000600000003000000017d010000\" +\n \"bb931fd17f85fb26e8209eb7af5747258163df29a7dd8f87fa7617963fcfa1aa\" +\n \"b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe0400\"\n );\n } catch (DecoderException e) {\n e.printStackTrace();\n }\n return msg;\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tInputStream inputStream = mSocket.getInputStream();\n\t\t\tint leng;\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tByteArrayBuffer[] data = {new ByteArrayBuffer(1024 * 32)};\n\t\t\twhile((leng = inputStream.read(buffer)) != -1 && mConected)\n\t\t\t{\n\t\t\t\tif(mConected)\n\t\t\t\t{\n\t\t\t\t\tdata[0].append(buffer, data[0].length(), leng);\n\t\t\t\t\tprocessMessage(data);\n\t\t\t\t}\n\t\t\t\telse\n\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} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(TAG, \"Cannot set InputStream\\nNetwork error\");\n\t\t\tevent.connectionLost();\n\t\t} catch (ProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tevent.connectionLost();\n\t\t}\n\t}", "public Message[] getMessages() throws MessagingException, FileNotFoundException, IOException {\n\n\n\t\ttry {\n\t\t\tmessages = folder.getMessages();\n\t\t} catch (MessagingException e) {\n\t\t\tSystem.err.println(e.getMessage());\n\n\t\t}\n\t\t\n\t\tObject content;\n\t\tString type; // type of messages contant\n\t\tfor (int i = 0; i < messages.length; i++) {\n\n\t\t\tArrayList<String> toAddress = new ArrayList();\n\t\t\tAddress addressTO[] = messages[i].getRecipients(Message.RecipientType.TO);\n\t\t\tfor (int j = 0; j < addressTO.length; j++) {\n\n\t\t\t\ttoAddress.add(addressTO[j].toString());\n\t\t\t}\n\n\t\t\tArrayList<String> copyOnAddress = new ArrayList();\n\t\t\tif (messages[i].getRecipients(Message.RecipientType.CC) != null) {\n\t\t\t\tAddress addressCC[] = messages[i].getRecipients(Message.RecipientType.CC);\n\t\t\t\tif (addressCC.length > 0) {\n\t\t\t\t\tfor (int j = 0; j < addressCC.length; j++) {\n\n\t\t\t\t\t\tcopyOnAddress.add(addressCC[j].toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrayList<String> copyHideAddress = new ArrayList();\n\t\t\tif ((messages[i].getRecipients(Message.RecipientType.BCC)) != null) {\n\t\t\t\tAddress addressBCC[] = messages[i].getRecipients(Message.RecipientType.BCC);\n\n\t\t\t\tif (addressBCC.length > 0) {\n\t\t\t\t\tfor (int j = 0; j < addressBCC.length; j++) {\n\n\t\t\t\t\t\tcopyHideAddress.add(addressBCC[j].toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tArrayList<String> fromAddress = new ArrayList();\n\t\t\tif (messages[i].getFrom() != null) {\n\t\t\t\tAddress addressFrom[] = messages[i].getFrom();\n\n\t\t\t\tif (addressFrom.length > 0) {\n\t\t\t\t\tfor (int j = 0; j < addressFrom.length; j++) {\n\t\t\t\t\t\tfromAddress.add(addressFrom[j].toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontent = messages[i].getContent();\n\t\t\tif (content instanceof String) {\n\t\t\t\ttype = \"text\"; // set message type text\n\t\t\t\t\n\t\t\t\tmessagesListInbox.add(new MessagesDate(type, messages[i].getMessageNumber(), fromAddress, toAddress, messages[i].getSubject(), messages[i].getSentDate().toGMTString(), copyOnAddress, copyHideAddress, content.toString()));\n\t\t\t}\n\t\t\tif (content instanceof Multipart) {\n\t\t\t\tMultipart mp;\n\t\t\t\tBodyPart bodyPart = null;\n\t\t\t\ttype = \"html\";\n\t\t\t\tfor (int j = 0; j < ((Multipart) content).getCount(); j++) {\n\t\t\t\t\tmp = (Multipart) content;\n\t\t\t\t\tbodyPart = mp.getBodyPart(j);\n\t\t\t\t}\n\t\t\t\tmessagesListInbox.add(new MessagesDate(type, messages[i].getMessageNumber(), fromAddress, toAddress, messages[i].getSubject(), messages[i].getSentDate().toGMTString(), copyOnAddress, copyHideAddress, bodyPart.getContent().toString()));\n\t\t\t\t\n\t\t\t}\n\n\t\t}\n\n\t\tnew SaveReadFile().saveMessages(messagesListInbox, \"Inbox\");\n\t\treturn messages;\n\t}", "private List<Message> returnMessages(Query query, String recipient) {\n List<Message> messages = new ArrayList<>();\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID id = UUID.fromString(idString);\n String text = (String) entity.getProperty(\"text\");\n long timestamp = (long) entity.getProperty(\"timestamp\");\n String user = (String) entity.getProperty(\"user\");\n recipient = recipient != null ? recipient : (String) entity.getProperty(\"recipient\");\n\n Message message = new Message(id, user, text, timestamp, recipient);\n messages.add(message);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading message.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return messages;\n }", "public <T> T readInbound() {\n/* 291 */ T message = (T)poll(this.inboundMessages);\n/* 292 */ if (message != null) {\n/* 293 */ ReferenceCountUtil.touch(message, \"Caller of readInbound() will handle the message from this point\");\n/* */ }\n/* 295 */ return message;\n/* */ }", "private void extractProcessMessagesFromBufferIntoQueue(ByteBuffer byteBuffer){\n // when this function is called, byte buffer is ready for being read\n // i.e. position should point to the last byte written\n ProcessMessage procMsg;\n while((procMsg = extractProcessMessageFromByteBuffer(byteBuffer)) != null){\n // put procMsg into queue\n receivedMessagesQueue.add(procMsg);\n }\n\n // compact buffer for further reading new data\n byteBuffer.compact();\n\n }", "synchronized A consume() {\n try {\r\n if ((noMore && slack >= 0) || consumedAll) {\r\n notifyAll();\r\n consumedAll = true;\r\n return null;\r\n }\r\n while (slack != -1) {\r\n wait();\r\n }\r\n A tmp;\r\n\r\n int bSize = CodecUtil.slackOrSize(consumerBuffer, codec);\r\n if(bSize < 0 && endOfStream) {\r\n bSize = Math.abs(bSize);\r\n }\r\n if (bSize <= 0) {\r\n slack = Math.abs(bSize);\r\n notifyAll();\r\n return null;\r\n }\r\n tmp = codec.from(consumerBuffer);\r\n totConsumed += bSize;\r\n notifyAll();\r\n return tmp;\r\n }\r\n catch (InterruptedException e) {\r\n }\r\n return null;\r\n }", "private static Optional<List<Lexeme>> getLexemes(BufferedInputStream inputStream) {\n var lexer = new Lexer(inputStream);\n\n try (lexer) {\n lexer.readToEnd();\n } catch (IOException e) {\n System.err.printf(\"Unable to read input: %s\\n\", e.getMessage());\n }\n\n return lexer.getLexemes().isEmpty() ? Optional.empty() : Optional.of(lexer.getLexemes());\n }", "protected byte[] receive() throws CommunicationException {\n try {\n byte[] result = new byte[0];\n int count;\n do {\n byte[] frame = new byte[FRAME_SIZE];\n count = in.read(frame);\n result = Bytes.concat(result, Arrays.copyOf(frame, count));\n } while (count >= FRAME_SIZE);\n log.info(\"Receive: {} bytes | {} | {}\", result.length, BytesUtils.bytesToHex(result, ' '), new String(result));\n return result;\n } catch (IOException e) {\n throw new CommunicationException(\"Receiving error\", e);\n }\n }", "@Override\n public int read() throws IOException {\n if (stream.available() > 0) {\n return stream.read();\n } else {\n layer.receiveMoreDataForHint(getHint());\n // either the stream is now filled, or we ran into a timeout\n // or the next stream is available\n return stream.read();\n }\n }", "public Vector getMessages() throws RemoteException {\r\n return messages;\r\n }", "main.java.io.grpc.chatservice.MessageOrBuilder getMessagesOrBuilder(\n int index);", "@Override\n @SuppressWarnings(\"SuspiciousSystemArraycopy\")\n public void run() {\n //while (!isInterrupted()) {\n try {\n\n //String message=\"\";\n byte[] data = new byte[1024];\n int datalen = -1;\n messageStream = new byte[]{};\n while (isRunning) {\n if ((datalen = mIn.read(data)) != -1) {\n try {\n\n byte[] truedata = new byte[datalen];\n System.arraycopy(data, 0, truedata, 0, datalen);\n if ((datalen == 4) && new String(truedata).equals(\"0000\")) {\n CommonLib.PrintScreen(systemGlobal, \"SOCK - \" + identifyState + \" received IDLE: 0000\",showLogEnum.DETAILMODE);\n } else {\n messageStream = CommonLib.concatByteArray(messageStream, truedata);\n CommonLib.PrintScreen(systemGlobal, String.format(\"SOCKET.%s REV: %s \\n\\rBUFF 1(%d): %s\", identifyState, CommonLib.getHumanFormatFromByte(truedata), messageStream.length, CommonLib.getHumanFormatFromByte(messageStream)),showLogEnum.SIMPLEMODE);\n byte[] msg = new byte[]{};\n\n HeaderProcessing headerMsg = msgheaderInfo.clone();\n if (headerMsg.initHeaderFromBytes(messageStream)) {\n\n msg = headerMsg.getMessageFromBuffer(messageStream);\n while (msg.length > 0) {\n boolean needParsing = false;\n if (headerMsg.getHeaderPart(9) != null) {\n if (headerMsg.getHeaderPart(9).getValue().toString().equals(\"00000\")) {\n needParsing = true;\n }\n } else {\n needParsing = true;\n }\n if (needParsing) {\n IsoMessage isoMsg = new IsoMessage(msg, getInstituttionCode(), headerMsg, isoCfg, instData.getLineMode());\n if (isoMsg.isMessage()) {\n isoMsg.setSeqID(CommonLib.getNextSequence());\n isoMsg.setMsgType(CommonLib.getMsgType(isoMsg.getField(0)));\n incommingqueue.add(isoMsg);\n CommonLib.PrintScreen(systemGlobal, identifyState + \" parsed: \" + isoMsg.printedMessage(), showLogEnum.DEFAULT);\n\n //Added by DUNGBTK 08.11.2010\n messageStream = CommonLib.copyByteArrayFromArray(messageStream, msg.length, messageStream.length - msg.length);\n CommonLib.PrintScreen(systemGlobal, String.format(\"SOCKET.%s BUFF 2(%d): %s\", identifyState, messageStream.length, CommonLib.getHumanFormatFromByte(messageStream)), showLogEnum.SIMPLEMODE);\n //msg = CommonLib.getMsgFromBuffer(messageStream, msgheaderInfo);\n headerMsg = msgheaderInfo.clone();\n headerMsg.initHeaderFromBytes(messageStream);\n msg = headerMsg.getMessageFromBuffer(messageStream);\n } else {\n CommonLib.PrintScreen(systemGlobal, \"ERR SOCK - \" + identifyState + \" parsing (close connection): \" + CommonLib.asHex(msg), showLogEnum.SIMPLEMODE);\n isRunning = false;\n mServerDispatcher.deleteClient(mClientInfo);\n break;\n }\n } else {\n CommonLib.PrintScreen(systemGlobal, \"DROP BY HEADER - \" + identifyState + CommonLib.asHex(msg), showLogEnum.DETAILMODE);\n messageStream = CommonLib.copyByteArrayFromArray(messageStream, msg.length, messageStream.length - msg.length);\n CommonLib.PrintScreen(systemGlobal, String.format(\"SOCKET.%s BUFF 2(%d): %s\", identifyState, messageStream.length, CommonLib.getHumanFormatFromByte(messageStream)), showLogEnum.DETAILMODE);\n\n headerMsg = msgheaderInfo.clone();\n headerMsg.initHeaderFromBytes(messageStream);\n msg = headerMsg.getMessageFromBuffer(messageStream);\n }\n\n }\n if (messageStream.length > 0) {\n CommonLib.PrintScreen(systemGlobal, String.format(\"SOCKET.%s BUFF 3(%d): %s\", identifyState, messageStream.length, CommonLib.getHumanFormatFromByte(messageStream)),showLogEnum.DETAILMODE);\n }\n }\n }\n\n } catch (Exception e) {\n messageStream = new byte[]{};\n CommonLib.PrintScreen(systemGlobal, \"ERR SOCK \" + identifyState + \" data error (close connection): \" + e.getMessage(),showLogEnum.DETAILMODE);\n\n isRunning = false;\n mServerDispatcher.deleteClient(mClientInfo);\n break;\n }\n } else {\n CommonLib.PrintScreen(systemGlobal, \"ERR SOCK \" + identifyState + \" is interrupted..\",showLogEnum.DETAILMODE);\n isRunning = false;\n mServerDispatcher.deleteClient(mClientInfo);\n break;\n }\n }\n //--Thread.sleep(GlobalObject.SystemParas.getIntValue(\"VNBC_SOCK_RUNNING_INTEVAL\"));\n\n } catch (Exception ex) {\n isRunning = false;\n CommonLib.PrintScreen(systemGlobal, \"ERR SOCK \" + identifyState + \": Connection error\",showLogEnum.DETAILMODE);\n }\n //Communication is broken. Interrupt both listener and sender threads\n\n }", "@Override\r\n\tpublic List<ChatMessageModel> getMessages(int messageIndex) {\n\t\treturn null;\r\n\t}", "public byte[] receiveMessage() throws IllegalStateException {\r\n\t\t\tif ( currHostPort == null ) {\r\n\t\t\t\tthrow new IllegalStateException(\"No iterator element.\");\r\n\t\t\t}\r\n\t\t\tbyte[] pDat = null;\r\n\t\t\tbyte[] recvdata = new byte[512];\r\n\t\t\tdgpacket = new DatagramPacket(recvdata, 512);\r\n\t\t\ttry {\r\n\t\t\t\tsocket.receive(dgpacket);\r\n\t\t\t\tpLen = dgpacket.getLength();\r\n\t\t\t\tif ( pLen > 0) {\r\n\t\t\t\t\trecvdata = dgpacket.getData();\r\n\t\t\t\t\tpDat = new byte[pLen];\r\n\t\t\t\t\tSystem.arraycopy(recvdata, 0, pDat, 0, pLen);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t\t// SocketException / InterruptedIOException / IOException\r\n\t\t\t\tpDat = null;\r\n\t\t\t}\r\n\t\t\treturn pDat;\r\n\t\t}", "@Override\r\n\tpublic List<message> getReadMessages(Integer receive_id) {\n\t\tList<message> messageList=null;\r\n\t\tString sql=\"select * from message where receive_id=? and isread=1\";\r\n\t\ttry {\r\n\t\t\tmessageList=getObjectList(conn, sql,receive_id);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(messageList.size()==0) {\r\n\t\t\treturn null;\r\n\t\t}else\r\n\t\treturn messageList;\r\n\t}", "public Message receiveMessage() {\r\n\t\treturn messages.poll();\r\n\t}", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage> \n getMessagesList();", "@Override\n public Json readFormStream() throws IOException {\n int channelsRead = selector.select();\n\n readBuffer.clear();\n readBuffer.limit(4);\n while (readBuffer.hasRemaining()) {\n if(socketChannel.read(readBuffer) == -1) throw new EOFException(\"Socket closed, read returned -1\");\n }\n readBuffer.rewind();\n int length = readBuffer.getInt();\n\n readBuffer.clear();\n readBuffer.limit(length);\n while (readBuffer.hasRemaining()) {\n if(socketChannel.read(readBuffer) == -1) throw new EOFException(\"Socket closed, read returned -1\");\n }\n\n readBuffer.flip();\n\n byte[] bytesForString = new byte[length];\n readBuffer.get(bytesForString, 0, length);\n String jsonMsg = new String(bytesForString, \"UTF-8\");\n\n // System.err.println(\"<-- \" + jsonMsg);\n return Json.read(jsonMsg);\n }", "List<Message> listMessages(final long sinceMessageId,\n final int count);", "public void run()\n\t{\n\t\t// while we have this stream\n\t\twhile(m_keyboardStream != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// only if someone is requesting us to read do we do so...\n\t\t\t\tif (m_keyboardReadRequest)\n\t\t\t\t{\n\t\t\t\t\t// block on keyboard input and put it onto the end of the queue\n\t\t\t\t\tString s = m_keyboardStream.readLine();\n\t\t\t\t\tm_keyboardInput.add(s);\n\n\t\t\t\t\t// fullfilled request, now notify blocking thread.\n\t\t\t\t\tm_keyboardReadRequest = false;\n\t\t\t\t\tsynchronized(this) { notifyAll(); }\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttry { Thread.sleep(50); } catch(InterruptedException ie) {}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n//\t\t\t\tio.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinput = new DataInputStream(socket.getInputStream());\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\twhile (input != null) {\n\t\t\t\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\t\t\t\tdecode(input.readUTF());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n\tpublic List<Message> getMessagesForUser(String username) {\n\t\treturn null;\n\t}", "public List<ChatMessage> getChatMessages() {\n logger.info(\"**START** getChatMessages \");\n return messagesMapper.findAllMessages();\n }", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();" ]
[ "0.7096089", "0.63669795", "0.60671085", "0.60451096", "0.5956101", "0.59490937", "0.58848166", "0.5803452", "0.57419926", "0.5715593", "0.56360763", "0.56277263", "0.55421513", "0.55282587", "0.5523958", "0.55233717", "0.55051184", "0.5457833", "0.5451947", "0.5446347", "0.5433471", "0.5394632", "0.5370754", "0.5368558", "0.5365062", "0.5362072", "0.5350304", "0.531446", "0.5304824", "0.52896917", "0.52790517", "0.5274073", "0.5269231", "0.52682", "0.52663755", "0.52636594", "0.52351904", "0.5233999", "0.5229456", "0.52269346", "0.52200955", "0.52079517", "0.52039564", "0.5187034", "0.5165969", "0.5141691", "0.5132163", "0.5123129", "0.51222396", "0.512199", "0.5121934", "0.5119389", "0.5112643", "0.5099363", "0.50959337", "0.50923645", "0.5082541", "0.50744665", "0.5070896", "0.50680846", "0.50676435", "0.50520205", "0.5051045", "0.5037835", "0.5037621", "0.50278836", "0.5027241", "0.50245535", "0.50176835", "0.5009211", "0.5008998", "0.5005848", "0.49964264", "0.4993745", "0.49928525", "0.49850482", "0.49824527", "0.49752608", "0.49741802", "0.4964411", "0.49502468", "0.4937527", "0.49364233", "0.4935906", "0.49343655", "0.4933382", "0.49332142", "0.49249747", "0.49086538", "0.49066684", "0.49040696", "0.48972577", "0.48920724", "0.4879336", "0.48750448", "0.4871415", "0.4871415", "0.4871415", "0.4871415", "0.4871415" ]
0.65506864
1
Return messages from input stream. This call is blocking until at least 1 message exists. Number of messages returned may be less than requested. It is up to the caller to parse the byte array for individual messages. Only whole messages are returned in the byte stream.
public byte[] readBytes(int inNumberMessages, int[] outNumberMessages) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ITCMessage[] readMessages(int inNumberMessages) throws IOException;", "public byte[] readBytes(int inNumberMessages) throws IOException;", "ReadResponseMessage fetchAllMessages();", "public byte[] readBytes(int inNumberMessages, long timeoutMs) throws IOException, TimeoutException;", "private common.messages.KVMessage receiveMessage() throws IOException {\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tbyte[] msgBytes = null, tmp = null;\r\n\t\tbyte[] bufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\r\n\t\t/* read first char from stream */\r\n\t\tbyte read = (byte) input.read();\t\r\n\t\tboolean reading = true;\r\n\t\t\r\n//\t\tlogger.info(\"First Char: \" + read);\r\n//\t\tCheck if stream is closed (read returns -1)\r\n//\t\tif (read == -1){\r\n//\t\t\tTextMessage msg = new TextMessage(\"\");\r\n//\t\t\treturn msg;\r\n//\t\t}\r\n\r\n\t\twhile(/*read != 13 && */ read != 10 && read !=-1 && reading) {/* CR, LF, error */\r\n\t\t\t/* if buffer filled, copy to msg array */\r\n\t\t\tif(index == BUFFER_SIZE) {\r\n\t\t\t\tif(msgBytes == null){\r\n\t\t\t\t\ttmp = new byte[BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, BUFFER_SIZE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttmp = new byte[msgBytes.length + BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length,\r\n\t\t\t\t\t\t\tBUFFER_SIZE);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmsgBytes = tmp;\r\n\t\t\t\tbufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\t\tindex = 0;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\t/* only read valid characters, i.e. letters and constants */\r\n\t\t\tbufferBytes[index] = read;\r\n\t\t\tindex++;\r\n\t\t\t\r\n\t\t\t/* stop reading is DROP_SIZE is reached */\r\n\t\t\tif(msgBytes != null && msgBytes.length + index >= DROP_SIZE) {\r\n\t\t\t\treading = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* read next char from stream */\r\n\t\t\tread = (byte) input.read();\r\n\t\t}\r\n\t\t\r\n\t\tif(msgBytes == null){\r\n\t\t\ttmp = new byte[index];\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, index);\r\n\t\t} else {\r\n\t\t\ttmp = new byte[msgBytes.length + index];\r\n\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length, index);\r\n\t\t}\r\n\t\t\r\n\t\tmsgBytes = tmp;\r\n\t\t\r\n\t\t/* build final String */\r\n\t\tcommon.messages.KVMessage msg = new common.messages.KVAdminMessage(msgBytes);\r\n\t\tlogger.debug(\"RECEIVE \\t<\" \r\n\t\t\t\t+ clientSocket.getInetAddress().getHostAddress() + \":\" \r\n\t\t\t\t+ clientSocket.getPort() + \">: '\" \r\n\t\t\t\t+ msg.getMsg().trim() + \"'\");\r\n\t\treturn msg;\r\n }", "public int peekMessages() throws IOException;", "public byte[] ReadMessage()\r\n {\r\n try {\r\n byte[] read = new byte[in.read()];\r\n for(int i = 0; i < read.length; i++)\r\n read[i] = (byte)in.read();\r\n\r\n return read;\r\n } catch (Exception e){\r\n System.out.println(e);\r\n }\r\n return null;\r\n }", "private void parseMessages() {\n\n // Find the first delimiter in the buffer\n int inx = rx_buffer.indexOf(DELIMITER);\n\n // If there is none, exit\n if (inx == -1)\n return;\n\n // Get the complete message\n String s = rx_buffer.substring(0, inx);\n\n // Remove the message from the buffer\n rx_buffer = rx_buffer.substring(inx + 1);\n\n // Send to read handler\n sendToReadHandler(s);\n\n // Look for more complete messages\n parseMessages();\n }", "List<ChatMessage> getMessages(int roomId, int count) throws IOException;", "public void readMessages() {\n if (!this.isConnectedToClientServer){return;}\n String inputMessage = inputQueue.poll();\n if (inputMessage != null){\n try{\n ClientMessageType messageType = ClientMessageParser.parse(inputMessage);\n if (messageType == ClientMessageType.INCOMING_BALL){\n //parses the message to get a ball, which is then added to the board\n Ball ball = ClientMessageParser.parseIncomingBall(inputMessage);\n board.addBall(ball);\n }\n else if (messageType == ClientMessageType.WALL_INVISIBILITY){\n //parses the messages to find out which boundary to make invisible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallInvisibility(inputMessage, board.neighbors);\n board.makeInvisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.WALL_VISIBILITY){\n //parses the messages to find out which boundary to make visible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallVisibility(inputMessage, board.neighbors);\n board.makeVisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.DISCONNECT_CLIENT){\n disconnectFromClientAndServer();\n }\n } catch (IncorrectFormatException e){\n //don't do anything --> message is not parsed, but play on this board still continues\n }\n }\n }", "public void run() {\n\t\tString line = null;\n\t\tMessage message;\n\t\tBufferQueueElement<Message> messageList = new BufferQueueElement<Message>();\n\t\tlong t1 = System.nanoTime();\n\t long t2 = 0;\n\t\ttry {\n\t\t\twhile ((line = messageIO.readMessage()) != null) {\n\t\t\t\tt2 = System.nanoTime();\n\t\t\t\t/* Ok, we can close the stream. But process the last message list. */\n\t\t\t\tif (CLOSE_STREAM.equals(line)) {\n\t\t\t\t\tmessageList.setStreamClosed(true);\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if((t2 - t1) < ONE_SECOND) {\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t} else {\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tmessageList = new BufferQueueElement<Message>();\n\t\t\t\t\tt1 = System.nanoTime();\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public List<String> getResult()\n {\n while (!readComplete)\n {\n try\n {\n Thread.sleep(1000);\n }\n catch (InterruptedException ex)\n {\n // swallow and exit;\n }\n }\n return lines;\n }", "main.java.io.grpc.chatservice.Message getMessages(int index);", "@Override\n\tpublic List<MessagePojo> getMessageBySize(int start, int size) {\n\t\treturn null;\n\t}", "@Override\n public synchronized List<Message> receiveMessages() {\n ArrayList<Message> temp = new ArrayList<>(queuedMessages);\n queuedMessages.clear();\n return temp;\n }", "public List<InboxMessage> getMessages(GetMessagesRequest request) {\n return client.get(MESSAGES_PATH, InboxMessage.class, request).getEntries();\n }", "public synchronized String[] readChallengerMessage() {\n while ( client1.getChallengerChoice() == null ){\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n return client1.getChallengerChoice();\n }", "ReadResponseMessage fetchUserMessages(String user);", "ReadResponseMessage fetchMessagesFromUser(String user);", "public void getMessages(){\n if(GUI.getInstance().getBusiness().getCurrentChat() != null) {\n Set<? extends IMessageIn> response = GUI.getInstance().getBusiness().getCurrentChat().getMessages();\n if(response != null){\n messages.addAll(response);\n }\n }\n }", "private static List<String> getMessages(AmazonSQS sqs) {\n ReceiveMessageRequest receiveMessageRequest = new ReceiveMessageRequest(sqsURL);\n List<Message> messages = sqs.receiveMessage(receiveMessageRequest.withMessageAttributeNames(\"All\")).getMessages();\n\n List<String> filesToProcess = new ArrayList<String>();\n\n for (Message message : messages) {\n // System.out.println(\" Message\");\n System.out.println(\" MessageId: \" + message.getMessageId());\n System.out.println(\" ReceiptHandle: \" + message.getReceiptHandle());\n System.out.println(\" MD5OfBody: \" + message.getMD5OfBody());\n System.out.println(\" Body: \" + message.getBody());\n for (Entry<String, MessageAttributeValue> entry : message.getMessageAttributes().entrySet()) {\n// System.out.println(\" Attribute\");\n// System.out.println(\" Name: \" + entry.getKey());\n// System.out.println(\" Value: \" + entry.getValue().getStringValue());\n filesToProcess.add(entry.getValue().getStringValue());\n }\n// System.out.println(\"Deleting a message.\\n\");\n String messageReceiptHandle = message.getReceiptHandle();\n sqs.deleteMessage(new DeleteMessageRequest(sqsURL, messageReceiptHandle));\n }\n return filesToProcess;\n }", "@Override\n synchronized public void run() {\n try {\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(inputStream, Charset.defaultCharset())\n );\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n this.result.add(line);\n }\n } catch (IOException ex) {\n log.error(\"Failed to consume and display the input stream of type \" + streamType + \".\", ex);\n } finally {\n this.isStopped = true;\n notify();\n }\n }", "public synchronized String read() {\n\t\tString message = \"\";\n\n\t\tif(content.size() > 0 )\n\t\t\tmessage = content.get(0);\n\t\tnotify();\n\n\t\treturn message;\n }", "private void receive() {\n\t\tMQGetMessageOptions gmo = new MQGetMessageOptions();\n\t\tif (keepMessages) {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t| MQConstants.MQGMO_BROWSE_FIRST;\n\t\t} else {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2;\n\t\t\tif (syncPoint) {\n\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t}\n\t\t}\n\t\tgmo.matchOptions = MQConstants.MQMO_NONE;\n\t\tgmo.waitInterval = this.waitInterval;\n\n\t\ttry {\n\t\t\tint lastSeqNo = 0;\n\t\t\tlong lastTs = 0;\n\t\t\tint messagecounter = 0;\n\t\t\twhile (true) {\n\t\t\t\tif (!(qmgr.isConnected())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\tif (!(queue.isOpen())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\thaltFileExists();\n\t\t\t\tif (haltStatus) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t} else {\n\t\t\t\t\treadQueue = true;\n\t\t\t\t}\n\t\t\t\tint queueNotInhibited = queue.getInhibitGet();\n\t\t\t\tif (queueNotInhibited == MQConstants.MQQA_GET_INHIBITED) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t}\n\t\t\t\tproduceCounts();\n\t\t\t\tif (readQueue) {\n\t\t\t\t\tqueueDepth = queue.getCurrentDepth();\n\t\t\t\t\tif (queueDepth != 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\trcvMessage = new MQMessage();\n\t\t\t\t\t\t\tif (mqccsid != 0) {\n\t\t\t\t\t\t\t\trcvMessage.characterSet = mqccsid;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tqueue.get(rcvMessage, gmo);\n\t\t\t\t\t\t\trecordCountsRcvd++;\n\t\t\t\t\t\t\tstrLen = rcvMessage.getMessageLength();\n\t\t\t\t\t\t\tstrData = new byte[strLen];\n\t\t\t\t\t\t\trcvMessage.readFully(strData);\n\t\t\t\t\t\t\tmessagePutMs = rcvMessage.putDateTime.getTimeInMillis();\n\t\t\t\t\t\t\tseqNo = rcvMessage.messageSequenceNumber;\n\t\t\t\t\t\t\tif (lastTs == messagePutMs && seqNo == 1) {\n\t\t\t\t\t\t\t\tseqNo = lastSeqNo + seqNo;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmsgText = new String(strData);\n\t\t\t\t\t\t\tjsonOut = new JSONArray();\n\t\t\t\t\t\t\tjsonKey = new JSONObject();\n\t\t\t\t\t\t\tjsonValue = new JSONObject();\n\t\t\t\t\t\t\tjsonKey.put(\"key\", Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tjsonValue.put(\"value\", msgText);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgKey: \" + Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgValue: \" + msgText);\n\t\t\t\t\t\t\tjsonOut.put(jsonKey);\n\t\t\t\t\t\t\tjsonOut.put(jsonValue);\n\t\t\t\t\t\t\tmsgList.add(jsonOut.toString());\n\t\t\t\t\t\t\tlastTs = messagePutMs;\n\t\t\t\t\t\t\tlastSeqNo = seqNo;\n\t\t\t\t\t\t\tmessagecounter++;\n\t\t\t\t\t\t\t// move cursor to next message\n\t\t\t\t\t\t\tif (msgList.size() > maxUMsg / 2) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (msgList.size() > queueDepth) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (keepMessages) {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT | MQConstants.MQGMO_BROWSE_NEXT;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT;\n\t\t\t\t\t\t\t\tif (syncPoint) {\n\t\t\t\t\t\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (MQException e) {\n\t\t\t\t\t\t\tif (e.reasonCode == MQConstants.MQRC_NO_MSG_AVAILABLE) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else if (e.reasonCode == MQConstants.MQRC_SYNCPOINT_LIMIT_REACHED) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime() + \" - MQ Reason Code: \" + e.reasonCode);\n\t\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tSystem.out.println(Calendar.getInstance().getTime() + \" - Error: \" + ioe.getMessage());\n\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t}\n\t\t\t\t\tthreadWait();\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Throwable t) {\n\t\t\t// restart if there is any other error\n\t\t\trestart(Calendar.getInstance().getTime() + \" - Error receiving data from Queue or QMGR\", t);\n\t\t}\n\n\t}", "public static byte[] readAll(InputStream is) {\n\t\treturn readAll(is, 1024);\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Waiting for input\");\n\t\t// Handle reading data until we exit\n\t\tByteBuffer buf = ByteBuffer.allocate(2048);\n\t\twhile (!stopper && socketChannel.isOpen()) {\n\t\t\tSystem.out.println(\"Reading the socket\");\n\t\t\ttry {\n\t\t\t\t// No input from the user in 60 seconds results in kicking them\n\t\t\t\t// out\n\t\t\t\tint bytesRead = socketChannel.read(buf).get(60, TimeUnit.SECONDS);\n\t\t\t\t// ByteBuffer dst = ByteBuffer.allocate(bytesRead);\n\t\t\t\t// engine.unwrap(buf, dst);\n\t\t\t\tSystem.out.println(\"Got data of size: \" + bytesRead);\n\t\t\t\t// convert to proto\n\t\t\t\tcommonUIElements.MessageProtos.Message msg = commonUIElements.MessageProtos.Message\n\t\t\t\t\t\t.parseFrom(Arrays.copyOf(buf.array(), bytesRead));\n\t\t\t\tSystem.out.println(\"RXed: \" + msg.toString());\n\t\t\t\tif (!msg.getName().equals(name)) {\n\t\t\t\t\tname = msg.getName();\n\t\t\t\t}\n\t\t\t\t// add data to the message queue\n\t\t\t\tif (SignatureSystem.verifySignature(msg.getSignature(), msg.getMessage(), msg.getName(), trustStore)) {\n\t\t\t\t\tmessages.put(\n\t\t\t\t\t\t\tnew Message(msg.getSender(), msg.getMessage(), msg.getSignature(), msg.getClearance()));\n\t\t\t\t} else {\n\t\t\t\t\tMessage error = new Message(msg.getSender(), \"Error: signture is invalid\", msg.getSignature(),\n\t\t\t\t\t\t\tmsg.getClearance());\n\t\t\t\t\terror.error = true;\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t}\n\t\t\t\t// clear the buffer for the next message\n\t\t\t\tbuf.clear();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tSystem.err.println(\"Failed to add message to the queue: \" + e.getMessage());\n\t\t\t\tMessage error = new Message(this.name, \"Disconnected\", \"\", 1);\n\t\t\t\terror.error = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (TimeoutException e) {\n\t\t\t\tSystem.err.println(\"Timeout hit, waiting again\");\n\t\t\t\tMessage error = new Message(this.name, \"Client: \" + this.name + \" has timed out\", \"\", 1);\n\t\t\t\terror.kill = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\tSystem.err.println(\"Execution error, breaking out of loop\");\n\t\t\t\tbreak;\n\t\t\t} catch (InvalidProtocolBufferException e) {\n\t\t\t\tSystem.err.println(\"Invalid protobuf received: \" + e.getMessage());\n\t\t\t\t// } catch(SSLException e) {\n\t\t\t\t// System.err.println(\"SSL Failed: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tsocketChannel.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Failed to close socket while exiting\");\n\t\t}\n\t\tSystem.out.println(\"Exiting thread...\");\n\t}", "public abstract Message[] getMessages(MessageRetrievalListener listener)\n throws MessagingException;", "public Iterator getMessages() {\r\n\t\treturn messages == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(messages.values());\r\n\t}", "public FermatMessage readNextMessage() {\n if(!pendingIncomingMessages.isEmpty()) {\n\n /*\n * Return the next message\n */\n return pendingIncomingMessages.iterator().next();\n\n }else {\n\n //TODO: CREATE A APPROPRIATE EXCEPTION\n throw new RuntimeException();\n }\n\n }", "public Queue<Object> inboundMessages() {\n/* 254 */ if (this.inboundMessages == null) {\n/* 255 */ this.inboundMessages = new ArrayDeque();\n/* */ }\n/* 257 */ return this.inboundMessages;\n/* */ }", "com.polytech.spik.protocol.SpikMessages.Sms getMessages(int index);", "private final byte[] readBuffer( int size ) throws IOException {\n byte[] buffer = new byte[ size ];\n\n int read = 0;\n while ( read < size ) {\n int next = dataSource.read( buffer, read, size - read );\n if ( next < 0 ) throw new IOException( \"End of Stream\" );\n read += next;\n\t}\n return buffer;\n }", "public String[] getMsg() {\n String[] parts = null;\n try {\n String cmd = MessageQueue.take();\n parts = cmd.split(\"<<\");\n } catch (Exception e) {\n if (debug == 1) {\n e.printStackTrace();\n }\n }\n return parts;\n }", "public AsyncResult<IQ> requestAllMessages() {\r\n return xmppSession.query(IQ.get(new OfflineMessage(true, false)));\r\n }", "@Override\n\tpublic List<Message> findMessages(long max, int count) {\n\t\treturn null;\n\t}", "public Machinetta.RAPInterface.InputMessages.InputMessage[] getMessages() {\n Debugger.debug(3,\"Unimplemented getMessages() being called ... \");\n return null;\n }", "protected void processMessagesOnConnection() {\n try {\n logger.info(\"Connected to \" + getConnectionName());\n state.set(StreamState.CONNECTED);\n notifyConnection();\n inputBuffer.flip();\n\n while (!Thread.currentThread().isInterrupted() && isConnected()) {\n try {\n // Find the start of message\n byte byStart = 0;\n while(byStart != START_OF_MSG && !Thread.currentThread().isInterrupted() && isConnected()) {\n byStart = nextByte(inputBuffer);\n }\n\n // and then make sure there are enough bytes and read the protocol\n readCompleteMessage(inputBuffer);\n if(inputBuffer.get() != protocol.getKeyIdentifier()) throw new TcProtocolException(\"Bad protocol\");\n\n logByteBuffer(\"Line read from stream\", inputBuffer);\n\n // now we take a shallow buffer copy and process the message\n MenuCommand mc = protocol.fromChannel(inputBuffer);\n logger.info(\"Command received: \" + mc);\n notifyListeners(mc);\n }\n catch(TcProtocolException ex) {\n // a protocol problem shouldn't drop the connection\n logger.warn(\"Probable Bad message reason='{}' Remote={} \", ex.getMessage(), getConnectionName());\n }\n }\n logger.info(\"Disconnected from \" + getConnectionName());\n } catch (Exception e) {\n logger.error(\"Problem with connectivity on \" + getConnectionName(), e);\n }\n finally {\n close();\n }\n }", "public void start(){\n\t\tdo{\n\t\t\tMessage<T> msg= input.read();\n\t\t\tif (!msg.getQuit() && !msg.getFail() ){\n\t\t\t\tconsume(msg.getContent());\n\t\t\t}\n\t\t\tif (msg.getQuit()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(true);\n\t\t\n\t}", "protected Object readMessage(InputStream inputStream) throws IOException{\n PushbackInputStream pin = (PushbackInputStream)inputStream;\n StringBuffer buf = new StringBuffer();\n \n boolean lineStartsWithPrompt = false;\n while (true){\n int b = pin.read();\n \n if (b < 0){\n if (buf.length() == 0) // Clean disconnection\n return null;\n break;\n }\n \n // End of line\n if (b == '\\n'){\n // FICS uses \\n\\r for an end-of-line marker!?\n // Eat the following '\\r', if there is one\n b = pin.read();\n if ((b > 0) && (b != '\\r'))\n pin.unread(b);\n \n // Ignore all-prompt lines\n if (lineStartsWithPrompt && (buf.length() == 0)){\n lineStartsWithPrompt = false;\n continue;\n }\n else\n break;\n }\n \n buf.append((char)b);\n \n // Filter out the prompt\n if (buf.toString().equals(\"fics% \")){\n buf.setLength(0);\n lineStartsWithPrompt = true;\n }\n }\n \n return buf.toString();\n }", "java.util.List<com.polytech.spik.protocol.SpikMessages.Sms> \n getMessagesList();", "com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage getMessages(int index);", "private Collection<Message> fetchMessages(Folder folder, Date minDate, Matcher matcher)\n\t\tthrows MessagingException {\n\t\t// Search term not fully implemented on mail servers, but can prevent fetching all email\n\t\tSearchTerm searchTerm = new SentDateTerm(ComparisonTerm.GT, minDate);\n\t\tMessage[] messages = folder.search(searchTerm);\n\t\tlogger.info(\"{} email(s) returned\", messages.length);\n\t\tbulkFetchMessageEnvelopes(folder, messages);\n\t\tList<Message> filteredMessages = new ArrayList<>();\n\t\tfor (Message message : messages) {\n\t\t\tDate sentDate = message.getSentDate();\n\t\t\tif (minDate.after(sentDate)) continue;\n\t\t\tif (!matcher.matches(message)) continue;\n\t\t\tfilteredMessages.add(message);\n\t\t}\n\t\treturn filteredMessages;\n\t}", "@Override\n\tpublic Iterator<SendMessageInfo> getPendingMessages() throws Exception {\n\t\treturn null;\n\t}", "private static ArrayList<Message> ReadFile(Scanner sc) {\t\n\t\tArrayList<Message> messageList = new ArrayList<Message>();\n\t\t\n\t\t/* Iterating over each string in file and creating\n\t\t * Message object with file contents\n\t\t*/\n\t\twhile (sc.hasNextLine()) {\n\t\t\tString line = sc.nextLine();\n\t\t\tScanner lineScanner = new Scanner(line);\n\t\t\twhile (lineScanner.hasNext()) {\n\t\t\t\ttry {\n\t\t\t\t\tString received = lineScanner.next(); \n\t\t\t\t\tString sent = lineScanner.next();\n\t\t\t\t\tString node1 = lineScanner.next();\n\t\t\t\t\tString notification = lineScanner.next();\n\t\t\t\t\tString node2 = null;\n\t\t\t\t\tif (lineScanner.hasNext()) {\n\t\t\t\t\t\tnode2 = lineScanner.next();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlong receivedVal = Long.parseLong(received);\n\t\t\t\t\tlong sentVal = Long.parseLong(sent);\n\t\t\t\t\tMessage message = new Message(receivedVal, sentVal, node1,\n\t\t\t\t\t\t\tnotification, node2);\n\t\t\t\t\t\n\t\t\t\t\tmessageList.add(message);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tlineScanner.close();\n\t\t}\n\t\treturn messageList;\n\t}", "public static Queue<String> linesFromInput(SimpleReader input) {\n assert input != null : \"Violation of: input is not null\";\n assert input.isOpen() : \"Violation of: input.is_open\";\n\n Queue<String> lines = new Queue1L<String>();\n while (!input.atEOS()) {\n String text = input.nextLine(); // reads next line\n lines.enqueue(text);\n\n }\n return lines;\n }", "private void startConsumeMsg() {\n try {\n ConsumerRecords<byte[], byte[]> records;\n while (true) {\n records = kafkaConsumer.poll(Long.MAX_VALUE);\n for (ConsumerRecord<byte[], byte[]> record : records) {\n processMsg(record);\n kafkaConsumer.commitSync();\n LOG.info(\"Single consumer consume the message {}th\", counter.incrementAndGet());\n }\n\n }\n } catch (Exception ex) {\n LOG.error(\"Consumer get message error {}\", ex);\n } finally {\n LOG.info(\"Shutting down consumer ...\");\n shutdown();\n }\n }", "public com.polytech.spik.protocol.SpikMessages.Sms getMessages(int index) {\n if (messagesBuilder_ == null) {\n return messages_.get(index);\n } else {\n return messagesBuilder_.getMessage(index);\n }\n }", "public ArrayList<Message> readMessages() throws FileNotFoundException {\n\t\tArrayList<Message> allMessages = new ArrayList<Message>();\n\t\tScanner keyboardIn = new Scanner(new File(filePath));\n\t\tkeyboardIn.useDelimiter(\"/n\");\n\t\twhile (keyboardIn.hasNextLine()) {\n\t\t\tString[] messageDataInArray = keyboardIn.nextLine().split(\"\\t\");\n\t\t\tString messageName = messageDataInArray[0];\n\t\t\tString messageDescription = messageDataInArray[1];\n\t\t\tMessage message = new Message(messageName,messageDescription);\n\t\t\tallMessages.add(message);\t\t\n\t\t}\n\t\tkeyboardIn.close();\t\t\n\t\treturn allMessages;\n\t}", "@Override\n public String[] getAllMessages() {\n return messages.toArray(new String[0]);\n }", "public byte [] readMessageAsByte() {\r\n byte [] data = new byte[256];\r\n int length;\r\n\r\n try {\r\n length = in.readInt();\r\n if (length > 0) {\r\n data = new byte[length];\r\n in.readFully(data, 0, data.length);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return data;\r\n }", "@GetMapping(\"/msgbox/get/{username}\")\n\tIterable<msgbox> getMsgs(@PathVariable String username){\n\t\treturn this.getUserMsgs(username);\n\t}", "public Collection<Message> findNextForSending();", "public com.polytech.spik.protocol.SpikMessages.Sms getMessages(int index) {\n return messages_.get(index);\n }", "@Override\n public String[] getMessages(int begin, int end) {\n if (begin > end)\n throw new IllegalArgumentException(\"The begin parameter should be smaller \"\n + \"than the end parameter\");\n if (begin < 0 || end >= messages.size())\n throw new IllegalArgumentException(\"The given begin-end interval is not \"\n + \"a subset of the index-range of the messages.\");\n List<String> result = new ArrayList<>();\n for (int i = begin; i<=end; i++)\n result.add(messages.get(i));\n return result.toArray(new String[0]);\n }", "private byte[] receiveDataChunk(final byte[] commandApdu) {\r\n if (!dataInReady.get()) {\r\n // Previously received data was not fetched yet\r\n return APDU.StatusMessage.ERR_NOT_READY;\r\n }\r\n\r\n int dataLen = commandApdu.length - APDU.Header.LEN;\r\n if (dataLen > MAX_CHUNK_SIZE)\r\n // Invalid size of input message\r\n return APDU.StatusMessage.ERR_PARAMS;\r\n else if ((dataIn.size() + dataLen) > MAX_BYTES) {\r\n // Received data is not complete; give client a new try\r\n dataIn.reset();\r\n return APDU.StatusMessage.ERR_PARAMS;\r\n }\r\n\r\n // Assembling fragmented data messages in local buffer\r\n dataIn.write(commandApdu, APDU.Header.DATA, dataLen);\r\n // Check if all data chunks are complete\r\n int nextBytes = APDU.getHeaderValue(commandApdu, APDU.Header.LC);\r\n // If incoming data message complete\r\n // - transfer data to NFC state machine to do the high-level logic\r\n // - Clean up internal buffer after that\r\n if (0 == nextBytes) {\r\n dataInReady.set(false);\r\n Log.i(TAG, \"Received data with \" + dataIn.size() + \" bytes complete.\");\r\n // Push to NFC service thread\r\n Message msg = Message.obtain(null, StatefulProtocolHandler.MSG_NFC_RECEIVED_PACKET);\r\n msg.obj = dataIn.toByteArray();\r\n msg.replyTo = mResponseMessenger;\r\n try {\r\n mNfcMessagingService.send(msg);\r\n } catch (RemoteException e) {\r\n Log.e(TAG, \"Could not send data input to NFC statemachine.\");\r\n e.printStackTrace(); // TODO: remove stacktrace\r\n }\r\n // Cleanup for new input data\r\n dataIn.reset();\r\n dataInReady.set(true);\r\n }\r\n\r\n return APDU.StatusMessage.SUCCESS;\r\n }", "public HTTPRequestResponse[] getSelectedMessages() {\r\n if(selectedMessages == null){\r\n return new HTTPRequestResponse[]{};\r\n }\r\n return selectedMessages;\r\n }", "public long getInMsgs() {\n return inMsgs.get();\n }", "private byte[] consumePayload() throws IOException {\n byte[] payload = new byte[(int) payloadLength];\n int count = 0;\n while (payloadLength > 0L) {\n payload[count] = (byte) this.read();\n count++;\n }\n return payload;\n }", "private static byte[] getDataFromInputStream(final InputStream input) throws IOException {\r\n if (input == null) {\r\n return new byte[0];\r\n }\r\n int nBytes = 0;\r\n final byte[] buffer = new byte[BUFFER_SIZE];\r\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n while ((nBytes = input.read(buffer)) != -1) {\r\n baos.write(buffer, 0, nBytes);\r\n }\r\n return baos.toByteArray();\r\n }", "private synchronized byte[] mReadBytes(InputStream oInput){\n nDataRcvd= nBytesAvailable(oInput);\n if (nDataRcvd==0)\n return null;\n byte[] buffer = new byte[nDataRcvd];\n try {\n nDataRcvd=oInput.read(buffer); //Read is a blocking operation\n } catch (IOException e) {\n e.printStackTrace();\n buffer= null;\n }\n return buffer;\n }", "private void dequeueMessages()\n\t{\n\t\twhile (_msg_queue.size() > 0)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t_ml.messageReceived( (Serializable) _msg_queue.removeFirst());\n\t\t\t}\n\t\t\tcatch (RuntimeException rte)\n\t\t\t{\n\t\t\t\trte.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "protected byte[] getNextMessage(){\n if (messages.size() > 0) {\n byte message[] = messages.get(0).clone();\n messages.remove(0);\n return message;\n } else {\n return null;\n }\n \n }", "public Message[] readUnseenMessages(EmailReceivingParameters emailReceivingParameters)\r\n\t{\r\n\t\t Message[] messages=null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t Properties properties = new Properties();\r\n\r\n\t properties.put(\"mail.pop3.host\", emailReceivingParameters.getHostName());\r\n\t properties.put(\"mail.pop3.port\", \"995\");\r\n\t properties.put(\"mail.pop3.starttls.enable\", \"true\");\r\n\t Session emailSession = Session.getDefaultInstance(properties);\r\n\t \r\n\t //create the POP3 store object and connect with the pop server\r\n\t Store store = emailSession.getStore(\"pop3s\");\r\n\r\n\t store.connect(emailReceivingParameters.getHostName(), emailReceivingParameters.getUserName(), emailReceivingParameters.getPassword());\r\n\r\n\t //create the folder object and open it\r\n\t Folder emailFolder = store.getFolder(\"INBOX\");\r\n\t emailFolder.open(Folder.READ_ONLY);\r\n\r\n\t // retrieve the messages from the folder in an array and print it\r\n\t messages = emailFolder.getMessages();\r\n\t System.out.println(\"messages.length---\" + messages.length);\r\n\r\n\t for (int i = 0, n = messages.length; i < n; i++) \r\n\t {\r\n\t Message message = messages[i];\r\n\t System.out.println(\"---------------------------------\");\r\n\t System.out.println(\"Email Number \" + (i + 1));\r\n\t System.out.println(\"Subject: \" + message.getSubject());\r\n\t System.out.println(\"From: \" + message.getFrom()[0]);\r\n\t System.out.println(\"Text: \" + message.getContent().toString());\r\n\r\n\t }\r\n\r\n\t emailFolder.close(false);\r\n\t store.close();\r\n\r\n\t } \r\n\t\t catch (NoSuchProviderException e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t } \r\n\t\t catch (MessagingException e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t } \r\n\t\t catch (Exception e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\t\treturn messages;\r\n\t}", "public if4031.common.Message getMessages(int index) {\n return messages_.get(index);\n }", "@Override\n public Optional<TcpMessage> consumeMessage() throws IOException {\n System.out.println(\"Trying to consume a message...\");\n var json = inputMessageStream.readJson();\n\n socket.shutdownInput();\n if (json.isEmpty()) {\n return Optional.empty();\n }\n return Optional.of(new TcpMessage(JsonPayload.of(json)));\n // return Optional.of(new Message<>(new JsonPayload(json)));\n }", "@Override\n public List<Message> getMessages() {\n return (List<Message>) messageRepository.findAll();\n }", "static protected byte[] readContent( InputStream in )\n \t{\n \t\tBufferedInputStream bin = in instanceof BufferedInputStream\n \t\t\t\t? (BufferedInputStream) in\n \t\t\t\t: new BufferedInputStream( in );\n \t\tByteArrayOutputStream out = new ByteArrayOutputStream( 1024 );\n \t\tbyte[] buffer = new byte[1024];\n \t\tint readSize = 0;\n \t\ttry\n \t\t{\n \t\t\treadSize = bin.read( buffer );\n \t\t\twhile ( readSize != -1 )\n \t\t\t{\n \t\t\t\tout.write( buffer, 0, readSize );\n \t\t\t\treadSize = bin.read( buffer );\n \t\t\t}\n \t\t}\n \t\tcatch ( IOException ex )\n \t\t{\n \t\t\tlogger.log( Level.SEVERE, ex.getMessage( ), ex );\n \t\t}\n \t\treturn out.toByteArray( );\n \t}", "java.util.List<main.java.io.grpc.chatservice.Message> \n getMessagesList();", "public ByteBufferMessageSet fetchMessages(PartitionMetadata partitionMetadata, String topic, long startOffset) {\n SimpleConsumer consumer = consumerMap.get(partitionMetadata.leader().id());\n ByteBufferMessageSet messageSet = fetchMessages(consumer, topic, partitionMetadata.partitionId(), startOffset);\n// simpleConsumer.close();\n return messageSet;\n }", "private InputStream getRawStream(boolean skipHeader) throws MessagingException {\n/* 155 */ InputStream rawcontent = null;\n/* */ try {\n/* 157 */ synchronized (this) {\n/* 158 */ rawcontent = this.rawData.get();\n/* 159 */ if (rawcontent == null) {\n/* 160 */ TempFile cache = this.folder.getFileCache();\n/* 161 */ if (cache != null) {\n/* 162 */ Session s = ((POP3Store)this.folder.getStore()).getSession();\n/* 163 */ if (this.folder.logger.isLoggable(Level.FINE)) {\n/* 164 */ this.folder.logger.fine(\"caching message #\" + this.msgnum + \" in temp file\");\n/* */ }\n/* 166 */ AppendStream os = cache.getAppendStream();\n/* 167 */ BufferedOutputStream bos = new BufferedOutputStream(os);\n/* */ try {\n/* 169 */ this.folder.getProtocol().retr(this.msgnum, bos);\n/* */ } finally {\n/* 171 */ bos.close();\n/* */ } \n/* 173 */ rawcontent = os.getInputStream();\n/* */ } else {\n/* 175 */ rawcontent = this.folder.getProtocol().retr(this.msgnum, (this.msgSize > 0) ? (this.msgSize + this.hdrSize) : 0);\n/* */ } \n/* */ \n/* 178 */ if (rawcontent == null) {\n/* 179 */ this.expunged = true;\n/* 180 */ throw new MessageRemovedException(\"can't retrieve message #\" + this.msgnum + \" in POP3Message.getContentStream\");\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 185 */ if (this.headers == null || ((POP3Store)this.folder.getStore()).forgetTopHeaders) {\n/* */ \n/* 187 */ this.headers = new InternetHeaders(rawcontent);\n/* 188 */ this.hdrSize = (int)((SharedInputStream)rawcontent).getPosition();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 203 */ int len, offset = 0;\n/* */ do {\n/* 205 */ len = 0;\n/* */ int c1;\n/* 207 */ while ((c1 = rawcontent.read()) >= 0 && \n/* 208 */ c1 != 10) {\n/* */ \n/* 210 */ if (c1 == 13) {\n/* */ \n/* 212 */ if (rawcontent.available() > 0) {\n/* 213 */ rawcontent.mark(1);\n/* 214 */ if (rawcontent.read() != 10) {\n/* 215 */ rawcontent.reset();\n/* */ }\n/* */ } \n/* */ \n/* */ break;\n/* */ } \n/* 221 */ len++;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 226 */ if (rawcontent.available() == 0) {\n/* */ break;\n/* */ }\n/* */ }\n/* 230 */ while (len != 0);\n/* */ \n/* */ \n/* 233 */ this.hdrSize = (int)((SharedInputStream)rawcontent).getPosition();\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 238 */ this.msgSize = rawcontent.available();\n/* */ \n/* 240 */ this.rawData = new SoftReference(rawcontent);\n/* */ } \n/* */ } \n/* 243 */ } catch (EOFException eex) {\n/* 244 */ this.folder.close(false);\n/* 245 */ throw new FolderClosedException(this.folder, eex.toString());\n/* 246 */ } catch (IOException ex) {\n/* 247 */ throw new MessagingException(\"error fetching POP3 content\", ex);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 255 */ rawcontent = ((SharedInputStream)rawcontent).newStream(skipHeader ? this.hdrSize : 0L, -1L);\n/* */ \n/* 257 */ return rawcontent;\n/* */ }", "private byte[] readBuffer( DataInputStream in ) throws IOException{\n String factory = in.readUTF();\n int count = in.readInt();\n \n ByteArrayOutputStream out = new ByteArrayOutputStream( factory.length()*4 + 4 + count );\n DataOutputStream dout = new DataOutputStream( out );\n \n dout.writeUTF( factory );\n dout.writeInt( count );\n \n for( int i = 0; i < count; i++ ){\n int read = in.read();\n if( read == -1 )\n throw new EOFException( \"unexpectetly reached end of file\" );\n dout.write( read );\n }\n \n dout.close();\n return out.toByteArray();\n }", "static byte[] readMessage() {\n byte[] msg = new byte[0];\n try {\n msg = Hex.decodeHex(\n \"000600000003000000017d010000\" +\n \"bb931fd17f85fb26e8209eb7af5747258163df29a7dd8f87fa7617963fcfa1aa\" +\n \"b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe0400\"\n );\n } catch (DecoderException e) {\n e.printStackTrace();\n }\n return msg;\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tInputStream inputStream = mSocket.getInputStream();\n\t\t\tint leng;\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tByteArrayBuffer[] data = {new ByteArrayBuffer(1024 * 32)};\n\t\t\twhile((leng = inputStream.read(buffer)) != -1 && mConected)\n\t\t\t{\n\t\t\t\tif(mConected)\n\t\t\t\t{\n\t\t\t\t\tdata[0].append(buffer, data[0].length(), leng);\n\t\t\t\t\tprocessMessage(data);\n\t\t\t\t}\n\t\t\t\telse\n\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} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(TAG, \"Cannot set InputStream\\nNetwork error\");\n\t\t\tevent.connectionLost();\n\t\t} catch (ProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tevent.connectionLost();\n\t\t}\n\t}", "public Message[] getMessages() throws MessagingException, FileNotFoundException, IOException {\n\n\n\t\ttry {\n\t\t\tmessages = folder.getMessages();\n\t\t} catch (MessagingException e) {\n\t\t\tSystem.err.println(e.getMessage());\n\n\t\t}\n\t\t\n\t\tObject content;\n\t\tString type; // type of messages contant\n\t\tfor (int i = 0; i < messages.length; i++) {\n\n\t\t\tArrayList<String> toAddress = new ArrayList();\n\t\t\tAddress addressTO[] = messages[i].getRecipients(Message.RecipientType.TO);\n\t\t\tfor (int j = 0; j < addressTO.length; j++) {\n\n\t\t\t\ttoAddress.add(addressTO[j].toString());\n\t\t\t}\n\n\t\t\tArrayList<String> copyOnAddress = new ArrayList();\n\t\t\tif (messages[i].getRecipients(Message.RecipientType.CC) != null) {\n\t\t\t\tAddress addressCC[] = messages[i].getRecipients(Message.RecipientType.CC);\n\t\t\t\tif (addressCC.length > 0) {\n\t\t\t\t\tfor (int j = 0; j < addressCC.length; j++) {\n\n\t\t\t\t\t\tcopyOnAddress.add(addressCC[j].toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrayList<String> copyHideAddress = new ArrayList();\n\t\t\tif ((messages[i].getRecipients(Message.RecipientType.BCC)) != null) {\n\t\t\t\tAddress addressBCC[] = messages[i].getRecipients(Message.RecipientType.BCC);\n\n\t\t\t\tif (addressBCC.length > 0) {\n\t\t\t\t\tfor (int j = 0; j < addressBCC.length; j++) {\n\n\t\t\t\t\t\tcopyHideAddress.add(addressBCC[j].toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tArrayList<String> fromAddress = new ArrayList();\n\t\t\tif (messages[i].getFrom() != null) {\n\t\t\t\tAddress addressFrom[] = messages[i].getFrom();\n\n\t\t\t\tif (addressFrom.length > 0) {\n\t\t\t\t\tfor (int j = 0; j < addressFrom.length; j++) {\n\t\t\t\t\t\tfromAddress.add(addressFrom[j].toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontent = messages[i].getContent();\n\t\t\tif (content instanceof String) {\n\t\t\t\ttype = \"text\"; // set message type text\n\t\t\t\t\n\t\t\t\tmessagesListInbox.add(new MessagesDate(type, messages[i].getMessageNumber(), fromAddress, toAddress, messages[i].getSubject(), messages[i].getSentDate().toGMTString(), copyOnAddress, copyHideAddress, content.toString()));\n\t\t\t}\n\t\t\tif (content instanceof Multipart) {\n\t\t\t\tMultipart mp;\n\t\t\t\tBodyPart bodyPart = null;\n\t\t\t\ttype = \"html\";\n\t\t\t\tfor (int j = 0; j < ((Multipart) content).getCount(); j++) {\n\t\t\t\t\tmp = (Multipart) content;\n\t\t\t\t\tbodyPart = mp.getBodyPart(j);\n\t\t\t\t}\n\t\t\t\tmessagesListInbox.add(new MessagesDate(type, messages[i].getMessageNumber(), fromAddress, toAddress, messages[i].getSubject(), messages[i].getSentDate().toGMTString(), copyOnAddress, copyHideAddress, bodyPart.getContent().toString()));\n\t\t\t\t\n\t\t\t}\n\n\t\t}\n\n\t\tnew SaveReadFile().saveMessages(messagesListInbox, \"Inbox\");\n\t\treturn messages;\n\t}", "private List<Message> returnMessages(Query query, String recipient) {\n List<Message> messages = new ArrayList<>();\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID id = UUID.fromString(idString);\n String text = (String) entity.getProperty(\"text\");\n long timestamp = (long) entity.getProperty(\"timestamp\");\n String user = (String) entity.getProperty(\"user\");\n recipient = recipient != null ? recipient : (String) entity.getProperty(\"recipient\");\n\n Message message = new Message(id, user, text, timestamp, recipient);\n messages.add(message);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading message.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return messages;\n }", "public <T> T readInbound() {\n/* 291 */ T message = (T)poll(this.inboundMessages);\n/* 292 */ if (message != null) {\n/* 293 */ ReferenceCountUtil.touch(message, \"Caller of readInbound() will handle the message from this point\");\n/* */ }\n/* 295 */ return message;\n/* */ }", "private void extractProcessMessagesFromBufferIntoQueue(ByteBuffer byteBuffer){\n // when this function is called, byte buffer is ready for being read\n // i.e. position should point to the last byte written\n ProcessMessage procMsg;\n while((procMsg = extractProcessMessageFromByteBuffer(byteBuffer)) != null){\n // put procMsg into queue\n receivedMessagesQueue.add(procMsg);\n }\n\n // compact buffer for further reading new data\n byteBuffer.compact();\n\n }", "synchronized A consume() {\n try {\r\n if ((noMore && slack >= 0) || consumedAll) {\r\n notifyAll();\r\n consumedAll = true;\r\n return null;\r\n }\r\n while (slack != -1) {\r\n wait();\r\n }\r\n A tmp;\r\n\r\n int bSize = CodecUtil.slackOrSize(consumerBuffer, codec);\r\n if(bSize < 0 && endOfStream) {\r\n bSize = Math.abs(bSize);\r\n }\r\n if (bSize <= 0) {\r\n slack = Math.abs(bSize);\r\n notifyAll();\r\n return null;\r\n }\r\n tmp = codec.from(consumerBuffer);\r\n totConsumed += bSize;\r\n notifyAll();\r\n return tmp;\r\n }\r\n catch (InterruptedException e) {\r\n }\r\n return null;\r\n }", "private static Optional<List<Lexeme>> getLexemes(BufferedInputStream inputStream) {\n var lexer = new Lexer(inputStream);\n\n try (lexer) {\n lexer.readToEnd();\n } catch (IOException e) {\n System.err.printf(\"Unable to read input: %s\\n\", e.getMessage());\n }\n\n return lexer.getLexemes().isEmpty() ? Optional.empty() : Optional.of(lexer.getLexemes());\n }", "protected byte[] receive() throws CommunicationException {\n try {\n byte[] result = new byte[0];\n int count;\n do {\n byte[] frame = new byte[FRAME_SIZE];\n count = in.read(frame);\n result = Bytes.concat(result, Arrays.copyOf(frame, count));\n } while (count >= FRAME_SIZE);\n log.info(\"Receive: {} bytes | {} | {}\", result.length, BytesUtils.bytesToHex(result, ' '), new String(result));\n return result;\n } catch (IOException e) {\n throw new CommunicationException(\"Receiving error\", e);\n }\n }", "@Override\n public int read() throws IOException {\n if (stream.available() > 0) {\n return stream.read();\n } else {\n layer.receiveMoreDataForHint(getHint());\n // either the stream is now filled, or we ran into a timeout\n // or the next stream is available\n return stream.read();\n }\n }", "public Vector getMessages() throws RemoteException {\r\n return messages;\r\n }", "main.java.io.grpc.chatservice.MessageOrBuilder getMessagesOrBuilder(\n int index);", "@Override\n @SuppressWarnings(\"SuspiciousSystemArraycopy\")\n public void run() {\n //while (!isInterrupted()) {\n try {\n\n //String message=\"\";\n byte[] data = new byte[1024];\n int datalen = -1;\n messageStream = new byte[]{};\n while (isRunning) {\n if ((datalen = mIn.read(data)) != -1) {\n try {\n\n byte[] truedata = new byte[datalen];\n System.arraycopy(data, 0, truedata, 0, datalen);\n if ((datalen == 4) && new String(truedata).equals(\"0000\")) {\n CommonLib.PrintScreen(systemGlobal, \"SOCK - \" + identifyState + \" received IDLE: 0000\",showLogEnum.DETAILMODE);\n } else {\n messageStream = CommonLib.concatByteArray(messageStream, truedata);\n CommonLib.PrintScreen(systemGlobal, String.format(\"SOCKET.%s REV: %s \\n\\rBUFF 1(%d): %s\", identifyState, CommonLib.getHumanFormatFromByte(truedata), messageStream.length, CommonLib.getHumanFormatFromByte(messageStream)),showLogEnum.SIMPLEMODE);\n byte[] msg = new byte[]{};\n\n HeaderProcessing headerMsg = msgheaderInfo.clone();\n if (headerMsg.initHeaderFromBytes(messageStream)) {\n\n msg = headerMsg.getMessageFromBuffer(messageStream);\n while (msg.length > 0) {\n boolean needParsing = false;\n if (headerMsg.getHeaderPart(9) != null) {\n if (headerMsg.getHeaderPart(9).getValue().toString().equals(\"00000\")) {\n needParsing = true;\n }\n } else {\n needParsing = true;\n }\n if (needParsing) {\n IsoMessage isoMsg = new IsoMessage(msg, getInstituttionCode(), headerMsg, isoCfg, instData.getLineMode());\n if (isoMsg.isMessage()) {\n isoMsg.setSeqID(CommonLib.getNextSequence());\n isoMsg.setMsgType(CommonLib.getMsgType(isoMsg.getField(0)));\n incommingqueue.add(isoMsg);\n CommonLib.PrintScreen(systemGlobal, identifyState + \" parsed: \" + isoMsg.printedMessage(), showLogEnum.DEFAULT);\n\n //Added by DUNGBTK 08.11.2010\n messageStream = CommonLib.copyByteArrayFromArray(messageStream, msg.length, messageStream.length - msg.length);\n CommonLib.PrintScreen(systemGlobal, String.format(\"SOCKET.%s BUFF 2(%d): %s\", identifyState, messageStream.length, CommonLib.getHumanFormatFromByte(messageStream)), showLogEnum.SIMPLEMODE);\n //msg = CommonLib.getMsgFromBuffer(messageStream, msgheaderInfo);\n headerMsg = msgheaderInfo.clone();\n headerMsg.initHeaderFromBytes(messageStream);\n msg = headerMsg.getMessageFromBuffer(messageStream);\n } else {\n CommonLib.PrintScreen(systemGlobal, \"ERR SOCK - \" + identifyState + \" parsing (close connection): \" + CommonLib.asHex(msg), showLogEnum.SIMPLEMODE);\n isRunning = false;\n mServerDispatcher.deleteClient(mClientInfo);\n break;\n }\n } else {\n CommonLib.PrintScreen(systemGlobal, \"DROP BY HEADER - \" + identifyState + CommonLib.asHex(msg), showLogEnum.DETAILMODE);\n messageStream = CommonLib.copyByteArrayFromArray(messageStream, msg.length, messageStream.length - msg.length);\n CommonLib.PrintScreen(systemGlobal, String.format(\"SOCKET.%s BUFF 2(%d): %s\", identifyState, messageStream.length, CommonLib.getHumanFormatFromByte(messageStream)), showLogEnum.DETAILMODE);\n\n headerMsg = msgheaderInfo.clone();\n headerMsg.initHeaderFromBytes(messageStream);\n msg = headerMsg.getMessageFromBuffer(messageStream);\n }\n\n }\n if (messageStream.length > 0) {\n CommonLib.PrintScreen(systemGlobal, String.format(\"SOCKET.%s BUFF 3(%d): %s\", identifyState, messageStream.length, CommonLib.getHumanFormatFromByte(messageStream)),showLogEnum.DETAILMODE);\n }\n }\n }\n\n } catch (Exception e) {\n messageStream = new byte[]{};\n CommonLib.PrintScreen(systemGlobal, \"ERR SOCK \" + identifyState + \" data error (close connection): \" + e.getMessage(),showLogEnum.DETAILMODE);\n\n isRunning = false;\n mServerDispatcher.deleteClient(mClientInfo);\n break;\n }\n } else {\n CommonLib.PrintScreen(systemGlobal, \"ERR SOCK \" + identifyState + \" is interrupted..\",showLogEnum.DETAILMODE);\n isRunning = false;\n mServerDispatcher.deleteClient(mClientInfo);\n break;\n }\n }\n //--Thread.sleep(GlobalObject.SystemParas.getIntValue(\"VNBC_SOCK_RUNNING_INTEVAL\"));\n\n } catch (Exception ex) {\n isRunning = false;\n CommonLib.PrintScreen(systemGlobal, \"ERR SOCK \" + identifyState + \": Connection error\",showLogEnum.DETAILMODE);\n }\n //Communication is broken. Interrupt both listener and sender threads\n\n }", "public byte[] receiveMessage() throws IllegalStateException {\r\n\t\t\tif ( currHostPort == null ) {\r\n\t\t\t\tthrow new IllegalStateException(\"No iterator element.\");\r\n\t\t\t}\r\n\t\t\tbyte[] pDat = null;\r\n\t\t\tbyte[] recvdata = new byte[512];\r\n\t\t\tdgpacket = new DatagramPacket(recvdata, 512);\r\n\t\t\ttry {\r\n\t\t\t\tsocket.receive(dgpacket);\r\n\t\t\t\tpLen = dgpacket.getLength();\r\n\t\t\t\tif ( pLen > 0) {\r\n\t\t\t\t\trecvdata = dgpacket.getData();\r\n\t\t\t\t\tpDat = new byte[pLen];\r\n\t\t\t\t\tSystem.arraycopy(recvdata, 0, pDat, 0, pLen);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t\t// SocketException / InterruptedIOException / IOException\r\n\t\t\t\tpDat = null;\r\n\t\t\t}\r\n\t\t\treturn pDat;\r\n\t\t}", "@Override\r\n\tpublic List<ChatMessageModel> getMessages(int messageIndex) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic List<message> getReadMessages(Integer receive_id) {\n\t\tList<message> messageList=null;\r\n\t\tString sql=\"select * from message where receive_id=? and isread=1\";\r\n\t\ttry {\r\n\t\t\tmessageList=getObjectList(conn, sql,receive_id);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(messageList.size()==0) {\r\n\t\t\treturn null;\r\n\t\t}else\r\n\t\treturn messageList;\r\n\t}", "public Message receiveMessage() {\r\n\t\treturn messages.poll();\r\n\t}", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage> \n getMessagesList();", "@Override\n public Json readFormStream() throws IOException {\n int channelsRead = selector.select();\n\n readBuffer.clear();\n readBuffer.limit(4);\n while (readBuffer.hasRemaining()) {\n if(socketChannel.read(readBuffer) == -1) throw new EOFException(\"Socket closed, read returned -1\");\n }\n readBuffer.rewind();\n int length = readBuffer.getInt();\n\n readBuffer.clear();\n readBuffer.limit(length);\n while (readBuffer.hasRemaining()) {\n if(socketChannel.read(readBuffer) == -1) throw new EOFException(\"Socket closed, read returned -1\");\n }\n\n readBuffer.flip();\n\n byte[] bytesForString = new byte[length];\n readBuffer.get(bytesForString, 0, length);\n String jsonMsg = new String(bytesForString, \"UTF-8\");\n\n // System.err.println(\"<-- \" + jsonMsg);\n return Json.read(jsonMsg);\n }", "List<Message> listMessages(final long sinceMessageId,\n final int count);", "public void run()\n\t{\n\t\t// while we have this stream\n\t\twhile(m_keyboardStream != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// only if someone is requesting us to read do we do so...\n\t\t\t\tif (m_keyboardReadRequest)\n\t\t\t\t{\n\t\t\t\t\t// block on keyboard input and put it onto the end of the queue\n\t\t\t\t\tString s = m_keyboardStream.readLine();\n\t\t\t\t\tm_keyboardInput.add(s);\n\n\t\t\t\t\t// fullfilled request, now notify blocking thread.\n\t\t\t\t\tm_keyboardReadRequest = false;\n\t\t\t\t\tsynchronized(this) { notifyAll(); }\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttry { Thread.sleep(50); } catch(InterruptedException ie) {}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n//\t\t\t\tio.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinput = new DataInputStream(socket.getInputStream());\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\twhile (input != null) {\n\t\t\t\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\t\t\t\tdecode(input.readUTF());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n\tpublic List<Message> getMessagesForUser(String username) {\n\t\treturn null;\n\t}", "public List<ChatMessage> getChatMessages() {\n logger.info(\"**START** getChatMessages \");\n return messagesMapper.findAllMessages();\n }", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();" ]
[ "0.7095924", "0.6551664", "0.6367767", "0.6068183", "0.60471994", "0.5949116", "0.588721", "0.5804798", "0.5741641", "0.5715879", "0.563594", "0.5629948", "0.55423754", "0.5527419", "0.5526319", "0.552293", "0.5506361", "0.5457359", "0.5451465", "0.5446399", "0.54335934", "0.5395564", "0.53717166", "0.53689855", "0.5365179", "0.53629416", "0.53520304", "0.53155434", "0.53064966", "0.52906805", "0.52792734", "0.52751225", "0.5270223", "0.52700686", "0.52657944", "0.52648765", "0.5235249", "0.5232887", "0.52296335", "0.5227097", "0.5221385", "0.5208584", "0.52062035", "0.51874894", "0.5165223", "0.5140258", "0.5133336", "0.5125025", "0.512429", "0.51242113", "0.5122333", "0.5120555", "0.51136196", "0.50999546", "0.50968844", "0.5093103", "0.5082965", "0.5076056", "0.5070837", "0.506892", "0.50680256", "0.5052991", "0.5052734", "0.50395817", "0.503824", "0.50295126", "0.5028449", "0.50246507", "0.5018037", "0.5010563", "0.5010415", "0.5007485", "0.49971586", "0.49957496", "0.49939853", "0.49863046", "0.49838552", "0.49760693", "0.4974653", "0.4966862", "0.49512604", "0.4939489", "0.4937464", "0.49364144", "0.4935825", "0.49357203", "0.49337748", "0.49271312", "0.49095964", "0.4908099", "0.4903218", "0.48971835", "0.489255", "0.4880328", "0.4876203", "0.48721203", "0.48721203", "0.48721203", "0.48721203", "0.48721203" ]
0.59569764
5
Return messages from input stream. This call is blocking until at least 1 message exists. Number of messages returned may be less than requested. It is up to the caller to parse the byte array for individual messages. Only whole messages are returned in the byte stream.
public byte[] readBytes(int inNumberMessages, long timeoutMs) throws IOException, TimeoutException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ITCMessage[] readMessages(int inNumberMessages) throws IOException;", "public byte[] readBytes(int inNumberMessages) throws IOException;", "ReadResponseMessage fetchAllMessages();", "private common.messages.KVMessage receiveMessage() throws IOException {\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tbyte[] msgBytes = null, tmp = null;\r\n\t\tbyte[] bufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\r\n\t\t/* read first char from stream */\r\n\t\tbyte read = (byte) input.read();\t\r\n\t\tboolean reading = true;\r\n\t\t\r\n//\t\tlogger.info(\"First Char: \" + read);\r\n//\t\tCheck if stream is closed (read returns -1)\r\n//\t\tif (read == -1){\r\n//\t\t\tTextMessage msg = new TextMessage(\"\");\r\n//\t\t\treturn msg;\r\n//\t\t}\r\n\r\n\t\twhile(/*read != 13 && */ read != 10 && read !=-1 && reading) {/* CR, LF, error */\r\n\t\t\t/* if buffer filled, copy to msg array */\r\n\t\t\tif(index == BUFFER_SIZE) {\r\n\t\t\t\tif(msgBytes == null){\r\n\t\t\t\t\ttmp = new byte[BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, BUFFER_SIZE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttmp = new byte[msgBytes.length + BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length,\r\n\t\t\t\t\t\t\tBUFFER_SIZE);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmsgBytes = tmp;\r\n\t\t\t\tbufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\t\tindex = 0;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\t/* only read valid characters, i.e. letters and constants */\r\n\t\t\tbufferBytes[index] = read;\r\n\t\t\tindex++;\r\n\t\t\t\r\n\t\t\t/* stop reading is DROP_SIZE is reached */\r\n\t\t\tif(msgBytes != null && msgBytes.length + index >= DROP_SIZE) {\r\n\t\t\t\treading = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* read next char from stream */\r\n\t\t\tread = (byte) input.read();\r\n\t\t}\r\n\t\t\r\n\t\tif(msgBytes == null){\r\n\t\t\ttmp = new byte[index];\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, index);\r\n\t\t} else {\r\n\t\t\ttmp = new byte[msgBytes.length + index];\r\n\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length, index);\r\n\t\t}\r\n\t\t\r\n\t\tmsgBytes = tmp;\r\n\t\t\r\n\t\t/* build final String */\r\n\t\tcommon.messages.KVMessage msg = new common.messages.KVAdminMessage(msgBytes);\r\n\t\tlogger.debug(\"RECEIVE \\t<\" \r\n\t\t\t\t+ clientSocket.getInetAddress().getHostAddress() + \":\" \r\n\t\t\t\t+ clientSocket.getPort() + \">: '\" \r\n\t\t\t\t+ msg.getMsg().trim() + \"'\");\r\n\t\treturn msg;\r\n }", "public byte[] readBytes(int inNumberMessages, int[] outNumberMessages) throws IOException;", "public int peekMessages() throws IOException;", "public byte[] ReadMessage()\r\n {\r\n try {\r\n byte[] read = new byte[in.read()];\r\n for(int i = 0; i < read.length; i++)\r\n read[i] = (byte)in.read();\r\n\r\n return read;\r\n } catch (Exception e){\r\n System.out.println(e);\r\n }\r\n return null;\r\n }", "private void parseMessages() {\n\n // Find the first delimiter in the buffer\n int inx = rx_buffer.indexOf(DELIMITER);\n\n // If there is none, exit\n if (inx == -1)\n return;\n\n // Get the complete message\n String s = rx_buffer.substring(0, inx);\n\n // Remove the message from the buffer\n rx_buffer = rx_buffer.substring(inx + 1);\n\n // Send to read handler\n sendToReadHandler(s);\n\n // Look for more complete messages\n parseMessages();\n }", "List<ChatMessage> getMessages(int roomId, int count) throws IOException;", "public void readMessages() {\n if (!this.isConnectedToClientServer){return;}\n String inputMessage = inputQueue.poll();\n if (inputMessage != null){\n try{\n ClientMessageType messageType = ClientMessageParser.parse(inputMessage);\n if (messageType == ClientMessageType.INCOMING_BALL){\n //parses the message to get a ball, which is then added to the board\n Ball ball = ClientMessageParser.parseIncomingBall(inputMessage);\n board.addBall(ball);\n }\n else if (messageType == ClientMessageType.WALL_INVISIBILITY){\n //parses the messages to find out which boundary to make invisible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallInvisibility(inputMessage, board.neighbors);\n board.makeInvisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.WALL_VISIBILITY){\n //parses the messages to find out which boundary to make visible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallVisibility(inputMessage, board.neighbors);\n board.makeVisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.DISCONNECT_CLIENT){\n disconnectFromClientAndServer();\n }\n } catch (IncorrectFormatException e){\n //don't do anything --> message is not parsed, but play on this board still continues\n }\n }\n }", "public void run() {\n\t\tString line = null;\n\t\tMessage message;\n\t\tBufferQueueElement<Message> messageList = new BufferQueueElement<Message>();\n\t\tlong t1 = System.nanoTime();\n\t long t2 = 0;\n\t\ttry {\n\t\t\twhile ((line = messageIO.readMessage()) != null) {\n\t\t\t\tt2 = System.nanoTime();\n\t\t\t\t/* Ok, we can close the stream. But process the last message list. */\n\t\t\t\tif (CLOSE_STREAM.equals(line)) {\n\t\t\t\t\tmessageList.setStreamClosed(true);\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if((t2 - t1) < ONE_SECOND) {\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t} else {\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tmessageList = new BufferQueueElement<Message>();\n\t\t\t\t\tt1 = System.nanoTime();\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public List<String> getResult()\n {\n while (!readComplete)\n {\n try\n {\n Thread.sleep(1000);\n }\n catch (InterruptedException ex)\n {\n // swallow and exit;\n }\n }\n return lines;\n }", "main.java.io.grpc.chatservice.Message getMessages(int index);", "@Override\n\tpublic List<MessagePojo> getMessageBySize(int start, int size) {\n\t\treturn null;\n\t}", "@Override\n public synchronized List<Message> receiveMessages() {\n ArrayList<Message> temp = new ArrayList<>(queuedMessages);\n queuedMessages.clear();\n return temp;\n }", "public List<InboxMessage> getMessages(GetMessagesRequest request) {\n return client.get(MESSAGES_PATH, InboxMessage.class, request).getEntries();\n }", "public synchronized String[] readChallengerMessage() {\n while ( client1.getChallengerChoice() == null ){\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n return client1.getChallengerChoice();\n }", "ReadResponseMessage fetchUserMessages(String user);", "ReadResponseMessage fetchMessagesFromUser(String user);", "public void getMessages(){\n if(GUI.getInstance().getBusiness().getCurrentChat() != null) {\n Set<? extends IMessageIn> response = GUI.getInstance().getBusiness().getCurrentChat().getMessages();\n if(response != null){\n messages.addAll(response);\n }\n }\n }", "private static List<String> getMessages(AmazonSQS sqs) {\n ReceiveMessageRequest receiveMessageRequest = new ReceiveMessageRequest(sqsURL);\n List<Message> messages = sqs.receiveMessage(receiveMessageRequest.withMessageAttributeNames(\"All\")).getMessages();\n\n List<String> filesToProcess = new ArrayList<String>();\n\n for (Message message : messages) {\n // System.out.println(\" Message\");\n System.out.println(\" MessageId: \" + message.getMessageId());\n System.out.println(\" ReceiptHandle: \" + message.getReceiptHandle());\n System.out.println(\" MD5OfBody: \" + message.getMD5OfBody());\n System.out.println(\" Body: \" + message.getBody());\n for (Entry<String, MessageAttributeValue> entry : message.getMessageAttributes().entrySet()) {\n// System.out.println(\" Attribute\");\n// System.out.println(\" Name: \" + entry.getKey());\n// System.out.println(\" Value: \" + entry.getValue().getStringValue());\n filesToProcess.add(entry.getValue().getStringValue());\n }\n// System.out.println(\"Deleting a message.\\n\");\n String messageReceiptHandle = message.getReceiptHandle();\n sqs.deleteMessage(new DeleteMessageRequest(sqsURL, messageReceiptHandle));\n }\n return filesToProcess;\n }", "@Override\n synchronized public void run() {\n try {\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(inputStream, Charset.defaultCharset())\n );\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n this.result.add(line);\n }\n } catch (IOException ex) {\n log.error(\"Failed to consume and display the input stream of type \" + streamType + \".\", ex);\n } finally {\n this.isStopped = true;\n notify();\n }\n }", "public synchronized String read() {\n\t\tString message = \"\";\n\n\t\tif(content.size() > 0 )\n\t\t\tmessage = content.get(0);\n\t\tnotify();\n\n\t\treturn message;\n }", "private void receive() {\n\t\tMQGetMessageOptions gmo = new MQGetMessageOptions();\n\t\tif (keepMessages) {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t| MQConstants.MQGMO_BROWSE_FIRST;\n\t\t} else {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2;\n\t\t\tif (syncPoint) {\n\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t}\n\t\t}\n\t\tgmo.matchOptions = MQConstants.MQMO_NONE;\n\t\tgmo.waitInterval = this.waitInterval;\n\n\t\ttry {\n\t\t\tint lastSeqNo = 0;\n\t\t\tlong lastTs = 0;\n\t\t\tint messagecounter = 0;\n\t\t\twhile (true) {\n\t\t\t\tif (!(qmgr.isConnected())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\tif (!(queue.isOpen())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\thaltFileExists();\n\t\t\t\tif (haltStatus) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t} else {\n\t\t\t\t\treadQueue = true;\n\t\t\t\t}\n\t\t\t\tint queueNotInhibited = queue.getInhibitGet();\n\t\t\t\tif (queueNotInhibited == MQConstants.MQQA_GET_INHIBITED) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t}\n\t\t\t\tproduceCounts();\n\t\t\t\tif (readQueue) {\n\t\t\t\t\tqueueDepth = queue.getCurrentDepth();\n\t\t\t\t\tif (queueDepth != 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\trcvMessage = new MQMessage();\n\t\t\t\t\t\t\tif (mqccsid != 0) {\n\t\t\t\t\t\t\t\trcvMessage.characterSet = mqccsid;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tqueue.get(rcvMessage, gmo);\n\t\t\t\t\t\t\trecordCountsRcvd++;\n\t\t\t\t\t\t\tstrLen = rcvMessage.getMessageLength();\n\t\t\t\t\t\t\tstrData = new byte[strLen];\n\t\t\t\t\t\t\trcvMessage.readFully(strData);\n\t\t\t\t\t\t\tmessagePutMs = rcvMessage.putDateTime.getTimeInMillis();\n\t\t\t\t\t\t\tseqNo = rcvMessage.messageSequenceNumber;\n\t\t\t\t\t\t\tif (lastTs == messagePutMs && seqNo == 1) {\n\t\t\t\t\t\t\t\tseqNo = lastSeqNo + seqNo;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmsgText = new String(strData);\n\t\t\t\t\t\t\tjsonOut = new JSONArray();\n\t\t\t\t\t\t\tjsonKey = new JSONObject();\n\t\t\t\t\t\t\tjsonValue = new JSONObject();\n\t\t\t\t\t\t\tjsonKey.put(\"key\", Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tjsonValue.put(\"value\", msgText);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgKey: \" + Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgValue: \" + msgText);\n\t\t\t\t\t\t\tjsonOut.put(jsonKey);\n\t\t\t\t\t\t\tjsonOut.put(jsonValue);\n\t\t\t\t\t\t\tmsgList.add(jsonOut.toString());\n\t\t\t\t\t\t\tlastTs = messagePutMs;\n\t\t\t\t\t\t\tlastSeqNo = seqNo;\n\t\t\t\t\t\t\tmessagecounter++;\n\t\t\t\t\t\t\t// move cursor to next message\n\t\t\t\t\t\t\tif (msgList.size() > maxUMsg / 2) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (msgList.size() > queueDepth) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (keepMessages) {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT | MQConstants.MQGMO_BROWSE_NEXT;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT;\n\t\t\t\t\t\t\t\tif (syncPoint) {\n\t\t\t\t\t\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (MQException e) {\n\t\t\t\t\t\t\tif (e.reasonCode == MQConstants.MQRC_NO_MSG_AVAILABLE) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else if (e.reasonCode == MQConstants.MQRC_SYNCPOINT_LIMIT_REACHED) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime() + \" - MQ Reason Code: \" + e.reasonCode);\n\t\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tSystem.out.println(Calendar.getInstance().getTime() + \" - Error: \" + ioe.getMessage());\n\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t}\n\t\t\t\t\tthreadWait();\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Throwable t) {\n\t\t\t// restart if there is any other error\n\t\t\trestart(Calendar.getInstance().getTime() + \" - Error receiving data from Queue or QMGR\", t);\n\t\t}\n\n\t}", "public static byte[] readAll(InputStream is) {\n\t\treturn readAll(is, 1024);\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Waiting for input\");\n\t\t// Handle reading data until we exit\n\t\tByteBuffer buf = ByteBuffer.allocate(2048);\n\t\twhile (!stopper && socketChannel.isOpen()) {\n\t\t\tSystem.out.println(\"Reading the socket\");\n\t\t\ttry {\n\t\t\t\t// No input from the user in 60 seconds results in kicking them\n\t\t\t\t// out\n\t\t\t\tint bytesRead = socketChannel.read(buf).get(60, TimeUnit.SECONDS);\n\t\t\t\t// ByteBuffer dst = ByteBuffer.allocate(bytesRead);\n\t\t\t\t// engine.unwrap(buf, dst);\n\t\t\t\tSystem.out.println(\"Got data of size: \" + bytesRead);\n\t\t\t\t// convert to proto\n\t\t\t\tcommonUIElements.MessageProtos.Message msg = commonUIElements.MessageProtos.Message\n\t\t\t\t\t\t.parseFrom(Arrays.copyOf(buf.array(), bytesRead));\n\t\t\t\tSystem.out.println(\"RXed: \" + msg.toString());\n\t\t\t\tif (!msg.getName().equals(name)) {\n\t\t\t\t\tname = msg.getName();\n\t\t\t\t}\n\t\t\t\t// add data to the message queue\n\t\t\t\tif (SignatureSystem.verifySignature(msg.getSignature(), msg.getMessage(), msg.getName(), trustStore)) {\n\t\t\t\t\tmessages.put(\n\t\t\t\t\t\t\tnew Message(msg.getSender(), msg.getMessage(), msg.getSignature(), msg.getClearance()));\n\t\t\t\t} else {\n\t\t\t\t\tMessage error = new Message(msg.getSender(), \"Error: signture is invalid\", msg.getSignature(),\n\t\t\t\t\t\t\tmsg.getClearance());\n\t\t\t\t\terror.error = true;\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t}\n\t\t\t\t// clear the buffer for the next message\n\t\t\t\tbuf.clear();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tSystem.err.println(\"Failed to add message to the queue: \" + e.getMessage());\n\t\t\t\tMessage error = new Message(this.name, \"Disconnected\", \"\", 1);\n\t\t\t\terror.error = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (TimeoutException e) {\n\t\t\t\tSystem.err.println(\"Timeout hit, waiting again\");\n\t\t\t\tMessage error = new Message(this.name, \"Client: \" + this.name + \" has timed out\", \"\", 1);\n\t\t\t\terror.kill = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\tSystem.err.println(\"Execution error, breaking out of loop\");\n\t\t\t\tbreak;\n\t\t\t} catch (InvalidProtocolBufferException e) {\n\t\t\t\tSystem.err.println(\"Invalid protobuf received: \" + e.getMessage());\n\t\t\t\t// } catch(SSLException e) {\n\t\t\t\t// System.err.println(\"SSL Failed: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tsocketChannel.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Failed to close socket while exiting\");\n\t\t}\n\t\tSystem.out.println(\"Exiting thread...\");\n\t}", "public abstract Message[] getMessages(MessageRetrievalListener listener)\n throws MessagingException;", "public Iterator getMessages() {\r\n\t\treturn messages == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(messages.values());\r\n\t}", "public FermatMessage readNextMessage() {\n if(!pendingIncomingMessages.isEmpty()) {\n\n /*\n * Return the next message\n */\n return pendingIncomingMessages.iterator().next();\n\n }else {\n\n //TODO: CREATE A APPROPRIATE EXCEPTION\n throw new RuntimeException();\n }\n\n }", "public Queue<Object> inboundMessages() {\n/* 254 */ if (this.inboundMessages == null) {\n/* 255 */ this.inboundMessages = new ArrayDeque();\n/* */ }\n/* 257 */ return this.inboundMessages;\n/* */ }", "com.polytech.spik.protocol.SpikMessages.Sms getMessages(int index);", "private final byte[] readBuffer( int size ) throws IOException {\n byte[] buffer = new byte[ size ];\n\n int read = 0;\n while ( read < size ) {\n int next = dataSource.read( buffer, read, size - read );\n if ( next < 0 ) throw new IOException( \"End of Stream\" );\n read += next;\n\t}\n return buffer;\n }", "public AsyncResult<IQ> requestAllMessages() {\r\n return xmppSession.query(IQ.get(new OfflineMessage(true, false)));\r\n }", "public String[] getMsg() {\n String[] parts = null;\n try {\n String cmd = MessageQueue.take();\n parts = cmd.split(\"<<\");\n } catch (Exception e) {\n if (debug == 1) {\n e.printStackTrace();\n }\n }\n return parts;\n }", "@Override\n\tpublic List<Message> findMessages(long max, int count) {\n\t\treturn null;\n\t}", "public Machinetta.RAPInterface.InputMessages.InputMessage[] getMessages() {\n Debugger.debug(3,\"Unimplemented getMessages() being called ... \");\n return null;\n }", "protected void processMessagesOnConnection() {\n try {\n logger.info(\"Connected to \" + getConnectionName());\n state.set(StreamState.CONNECTED);\n notifyConnection();\n inputBuffer.flip();\n\n while (!Thread.currentThread().isInterrupted() && isConnected()) {\n try {\n // Find the start of message\n byte byStart = 0;\n while(byStart != START_OF_MSG && !Thread.currentThread().isInterrupted() && isConnected()) {\n byStart = nextByte(inputBuffer);\n }\n\n // and then make sure there are enough bytes and read the protocol\n readCompleteMessage(inputBuffer);\n if(inputBuffer.get() != protocol.getKeyIdentifier()) throw new TcProtocolException(\"Bad protocol\");\n\n logByteBuffer(\"Line read from stream\", inputBuffer);\n\n // now we take a shallow buffer copy and process the message\n MenuCommand mc = protocol.fromChannel(inputBuffer);\n logger.info(\"Command received: \" + mc);\n notifyListeners(mc);\n }\n catch(TcProtocolException ex) {\n // a protocol problem shouldn't drop the connection\n logger.warn(\"Probable Bad message reason='{}' Remote={} \", ex.getMessage(), getConnectionName());\n }\n }\n logger.info(\"Disconnected from \" + getConnectionName());\n } catch (Exception e) {\n logger.error(\"Problem with connectivity on \" + getConnectionName(), e);\n }\n finally {\n close();\n }\n }", "public void start(){\n\t\tdo{\n\t\t\tMessage<T> msg= input.read();\n\t\t\tif (!msg.getQuit() && !msg.getFail() ){\n\t\t\t\tconsume(msg.getContent());\n\t\t\t}\n\t\t\tif (msg.getQuit()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(true);\n\t\t\n\t}", "protected Object readMessage(InputStream inputStream) throws IOException{\n PushbackInputStream pin = (PushbackInputStream)inputStream;\n StringBuffer buf = new StringBuffer();\n \n boolean lineStartsWithPrompt = false;\n while (true){\n int b = pin.read();\n \n if (b < 0){\n if (buf.length() == 0) // Clean disconnection\n return null;\n break;\n }\n \n // End of line\n if (b == '\\n'){\n // FICS uses \\n\\r for an end-of-line marker!?\n // Eat the following '\\r', if there is one\n b = pin.read();\n if ((b > 0) && (b != '\\r'))\n pin.unread(b);\n \n // Ignore all-prompt lines\n if (lineStartsWithPrompt && (buf.length() == 0)){\n lineStartsWithPrompt = false;\n continue;\n }\n else\n break;\n }\n \n buf.append((char)b);\n \n // Filter out the prompt\n if (buf.toString().equals(\"fics% \")){\n buf.setLength(0);\n lineStartsWithPrompt = true;\n }\n }\n \n return buf.toString();\n }", "java.util.List<com.polytech.spik.protocol.SpikMessages.Sms> \n getMessagesList();", "com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage getMessages(int index);", "private Collection<Message> fetchMessages(Folder folder, Date minDate, Matcher matcher)\n\t\tthrows MessagingException {\n\t\t// Search term not fully implemented on mail servers, but can prevent fetching all email\n\t\tSearchTerm searchTerm = new SentDateTerm(ComparisonTerm.GT, minDate);\n\t\tMessage[] messages = folder.search(searchTerm);\n\t\tlogger.info(\"{} email(s) returned\", messages.length);\n\t\tbulkFetchMessageEnvelopes(folder, messages);\n\t\tList<Message> filteredMessages = new ArrayList<>();\n\t\tfor (Message message : messages) {\n\t\t\tDate sentDate = message.getSentDate();\n\t\t\tif (minDate.after(sentDate)) continue;\n\t\t\tif (!matcher.matches(message)) continue;\n\t\t\tfilteredMessages.add(message);\n\t\t}\n\t\treturn filteredMessages;\n\t}", "@Override\n\tpublic Iterator<SendMessageInfo> getPendingMessages() throws Exception {\n\t\treturn null;\n\t}", "private static ArrayList<Message> ReadFile(Scanner sc) {\t\n\t\tArrayList<Message> messageList = new ArrayList<Message>();\n\t\t\n\t\t/* Iterating over each string in file and creating\n\t\t * Message object with file contents\n\t\t*/\n\t\twhile (sc.hasNextLine()) {\n\t\t\tString line = sc.nextLine();\n\t\t\tScanner lineScanner = new Scanner(line);\n\t\t\twhile (lineScanner.hasNext()) {\n\t\t\t\ttry {\n\t\t\t\t\tString received = lineScanner.next(); \n\t\t\t\t\tString sent = lineScanner.next();\n\t\t\t\t\tString node1 = lineScanner.next();\n\t\t\t\t\tString notification = lineScanner.next();\n\t\t\t\t\tString node2 = null;\n\t\t\t\t\tif (lineScanner.hasNext()) {\n\t\t\t\t\t\tnode2 = lineScanner.next();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlong receivedVal = Long.parseLong(received);\n\t\t\t\t\tlong sentVal = Long.parseLong(sent);\n\t\t\t\t\tMessage message = new Message(receivedVal, sentVal, node1,\n\t\t\t\t\t\t\tnotification, node2);\n\t\t\t\t\t\n\t\t\t\t\tmessageList.add(message);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tlineScanner.close();\n\t\t}\n\t\treturn messageList;\n\t}", "public static Queue<String> linesFromInput(SimpleReader input) {\n assert input != null : \"Violation of: input is not null\";\n assert input.isOpen() : \"Violation of: input.is_open\";\n\n Queue<String> lines = new Queue1L<String>();\n while (!input.atEOS()) {\n String text = input.nextLine(); // reads next line\n lines.enqueue(text);\n\n }\n return lines;\n }", "private void startConsumeMsg() {\n try {\n ConsumerRecords<byte[], byte[]> records;\n while (true) {\n records = kafkaConsumer.poll(Long.MAX_VALUE);\n for (ConsumerRecord<byte[], byte[]> record : records) {\n processMsg(record);\n kafkaConsumer.commitSync();\n LOG.info(\"Single consumer consume the message {}th\", counter.incrementAndGet());\n }\n\n }\n } catch (Exception ex) {\n LOG.error(\"Consumer get message error {}\", ex);\n } finally {\n LOG.info(\"Shutting down consumer ...\");\n shutdown();\n }\n }", "public com.polytech.spik.protocol.SpikMessages.Sms getMessages(int index) {\n if (messagesBuilder_ == null) {\n return messages_.get(index);\n } else {\n return messagesBuilder_.getMessage(index);\n }\n }", "public ArrayList<Message> readMessages() throws FileNotFoundException {\n\t\tArrayList<Message> allMessages = new ArrayList<Message>();\n\t\tScanner keyboardIn = new Scanner(new File(filePath));\n\t\tkeyboardIn.useDelimiter(\"/n\");\n\t\twhile (keyboardIn.hasNextLine()) {\n\t\t\tString[] messageDataInArray = keyboardIn.nextLine().split(\"\\t\");\n\t\t\tString messageName = messageDataInArray[0];\n\t\t\tString messageDescription = messageDataInArray[1];\n\t\t\tMessage message = new Message(messageName,messageDescription);\n\t\t\tallMessages.add(message);\t\t\n\t\t}\n\t\tkeyboardIn.close();\t\t\n\t\treturn allMessages;\n\t}", "@Override\n public String[] getAllMessages() {\n return messages.toArray(new String[0]);\n }", "@GetMapping(\"/msgbox/get/{username}\")\n\tIterable<msgbox> getMsgs(@PathVariable String username){\n\t\treturn this.getUserMsgs(username);\n\t}", "public byte [] readMessageAsByte() {\r\n byte [] data = new byte[256];\r\n int length;\r\n\r\n try {\r\n length = in.readInt();\r\n if (length > 0) {\r\n data = new byte[length];\r\n in.readFully(data, 0, data.length);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return data;\r\n }", "public Collection<Message> findNextForSending();", "public com.polytech.spik.protocol.SpikMessages.Sms getMessages(int index) {\n return messages_.get(index);\n }", "@Override\n public String[] getMessages(int begin, int end) {\n if (begin > end)\n throw new IllegalArgumentException(\"The begin parameter should be smaller \"\n + \"than the end parameter\");\n if (begin < 0 || end >= messages.size())\n throw new IllegalArgumentException(\"The given begin-end interval is not \"\n + \"a subset of the index-range of the messages.\");\n List<String> result = new ArrayList<>();\n for (int i = begin; i<=end; i++)\n result.add(messages.get(i));\n return result.toArray(new String[0]);\n }", "private byte[] receiveDataChunk(final byte[] commandApdu) {\r\n if (!dataInReady.get()) {\r\n // Previously received data was not fetched yet\r\n return APDU.StatusMessage.ERR_NOT_READY;\r\n }\r\n\r\n int dataLen = commandApdu.length - APDU.Header.LEN;\r\n if (dataLen > MAX_CHUNK_SIZE)\r\n // Invalid size of input message\r\n return APDU.StatusMessage.ERR_PARAMS;\r\n else if ((dataIn.size() + dataLen) > MAX_BYTES) {\r\n // Received data is not complete; give client a new try\r\n dataIn.reset();\r\n return APDU.StatusMessage.ERR_PARAMS;\r\n }\r\n\r\n // Assembling fragmented data messages in local buffer\r\n dataIn.write(commandApdu, APDU.Header.DATA, dataLen);\r\n // Check if all data chunks are complete\r\n int nextBytes = APDU.getHeaderValue(commandApdu, APDU.Header.LC);\r\n // If incoming data message complete\r\n // - transfer data to NFC state machine to do the high-level logic\r\n // - Clean up internal buffer after that\r\n if (0 == nextBytes) {\r\n dataInReady.set(false);\r\n Log.i(TAG, \"Received data with \" + dataIn.size() + \" bytes complete.\");\r\n // Push to NFC service thread\r\n Message msg = Message.obtain(null, StatefulProtocolHandler.MSG_NFC_RECEIVED_PACKET);\r\n msg.obj = dataIn.toByteArray();\r\n msg.replyTo = mResponseMessenger;\r\n try {\r\n mNfcMessagingService.send(msg);\r\n } catch (RemoteException e) {\r\n Log.e(TAG, \"Could not send data input to NFC statemachine.\");\r\n e.printStackTrace(); // TODO: remove stacktrace\r\n }\r\n // Cleanup for new input data\r\n dataIn.reset();\r\n dataInReady.set(true);\r\n }\r\n\r\n return APDU.StatusMessage.SUCCESS;\r\n }", "public HTTPRequestResponse[] getSelectedMessages() {\r\n if(selectedMessages == null){\r\n return new HTTPRequestResponse[]{};\r\n }\r\n return selectedMessages;\r\n }", "public long getInMsgs() {\n return inMsgs.get();\n }", "private byte[] consumePayload() throws IOException {\n byte[] payload = new byte[(int) payloadLength];\n int count = 0;\n while (payloadLength > 0L) {\n payload[count] = (byte) this.read();\n count++;\n }\n return payload;\n }", "private void dequeueMessages()\n\t{\n\t\twhile (_msg_queue.size() > 0)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t_ml.messageReceived( (Serializable) _msg_queue.removeFirst());\n\t\t\t}\n\t\t\tcatch (RuntimeException rte)\n\t\t\t{\n\t\t\t\trte.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private static byte[] getDataFromInputStream(final InputStream input) throws IOException {\r\n if (input == null) {\r\n return new byte[0];\r\n }\r\n int nBytes = 0;\r\n final byte[] buffer = new byte[BUFFER_SIZE];\r\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n while ((nBytes = input.read(buffer)) != -1) {\r\n baos.write(buffer, 0, nBytes);\r\n }\r\n return baos.toByteArray();\r\n }", "private synchronized byte[] mReadBytes(InputStream oInput){\n nDataRcvd= nBytesAvailable(oInput);\n if (nDataRcvd==0)\n return null;\n byte[] buffer = new byte[nDataRcvd];\n try {\n nDataRcvd=oInput.read(buffer); //Read is a blocking operation\n } catch (IOException e) {\n e.printStackTrace();\n buffer= null;\n }\n return buffer;\n }", "public Message[] readUnseenMessages(EmailReceivingParameters emailReceivingParameters)\r\n\t{\r\n\t\t Message[] messages=null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t Properties properties = new Properties();\r\n\r\n\t properties.put(\"mail.pop3.host\", emailReceivingParameters.getHostName());\r\n\t properties.put(\"mail.pop3.port\", \"995\");\r\n\t properties.put(\"mail.pop3.starttls.enable\", \"true\");\r\n\t Session emailSession = Session.getDefaultInstance(properties);\r\n\t \r\n\t //create the POP3 store object and connect with the pop server\r\n\t Store store = emailSession.getStore(\"pop3s\");\r\n\r\n\t store.connect(emailReceivingParameters.getHostName(), emailReceivingParameters.getUserName(), emailReceivingParameters.getPassword());\r\n\r\n\t //create the folder object and open it\r\n\t Folder emailFolder = store.getFolder(\"INBOX\");\r\n\t emailFolder.open(Folder.READ_ONLY);\r\n\r\n\t // retrieve the messages from the folder in an array and print it\r\n\t messages = emailFolder.getMessages();\r\n\t System.out.println(\"messages.length---\" + messages.length);\r\n\r\n\t for (int i = 0, n = messages.length; i < n; i++) \r\n\t {\r\n\t Message message = messages[i];\r\n\t System.out.println(\"---------------------------------\");\r\n\t System.out.println(\"Email Number \" + (i + 1));\r\n\t System.out.println(\"Subject: \" + message.getSubject());\r\n\t System.out.println(\"From: \" + message.getFrom()[0]);\r\n\t System.out.println(\"Text: \" + message.getContent().toString());\r\n\r\n\t }\r\n\r\n\t emailFolder.close(false);\r\n\t store.close();\r\n\r\n\t } \r\n\t\t catch (NoSuchProviderException e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t } \r\n\t\t catch (MessagingException e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t } \r\n\t\t catch (Exception e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\t\treturn messages;\r\n\t}", "protected byte[] getNextMessage(){\n if (messages.size() > 0) {\n byte message[] = messages.get(0).clone();\n messages.remove(0);\n return message;\n } else {\n return null;\n }\n \n }", "public if4031.common.Message getMessages(int index) {\n return messages_.get(index);\n }", "@Override\n public Optional<TcpMessage> consumeMessage() throws IOException {\n System.out.println(\"Trying to consume a message...\");\n var json = inputMessageStream.readJson();\n\n socket.shutdownInput();\n if (json.isEmpty()) {\n return Optional.empty();\n }\n return Optional.of(new TcpMessage(JsonPayload.of(json)));\n // return Optional.of(new Message<>(new JsonPayload(json)));\n }", "@Override\n public List<Message> getMessages() {\n return (List<Message>) messageRepository.findAll();\n }", "static protected byte[] readContent( InputStream in )\n \t{\n \t\tBufferedInputStream bin = in instanceof BufferedInputStream\n \t\t\t\t? (BufferedInputStream) in\n \t\t\t\t: new BufferedInputStream( in );\n \t\tByteArrayOutputStream out = new ByteArrayOutputStream( 1024 );\n \t\tbyte[] buffer = new byte[1024];\n \t\tint readSize = 0;\n \t\ttry\n \t\t{\n \t\t\treadSize = bin.read( buffer );\n \t\t\twhile ( readSize != -1 )\n \t\t\t{\n \t\t\t\tout.write( buffer, 0, readSize );\n \t\t\t\treadSize = bin.read( buffer );\n \t\t\t}\n \t\t}\n \t\tcatch ( IOException ex )\n \t\t{\n \t\t\tlogger.log( Level.SEVERE, ex.getMessage( ), ex );\n \t\t}\n \t\treturn out.toByteArray( );\n \t}", "java.util.List<main.java.io.grpc.chatservice.Message> \n getMessagesList();", "public ByteBufferMessageSet fetchMessages(PartitionMetadata partitionMetadata, String topic, long startOffset) {\n SimpleConsumer consumer = consumerMap.get(partitionMetadata.leader().id());\n ByteBufferMessageSet messageSet = fetchMessages(consumer, topic, partitionMetadata.partitionId(), startOffset);\n// simpleConsumer.close();\n return messageSet;\n }", "private InputStream getRawStream(boolean skipHeader) throws MessagingException {\n/* 155 */ InputStream rawcontent = null;\n/* */ try {\n/* 157 */ synchronized (this) {\n/* 158 */ rawcontent = this.rawData.get();\n/* 159 */ if (rawcontent == null) {\n/* 160 */ TempFile cache = this.folder.getFileCache();\n/* 161 */ if (cache != null) {\n/* 162 */ Session s = ((POP3Store)this.folder.getStore()).getSession();\n/* 163 */ if (this.folder.logger.isLoggable(Level.FINE)) {\n/* 164 */ this.folder.logger.fine(\"caching message #\" + this.msgnum + \" in temp file\");\n/* */ }\n/* 166 */ AppendStream os = cache.getAppendStream();\n/* 167 */ BufferedOutputStream bos = new BufferedOutputStream(os);\n/* */ try {\n/* 169 */ this.folder.getProtocol().retr(this.msgnum, bos);\n/* */ } finally {\n/* 171 */ bos.close();\n/* */ } \n/* 173 */ rawcontent = os.getInputStream();\n/* */ } else {\n/* 175 */ rawcontent = this.folder.getProtocol().retr(this.msgnum, (this.msgSize > 0) ? (this.msgSize + this.hdrSize) : 0);\n/* */ } \n/* */ \n/* 178 */ if (rawcontent == null) {\n/* 179 */ this.expunged = true;\n/* 180 */ throw new MessageRemovedException(\"can't retrieve message #\" + this.msgnum + \" in POP3Message.getContentStream\");\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 185 */ if (this.headers == null || ((POP3Store)this.folder.getStore()).forgetTopHeaders) {\n/* */ \n/* 187 */ this.headers = new InternetHeaders(rawcontent);\n/* 188 */ this.hdrSize = (int)((SharedInputStream)rawcontent).getPosition();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 203 */ int len, offset = 0;\n/* */ do {\n/* 205 */ len = 0;\n/* */ int c1;\n/* 207 */ while ((c1 = rawcontent.read()) >= 0 && \n/* 208 */ c1 != 10) {\n/* */ \n/* 210 */ if (c1 == 13) {\n/* */ \n/* 212 */ if (rawcontent.available() > 0) {\n/* 213 */ rawcontent.mark(1);\n/* 214 */ if (rawcontent.read() != 10) {\n/* 215 */ rawcontent.reset();\n/* */ }\n/* */ } \n/* */ \n/* */ break;\n/* */ } \n/* 221 */ len++;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 226 */ if (rawcontent.available() == 0) {\n/* */ break;\n/* */ }\n/* */ }\n/* 230 */ while (len != 0);\n/* */ \n/* */ \n/* 233 */ this.hdrSize = (int)((SharedInputStream)rawcontent).getPosition();\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 238 */ this.msgSize = rawcontent.available();\n/* */ \n/* 240 */ this.rawData = new SoftReference(rawcontent);\n/* */ } \n/* */ } \n/* 243 */ } catch (EOFException eex) {\n/* 244 */ this.folder.close(false);\n/* 245 */ throw new FolderClosedException(this.folder, eex.toString());\n/* 246 */ } catch (IOException ex) {\n/* 247 */ throw new MessagingException(\"error fetching POP3 content\", ex);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 255 */ rawcontent = ((SharedInputStream)rawcontent).newStream(skipHeader ? this.hdrSize : 0L, -1L);\n/* */ \n/* 257 */ return rawcontent;\n/* */ }", "private byte[] readBuffer( DataInputStream in ) throws IOException{\n String factory = in.readUTF();\n int count = in.readInt();\n \n ByteArrayOutputStream out = new ByteArrayOutputStream( factory.length()*4 + 4 + count );\n DataOutputStream dout = new DataOutputStream( out );\n \n dout.writeUTF( factory );\n dout.writeInt( count );\n \n for( int i = 0; i < count; i++ ){\n int read = in.read();\n if( read == -1 )\n throw new EOFException( \"unexpectetly reached end of file\" );\n dout.write( read );\n }\n \n dout.close();\n return out.toByteArray();\n }", "static byte[] readMessage() {\n byte[] msg = new byte[0];\n try {\n msg = Hex.decodeHex(\n \"000600000003000000017d010000\" +\n \"bb931fd17f85fb26e8209eb7af5747258163df29a7dd8f87fa7617963fcfa1aa\" +\n \"b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe0400\"\n );\n } catch (DecoderException e) {\n e.printStackTrace();\n }\n return msg;\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tInputStream inputStream = mSocket.getInputStream();\n\t\t\tint leng;\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tByteArrayBuffer[] data = {new ByteArrayBuffer(1024 * 32)};\n\t\t\twhile((leng = inputStream.read(buffer)) != -1 && mConected)\n\t\t\t{\n\t\t\t\tif(mConected)\n\t\t\t\t{\n\t\t\t\t\tdata[0].append(buffer, data[0].length(), leng);\n\t\t\t\t\tprocessMessage(data);\n\t\t\t\t}\n\t\t\t\telse\n\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} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(TAG, \"Cannot set InputStream\\nNetwork error\");\n\t\t\tevent.connectionLost();\n\t\t} catch (ProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tevent.connectionLost();\n\t\t}\n\t}", "public Message[] getMessages() throws MessagingException, FileNotFoundException, IOException {\n\n\n\t\ttry {\n\t\t\tmessages = folder.getMessages();\n\t\t} catch (MessagingException e) {\n\t\t\tSystem.err.println(e.getMessage());\n\n\t\t}\n\t\t\n\t\tObject content;\n\t\tString type; // type of messages contant\n\t\tfor (int i = 0; i < messages.length; i++) {\n\n\t\t\tArrayList<String> toAddress = new ArrayList();\n\t\t\tAddress addressTO[] = messages[i].getRecipients(Message.RecipientType.TO);\n\t\t\tfor (int j = 0; j < addressTO.length; j++) {\n\n\t\t\t\ttoAddress.add(addressTO[j].toString());\n\t\t\t}\n\n\t\t\tArrayList<String> copyOnAddress = new ArrayList();\n\t\t\tif (messages[i].getRecipients(Message.RecipientType.CC) != null) {\n\t\t\t\tAddress addressCC[] = messages[i].getRecipients(Message.RecipientType.CC);\n\t\t\t\tif (addressCC.length > 0) {\n\t\t\t\t\tfor (int j = 0; j < addressCC.length; j++) {\n\n\t\t\t\t\t\tcopyOnAddress.add(addressCC[j].toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrayList<String> copyHideAddress = new ArrayList();\n\t\t\tif ((messages[i].getRecipients(Message.RecipientType.BCC)) != null) {\n\t\t\t\tAddress addressBCC[] = messages[i].getRecipients(Message.RecipientType.BCC);\n\n\t\t\t\tif (addressBCC.length > 0) {\n\t\t\t\t\tfor (int j = 0; j < addressBCC.length; j++) {\n\n\t\t\t\t\t\tcopyHideAddress.add(addressBCC[j].toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tArrayList<String> fromAddress = new ArrayList();\n\t\t\tif (messages[i].getFrom() != null) {\n\t\t\t\tAddress addressFrom[] = messages[i].getFrom();\n\n\t\t\t\tif (addressFrom.length > 0) {\n\t\t\t\t\tfor (int j = 0; j < addressFrom.length; j++) {\n\t\t\t\t\t\tfromAddress.add(addressFrom[j].toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontent = messages[i].getContent();\n\t\t\tif (content instanceof String) {\n\t\t\t\ttype = \"text\"; // set message type text\n\t\t\t\t\n\t\t\t\tmessagesListInbox.add(new MessagesDate(type, messages[i].getMessageNumber(), fromAddress, toAddress, messages[i].getSubject(), messages[i].getSentDate().toGMTString(), copyOnAddress, copyHideAddress, content.toString()));\n\t\t\t}\n\t\t\tif (content instanceof Multipart) {\n\t\t\t\tMultipart mp;\n\t\t\t\tBodyPart bodyPart = null;\n\t\t\t\ttype = \"html\";\n\t\t\t\tfor (int j = 0; j < ((Multipart) content).getCount(); j++) {\n\t\t\t\t\tmp = (Multipart) content;\n\t\t\t\t\tbodyPart = mp.getBodyPart(j);\n\t\t\t\t}\n\t\t\t\tmessagesListInbox.add(new MessagesDate(type, messages[i].getMessageNumber(), fromAddress, toAddress, messages[i].getSubject(), messages[i].getSentDate().toGMTString(), copyOnAddress, copyHideAddress, bodyPart.getContent().toString()));\n\t\t\t\t\n\t\t\t}\n\n\t\t}\n\n\t\tnew SaveReadFile().saveMessages(messagesListInbox, \"Inbox\");\n\t\treturn messages;\n\t}", "private List<Message> returnMessages(Query query, String recipient) {\n List<Message> messages = new ArrayList<>();\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID id = UUID.fromString(idString);\n String text = (String) entity.getProperty(\"text\");\n long timestamp = (long) entity.getProperty(\"timestamp\");\n String user = (String) entity.getProperty(\"user\");\n recipient = recipient != null ? recipient : (String) entity.getProperty(\"recipient\");\n\n Message message = new Message(id, user, text, timestamp, recipient);\n messages.add(message);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading message.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return messages;\n }", "public <T> T readInbound() {\n/* 291 */ T message = (T)poll(this.inboundMessages);\n/* 292 */ if (message != null) {\n/* 293 */ ReferenceCountUtil.touch(message, \"Caller of readInbound() will handle the message from this point\");\n/* */ }\n/* 295 */ return message;\n/* */ }", "private void extractProcessMessagesFromBufferIntoQueue(ByteBuffer byteBuffer){\n // when this function is called, byte buffer is ready for being read\n // i.e. position should point to the last byte written\n ProcessMessage procMsg;\n while((procMsg = extractProcessMessageFromByteBuffer(byteBuffer)) != null){\n // put procMsg into queue\n receivedMessagesQueue.add(procMsg);\n }\n\n // compact buffer for further reading new data\n byteBuffer.compact();\n\n }", "synchronized A consume() {\n try {\r\n if ((noMore && slack >= 0) || consumedAll) {\r\n notifyAll();\r\n consumedAll = true;\r\n return null;\r\n }\r\n while (slack != -1) {\r\n wait();\r\n }\r\n A tmp;\r\n\r\n int bSize = CodecUtil.slackOrSize(consumerBuffer, codec);\r\n if(bSize < 0 && endOfStream) {\r\n bSize = Math.abs(bSize);\r\n }\r\n if (bSize <= 0) {\r\n slack = Math.abs(bSize);\r\n notifyAll();\r\n return null;\r\n }\r\n tmp = codec.from(consumerBuffer);\r\n totConsumed += bSize;\r\n notifyAll();\r\n return tmp;\r\n }\r\n catch (InterruptedException e) {\r\n }\r\n return null;\r\n }", "private static Optional<List<Lexeme>> getLexemes(BufferedInputStream inputStream) {\n var lexer = new Lexer(inputStream);\n\n try (lexer) {\n lexer.readToEnd();\n } catch (IOException e) {\n System.err.printf(\"Unable to read input: %s\\n\", e.getMessage());\n }\n\n return lexer.getLexemes().isEmpty() ? Optional.empty() : Optional.of(lexer.getLexemes());\n }", "protected byte[] receive() throws CommunicationException {\n try {\n byte[] result = new byte[0];\n int count;\n do {\n byte[] frame = new byte[FRAME_SIZE];\n count = in.read(frame);\n result = Bytes.concat(result, Arrays.copyOf(frame, count));\n } while (count >= FRAME_SIZE);\n log.info(\"Receive: {} bytes | {} | {}\", result.length, BytesUtils.bytesToHex(result, ' '), new String(result));\n return result;\n } catch (IOException e) {\n throw new CommunicationException(\"Receiving error\", e);\n }\n }", "@Override\n public int read() throws IOException {\n if (stream.available() > 0) {\n return stream.read();\n } else {\n layer.receiveMoreDataForHint(getHint());\n // either the stream is now filled, or we ran into a timeout\n // or the next stream is available\n return stream.read();\n }\n }", "public Vector getMessages() throws RemoteException {\r\n return messages;\r\n }", "main.java.io.grpc.chatservice.MessageOrBuilder getMessagesOrBuilder(\n int index);", "@Override\r\n\tpublic List<ChatMessageModel> getMessages(int messageIndex) {\n\t\treturn null;\r\n\t}", "@Override\n @SuppressWarnings(\"SuspiciousSystemArraycopy\")\n public void run() {\n //while (!isInterrupted()) {\n try {\n\n //String message=\"\";\n byte[] data = new byte[1024];\n int datalen = -1;\n messageStream = new byte[]{};\n while (isRunning) {\n if ((datalen = mIn.read(data)) != -1) {\n try {\n\n byte[] truedata = new byte[datalen];\n System.arraycopy(data, 0, truedata, 0, datalen);\n if ((datalen == 4) && new String(truedata).equals(\"0000\")) {\n CommonLib.PrintScreen(systemGlobal, \"SOCK - \" + identifyState + \" received IDLE: 0000\",showLogEnum.DETAILMODE);\n } else {\n messageStream = CommonLib.concatByteArray(messageStream, truedata);\n CommonLib.PrintScreen(systemGlobal, String.format(\"SOCKET.%s REV: %s \\n\\rBUFF 1(%d): %s\", identifyState, CommonLib.getHumanFormatFromByte(truedata), messageStream.length, CommonLib.getHumanFormatFromByte(messageStream)),showLogEnum.SIMPLEMODE);\n byte[] msg = new byte[]{};\n\n HeaderProcessing headerMsg = msgheaderInfo.clone();\n if (headerMsg.initHeaderFromBytes(messageStream)) {\n\n msg = headerMsg.getMessageFromBuffer(messageStream);\n while (msg.length > 0) {\n boolean needParsing = false;\n if (headerMsg.getHeaderPart(9) != null) {\n if (headerMsg.getHeaderPart(9).getValue().toString().equals(\"00000\")) {\n needParsing = true;\n }\n } else {\n needParsing = true;\n }\n if (needParsing) {\n IsoMessage isoMsg = new IsoMessage(msg, getInstituttionCode(), headerMsg, isoCfg, instData.getLineMode());\n if (isoMsg.isMessage()) {\n isoMsg.setSeqID(CommonLib.getNextSequence());\n isoMsg.setMsgType(CommonLib.getMsgType(isoMsg.getField(0)));\n incommingqueue.add(isoMsg);\n CommonLib.PrintScreen(systemGlobal, identifyState + \" parsed: \" + isoMsg.printedMessage(), showLogEnum.DEFAULT);\n\n //Added by DUNGBTK 08.11.2010\n messageStream = CommonLib.copyByteArrayFromArray(messageStream, msg.length, messageStream.length - msg.length);\n CommonLib.PrintScreen(systemGlobal, String.format(\"SOCKET.%s BUFF 2(%d): %s\", identifyState, messageStream.length, CommonLib.getHumanFormatFromByte(messageStream)), showLogEnum.SIMPLEMODE);\n //msg = CommonLib.getMsgFromBuffer(messageStream, msgheaderInfo);\n headerMsg = msgheaderInfo.clone();\n headerMsg.initHeaderFromBytes(messageStream);\n msg = headerMsg.getMessageFromBuffer(messageStream);\n } else {\n CommonLib.PrintScreen(systemGlobal, \"ERR SOCK - \" + identifyState + \" parsing (close connection): \" + CommonLib.asHex(msg), showLogEnum.SIMPLEMODE);\n isRunning = false;\n mServerDispatcher.deleteClient(mClientInfo);\n break;\n }\n } else {\n CommonLib.PrintScreen(systemGlobal, \"DROP BY HEADER - \" + identifyState + CommonLib.asHex(msg), showLogEnum.DETAILMODE);\n messageStream = CommonLib.copyByteArrayFromArray(messageStream, msg.length, messageStream.length - msg.length);\n CommonLib.PrintScreen(systemGlobal, String.format(\"SOCKET.%s BUFF 2(%d): %s\", identifyState, messageStream.length, CommonLib.getHumanFormatFromByte(messageStream)), showLogEnum.DETAILMODE);\n\n headerMsg = msgheaderInfo.clone();\n headerMsg.initHeaderFromBytes(messageStream);\n msg = headerMsg.getMessageFromBuffer(messageStream);\n }\n\n }\n if (messageStream.length > 0) {\n CommonLib.PrintScreen(systemGlobal, String.format(\"SOCKET.%s BUFF 3(%d): %s\", identifyState, messageStream.length, CommonLib.getHumanFormatFromByte(messageStream)),showLogEnum.DETAILMODE);\n }\n }\n }\n\n } catch (Exception e) {\n messageStream = new byte[]{};\n CommonLib.PrintScreen(systemGlobal, \"ERR SOCK \" + identifyState + \" data error (close connection): \" + e.getMessage(),showLogEnum.DETAILMODE);\n\n isRunning = false;\n mServerDispatcher.deleteClient(mClientInfo);\n break;\n }\n } else {\n CommonLib.PrintScreen(systemGlobal, \"ERR SOCK \" + identifyState + \" is interrupted..\",showLogEnum.DETAILMODE);\n isRunning = false;\n mServerDispatcher.deleteClient(mClientInfo);\n break;\n }\n }\n //--Thread.sleep(GlobalObject.SystemParas.getIntValue(\"VNBC_SOCK_RUNNING_INTEVAL\"));\n\n } catch (Exception ex) {\n isRunning = false;\n CommonLib.PrintScreen(systemGlobal, \"ERR SOCK \" + identifyState + \": Connection error\",showLogEnum.DETAILMODE);\n }\n //Communication is broken. Interrupt both listener and sender threads\n\n }", "@Override\r\n\tpublic List<message> getReadMessages(Integer receive_id) {\n\t\tList<message> messageList=null;\r\n\t\tString sql=\"select * from message where receive_id=? and isread=1\";\r\n\t\ttry {\r\n\t\t\tmessageList=getObjectList(conn, sql,receive_id);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(messageList.size()==0) {\r\n\t\t\treturn null;\r\n\t\t}else\r\n\t\treturn messageList;\r\n\t}", "public byte[] receiveMessage() throws IllegalStateException {\r\n\t\t\tif ( currHostPort == null ) {\r\n\t\t\t\tthrow new IllegalStateException(\"No iterator element.\");\r\n\t\t\t}\r\n\t\t\tbyte[] pDat = null;\r\n\t\t\tbyte[] recvdata = new byte[512];\r\n\t\t\tdgpacket = new DatagramPacket(recvdata, 512);\r\n\t\t\ttry {\r\n\t\t\t\tsocket.receive(dgpacket);\r\n\t\t\t\tpLen = dgpacket.getLength();\r\n\t\t\t\tif ( pLen > 0) {\r\n\t\t\t\t\trecvdata = dgpacket.getData();\r\n\t\t\t\t\tpDat = new byte[pLen];\r\n\t\t\t\t\tSystem.arraycopy(recvdata, 0, pDat, 0, pLen);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t\t// SocketException / InterruptedIOException / IOException\r\n\t\t\t\tpDat = null;\r\n\t\t\t}\r\n\t\t\treturn pDat;\r\n\t\t}", "public Message receiveMessage() {\r\n\t\treturn messages.poll();\r\n\t}", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage> \n getMessagesList();", "@Override\n public Json readFormStream() throws IOException {\n int channelsRead = selector.select();\n\n readBuffer.clear();\n readBuffer.limit(4);\n while (readBuffer.hasRemaining()) {\n if(socketChannel.read(readBuffer) == -1) throw new EOFException(\"Socket closed, read returned -1\");\n }\n readBuffer.rewind();\n int length = readBuffer.getInt();\n\n readBuffer.clear();\n readBuffer.limit(length);\n while (readBuffer.hasRemaining()) {\n if(socketChannel.read(readBuffer) == -1) throw new EOFException(\"Socket closed, read returned -1\");\n }\n\n readBuffer.flip();\n\n byte[] bytesForString = new byte[length];\n readBuffer.get(bytesForString, 0, length);\n String jsonMsg = new String(bytesForString, \"UTF-8\");\n\n // System.err.println(\"<-- \" + jsonMsg);\n return Json.read(jsonMsg);\n }", "List<Message> listMessages(final long sinceMessageId,\n final int count);", "public void run()\n\t{\n\t\t// while we have this stream\n\t\twhile(m_keyboardStream != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// only if someone is requesting us to read do we do so...\n\t\t\t\tif (m_keyboardReadRequest)\n\t\t\t\t{\n\t\t\t\t\t// block on keyboard input and put it onto the end of the queue\n\t\t\t\t\tString s = m_keyboardStream.readLine();\n\t\t\t\t\tm_keyboardInput.add(s);\n\n\t\t\t\t\t// fullfilled request, now notify blocking thread.\n\t\t\t\t\tm_keyboardReadRequest = false;\n\t\t\t\t\tsynchronized(this) { notifyAll(); }\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttry { Thread.sleep(50); } catch(InterruptedException ie) {}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n//\t\t\t\tio.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinput = new DataInputStream(socket.getInputStream());\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\twhile (input != null) {\n\t\t\t\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\t\t\t\tdecode(input.readUTF());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n\tpublic List<Message> getMessagesForUser(String username) {\n\t\treturn null;\n\t}", "public List<ChatMessage> getChatMessages() {\n logger.info(\"**START** getChatMessages \");\n return messagesMapper.findAllMessages();\n }", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();" ]
[ "0.7096194", "0.6551148", "0.63679063", "0.6045812", "0.59568304", "0.5949653", "0.58847594", "0.58037263", "0.5743045", "0.57156", "0.5636893", "0.56291896", "0.5542852", "0.55286634", "0.55265355", "0.5523987", "0.5505222", "0.5457825", "0.5451876", "0.5447284", "0.5434771", "0.5395028", "0.53710026", "0.53700817", "0.5363982", "0.53625125", "0.5351893", "0.5315807", "0.53056556", "0.52897924", "0.5279183", "0.5274981", "0.52706265", "0.52693766", "0.5267399", "0.5264048", "0.52347547", "0.52322817", "0.5227402", "0.52271414", "0.5221845", "0.5208983", "0.5205764", "0.51868796", "0.51638126", "0.5141993", "0.5133375", "0.5124587", "0.51237935", "0.5123133", "0.512232", "0.51204646", "0.51139694", "0.5099952", "0.5095978", "0.50931805", "0.5083544", "0.5073835", "0.506937", "0.5069126", "0.5066883", "0.50523895", "0.5051767", "0.5039894", "0.50379115", "0.5029886", "0.50267845", "0.50249726", "0.501881", "0.5010131", "0.5008608", "0.50052345", "0.4996643", "0.49957594", "0.49944276", "0.4984689", "0.49839672", "0.49760368", "0.49727574", "0.49650627", "0.49510098", "0.49399137", "0.49374485", "0.4936032", "0.49357092", "0.49346036", "0.4934523", "0.4927368", "0.49104282", "0.49064875", "0.49045426", "0.48971224", "0.48912838", "0.488064", "0.48764938", "0.4872125", "0.4872125", "0.4872125", "0.4872125", "0.4872125" ]
0.6067822
3
compare from date to date
public boolean dateCompartFromTo(String[] sdate, String[] edate) { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); Date startdate = null; Date enddate = null; try { // 시작일 종료일 날짜 비교 for (int idx = 0; idx < sdate.length; idx++) { startdate = dateFormat.parse(sdate[idx]); enddate = dateFormat.parse(edate[idx]); if (startdate.compareTo(enddate) >= 0) { return false; } } } catch (ParseException e) { e.printStackTrace(); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkTimePeriod(String from, String to) throws ParseException{\r\n\t\r\n\tDateFormat df = new SimpleDateFormat (\"yyyy-MM-dd\");\r\n boolean b = true;\r\n // Get Date 1\r\n Date d1 = df.parse(from);\r\n\r\n // Get Date 2\r\n Date d2 = df.parse(to);\r\n\r\n //String relation=\"\";\r\n if (d1.compareTo(d2)<=0){\r\n \t b=true;\r\n // relation = \"the date is less\";\r\n }\r\n else {\r\n b=false;\r\n }\r\n return b;\r\n}", "private boolean checkdates(java.util.Date date,java.util.Date date2)\n\t{\n\t\tif (date==null||date2==null) return true;\n\t\tif (!date.after(date2)&&!date.before(date2))return true;\n\t\treturn date.before(date2);\n\t}", "public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }", "private boolean checkDate(PoliceObject po, LocalDate start, LocalDate end) {\n LocalDate formattedEvent = LocalDate.parse(po.getDate());\n boolean isAfter = formattedEvent.isAfter(start) || formattedEvent.isEqual(start);\n boolean isBefore = formattedEvent.isBefore(end) || formattedEvent.isEqual(end);\n return (isAfter && isBefore);\n }", "public boolean compareDates (String date1, String date2) {\n if (date1.equals(date2)) {\n return true;\n } else {\n return false;\n }\n }", "@Override\n public long dateCompare(LocalDate localDate1, LocalDate localDate2) {\n return localDate1.until(localDate2, ChronoUnit.MONTHS);\n }", "public static void main(String[] args) \r\n {\n\t Date date = new Date();\r\n\t System.out.println(date);\r\n\t \r\n\t //comparision of dates\r\n\t /*\r\n\t Return\r\n 1. It returns the value 0 if the argument Date is equal to this Date. \r\n 2. It returns a value less than 0 if this Date is before the Date argument.\r\n 3. It returns a value greater than 0 if this Date is after the Date argument.\r\n\t */\r\n\t Date d=new Date(2021,05,31);\r\n\t System.out.println(d.equals(date));\r\n Date d1=new Date(2021,5,26); \r\n int comparison=d.compareTo(d1); \r\n System.out.println();\r\n System.out.println(\"Your comparison value is : \"+comparison); \r\n }", "private boolean isEqualDate(DateStruct d1, DateStruct d2)\n {\n boolean isEqual = false;\n if ( d1.year == d2.year && d1.month == d2.month && d1.day == d2.day )\n {\n isEqual = true;\n }\n return isEqual;\n }", "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}", "public boolean dateCompareCurr(String[] inputdate){\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tDate comparedate = null; // 입력받은 날짜\r\n\t\t\r\n\t\ttry {\r\n\t\t\tDate curdate = dateFormat.parse(dateFormat.format(new Date())); // 현재날짜\r\n\t\t\t\r\n\t\t\tfor (int idx = 0; idx < inputdate.length; idx++) {\r\n\t\t\t\t\r\n\t\t\t\tcomparedate = dateFormat.parse(inputdate[idx]);\r\n\t\t\t\t\r\n\t\t\t\tif(comparedate.compareTo(curdate) >= 0){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public static boolean isDateBetweenSpecifiedDate(Date date, Date from, Date to) {\n return date.compareTo(from) >= 0 && date.compareTo(to) <= 0;\n }", "@Test\n public void compareToWithMainDateInThePast(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.compareTo(new Date(31,Month.december,1970)),-1);\n }", "public int compareTo(Date212 other) { //compareTo method\n int result = 00; //intialize int return value.\n Date date1 = new Date(), date2 = new Date(); //initalize\n\nSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n try {\n date1 = sdf.parse(full_Date); //The object calling this method.\n date2 = sdf.parse(other.full_Date); //Other date212 object being passed in.\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n //Try-catch block for parsing & formatting dates.\n \n // System.out.println(\"date1 : \" + sdf.format(date1));\n // System.out.println(\"date2 : \" + sdf.format(date2));\n\n Calendar cal1 = Calendar.getInstance(); \n Calendar cal2 = Calendar.getInstance();\n cal1.setTime(date1);\n cal2.setTime(date2);\n /*\n Use of the Calendar library and methods to compare the dates.\n */\n\n\n //cal1 is the object calling this method\n //cal2 is the object passed in.\n if (cal1.after(cal2)) { \n // System.out.println(\"Date1 is after Date2\");\n result = 1;\n }\n\n if (cal1.before(cal2)) {\n // System.out.println(\"Date1 is before Date2\");\n result = -1;\n }\n\n if (cal1.equals(cal2)) {\n System.out.println(\"Date1 is equal Date2\");\n result = 0;\n }\n return result; //Returns what the if blocks made result to be.\n }", "public static boolean validateRangeDate(String from, String to) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(DATE_FORMAT);\n if (validateDateFormat(from, DATE_FORMAT) && validateDateFormat(to, DATE_FORMAT)) {\n if (LocalDate.parse(from, formatter).isBefore(LocalDate.parse(to, formatter)) ||\n LocalDate.parse(from, formatter).isEqual(LocalDate.parse(to, formatter))) {\n return true;\n }\n }\n return false;\n }", "private boolean compararFechasConDate(String fechaMenor, String fecha2, String fechaComparar) {\n try {\n /**\n * Obtenemos las fechas enviadas en el formato a comparar\n */\n SimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date fechaDateMenor = formateador.parse(fechaMenor);\n Date fechaDateMayor = formateador.parse(fecha2);\n Date fechaDateComparar = formateador.parse(fechaComparar);\n if (fechaDateMenor.before(fechaDateComparar) && fechaDateComparar.before(fechaDateMayor)) {\n return true;\n } else {\n return false;\n }\n } catch (ParseException e) {\n System.out.println(\"Se Produjo un Error!!! \" + e.getMessage());\n return false;\n }\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "@Test\r\n public void testCompareTo2() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertFalse(d1.compareTo(d2) < 0);\r\n }", "public static int compareDates(String date1, String date2) {\r\n int cmpResult = -11111; // ERROR\r\n try {\r\n HISDate d1 = HISDate.valueOf(date1);\r\n HISDate d2 = HISDate.valueOf(date2);\r\n cmpResult = d1.compare(d2);\r\n } catch (Exception e) {\r\n logger.error(\"compareDates(): Mindestens einer der zwei Datumswerte ist ungueltig: \" + date1 + \", \" + date2);\r\n cmpResult = -11111;\r\n }\r\n return cmpResult;\r\n }", "boolean hasFromDay();", "public static boolean compareDates(Date d1, Date d2) {\n Calendar c1 = Calendar.getInstance();\n Calendar c2 = Calendar.getInstance();\n c1.setTime(d1);\n c2.setTime(d2);\n\n if (c1.get(Calendar.YEAR) != c2.get(Calendar.YEAR))\n return false;\n if (c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH))\n return false;\n if (c1.get(Calendar.DAY_OF_MONTH) != c2.get(Calendar.DAY_OF_MONTH)) {\n return false;\n }\n return true;\n }", "public boolean lessThan(MyDate other){\t\n \t\tif (other.year > year){\n \t\t\treturn true;\n \t\t}\n \t\telse if (other.year == year){\n \t\t\tif (other.month > month){\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse if (other.month == month){\n \t\t\t\tif (other.day > day){\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\treturn false;\n\t}", "@Test\r\n public void testCompareTo1() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertTrue(d1.compareTo(d2) > 0);\r\n }", "@Override\n public int compareTo(Date ARG) {\n if (year < ARG.year)\n {\n \treturn -1;\n }\n else if( year > ARG.year)\n {\n \treturn 1;\n }\n \n else{\n \tif (dayOfMonth < ARG.dayOfMonth)\n \t{\n \t\treturn -1; \n \t\t\n \t}\n \telse if (dayOfMonth > ARG.dayOfMonth)\n \t{\n \t\treturn 1; \n \t}\n \telse\n \t{\n \t\tif (dayOfMonth < ARG.dayOfMonth)\n \t\t{\n \t\t\treturn -1;\n \t\t}\n \t\telse if(dayOfMonth > ARG.dayOfMonth)\n \t\t{\n \t\t\treturn 1;\n \t\t}\n \t\telse\n \t\t{\n \t\t\treturn 0; \n \t\t}\n \t}\n \t\n } \t\n }", "public int dateSearch(String o1_date, String o1_time, String o2_date, String o2_time) {\n\n int yearStartUser = Integer.valueOf(o1_date.substring(6));\n int monthStartUser = Integer.valueOf(o1_date.substring(3, 5));\n int dayStartUser = Integer.valueOf(o1_date.substring(0, 2));\n\n int yearEnd = Integer.valueOf(o2_date.substring(6));\n int monthEnd = Integer.valueOf(o2_date.substring(3, 5));\n int dayEnd = Integer.valueOf(o2_date.substring(0, 2));\n\n if (yearEnd > yearStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd > monthStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd == monthStartUser && dayEnd > dayStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd == monthStartUser && dayEnd == dayStartUser){\n if (o2_time.compareTo(o1_time)>0)return 1;\n if (o2_time.compareTo(o1_time)==0)return 0;\n\n }\n\n\n\n return -1;\n }", "public static boolean isRevdate(java.sql.Date date1,int CUST_ID,int MOVIE_ID) {\n SimpleDateFormat formatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n java.util.Date date11 = null;\n try {\n date11 = formatter1.parse(\"1970-06-06\");\n } catch (ParseException e) {\n e.printStackTrace();\n }\n long r_date = date1.getTime();\n irate_Connection om = new irate_Connection();\n om.startConnection(\"user1\", \"password\", dbName);\n conn = om.getConnection();\n s = om.getStatement();\n irate_DQL dql = new irate_DQL(conn, s);\n java.sql.Date date2 = dql.atten(CUST_ID, MOVIE_ID);\n if(date2 == date11)\n return false;\n long a_date = date2.getTime();\n long diffinmill = r_date - a_date;\n long diff = TimeUnit.DAYS.convert(diffinmill,TimeUnit.MILLISECONDS);\n if(diff > 7 || diff <= 0)\n return false;\n else\n return true;\n }", "@Test\n public void compareTo() {\n assertTrue(DATE_A.compareTo(DATE_A) == 0);\n\n // testing recess week and reading week.\n assertTrue(DATE_READING.compareTo(DATE_AFTER_READING) == -1);\n assertTrue(DATE_RECESS.compareTo(DATE_AFTER_RECESS) == -1);\n }", "boolean wasSooner (int[] date1, int[] date2) {\n\n// loops through year, then month, then day if previous value is the same\n for (int i = 2; i > -1; i--) {\n if (date1[i] > date2[i])\n return false;\n if (date1[i] < date2[i])\n return true;\n }\n return true;\n }", "public void compareStartEndDate() {\n String[] startDateArray = startDate.split(dateOperator);\n String[] endDateArray = endDate.split(dateOperator);\n \n // Compares year first, then month, and then day.\n if (Integer.parseInt(startDateArray[2]) > Integer.parseInt(endDateArray[2])) {\n endDate = endDateArray[0] +\"/\"+ endDateArray[1] +\"/\"+ startDateArray[2];\n } else if (Integer.parseInt(startDateArray[2]) == Integer.parseInt(endDateArray[2])) {\n if (Integer.parseInt(startDateArray[1]) > Integer.parseInt(endDateArray[1])) {\n endDate = endDateArray[0] +\"/\"+endDateArray[1] +\"/\"+(Integer.parseInt(startDateArray[2])+1);\n } else if (Integer.parseInt(startDateArray[1]) == Integer.parseInt(endDateArray[1]) && \n Integer.parseInt(startDateArray[0]) > Integer.parseInt(endDateArray[0])) {\n endDate = endDateArray[0] +\"/\"+endDateArray[1] +\"/\"+(Integer.parseInt(startDateArray[2])+1);\n }\n }\n }", "boolean hasDate();", "boolean hasToDay();", "@Override\n public int compare(final Availability o1, final Availability o2) {\n DateFormat f = new SimpleDateFormat(\"dd-MM-yyyy\");\n try {\n return f.parse(o1.getDate()).compareTo(f.parse(o2.getDate()));\n } catch (ParseException e) {\n throw new IllegalArgumentException(e);\n }\n }", "private boolean equalsDate(Date thisDate, Date otherDate) {\n if (otherDate == null) {\n return false;\n }\n SimpleDateFormat dateFormating = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n String thisDateString = dateFormating.format(thisDate);\n String otherDateString = dateFormating.format(otherDate);\n if (!thisDateString.equals(otherDateString)) {\n return false;\n }\n \n return true;\n }", "public static boolean isInBetweenDates(LocalDate startingDate,LocalDate endingDate,LocalDate currentDate) {\n //compareTo is used to compare 2 dates\n if(currentDate.compareTo(startingDate) * currentDate.compareTo(endingDate) <0)\n {\n return true;\n }\n else\n {\n return false;\n }\n\n }", "public void test_compareAsYear_basic() {\n // ## Arrange ##\n String fromRes = \"2008-09-14 12:34:56\";\n String toRes = \"2008-11-18 18:34:56\";\n FromToOption option = createOption();\n\n // ## Act ##\n option.compareAsYear();\n Date fromDate = option.filterFromDate(DfTypeUtil.toDate(fromRes));\n Date toDate = option.filterToDate(DfTypeUtil.toDate(toRes));\n\n // ## Assert ##\n assertEquals(ConditionKey.CK_GREATER_EQUAL, option.getFromDateConditionKey());\n assertEquals(ConditionKey.CK_LESS_THAN, option.getToDateConditionKey());\n assertEquals(\"2008-01-01 00:00:00\", DfTypeUtil.toString(fromDate, \"yyyy-MM-dd HH:mm:ss\"));\n assertEquals(\"2009-01-01 00:00:00\", DfTypeUtil.toString(toDate, \"yyyy-MM-dd HH:mm:ss\"));\n }", "public static void main(String[] args) {\n Date dt1 = new Date();\n System.out.println(dt1);\n \n //get the milli secs in Long from January 1st 1970 00:00:00 GMT... and then create the date Obj from that\n long millisecs = System.currentTimeMillis();\n System.out.println(millisecs);\n Date dt2 = new Date(millisecs);\n System.out.println(dt2);\n System.out.println(\"=========================\");\n\n millisecs = dt2.getTime();//convert dateObj back to millisecs\n System.out.println(millisecs);\n System.out.println(\"dt2.toString(): \" + dt2.toString());\n System.out.println(\"=========================\");\n\n //check if after?\n System.out.println(dt1.after(dt2)); \n System.out.println(dt2.after(dt1));\n //check if before?\n System.out.println(dt1.before(dt2));\n System.out.println(dt2.before(dt1));\n\n\n\n System.out.println(\"=========================\");\n\n // compare 2 date Objects\n //returns 0 if the obj Date is equal to parameter's Date.\n //returns < 0 if obj Date is before the Date para.\n //returns > 0 if obj Date is after the Date para.\n int result = dt1.compareTo(dt2);\n System.out.println(\"dt1 < dt2: \" + result);\n result = dt2.compareTo(dt1);\n System.out.println(\"dt2 > dt1: \" + result);\n\n System.out.println(\"=========================\");\n\n //return true/false on testing equality\n System.out.println(dt1.equals(dt2));\n System.out.println(dt2.equals(dt1));\n System.out.println(\"=========================\");\n\n\n\n\n\n }", "public boolean dateIsEqual(Date date){\n\t\tboolean isEqual=true;\n\t\t\n\t\tif(!(date.getMonth()==month && date.getYear()==year && date.getDay()==day)){\n\t\t\tisEqual=false;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn isEqual;\n\t}", "public Date getValidFrom();", "@Test\n\tpublic void differenceBetweenDates() throws Exception {\n\t\tAssert.assertTrue(DateDifferentHelper.differenceBeteweenDates(ACTUAL_DATE));\n\t}", "public static boolean comprobarOrdenFechas (Date f1, Date f2){\n if(diferenciaFechas(f1,f2) <= 0){\n System.out.println(\"Fecha final es menor que la fecha inicial\");\n return false;\n }else{\n return true;\n }\n }", "@Test\n public void equalsOk(){\n Date date = new Date(1,Month.january,1970);\n assertTrue(date.equals(date));\n }", "public boolean equals(MyDate other){\n \t\tif (other.year == year){\n \t\t\tif (other.month == month){\n \t\t\t\tif (other.day == day){\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n\t\treturn false;\n\t}", "@Override\n public int compareTo(Date date) {\n if (this.year > date.year) {\n return 1;\n } else if (this.year < date.year) {\n return -1;\n } else if (this.year == date.year) {\n if (this.month > date.month) {\n return 1;\n } else if (this.month < date.month) {\n return -1;\n } else if (this.month == date.month) {\n if (this.day > date.day) {\n return 1;\n } else if (this.day < date.day) {\n return -1;\n } else if (this.day == date.day) {\n return 0;\n }\n }\n }\n return 0;\n }", "boolean IFbefore(Date day1, int ID1, Date day2, int ID2){\n if (day1.compareTo(day2) < 0) return true;\n if (day1.compareTo(day2) > 0) return false;\n if (ID1 < ID2) return true;\n return false;\n }", "public static boolean compareDates(String date, Integer days) throws ParseException {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n\n // create calendar and get today's date\n Calendar todayDate = Calendar.getInstance();\n todayDate.setTime(new Date());\n\n // add days to today's calendar date\n todayDate.add(Calendar.DATE, days);\n\n // break up the month, day, and year into individual values\n String year = String.valueOf(todayDate.get(Calendar.YEAR));\n String month = String.valueOf(todayDate.get(Calendar.MONTH)+1);\n String day = String.valueOf(todayDate.get(Calendar.DATE));\n\n String compareDate = year + \"/\" + month + \"/\" + day;\n\n Date date1 = sdf.parse(date);\n Date date2 = sdf.parse(compareDate);\n\n if (date1.compareTo(date2) == 0) {\n return true;\n }\n else if (date1.compareTo(date2) < 0) {\n return true;\n }\n else {\n return false;\n }\n\n }", "@Override\n public int compareTo(Date that) {\n if (this.year < that.year) return -1;\n if (this.year > that.year) return 1;\n if (this.month < that.month) return -1;\n if (this.month > that.month) return 1;\n if (this.day < that.day) return -1;\n if (this.day > that.day) return 1;\n return 0;\n }", "public Boolean checkPeriod( ){\r\n\r\n Date dstart = new Date();\r\n Date dend = new Date();\r\n Date dnow = new Date();\r\n\r\n\r\n\r\n // this part will read the openndate file in specific formate\r\n try (BufferedReader in = new BufferedReader(new FileReader(\"opendate.txt\"))) {\r\n String str;\r\n while ((str = in.readLine()) != null) {\r\n // splitting lines on the basis of token\r\n String[] tokens = str.split(\",\");\r\n String [] d1 = tokens[0].split(\"-\");\r\n String [] d2 = tokens[1].split(\"-\");\r\n \r\n int a = Integer.parseInt(d1[0]);\r\n dstart.setDate(a);\r\n a = Integer.parseInt(d1[1]);\r\n dstart.setMonth(a);\r\n a = Integer.parseInt(d1[2]);\r\n dstart.setYear(a);\r\n\r\n a = Integer.parseInt(d2[0]);\r\n dend.setDate(a);\r\n a = Integer.parseInt(d2[1]);\r\n dend.setMonth(a);\r\n a = Integer.parseInt(d2[2]);\r\n dend.setYear(a);\r\n\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"File Read Error\");\r\n }\r\n\r\n \r\n\r\n if ( dnow.before(dend) && dnow.after(dstart) )\r\n return true; \r\n\r\n return true;\r\n }", "private static boolean isPast(long[][] dates){\n if(dates[0][0] > dates[1][0])\n return true;\n else if(dates[0][0] == dates[1][0]){\n // If the year matches, then check if the month of Start Date is greater than the month of End Date\n // If the month matches, then check if the day of Start Date is greater than the day of End Date\n if(dates[0][1] > dates[1][1])\n return true;\n else if(dates[0][1] == dates[1][1] && dates[0][2] > dates[1][2])\n return true;\n }\n \n // If the Start Date is older than End Date, return false\n return false;\n }", "public static boolean before(Date target, Date date){\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(target);\n\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date);\n\n if(cal1.compareTo(cal2) == -1) return true;\n return false;\n }", "public static int compararData(Date data1, Date data2) {\r\n\r\n\t\tCalendar calendar1;\r\n\t\tCalendar calendar2;\r\n\r\n\t\tint ano1;\r\n\t\tint ano2;\r\n\t\tint mes1;\r\n\t\tint mes2;\r\n\t\tint dia1;\r\n\t\tint dia2;\r\n\r\n\t\tint resultado;\r\n\r\n\t\tcalendar1 = Calendar.getInstance();\r\n\t\tcalendar1.setTime(data1);\r\n\r\n\t\tano1 = calendar1.get(Calendar.YEAR);\r\n\t\tmes1 = calendar1.get(Calendar.MONTH);\r\n\t\tdia1 = calendar1.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tcalendar2 = Calendar.getInstance();\r\n\t\tcalendar2.setTime(data2);\r\n\r\n\t\tano2 = calendar2.get(Calendar.YEAR);\r\n\t\tmes2 = calendar2.get(Calendar.MONTH);\r\n\t\tdia2 = calendar2.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tif (ano1 == ano2) {\r\n\r\n\t\t\tif (mes1 == mes2) {\r\n\r\n\t\t\t\tif (dia1 == dia2) {\r\n\t\t\t\t\tresultado = 0;\r\n\t\t\t\t} else if (dia1 < dia2) {\r\n\t\t\t\t\tresultado = -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresultado = 1;\r\n\t\t\t\t}\r\n\t\t\t} else if (mes1 < mes2) {\r\n\t\t\t\tresultado = -1;\r\n\t\t\t} else {\r\n\t\t\t\tresultado = 1;\r\n\t\t\t}\r\n\t\t} else if (ano1 < ano2) {\r\n\t\t\tresultado = -1;\r\n\t\t} else {\r\n\t\t\tresultado = 1;\r\n\t\t}\r\n\t\treturn resultado;\r\n\t}", "boolean hasDeliveryDateBefore();", "private boolean compareWithCurrentDate(LocalDateTime deadline, LocalDateTime assignDate, boolean isLessThanDay) {\n boolean isReadyToNotify=false;\n if(isLessThanDay){\n if(deadline.until(LocalDateTime.now(),HOURS)==HALF_A_DAY){\n isReadyToNotify=true;\n }\n }else{\n // if this time is the mean of deadline and assign date\n if(deadline.until(LocalDateTime.now(),HOURS) == deadline.until(assignDate,HOURS)/2){\n isReadyToNotify=true;\n }\n }\n return isReadyToNotify;\n }", "public static boolean verifyApplyDates(final String startDate, final String endDate) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n try {\n Date fromDate = sdf.parse(startDate);\n Date toDate = sdf.parse(endDate);\n Date curDate = new Date();\n if (!fromDate.after(curDate)) {\n System.out.println(\"Start Date must be greater than Current Date\");\n return false;\n } else if (!toDate.after(fromDate)) {\n System.out.println(\"End Date must be greater than Start Date\");\n return false;\n }\n } catch (Exception e) {\n System.out.println(e);\n }\n return true;\n }", "boolean hasStartDate();", "public Boolean validarFecha(LocalDate fechaIngresada);", "boolean isFilterByDate();", "public boolean validarFecha(LocalDate fecha) { \n // se comprueba que la fecha sea anterior o igual a la actual\n return fecha.isBefore(LocalDate.now()) || fecha.isEqual(LocalDate.now());\n }", "public boolean isBefore(Date date2)\n {\n if (year < date2.year)\n return true;\n else if (year == date2.year && month < date2.month)\n return true;\n else if (year == date2.year && month == date2.month && day < date2.day)\n return true;\n else if (year == date2.year && month == date2.month && day == date2.day\n && hour < date2.hour)\n return true;\n else if (year == date2.year && month == date2.month && day == date2.day\n && hour == date2.hour && minute < date2.minute)\n return true;\n else\n return false;\n }", "private int sameDateCompare(Deadline other) {\n if (!this.hasTime() && other.hasTime()) {\n return -1;\n } else if (this.hasTime() && !other.hasTime()) {\n return 1;\n } else if (this.hasTime() && other.hasTime()) {\n TimeWrapper thisTimeWrapper = this.getTime();\n TimeWrapper otherTimeWrapper = other.getTime();\n return thisTimeWrapper.compareTo(otherTimeWrapper);\n }\n return 0;\n }", "private boolean checkStartDateBeforeEndDate(String startDate, String endDate) {\n SimpleDateFormat date = new SimpleDateFormat(\"ddMMyy\");\n Date startingDate = null;\n try {\n startingDate = date.parse(startDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Date endingDate = null;\n try {\n endingDate = date.parse(endDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if (startingDate.before(endingDate)) {\n return true;\n } else {\n return false;\n }\n }", "@Override\n public int compare(Todo td1, Todo td2) {\n\n // if td1 is null, then it should come after td2\n if (td1.getDueDate() == null && td2.getDueDate()!= null) {\n return GREATER;\n }\n // if td2 is null, then it should come after td1\n if (td1.getDueDate() != null && td2.getDueDate() == null) {\n return LESS;\n }\n // if both null, they are equal\n if (td1.getDueDate() == null && td2.getDueDate() == null) {\n return EQUAL;\n }\n // else, make into date object\n String td1Due = td1.getDueDate();\n String td2Due = td2.getDueDate();\n String[] td1DateRes = td1Due.split(\"/\");\n String[] td2DateRes = td2Due.split(\"/\");\n\n // Not caring about invalid formatting yet here\n // if both not null ,we create a date object, and let it compare themselves\n Date td1Date = new Date(td1DateRes[MONTH_INDEX],td1DateRes[DAY_INDEX],td1DateRes[YEAR_INDEX]);\n Date td2Date = new Date(td2DateRes[MONTH_INDEX],td2DateRes[DAY_INDEX],td2DateRes[YEAR_INDEX]);\n\n return td1Date.compareTo(td2Date);\n }", "public boolean verifyReturnDate(Date date){\n\t\tLocale en = new Locale(\"en\");\n\t\tString rDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn returnDate.getText().equals(rDate);\n\t}", "public int compare(Date date){\n if(date.getYear() > this.year){\n return -1;\n }else if(date.getYear() < this.year){\n return 1;\n }\n\n if(date.getMonth() > this.month){\n return -1;\n }else if(date.getMonth() < this.month){\n return 1;\n }\n\n if(date.getDay() > this.day){\n return -1;\n }else if(date.getDay() < this.day){\n return 1;\n }\n\n return 0;\n }", "public boolean verifyLeaveDate(Date date){\t\t\n\t\tLocale en = new Locale(\"en\");\t\t\n\t\tString lDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn leaveDate.getText().equals(lDate);\n\t}", "private boolean isInvoiceBetween(ContractsGrantsInvoiceDocument invoice, Timestamp fromDate, Timestamp toDate) {\r\n if (ObjectUtils.isNotNull(fromDate)) {\r\n if (fromDate.after(new Timestamp(invoice.getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis()))) {\r\n return false;\r\n }\r\n }\r\n if (ObjectUtils.isNotNull(toDate)) {\r\n if (toDate.before(new Timestamp(invoice.getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis()))) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "private void checksOldExpense() {\n DateUtils dateUtils = new DateUtils();\n\n // Breaking date string from date base\n String[] expenseDate = dateDue.getText().toString().split(\"-\");\n\n if((Integer.parseInt(expenseDate[GET_MONTH]) < Integer.parseInt(dateUtils.currentMonth))\n && (Integer.parseInt(expenseDate[GET_YEAR]) <= Integer.parseInt(dateUtils.currentYear))){\n\n }\n }", "@Override\n public int compare(Date date1, Date date2) {\n if (date1.getDay() < date2.getDay() || date1.getMonth() < date2.getMonth() || date1.getYear() < date2.getYear())\n return -1;\n\n else if (date1.getDay() > date2.getDay() || date1.getMonth() > date2.getMonth() || date1.getYear() > date2.getYear())\n return 1;\n\n return 0;\n\n //Finally sort wins according to the -1, 0, 1 ascending order\n }", "public boolean checkDateEqual(LocalDate date) {\n return date.equals(this.date);\n }", "public static boolean isEndordate(int cust_id,int movie_id,java.sql.Date date1) {\n SimpleDateFormat formatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n java.util.Date date11 = null;\n try {\n date11 = formatter1.parse(\"1970-06-06\");\n } catch (ParseException e) {\n e.printStackTrace();\n }\n long r_date = date1.getTime();\n irate_Connection om = new irate_Connection();\n om.startConnection(\"user1\", \"password\", dbName);\n conn = om.getConnection();\n s = om.getStatement();\n irate_DQL dql = new irate_DQL(conn, s);\n java.sql.Date date2 = dql.atten(cust_id, movie_id);\n if(date2 == date11)\n return false;\n long a_date = date2.getTime();\n long diffinmill = r_date - a_date;\n long diff = TimeUnit.DAYS.convert(diffinmill,TimeUnit.MILLISECONDS);\n if(diff >= 1)\n return true;\n else\n return false;\n\n }", "@Override\n public int compareTo(SmartDate o) {\n return this.date.compareTo(o.date);\n }", "@Test\r\n public void testCalculDureeEffectiveLocation() {\r\n LocalDate date1 = LocalDate.parse(\"2018-04-02\");\r\n LocalDate date2 = LocalDate.parse(\"2018-04-10\");\r\n\r\n int res1 = DateUtil.calculDureeEffectiveLocation(Date.from(date1.atStartOfDay(ZoneId.systemDefault()).toInstant()),\r\n Date.from(date2.atStartOfDay(ZoneId.systemDefault()).toInstant()));\r\n assertEquals(7, res1);\r\n\r\n date1 = LocalDate.parse(\"2018-01-10\");\r\n date2 = LocalDate.parse(\"2018-01-17\");\r\n\r\n int res2 = DateUtil.calculDureeEffectiveLocation(Date.from(date1.atStartOfDay(ZoneId.systemDefault()).toInstant()),\r\n Date.from(date2.atStartOfDay(ZoneId.systemDefault()).toInstant()));\r\n assertEquals(5, res2);\r\n\r\n date1 = LocalDate.parse(\"2018-04-30\");\r\n date2 = LocalDate.parse(\"2018-05-09\");\r\n\r\n int res3 = DateUtil.calculDureeEffectiveLocation(Date.from(date1.atStartOfDay(ZoneId.systemDefault()).toInstant()),\r\n Date.from(date2.atStartOfDay(ZoneId.systemDefault()).toInstant()));\r\n assertEquals(6, res3);\r\n }", "private boolean isSame(Calendar first, Calendar second)\n {\n return (first.get(Calendar.DAY_OF_MONTH) == second.get(Calendar.DAY_OF_MONTH))\n && (first.get(Calendar.MONTH) == second.get(Calendar.MONTH))\n && (first.get(Calendar.YEAR) == second.get(Calendar.YEAR));\n }", "public boolean isDate(Date date){\r\n if((new Date()).getTime() < date.getTime()) return false;\r\n return true;\r\n }", "@Override\r\n\t public int compareTo(Interval o) {\n\r\n\t SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t try{\r\n\t Date startDate = sdf.parse(start);\r\n\t Date endDate = sdf.parse(end);\r\n\t Date pstartDate = sdf.parse(o.start);\r\n\t Date pendDate = sdf.parse(o.end);\r\n\r\n\t return startDate.compareTo(pstartDate);\r\n\r\n\t }catch(Exception ex){\r\n\t ex.printStackTrace();\r\n\t }\r\n\t return 0;\r\n\t }", "@Test\r\n public void testCompareTo3() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"3/1/2013\");\r\n assertTrue(d1.compareTo(d2) == 0);\r\n }", "public boolean validDateRange() {\n\t\treturn dateEnd.compareTo(dateStart) > 0;\n\t}", "boolean isSetFoundingDate();", "public static boolean checkDate(LocalDate birthDate, LocalDate currentDate) {\n if(birthDate.isBefore(currentDate)){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "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 Date getValidatedTo();", "public boolean compareMonth(String date){\n\n LocalDateTime providedDate = LocalDateTime.parse(date, dateTimeFormatter);\n LocalDateTime currentPlusOneMonth = current.plusMonths(1);\n\n if(providedDate.isBefore(current)){\n return false;\n }if(providedDate.isAfter(currentPlusOneMonth)){\n return false;\n }\n\n return true;\n\n }", "boolean hasEndDate();", "public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}", "private boolean hasSetToAndFromDates() {\r\n return (this.fromDateString != null) && (this.toDateString != null);\r\n }", "boolean isSetDate();", "public static boolean equals(Date a, Date b) {\n if (a == null || b == null) return (a == null && b == null);\n if (a == b) return true;\n Calendar cal1 = Calendar.getInstance();\n Calendar cal2 = Calendar.getInstance();\n cal1.setTime(a);\n cal2.setTime(b);\n return cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR) &&\n cal1.get(Calendar.DAY_OF_YEAR) == cal2.get(Calendar.DAY_OF_YEAR);\n }", "boolean endDateAfter(String start, String end) {\n SimpleDateFormat ddMMyyyy = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n Calendar c = Calendar.getInstance();\n try {\n Date startDate = ddMMyyyy.parse(start);\n Date endDate = ddMMyyyy.parse(end);\n c.setTime(startDate);\n return startDate.compareTo(endDate) <= 0;\n } catch (ParseException e) {\n System.out.println(\"Error occurred parsing Date\");\n }\n return true;\n }", "private boolean CheckAvailableDate(TimePeriod tp)\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query = \"SELECT * FROM Available WHERE available_hid = '\"+hid+\"' AND \"+\n\t\t\t\t\t\t\t\"startDate = '\"+tp.stringStart+\"' AND endDate = '\"+tp.stringEnd+\"'\"; \n\t\t\t\n\t\t\tResultSet rs = con.stmt.executeQuery(query); \n\t\t\t\n\t\t\tcon.closeConnection();\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn true; \n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "public boolean runsAt(Date date);", "@Test\n public void equals() {\n assertTrue(DATE_A.equals(DATE_A));\n\n // different object, same values -> returns true.\n assertTrue(DATE_A.equals(new Date(DATE_A.getWeek(), DATE_A.getDay(), DATE_A.getTime())));\n\n // different values -> returns false.\n assertFalse(DATE_A.equals(DATE_AFTER_READING));\n\n // different week -> returns false\n assertFalse(DATE_A.equals(DATE_B));\n }", "@Override\r\n public int compareTo(HISDate date) {\r\n int cmpResult = -11111; // ERROR\r\n try {\r\n cmpResult = this.compare(date);\r\n } catch (Exception e) {\r\n logger.error(\"compareTo(): Ungültiges Datum: \" + date);\r\n cmpResult = -11111;\r\n }\r\n return cmpResult;\r\n }", "private static int compareDateTime(XMLGregorianCalendar dt1, XMLGregorianCalendar dt2) {\n // Returns codes are -1/0/1 but also 2 for \"Indeterminate\"\n // which occurs when one has a timezone and one does not\n // and they are less then 14 hours apart.\n\n // F&O has an \"implicit timezone\" - this code implements the XMLSchema\n // compare algorithm.\n\n int x = dt1.compare(dt2) ;\n return convertComparison(x) ;\n }", "public static boolean isBeforeDay(Date date1, Date date2) {\n if (date1 == null || date2 == null) {\n throw new IllegalArgumentException(\"The dates must not be null\");\n }\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(date1);\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date2);\n return isBeforeDay(cal1, cal2);\n }", "boolean isMatch(ZonedDateTime date);", "public int compareWithDate(AbstractEntity objectCompare){\n\t\tif(this.fechaUltimaModificacion!=null){\n\t\t\tif(objectCompare.fechaUltimaModificacion!=null)\n\t\t\t\treturn this.fechaUltimaModificacion.compareTo(objectCompare.fechaUltimaModificacion);\n\t\t\telse\n\t\t\t\treturn this.fechaUltimaModificacion.compareTo(objectCompare.fechaCreacion);\n\t\t}\n\t\telse if(objectCompare.fechaUltimaModificacion!=null)\n\t\t\treturn this.fechaCreacion.compareTo(objectCompare.fechaUltimaModificacion);\n\t\telse\n\t\t\treturn this.fechaCreacion.compareTo(objectCompare.fechaCreacion);\n\t\t\n\t}", "int compare( IDateTimeValueType rhs );", "public static boolean checkDateConstraints(Task task) {\n if (task.getBeginDate().before(new Date()) ||\n task.getBeginDate().after(task.getEndingDate()) ||\n task.getBeginDate().equals(task.getEndingDate())) {\n return false;\n }\n return true;\n }", "private boolean checkProjectTaskDates(Project pr)\n\t{\n\t\tfor(Task ts:taskManager.get(\"toInsert\"))\n\t\t{\n\t\t\tif(\n\t\t\t\tcheckdates(ts.getTask_STARDATE(),pr.getEndDate())&&\n\t\t\t\tcheckdates(pr.getStartDate(),ts.getTask_STARDATE())&&\n\t\t\t\tcheckdates(ts.getTask_ENDDATE(),pr.getEndDate())&&\n\t\t\t\tcheckdates(pr.getStartDate(),ts.getTask_ENDDATE()))\n\t\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\t\treturn false;\n\t\t}\n\t\tfor(Task ts:taskManager.get(\"toEdit\"))\n\t\t{\n\t\t\tif(\n\t\t\t\tcheckdates(ts.getTask_STARDATE(),pr.getEndDate())&&\n\t\t\t\tcheckdates(pr.getStartDate(),ts.getTask_STARDATE())&&\n\t\t\t\tcheckdates(ts.getTask_ENDDATE(),pr.getEndDate())&&\n\t\t\t\tcheckdates(pr.getStartDate(),ts.getTask_ENDDATE()))\n\t\t\t\t\t continue;\n\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t\t\n\t\t}\n\t\t\t\n\t\tArrayList<Task> tasks=null;\n\t\ttry \n\t\t{\n\t\t\ttasks=db.selectTaskforProjID(project.getProjectID());\n\t\t}\n\t\tcatch (SQLException e) \n\t\t{\n\t\t\tErrorWindow wind = new ErrorWindow(e); \n\t\t\tUI.getCurrent().addWindow(wind);\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfor(Task ts:tasks)\n\t\t{\n\t\t\tif(\n\t\t\t\tcheckdates(ts.getTask_STARDATE(),pr.getEndDate())&&\n\t\t\t\tcheckdates(pr.getStartDate(),ts.getTask_STARDATE())&&\n\t\t\t\tcheckdates(ts.getTask_ENDDATE(),pr.getEndDate())&&\n\t\t\t\tcheckdates(pr.getStartDate(),ts.getTask_ENDDATE()))\n\t\t\t\t\t continue;\n\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t\t\t\n\t\t}\n\t\treturn true;\n\t }", "public static long daysTillNow(Date from) { \n \tDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n \tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n \tLocalDate dateBefore = LocalDate.parse(df.format(from), formatter);\n \treturn ChronoUnit.DAYS.between( dateBefore , LocalDate.now()); \t\n }", "public boolean isValidDate() {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(mDate.getDate());\n int yearNow = cal.get(Calendar.YEAR);\n int monthNow = cal.get(Calendar.MONTH);\n int dayNow = cal.get(Calendar.DAY_OF_MONTH);\n cal.setTimeInMillis(selectedDate.getTimeInMillis());\n int yearSelected = cal.get(Calendar.YEAR);\n int monthSelected = cal.get(Calendar.MONTH);\n int daySelected = cal.get(Calendar.DAY_OF_MONTH);\n if (yearSelected <= yearNow) {\n if (monthSelected <= monthNow) {\n return daySelected >= dayNow;\n }\n }\n return true;\n }" ]
[ "0.732457", "0.69704664", "0.6828056", "0.67833066", "0.6781768", "0.6680812", "0.66069555", "0.66024923", "0.64779586", "0.64570844", "0.6432603", "0.64087284", "0.6378502", "0.6333235", "0.6330219", "0.6317426", "0.6317426", "0.6311401", "0.62914664", "0.6288995", "0.62248963", "0.62158024", "0.6213617", "0.6176351", "0.6172587", "0.6164759", "0.6155282", "0.61180747", "0.61130214", "0.6112892", "0.6062569", "0.6034245", "0.59867996", "0.59744227", "0.59666264", "0.59651476", "0.5954078", "0.5949595", "0.59479433", "0.5943147", "0.5920508", "0.5913872", "0.59011304", "0.58999217", "0.5893481", "0.5866149", "0.58387804", "0.5838684", "0.5832951", "0.5811822", "0.5780112", "0.5778587", "0.57769084", "0.57623726", "0.57449144", "0.5742216", "0.57307446", "0.5726227", "0.5720102", "0.5718817", "0.5717578", "0.5694338", "0.56931305", "0.567787", "0.5674469", "0.56733245", "0.56678224", "0.56663024", "0.5665774", "0.56509674", "0.564641", "0.56430596", "0.564217", "0.5641809", "0.5612869", "0.56095695", "0.560281", "0.56001705", "0.5597334", "0.55971575", "0.5591633", "0.55879587", "0.558779", "0.5587539", "0.5584106", "0.5583165", "0.5564368", "0.55616874", "0.5560686", "0.5551142", "0.55469", "0.55445576", "0.55390674", "0.5528938", "0.552346", "0.55226696", "0.5520615", "0.5515949", "0.5510227", "0.5509743" ]
0.6712815
5
compare from date to current date
public boolean dateCompareCurr(String[] inputdate){ SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); Date comparedate = null; // 입력받은 날짜 try { Date curdate = dateFormat.parse(dateFormat.format(new Date())); // 현재날짜 for (int idx = 0; idx < inputdate.length; idx++) { comparedate = dateFormat.parse(inputdate[idx]); if(comparedate.compareTo(curdate) >= 0){ return false; } } } catch (Exception e) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }", "public boolean checkCurrentDate()\n {\n boolean valid = this.check();\n if(!valid) return valid;\n\n try{\n\n date = DateHelper.stringToDate(this.getDateString());\n if(super.isMandatory() && date==null)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n }\n catch (Exception e)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n\n if (date != null\n &&\n (date.after(currentDate) || date.equals(currentDate)))\n {\n super.clearMessage();\n super.setMessage(FacesHelper.getBundleMessage(\"date_after_current\"));\n\n return valid && false;\n }\n return valid;\n }", "public static boolean checkDate(LocalDate birthDate, LocalDate currentDate) {\n if(birthDate.isBefore(currentDate)){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "private boolean isToday(Date lectureDate){\n Date now = new Date();\n if(lectureDate.getYear()<now.getYear()|| lectureDate.getYear()>now.getYear()){\n return false;\n }else{\n if(lectureDate.getMonth()<now.getMonth()||(lectureDate.getMonth()>now.getMonth())){\n return false;\n }else{\n if(lectureDate.getDate()<now.getDate()|| lectureDate.getDate()>now.getDate()){\n return false;\n }else{\n return true;\n }\n }\n }\n }", "private boolean isToday(Calendar currentCal){\n return currentCal.get(Calendar.DATE) == Calendar.getInstance().get(Calendar.DATE)\n && currentCal.get(Calendar.MONTH) == Calendar.getInstance().get(Calendar.MONTH)\n && currentCal.get(Calendar.YEAR) == Calendar.getInstance().get(Calendar.YEAR);\n }", "private boolean compareWithCurrentDate(LocalDateTime deadline, LocalDateTime assignDate, boolean isLessThanDay) {\n boolean isReadyToNotify=false;\n if(isLessThanDay){\n if(deadline.until(LocalDateTime.now(),HOURS)==HALF_A_DAY){\n isReadyToNotify=true;\n }\n }else{\n // if this time is the mean of deadline and assign date\n if(deadline.until(LocalDateTime.now(),HOURS) == deadline.until(assignDate,HOURS)/2){\n isReadyToNotify=true;\n }\n }\n return isReadyToNotify;\n }", "public int compareWithToday() {\r\n return this.compare(HISDate.getToday());\r\n }", "public boolean wasToday() {\n\t\tlong endInMillis = endTime.getTime();\n\t\tCalendar endTimeDate = Calendar.getInstance();\n\t\tendTimeDate.setTimeInMillis(endInMillis);\n\t\tCalendar today = Calendar.getInstance();\n\t\tif (today.get(Calendar.YEAR) == endTimeDate.get(Calendar.YEAR) && today.get(Calendar.DAY_OF_YEAR) == endTimeDate.get(Calendar.DAY_OF_YEAR)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean checkFutureOrCurrentDate()\n {\n boolean valid = this.check();\n try{\n\n date = DateHelper.stringToDate(this.getDateString());\n if(super.isMandatory() && date==null)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n }\n catch (Exception e)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n if (date != null\n &&\n (date.before(currentDate)))\n {\n super.clearMessage();\n super.setMessage(\"Date should be in future or in present date!\");\n\n return valid && false;\n }\n return valid;\n\n }", "public static void playgroundForTime(){\n\t\tLocalDate localDate = LocalDate.of(2013, 4, 25);\r\n\t\tSystem.out.println(localDate.now().isBefore(localDate));\r\n\t\t\r\n\t}", "public boolean isToday()\n {\n Calendar todayCalendar = Calendar.getInstance();\n\n return (calendar.get(Calendar.YEAR ) == todayCalendar.get(Calendar.YEAR ))\n && (calendar.get(Calendar.MONTH ) == todayCalendar.get(Calendar.MONTH ))\n && (calendar.get(Calendar.DAY_OF_MONTH) == todayCalendar.get(Calendar.DAY_OF_MONTH));\n }", "public static boolean dueDateHasPassed(String currentDate, String dueDate){\n if(getYear(currentDate)>getYear(dueDate)){\n return true;\n }\n else if(getYear(currentDate) == getYear(dueDate)){\n if(getMonth(currentDate)>getMonth(dueDate)){\n return true;\n }\n else if(getMonth(currentDate) == getMonth(dueDate)){\n if(getDay(currentDate)>getDay(dueDate)){\n return true;\n }\n }\n }\n return false;\n }", "public static void main(String[] args) \r\n {\n\t Date date = new Date();\r\n\t System.out.println(date);\r\n\t \r\n\t //comparision of dates\r\n\t /*\r\n\t Return\r\n 1. It returns the value 0 if the argument Date is equal to this Date. \r\n 2. It returns a value less than 0 if this Date is before the Date argument.\r\n 3. It returns a value greater than 0 if this Date is after the Date argument.\r\n\t */\r\n\t Date d=new Date(2021,05,31);\r\n\t System.out.println(d.equals(date));\r\n Date d1=new Date(2021,5,26); \r\n int comparison=d.compareTo(d1); \r\n System.out.println();\r\n System.out.println(\"Your comparison value is : \"+comparison); \r\n }", "public boolean isValidDate() {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(mDate.getDate());\n int yearNow = cal.get(Calendar.YEAR);\n int monthNow = cal.get(Calendar.MONTH);\n int dayNow = cal.get(Calendar.DAY_OF_MONTH);\n cal.setTimeInMillis(selectedDate.getTimeInMillis());\n int yearSelected = cal.get(Calendar.YEAR);\n int monthSelected = cal.get(Calendar.MONTH);\n int daySelected = cal.get(Calendar.DAY_OF_MONTH);\n if (yearSelected <= yearNow) {\n if (monthSelected <= monthNow) {\n return daySelected >= dayNow;\n }\n }\n return true;\n }", "public Boolean hasCardExpired(Date currentDate);", "@SuppressWarnings(\"deprecation\")\r\n public static final boolean compareTwoDateSpecificToEndDay(Date expiredDate, Date dateNow) {\r\n\r\n int hoursNow = dateNow.getHours();\r\n int minuteNow = dateNow.getMinutes();\r\n\r\n return ((expiredDate.compareTo(dateNow) < 0)\r\n || ((expiredDate.compareTo(dateNow) == 0) && (hoursNow > 22 && minuteNow > 58)));\r\n\r\n }", "public static boolean isInBetweenDates(LocalDate startingDate,LocalDate endingDate,LocalDate currentDate) {\n //compareTo is used to compare 2 dates\n if(currentDate.compareTo(startingDate) * currentDate.compareTo(endingDate) <0)\n {\n return true;\n }\n else\n {\n return false;\n }\n\n }", "public static int compareWithToday(String dat) {\r\n int cmpResult = -11111; // ERROR\r\n try {\r\n HISDate d = HISDate.valueOf(dat);\r\n HISDate today = HISDate.getToday();\r\n cmpResult = d.compare(today);\r\n } catch (Exception e) {\r\n logger.error(\"compareWithToday(): Ungültiges Datum: \" + dat);\r\n cmpResult = -11111;\r\n }\r\n return cmpResult;\r\n }", "boolean hasDate();", "public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}", "boolean hasFromDay();", "public boolean validarFecha(LocalDate fecha) { \n // se comprueba que la fecha sea anterior o igual a la actual\n return fecha.isBefore(LocalDate.now()) || fecha.isEqual(LocalDate.now());\n }", "private boolean checkdates(java.util.Date date,java.util.Date date2)\n\t{\n\t\tif (date==null||date2==null) return true;\n\t\tif (!date.after(date2)&&!date.before(date2))return true;\n\t\treturn date.before(date2);\n\t}", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "public void verifyDate(){\n\n // currentDateandTime dataSingleton.getDay().getDate();\n\n }", "public boolean checkDate(Date dateNow, Date maxAccess) {\n return dateNow.after(maxAccess);\n }", "private boolean isCurrentYear(Date date) {\n boolean result = false;\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(date);\n Calendar today = Calendar.getInstance();\n if (today.get(Calendar.YEAR) == calendar.get(Calendar.YEAR)) {\n result = true;\n }\n return result;\n }", "public static boolean before(Date target, Date date){\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(target);\n\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date);\n\n if(cal1.compareTo(cal2) == -1) return true;\n return false;\n }", "@Override\n public long dateCompare(LocalDate localDate1, LocalDate localDate2) {\n return localDate1.until(localDate2, ChronoUnit.MONTHS);\n }", "@Test\n public void compareToWithMainDateInThePast(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.compareTo(new Date(31,Month.december,1970)),-1);\n }", "private boolean checkDate(PoliceObject po, LocalDate start, LocalDate end) {\n LocalDate formattedEvent = LocalDate.parse(po.getDate());\n boolean isAfter = formattedEvent.isAfter(start) || formattedEvent.isEqual(start);\n boolean isBefore = formattedEvent.isBefore(end) || formattedEvent.isEqual(end);\n return (isAfter && isBefore);\n }", "private void checksOldExpense() {\n DateUtils dateUtils = new DateUtils();\n\n // Breaking date string from date base\n String[] expenseDate = dateDue.getText().toString().split(\"-\");\n\n if((Integer.parseInt(expenseDate[GET_MONTH]) < Integer.parseInt(dateUtils.currentMonth))\n && (Integer.parseInt(expenseDate[GET_YEAR]) <= Integer.parseInt(dateUtils.currentYear))){\n\n }\n }", "private boolean equalsDate(Date thisDate, Date otherDate) {\n if (otherDate == null) {\n return false;\n }\n SimpleDateFormat dateFormating = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n String thisDateString = dateFormating.format(thisDate);\n String otherDateString = dateFormating.format(otherDate);\n if (!thisDateString.equals(otherDateString)) {\n return false;\n }\n \n return true;\n }", "public Date getValidFrom();", "public static boolean isToday(Date date) {\r\n\t\treturn isSameDay(date, Calendar.getInstance().getTime());\r\n\t}", "public static boolean isToday(java.util.Date date) {\n return isSameDay(date, Calendar.getInstance().getTime());\n }", "public String verifyCurrentDate(String object, String data) {\n logger.debug(\"Verifying the Current Date\");\n try {\n \tWebElement ele = wait.until(explicitWaitForElement((By.xpath(OR.getProperty(object))))); \t\n\t\t\tString actual = ele.getAttribute(OR.getProperty(\"ATTRIBUTE_VALUE\")); //added by Surender\n\t\t\tif(actual==null)\n \t{\n\t\t\t\t actual =ele.getText().trim();\n \t}\n \telse\n \t\t actual =ele.getAttribute(OR.getProperty(\"ATTRIBUTE_VALUE\")).trim();\n DateFormat DtFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n Date date = new Date();\n DtFormat.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n String expected = DtFormat.format(date).toString().trim();\n\n logger.debug(\"expected\" + expected);\n logger.debug(\"act\" + actual);\n if (actual.trim().contains(expected)) // edited by sdhamija.\n // replaced equals with\n // contains\n return Constants.KEYWORD_PASS;\n else\n return Constants.KEYWORD_FAIL + \" --current date is not displayed, actual: \" + actual + \" -- Expected = \" + expected + \" \";\n } \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception e) {\n \n return Constants.KEYWORD_FAIL + \" Object not found \" + e.getMessage();\n }\n }", "public boolean checkReservationDateFromToday(String resMonth, String resDay, String resYear){\n int daysDiff,monthDiff,yearDiff; //date difference\n int monthToday,dayToday,yearToday; //date today\n int monthReserved,dayReserved,yearReserved; //date of reservation\n \n //date of reservation\n String sMonth,sDay,sYear;\n sMonth = resMonth;\n sDay = resDay;\n sYear = resYear;\n \n getCurrentDate(); //call to get current date\n \n boolean dateValid = false;\n sMonth = convertMonthToDigit(sMonth); //convert string month to string number\n \n monthToday = parseInt(month);\n dayToday = parseInt(day);\n yearToday = parseInt(year);\n \n //convert to integer\n monthReserved = parseInt(sMonth);\n dayReserved = parseInt(sDay);\n yearReserved = parseInt(sYear);\n \n //get the difference\n monthDiff = monthReserved - monthToday;\n daysDiff = dayReserved - dayToday;\n yearDiff = yearReserved - yearToday;\n \n System.out.println(\"startMonth: \"+ sMonth);\n System.out.println(\"yearDiff: \" + yearDiff);\n System.out.println(\"daysDiff: \" + daysDiff);\n System.out.println(\"monthDiff: \" + monthDiff);\n \n if(yearDiff > 0){ //next year\n return true;\n }\n \n if(yearDiff == 0){ //this year\n if(monthDiff >= 0){\n if(monthDiff == 0 && daysDiff == 0){ //cannot reserve room on the day\n //invalid day, the date is today\n dateValid = false;\n System.out.println(\"reservation day must not today.\");\n }else if(monthDiff==0 && daysDiff < 0){ // same month today, invalid day diff\n dateValid = false; \n System.out.println(\"reservation day must not in the past\");\n }else if(monthDiff>0 && daysDiff < 0){ //not the same month today, accept negative day diff\n dateValid = true;\n }else{ //the same month and valid future day\n dateValid = true;\n }\n }else{\n //invalid month\n System.out.println(\"reservation month must not in the past.\");\n }\n }else{\n //invalid year\n System.out.println(\"reservation year must not in the past.\");\n }\n \n return dateValid;\n }", "boolean hasDeliveryDateBefore();", "public boolean validateDate() {\r\n\t\tDate now = new Date();\r\n\t\t// expire date should be in the future\r\n\t\tif (now.compareTo(getExpireDate()) != -1)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "public boolean validateDate(TradeModel tradeModel)\n {\n int i = tradeModel.getMaturityDate().compareTo(LocalDate.now());\n if (i<0)\n return false;\n else\n return true;\n }", "private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n return true;\r\n }\r\n return false;\r\n }", "@Test\n public void equalsOk(){\n Date date = new Date(1,Month.january,1970);\n assertTrue(date.equals(date));\n }", "private boolean isEqualDate(DateStruct d1, DateStruct d2)\n {\n boolean isEqual = false;\n if ( d1.year == d2.year && d1.month == d2.month && d1.day == d2.day )\n {\n isEqual = true;\n }\n return isEqual;\n }", "public boolean checkTimePeriod(String from, String to) throws ParseException{\r\n\t\r\n\tDateFormat df = new SimpleDateFormat (\"yyyy-MM-dd\");\r\n boolean b = true;\r\n // Get Date 1\r\n Date d1 = df.parse(from);\r\n\r\n // Get Date 2\r\n Date d2 = df.parse(to);\r\n\r\n //String relation=\"\";\r\n if (d1.compareTo(d2)<=0){\r\n \t b=true;\r\n // relation = \"the date is less\";\r\n }\r\n else {\r\n b=false;\r\n }\r\n return b;\r\n}", "public boolean dateIsEqual(Date date){\n\t\tboolean isEqual=true;\n\t\t\n\t\tif(!(date.getMonth()==month && date.getYear()==year && date.getDay()==day)){\n\t\t\tisEqual=false;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn isEqual;\n\t}", "public boolean isDate(Date date){\r\n if((new Date()).getTime() < date.getTime()) return false;\r\n return true;\r\n }", "public static void isValid(GregorianCalendar gc, boolean beforeNow,\n\t boolean afterNow) {\n\t\n\t//create a calendar for today's date\n\tGregorianCalendar now = new GregorianCalendar();\n\t\n\t//null validation\n\tif(gc != null) {\n\t //if the date is not allowed to be before today\n\t if(!beforeNow) {\n\t\t//validate that it is not before today\n\t\tif(gc.get(gc.YEAR) < now.get(now.YEAR))\n\t\t throw new IllegalArgumentException();\n\n\t\t//only check the month if it is also the current year\n\t\tif(gc.get(gc.YEAR) == now.get(now.YEAR) &&\n\t\t\tgc.get(gc.MONTH) < now.get(now.MONTH))\n\t\t throw new IllegalArgumentException();\n\n\t\t//only check the day if it is also the current year and month\n\t\tif(gc.get(gc.YEAR) == now.get(now.YEAR) &&\n\t\t\tgc.get(gc.MONTH) == now.get(now.MONTH) &&\n\t\t\tgc.get(gc.DAY_OF_MONTH) < now.get(now.DAY_OF_MONTH))\n\t\t throw new IllegalArgumentException();\n\t }\n\n\t //if the date is not allowed to be after today\n\t if(!afterNow) {\n\t\t//validate that it is not after today\n\t\tif(gc.get(gc.YEAR) > now.get(now.YEAR))\n\t\t throw new IllegalArgumentException();\n\n\t\t//only check the month if it is also the current year\n\t\tif(gc.get(gc.YEAR) == now.get(now.YEAR) &&\n\t\t\tgc.get(gc.MONTH) > now.get(now.MONTH))\n\t\t throw new IllegalArgumentException();\n\n\t\t//only check the day if it is also the current year and month\n\t\tif(gc.get(gc.YEAR) == now.get(now.YEAR) &&\n\t\t\tgc.get(gc.MONTH) == now.get(now.MONTH) &&\n\t\t\tgc.get(gc.DAY_OF_MONTH) > now.get(now.DAY_OF_MONTH))\n\t\t throw new IllegalArgumentException();\n\t }\n\t} else throw new IllegalArgumentException();\n }", "private boolean reportWithCurrentDateExists() {\n boolean exists = false;\n String sqlDateString = android.text.format.DateFormat.format(\"yyyy-MM-dd\", mCalendar).toString();\n Cursor reportCursor = mDbHelper.getReportPeer().fetchReportByTaskIdAndDate(mTaskId, sqlDateString);\n startManagingCursor(reportCursor);\n if (reportCursor != null && reportCursor.getCount() > 0) {\n long rowId = reportCursor.getLong(reportCursor.getColumnIndexOrThrow(ReportPeer.KEY_ID));\n if (mRowId == null || mRowId != rowId) {\n exists = true;\n }\n }\n if (reportCursor != null) {\n reportCursor.close();\n }\n return exists;\n }", "boolean isSetDate();", "@SuppressWarnings(\"deprecation\")\r\n public static final boolean compareTwoDateSpecificToMinute(Date expiredDate, Date dateNow) {\r\n\r\n int expiredHours = expiredDate.getHours();\r\n int expiredMinute = expiredDate.getMinutes();\r\n\r\n int hoursNow = dateNow.getHours();\r\n int minuteNow = dateNow.getMinutes();\r\n\r\n return ((expiredDate.compareTo(dateNow) < 0) || ((expiredDate.compareTo(dateNow) == 0)\r\n && ((expiredHours > hoursNow) || (expiredHours == hoursNow && expiredMinute > minuteNow))));\r\n\r\n }", "public static long daysTillNow(Date from) { \n \tDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n \tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n \tLocalDate dateBefore = LocalDate.parse(df.format(from), formatter);\n \treturn ChronoUnit.DAYS.between( dateBefore , LocalDate.now()); \t\n }", "public boolean isFuture()\n {\n GregorianCalendar currentDate = new GregorianCalendar();\n int dayT = currentDate.get(GregorianCalendar.DATE);\n int monthT = currentDate.get(GregorianCalendar.MONTH) + 1;\n int yearT = currentDate.get(GregorianCalendar.YEAR);\n int hourT = currentDate.get(GregorianCalendar.HOUR_OF_DAY);\n int minuteT = currentDate.get(GregorianCalendar.MINUTE);\n\n if (yearT < year)\n {\n return true;\n }\n else if (yearT == year && monthT < month)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT < day)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT == day && hourT < hour)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT == day && hourT == hour\n && minuteT < minute)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public boolean compareDates (String date1, String date2) {\n if (date1.equals(date2)) {\n return true;\n } else {\n return false;\n }\n }", "public boolean verifyReturnDate(Date date){\n\t\tLocale en = new Locale(\"en\");\n\t\tString rDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn returnDate.getText().equals(rDate);\n\t}", "public Boolean isExpired() {\n\t\tCalendar today = Calendar.getInstance();\n\t\treturn today.get(Calendar.DAY_OF_YEAR) != date.get(Calendar.DAY_OF_YEAR);\n\t}", "boolean isSetFoundingDate();", "public static boolean isDateInCurrentWeek(Date date) {\n Calendar currentCalendar = Calendar.getInstance();\n int week = currentCalendar.get(Calendar.WEEK_OF_YEAR);\n int year = currentCalendar.get(Calendar.YEAR);\n Calendar targetCalendar = Calendar.getInstance();\n targetCalendar.setTime(date);\n int targetWeek = targetCalendar.get(Calendar.WEEK_OF_YEAR);\n int targetYear = targetCalendar.get(Calendar.YEAR);\n return week == targetWeek && year == targetYear;\n }", "Date getCheckedIn();", "boolean hasStartDate();", "public int isHistoryExist() {\n\n int count = 0;\n String selectCount = \"SELECT COUNT * FROM\" + DATA_TABLE\n + \"WHERE\" + Columns.DATE + \" < DATE('NOW','LOCALTIME','START OF DAY')\";\n Cursor c = getReadableDatabase().rawQuery(selectCount, null);\n if (c.getCount() > 0) {\n c.moveToFirst();\n count = c.getColumnIndex(Columns.DATE);\n }\n c.close();\n return count;\n }", "public static boolean isMoodFromToday(MoodHistory moodHistory){\n\n Calendar calendar1 = Calendar.getInstance();\n calendar1.setTimeInMillis(moodHistory.getMoodTime());\n\n Calendar calendar2 = Calendar.getInstance();\n calendar2.setTimeInMillis(System.currentTimeMillis());\n\n // If true :\n return calendar1.get(Calendar.YEAR) == calendar2.get(Calendar.YEAR) && calendar1.get(Calendar.DAY_OF_YEAR) == calendar2.get(Calendar.DAY_OF_YEAR);\n }", "public boolean compareMonth(String date){\n\n LocalDateTime providedDate = LocalDateTime.parse(date, dateTimeFormatter);\n LocalDateTime currentPlusOneMonth = current.plusMonths(1);\n\n if(providedDate.isBefore(current)){\n return false;\n }if(providedDate.isAfter(currentPlusOneMonth)){\n return false;\n }\n\n return true;\n\n }", "public boolean equals(MyDate other){\n \t\tif (other.year == year){\n \t\t\tif (other.month == month){\n \t\t\t\tif (other.day == day){\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n\t\treturn false;\n\t}", "private boolean isOutdatedDate(LocalDate date) {\n return date.isBefore(LocalDate.now());\n }", "public void checkDate() throws InvalidDateException {\n Date todayDate = new Date();\n if (!todayDate.after(date)) {\n throw new InvalidDateException(\"Date is from the future!\");\n }\n }", "public boolean verifyLeaveDate(Date date){\t\t\n\t\tLocale en = new Locale(\"en\");\t\t\n\t\tString lDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn leaveDate.getText().equals(lDate);\n\t}", "public Date getCurrentDate()\r\n {\r\n return (m_currentDate);\r\n }", "private boolean newsDateHasChanged(String guid, Date newDate) {\n String[] whereArgs = { guid };\n Cursor query = this.writableDatabase.query(TABLE_NEWS, new String[] { NEWS_DATE }, NEWS_GUID + \"=?\", whereArgs,\n null, null, null);\n if (query.getCount() > 0) {\n query.moveToFirst();\n Date oldDate = new Date(Long.valueOf(query.getString(query.getColumnIndex(NEWS_DATE))));\n query.close();\n if (newDate.getTime() > oldDate.getTime())\n Log.w(TAG, newDate.toLocaleString() + \" - \" + oldDate.toLocaleString());\n return newDate.getTime() > oldDate.getTime();\n }\n query.close();\n return false;\n }", "boolean isFilterByDate();", "public boolean checkFutureDate(String message)\n {\n boolean valid = this.check();\n if(!valid) return valid;\n try{\n\n date = DateHelper.stringToDate(this.getDateString());\n if(super.isMandatory() && date==null)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n }\n catch (Exception e)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n if (date != null\n &&\n (date.before(currentDate)|| date.equals(currentDate)))\n {\n super.clearMessage();\n super.setMessage(\"Date should be in future!\");\n\n return valid && false;\n }\n return valid;\n }", "public boolean checkDateEqual(LocalDate date) {\n return date.equals(this.date);\n }", "private boolean isTomorrow(Calendar currentCal){\n return currentCal.get(Calendar.DATE) == Calendar.getInstance().get(Calendar.DATE)+1\n && currentCal.get(Calendar.MONTH) == Calendar.getInstance().get(Calendar.MONTH)\n && currentCal.get(Calendar.YEAR) == Calendar.getInstance().get(Calendar.YEAR);\n }", "public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}", "public boolean lessThan(MyDate other){\t\n \t\tif (other.year > year){\n \t\t\treturn true;\n \t\t}\n \t\telse if (other.year == year){\n \t\t\tif (other.month > month){\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse if (other.month == month){\n \t\t\t\tif (other.day > day){\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\treturn false;\n\t}", "public boolean isRecordCurrent(final Record recordToCheck) {\n // if current record is null any record is not current\n if (mCurrentRecord == null) {\n return false;\n }\n\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"HHddss\");\n String curDate = simpleDateFormat.format(mCurrentRecord.creationDate);\n String checkDate = simpleDateFormat.format(recordToCheck.creationDate);\n return curDate.equals(checkDate) &&\n recordToCheck.recordName.equals(mCurrentRecord.recordName);\n }", "public java.util.Calendar getDateActiveFrom() {\n return dateActiveFrom;\n }", "private boolean CheckAvailableDate(TimePeriod tp)\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query = \"SELECT * FROM Available WHERE available_hid = '\"+hid+\"' AND \"+\n\t\t\t\t\t\t\t\"startDate = '\"+tp.stringStart+\"' AND endDate = '\"+tp.stringEnd+\"'\"; \n\t\t\t\n\t\t\tResultSet rs = con.stmt.executeQuery(query); \n\t\t\t\n\t\t\tcon.closeConnection();\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn true; \n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "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}", "private Date getCurrentDate() {\n return Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());\n }", "public static boolean equals(Date a, Date b) {\n if (a == null || b == null) return (a == null && b == null);\n if (a == b) return true;\n Calendar cal1 = Calendar.getInstance();\n Calendar cal2 = Calendar.getInstance();\n cal1.setTime(a);\n cal2.setTime(b);\n return cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR) &&\n cal1.get(Calendar.DAY_OF_YEAR) == cal2.get(Calendar.DAY_OF_YEAR);\n }", "public static boolean isRevdate(java.sql.Date date1,int CUST_ID,int MOVIE_ID) {\n SimpleDateFormat formatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n java.util.Date date11 = null;\n try {\n date11 = formatter1.parse(\"1970-06-06\");\n } catch (ParseException e) {\n e.printStackTrace();\n }\n long r_date = date1.getTime();\n irate_Connection om = new irate_Connection();\n om.startConnection(\"user1\", \"password\", dbName);\n conn = om.getConnection();\n s = om.getStatement();\n irate_DQL dql = new irate_DQL(conn, s);\n java.sql.Date date2 = dql.atten(CUST_ID, MOVIE_ID);\n if(date2 == date11)\n return false;\n long a_date = date2.getTime();\n long diffinmill = r_date - a_date;\n long diff = TimeUnit.DAYS.convert(diffinmill,TimeUnit.MILLISECONDS);\n if(diff > 7 || diff <= 0)\n return false;\n else\n return true;\n }", "public boolean isOverdue(int today);", "public boolean isBefore(Date that) {\n return compareTo(that) < 0;\n }", "public boolean getADateChanged() {\r\n return !OpbComparisonHelper.isEqual(\r\n aDate, aDateDataSourceValue);\r\n }", "@Factory\r\n\tpublic static Matcher<Date> sameOrBefore(final Date date) {\r\n\t\treturn anyOf(sameInstant(date), before(date));\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 }", "boolean hasTradeDate();", "@Factory\r\n\tpublic static Matcher<Date> sameOrBefore(final DayMonthYear date) {\r\n\t\treturn anyOf(sameDay(date), before(date));\r\n\t}", "public void goToToday() {\n goToDate(today());\n }", "public boolean validateDate(String date) {\n\n\t\tDate enteredDate = null;\n\t\ttry {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tenteredDate = format.parse(date);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDate currentDate = new Date();\n\t\treturn enteredDate.before(currentDate);\n\t}", "public boolean isBeforeNow() {\r\n return isBefore(DateTimeUtils.currentTimeMillis());\r\n }", "public CurrentDate getCurrentDate() { \n return mCurrentDate; \n }", "boolean hasBeginDate();", "public int checkExpiryDate(LocalDate today) {\n\n final int limit = 100;\n long expirationDate = Duration.between(\n this.food.getCreateDate().atTime(0, 0), this.food.getExpiryDate().atTime(0, 0)\n ).toDays();\n long goneDate = Duration.between(\n this.food.getCreateDate().atTime(0, 0), today.atTime(0, 0)\n ).toDays();\n\n return (int) (limit * goneDate / expirationDate);\n\n }", "public boolean checkDateByClickingButtonsToday(String[] args) throws ParseException\n\t{\n\t\t// click ing on the value for the tab \n\t\tutils.clickAnelemnt(this.tabMbrCompositeInteraction, \"Member Composite\", \"Interaction tab\");\n\t\tif(utils.clickAnelemnt(this.tabMbrCompositeInteraction, \"Member Composite\", \"Interaction tab\"))\n\t\t{\t\t\t\n\t\t\tif(this.clickServcRequestContractToday())\n\t\t\t{\n\t\t\t\tif(this.checkSearchForServiceRequestsForContractsTable(\"\"))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\t\n\n\n\t}", "public boolean isBefore(Date date2)\n {\n if (year < date2.year)\n return true;\n else if (year == date2.year && month < date2.month)\n return true;\n else if (year == date2.year && month == date2.month && day < date2.day)\n return true;\n else if (year == date2.year && month == date2.month && day == date2.day\n && hour < date2.hour)\n return true;\n else if (year == date2.year && month == date2.month && day == date2.day\n && hour == date2.hour && minute < date2.minute)\n return true;\n else\n return false;\n }", "@Test\n\tpublic void getTheCurrentDateSystem() {\n\t\tAssert.assertNotNull(\"The actual date is returned in the expected format \",\n\t\t\t\tTimeMilisecondHelper.fromMilisecondsToDate());\n\t}", "private boolean compararFechasConDate(String fechaMenor, String fecha2, String fechaComparar) {\n try {\n /**\n * Obtenemos las fechas enviadas en el formato a comparar\n */\n SimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date fechaDateMenor = formateador.parse(fechaMenor);\n Date fechaDateMayor = formateador.parse(fecha2);\n Date fechaDateComparar = formateador.parse(fechaComparar);\n if (fechaDateMenor.before(fechaDateComparar) && fechaDateComparar.before(fechaDateMayor)) {\n return true;\n } else {\n return false;\n }\n } catch (ParseException e) {\n System.out.println(\"Se Produjo un Error!!! \" + e.getMessage());\n return false;\n }\n }" ]
[ "0.7451154", "0.67878145", "0.6631154", "0.6611286", "0.6504437", "0.6424516", "0.6416394", "0.6407835", "0.6344287", "0.63224787", "0.62654436", "0.6232655", "0.62124467", "0.6137893", "0.61363536", "0.61351603", "0.6115561", "0.6018039", "0.60068524", "0.5984196", "0.5981076", "0.59665716", "0.59543574", "0.59450424", "0.59450424", "0.59419173", "0.5923946", "0.5909651", "0.59088194", "0.5904267", "0.58973694", "0.58933836", "0.5892035", "0.5873383", "0.5863091", "0.5852456", "0.58494955", "0.58494323", "0.5841695", "0.5837005", "0.583061", "0.58158183", "0.5806928", "0.5797658", "0.579558", "0.57779944", "0.5777116", "0.5768622", "0.5763571", "0.57388353", "0.5721668", "0.5714699", "0.57027185", "0.5686153", "0.5679123", "0.5651773", "0.56446457", "0.56400406", "0.5638336", "0.5631448", "0.5631381", "0.5625038", "0.5615496", "0.5613929", "0.56118906", "0.56083894", "0.56015116", "0.5599433", "0.559342", "0.5574831", "0.556165", "0.55518305", "0.5549766", "0.55472803", "0.5546495", "0.55456316", "0.5536617", "0.55346364", "0.55339396", "0.5519123", "0.55177206", "0.551081", "0.550607", "0.5506026", "0.55023164", "0.54959387", "0.5491758", "0.5476735", "0.54741", "0.5472554", "0.5470227", "0.54643077", "0.54642624", "0.54467994", "0.5441597", "0.5432745", "0.5431893", "0.54299486", "0.5415096", "0.54108894" ]
0.6202842
13
phone Number length check 3
public boolean phoneLengthThree(String chkstr){ chkstr = chkstr.trim().replaceAll(" ", ""); if(chkstr.length() != 3){ return false; }else{ return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean phoneLengthThreeOrFour(String chkstr){\r\n\t\tchkstr = chkstr.trim().replaceAll(\" \", \"\");\r\n\t\tif(chkstr.length() > 4 || chkstr.length() < 3){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "private boolean isPhoneValid(String password) {\n return password.length() == 10;\r\n }", "private boolean isPhoneValid(String phoneno) {\n return phoneno.length() > 9;\n }", "private boolean is_phonenumber(String nr)\n\t{\n\t\t// if the string is not null, length is between 0 and 16, starts with \"00\" and all the characters in the sttring are numbers\n\t\t// then it's valid\n\t\tif(nr != null && nr.length() > 0 && nr.length() < 16 && nr.substring(0, 2).equals(\"00\") && valid_numbers(nr))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean checkLengthPlateNumber(EditText text, TextInputLayout TFB, String massage) {\n if(text.getText().toString().length() > 10)\n {\n TFB.setErrorEnabled(true);\n TFB.setError(massage);\n return false;\n }\n else\n {\n TFB.setErrorEnabled(false);\n return true;\n }\n }", "public boolean verifisTel(String text) {\n if (text.matches(\"^[0-9]+$\")&& text.length()==8) {\n return true;\n } else {\n return false;\n }\n }", "@Override\n public boolean isValid(PhoneNumber phoneNumber) {\n String number = phoneNumber.getNumber();\n return isPhoneNumber(number) && number.startsWith(\"+380\") && number.length() == 13;\n }", "public static boolean checkPhoneNumber(String phone){\n String regex = \"\\\\d{9}\"; \n if (phone.matches(regex))\n return true;\n else\n return false;\n }", "public static boolean validateMobile(String phone){\n int k=0;\n k=phone.length();\n if(k==10){\n return true;\n }\n return false;\n }", "public final boolean checkPhoneNum() {\n EditText editText = (EditText) _$_findCachedViewById(R.id.etPhoneNum);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etPhoneNum\");\n CharSequence text = editText.getText();\n if (text == null || text.length() == 0) {\n showMsg(\"请输入手机号\");\n return false;\n }\n EditText editText2 = (EditText) _$_findCachedViewById(R.id.etPhoneNum);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPhoneNum\");\n if (editText2.getText().length() == 11) {\n return true;\n }\n showMsg(\"请输入正确的手机号\");\n return false;\n }", "public boolean validarTel(String text) {\n if (text.length() == 9) {\n return true;\n } else {\n return false;\n }\n }", "Boolean checkLength(String detail);", "private boolean checkDigit(String code, int length) {\n int len = length - 1;\n int[] digits = new int[len];\n int digitSum = 0;\n int lastDigit;\n\n if (length == 13) {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n for (int i = 0; i < len; i++) {\n int digit = Integer.parseInt(String.valueOf(code.charAt(i)));\n\n if (i % 2 == 0) {\n digits[i] = digit;\n } else {\n digits[i] = digit * 3;\n }\n }\n\n for (int i = 0; i < digits.length; i++) {\n digitSum = digitSum + digits[i];\n }\n\n if (10 - (digitSum % 10) == lastDigit) {\n return true;\n } else if ((digitSum % 10) == 0 && lastDigit == 0) {\n return true;\n } else {\n return false;\n }\n\n } else if (length == 10) {\n if (String.valueOf(code.charAt(len)).equals(\"X\") ||\n String.valueOf(code.charAt(len)).equals(\"x\")) {\n lastDigit = 10;\n } else {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n }\n\n int weight = 11;\n for (int i = 0; i < len; i++) {\n int digit = Integer.parseInt(String.valueOf(code.charAt(i)));\n weight--;\n digits[i] = digit * weight;\n }\n\n for (int i = 0; i < digits.length; i++) {\n digitSum = digitSum + digits[i];\n }\n\n if (11 - (digitSum % 11) == lastDigit) {\n return true;\n } else {\n return false;\n }\n\n } else {\n return false;\n }\n }", "private void check1(){\n \n\t\tif (firstDigit != 4){\n valid = false;\n errorCode = 1;\n }\n\t}", "private boolean validate(){\n\n String MobilePattern = \"[0-9]{10}\";\n String name = String.valueOf(userName.getText());\n String number = String.valueOf(userNumber.getText());\n\n\n if(name.length() > 25){\n Toast.makeText(getApplicationContext(), \"pls enter less the 25 characher in user name\",\n Toast.LENGTH_SHORT).show();\n return true;\n }\n\n\n\n else if(name.length() == 0 || number.length() == 0 ){\n Toast.makeText(getApplicationContext(), \"pls fill the empty fields\",\n Toast.LENGTH_SHORT).show();\n return false;\n }\n\n\n\n else if(number.matches(MobilePattern))\n {\n\n return true;\n }\n else if(!number.matches(MobilePattern))\n {\n Toast.makeText(getApplicationContext(), \"Please enter valid 10\" +\n \"digit phone number\", Toast.LENGTH_SHORT).show();\n\n\n return false;\n }\n\n return false;\n\n }", "protected void validateMobileNumber(){\n /*\n Checking For Mobile number\n The Accepted Types Are +00 000000000 ; +00 0000000000 ;+000 0000000000; 0 0000000000 ; 00 0000000000\n */\n Boolean mobileNumber = Pattern.matches(\"^[0]?([+][0-9]{2,3})?[-][6-9]+[0-9]{9}\",getMobileNumber());\n System.out.println(mobileNumberResult(mobileNumber));\n }", "private boolean checkLengthDeviceSerialEditText (EditText text, TextInputLayout TFB, String massage) {\n if(text.getText().toString().length() > 10 || text.getText().toString().length() < 10)\n {\n TFB.setErrorEnabled(true);\n TFB.setError(massage);\n return false;\n }\n else\n {\n TFB.setErrorEnabled(false);\n return true;\n }\n\n\n }", "private static boolean validatePhoneNumber(String phoneNo) {\n if (phoneNo.matches(\"\\\\d{10}\")) return true;\n //validating phone number with -, . or spaces\n else if(phoneNo.matches(\"\\\\d{3}[-\\\\.\\\\s]\\\\d{3}[-\\\\.\\\\s]\\\\d{4}\")) return true;\n //validating phone number with extension length from 3 to 5\n else if(phoneNo.matches(\"\\\\d{3}-\\\\d{3}-\\\\d{4}\\\\s(x|(ext))\\\\d{3,5}\")) return true;\n //validating phone number where area code is in braces ()\n else if(phoneNo.matches(\"\\\\(\\\\d{3}\\\\)-\\\\d{3}-\\\\d{4}\")) return true;\n //return false if nothing matches the input\n else return false;\n\n }", "public static boolean validatePhone(String number) {\n if (number.length() == 8) {\n for (int i = 0; i < number.length(); i++) {\n if (!Character.isDigit(number.charAt(i))) {\n return false;\n }\n } return true;\n } return false;\n }", "boolean hasPhoneNumber();", "public static boolean isValidPhoneNumber(String number) {\n\n if(number.length()==10 && isValidNumber(number)){\n System.out.print(\"Is \" + number + \" a valid phone number : \");\n return true;\n }\n\n else{\n System.out.print(\"Is \" + number + \" a valid phone number : \");\n return false;\n }\n \n }", "private boolean isValidMobile(String phone) {\n if (!Pattern.matches(\"[a-zA-Z]+\", phone)) {\n return phone.length() == 10;\n }\n return false;\n }", "public boolean validatePhoneNumber(String input){\n\t\tif (input.matches(\"\\\\d{10}\")) return true;\n\t\t//validating phone number with -, . or spaces\n\t\telse if(input.matches(\"\\\\d{3}[-\\\\.\\\\s]\\\\d{3}[-\\\\.\\\\s]\\\\d{4}\")) return true;\n\t\t//validating phone number with extension length from 3 to 5\n\t\telse if(input.matches(\"\\\\d{3}-\\\\d{3}-\\\\d{4}\\\\s(x|(ext))\\\\d{3,5}\")) return true;\n\t\t//validating phone number where area code is in braces ()\n\t\telse if(input.matches(\"\\\\(\\\\d{3}\\\\)-\\\\d{3}-\\\\d{4}\")) return true;\n\t\t//return false if nothing matches the input\n\t\telse return false;\n\t}", "private boolean CheckPhoneNumber() {\n\t\tString phoneNumber = Phone_textBox.getText();\n\n\t\t// if field is empty\n\t\tif (phoneNumber.equals(\"\")) {\n\t\t\tif (!Phone_textBox.getStyleClass().contains(\"error\"))\n\t\t\t\tPhone_textBox.getStyleClass().add(\"error\");\n\t\t\tPhoneNote.setText(\"* Enter Number\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// if field contains a character that is not a digit\n\t\tif (!phoneNumber.matches(\"([0-9])+\")) {\n\t\t\tif (!Phone_textBox.getStyleClass().contains(\"error\"))\n\t\t\t\tPhone_textBox.getStyleClass().add(\"error\");\n\t\t\tPhoneNote.setText(\"* Worng Format(?)\");\n\t\t\tTooltip.install(PhoneNote, new Tooltip(\"Phone Number can only contain digits\"));\n\t\t\treturn false;\n\t\t}\n\n\t\t// if field contains more or less than 10 digits\n\t\tif (phoneNumber.length() != 10) {\n\t\t\tif (!Phone_textBox.getStyleClass().contains(\"error\"))\n\t\t\t\tPhone_textBox.getStyleClass().add(\"error\");\n\t\t\tPhoneNote.setText(\"* Worng Format(?)\");\n\t\t\tTooltip.install(PhoneNote, new Tooltip(\"Phone Number must be 10 digits long\"));\n\t\t\treturn false;\n\t\t}\n\n\t\tPhone_textBox.getStyleClass().remove(\"error\");\n\t\tPhoneNote.setText(\"*\");\n\t\tTooltip.uninstall(PhoneNote, new Tooltip(\"Phone Number can only contain digits\"));\n\t\tTooltip.uninstall(PhoneNote, new Tooltip(\"Phone Number must be 10 digits long\"));\n\t\treturn true;\n\t}", "private static boolean checkLength(String password) {\n \treturn password.length() >= minLength;\n }", "public boolean isPhoneValid(String phone) {\n return phone.length() < 11;\n }", "private boolean isPhoneValid(String phone) {\n return !phone.contains(\" \");\r\n }", "private boolean validatePhone(String phone) {\n if (phone.matches(\"\\\\d{10}\")) {\n return true;\n } //validating phone number with -, . or spaces\n else if (phone.matches(\"\\\\d{3}[-\\\\.\\\\s]\\\\d{3}[-\\\\.\\\\s]\\\\d{4}\")) {\n return true;\n } //validating phone number where area code is in braces ()\n else if (phone.matches(\"\\\\(\\\\d{3}\\\\)-\\\\d{3}-\\\\d{4}\")) {\n return true;\n } //return false if nothing matches the input\n else {\n return false;\n }\n }", "private void check3(){\n \n if (errorCode == 0){\n \n if (firstDigit * fifthDigit * ninthDigit != 24){\n valid = false;\n errorCode = 3;\n }\n }\n\t}", "public static boolean passwordDigitCheck (String password){\n int numberOfDigits = 0;\n for (int i = 0; i < password.length(); i++){\n if (Character.isDigit(password.charAt(i))){\n numberOfDigits++;\n }\n if (numberOfDigits >=3){\n return true;\n }\n }\n return false;\n }", "private static String checkAddress(String raw) \n\t{\n\t\t// Check to see if the length is greater than the maxLength of user input.\n\t\tif(raw.length() > maxLength) \n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\treturn raw;\n\t}", "public void MaxlengthPhoneNumber() {\n\t\tCommonFunctions.elementAttributeContainsValue(PhoneNumber, \"maxlength\", \"10\");\n\t}", "public String validarTelefono(String tel) {\n int lon = tel.length();\n if (lon == 9) {\n if (isNumeric(tel)) {\n return tel;\n } else {\n return \"\";\n }\n } else if (lon == 8) {\n return \"0\" + tel;\n } else if (lon == 7) {\n return \"07\" + tel;\n } else if (lon == 6) {\n return \"072\" + tel;\n } else {\n return \"\";\n }\n }", "private boolean isValidMobileNumber(String number) {\n return Patterns.PHONE.matcher(number).matches() && (number.length() > 10);\n }", "@Test\n public void testIsValidPhonenumber() {\n System.out.println(\"isValidPhonenumber\");\n String phonenumber = \"gd566666666666666666666666666666666666666\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidPhonenumber(phonenumber);\n assertEquals(expResult, result);\n }", "private boolean isPhoneValid(String phone){\n try{\n Long.parseLong(phone.replace(\"-\", \"\").replace(\"(\", \"\")\n .replace(\")\", \"\"));\n return true;\n } catch (Exception e){\n return false;\n }\n }", "public boolean Validate() \r\n {\n return phoneNumber.matcher(getText()).matches();\r\n }", "private boolean checkPhoneNum() {\n\t\tphoneNum = et_phone.getText().toString().trim();\r\n\t\tif(isMobileNO(phoneNum)){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean checkOdometerNumber(EditText text, TextInputLayout TFB, String massage) {\n if(text.getText().toString().length() > 8)\n {\n TFB.setErrorEnabled(true);\n TFB.setError(massage);\n return false;\n }\n else\n {\n TFB.setErrorEnabled(false);\n return true;\n }\n }", "public static boolean verificaRecapitoTelefonico (String recapito){\r\n\t\t\r\n\t\tif (Pattern.matches(\"[0-9]{5,}\", recapito )) return true;\r\n\t\t\r\n\t\tSystem.out.println(\"Telefono non valido\"); \r\n\t\treturn false;\r\n\t\t\r\n\t}", "void validateMobileNumber(String stringToBeValidated,String name);", "private void txtphnoFocusLost(java.awt.event.FocusEvent evt) {\n String ph=txtphno.getText();\n char[]ch=ph.toCharArray();\n int j=0;\n if(ph.length()!=10)\n {\n JOptionPane.showMessageDialog(this, \"You Entered Wrong phone number\");\n }\n \n for(int i=0; i<ph.length(); i++)\n {\n if(ch[i]<48 || ch[i]>57)\n {\n j++;\n }\n }\n \n if(j!=0)\n {\n JOptionPane.showMessageDialog(this, \"Only Numerical Values should be Entered\");\n\n }\n }", "public static boolean isValidPhoneNo(String userInput) {\n return Pattern.matches(Constants.PHONENO_VALIDATION, userInput);\n }", "public static final String number2show(String phoneNumber) throws Exception {\n\t\tif (phoneNumber == null || phoneNumber.length() == 0) {\n\t\t\treturn phoneNumber;\n\t\t}\n\n\t\tboolean isIpCall = false;\n\n\t\tint lth = phoneNumber.length();\n\t\tif(lth >= CHINA_MOBILE_LDC.length()){\n\t\t\tif (phoneNumber.substring(0, 5).equals(CHINA_MOBILE_LDC)) {\n\t\t\t\tisIpCall = true;\n\n\t\t\t\tphoneNumber = phoneNumber.substring(5);\n\t\t\t}\n\t\t}\n\t\t//phone not encrypt yet, like 10086/955555 etc, it is not a cipher text\n\t\tif (phoneNumber.length() != CIPHER_FIXED_LENGTH) {\n\t\t\t//with '+'\n\t\t\tif (phoneNumber.length() != 22) {\n\t\t\t\tif (isIpCall) {\n\t\t\t\t\treturn CHINA_MOBILE_LDC + phoneNumber;\n\t\t\t\t}\n\t\t\t\treturn phoneNumber;\n\t\t\t} else {\n\t\t\t\t// with '+' maybe\n\t\t\t\t//TODO: strange here\n\t\t\t\tchar first = phoneNumber.charAt(0);\n\t\t\t\tif (first != '+') {\n\t\t\t\t\tif (isIpCall) {\n\t\t\t\t\t\treturn CHINA_MOBILE_LDC + phoneNumber;\n\t\t\t\t\t}\n\t\t\t\t\treturn phoneNumber;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn phoneNumber;\n\t\t}\n\t\tif (phoneNumber.charAt(0) == '+') {\n\t\t\tphoneNumber = phoneNumber.substring(1);\n\t\t}\n\t\t\n\t\t//TODO when input length is 21, can not know it is a \n\t\t//plain text or encrypt text\n\t\t//check the last two bit, if more than 19, return \n\t\tint length = phoneNumber.length();\n\t\tString twobitString = phoneNumber.substring(length - 2);\n\t\tint twobitInt = 0;\n\t\ttry{\n\t\t\ttwobitInt = Integer.parseInt(twobitString);\n\t\t}catch(Exception e){\n\t\t\treturn phoneNumber;\n\t\t}\n\t\t\n\t\tif(twobitInt > CIPHER_FIXED_LENGTH - LAST_TWO_BITS_INDICATOR){\n\t\t\treturn phoneNumber;\n\t\t}\n\t\t//do the real work, it is must the valid encrypt phone\n\t\tString body = unpadding(phoneNumber);\n\n\t\tString realPhone = show(body, TIMES);\n\t\tif (!isEmpty(realPhone) || realPhone.length() >= 2) {\n\t\t\tString with86 = realPhone.substring(0, 2);\n\n\t\t\tif (with86.equals(\"86\")) {\n\t\t\t\trealPhone = realPhone.substring(2);\n\t\t\t}\n\t\t}\n\n\t\tif (isIpCall) {\n\t\t\treturn CHINA_MOBILE_LDC + realPhone;\n\t\t}\n\t\treturn realPhone;\n\t}", "public static boolean checkPhone(String phone) {\n return StringUtils.isEmpty(phone) || phone.length() == 11;\n }", "public boolean checkLength(String password) {\n return password.matches(\"^.{8,25}$\");\n }", "public boolean validarTelefono(String telefono){\n boolean isTelefono = true;\n isTelefono = validarLong(telefono);\n if(isTelefono){\n isTelefono = telefono.length()<15 && telefono.length()>7?true:false;\n }\n return isTelefono;\n }", "public static boolean checkPhoneNumber (String phoneNumber) throws UserRegistrationException{\n check = Pattern.compile(\"^[0-9]{1,3} [0-9]{10}$\").matcher(phoneNumber).matches();\n if (check) {\n return true;\n } else {\n throw new UserRegistrationException(\"Enter a valid Phone number\");\n }\n }", "public static boolean validate(String mobileNo) {\n//\t\tif(mobileNo.length() > 10)\n//\t\t\tmobileNo = mobileNo.substring(mobileNo.length()-10);\n\n\t\tpattern = Pattern.compile(MOBILE_PATTERN);\n\t\tmatcher = pattern.matcher(mobileNo);\n\t\treturn matcher.matches();\n \n\t}", "public static String validPhoneNumber(String input) throws IllegalArgumentException {\n\t\tif (input == null || input.length() == 0) {\n\t\t throw new IllegalArgumentException(\"PhoneNumber is not present.\");\n\t\t}\n\t\t\n\t\tString phoneNumberRegex = \"^\\\\+?[0-9 -]{3,20}$\";\n\t\t\n\t\tinput = input.trim();\n\t\t\n\t\tPattern pattern = Pattern.compile(phoneNumberRegex);\n\t\tboolean matchesPattern = pattern.matcher(input).matches();\n\t\t\n\t\tinput = input.trim().replaceAll(\"[- ]+\",\"\");\n\t\t\n\t\tif(!matchesPattern || input.length() < 3){\n\t\t\tthrow new IllegalArgumentException(\"PhoneNumber is not valid.\");\n\t\t}\n\t\t\n\t\treturn input;\n\t}", "private boolean isSSNFourDigits(String toCheck) {\r\n if (toCheck.length() > 0 && toCheck.length() != 4) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have 4 Characters\");\r\n return false;\r\n } else if (toCheck.length() == 0) {\r\n JOptionPane.showMessageDialog\r\n (null, \"No Social Security # entered\");\r\n return false;\r\n } else if (toCheck.length() == 4) {\r\n for (int i = 0; i < 4; i++) {\r\n if (!Character.isDigit(toCheck.charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have Only Numbers\");\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public static boolean validaPlaca(String placa){\n\t\t if(placa.length() != 7){\n\t\t return false;\n\t\t }\n\t\t if(!placa.substring(0, 3).matches(\"[A-Z]*\")){\n\t\t return false;\n\t\t }\n\t\t return placa.substring(3).matches(\"[0-9]*\");\n\t}", "boolean hasPhone();", "public static boolean isPhoneValidation(String phone) {\n\n return (phone.length() > 6 && phone.length() <= 14);\n }", "abstract void telephoneValidity();", "public boolean isCnpRightLength(Person person) {\n\t\tString cnp = person.getCnp();\n\t\tif (cnp.length() < 12) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}", "public long getPhoneNumber() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t// getter method initialized\t\t\t\t \r\n Scanner scanner = new Scanner(System.in);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t// Initialize the scanner to get input from User\r\n System.out.print(\"Enter Phone Number : \");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // This will print the argument at the end of the line\r\n phoneNumber = scanner.nextLong();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Read long input from the User\r\n String inputPhoneNumber = Long.toString(phoneNumber);\t\t\t\t\t\t\t\t\t\t // convert Long to string.\r\n Pattern pattern = Pattern.compile(\"\\\\d{10}\");\t\t\t\t\t\t\t\t\t\t\t // The Pattern class represents a compiled regular expression.\r\n Matcher matcher = pattern.matcher(inputPhoneNumber );\t\t\t\t\t\t\t\t\t\t\t\t\t // The resulting Pattern object is used to obtain a Matcher instance.\r\n if (matcher.matches());\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // if loop ..to check input from the User\r\n else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// else loop started\r\n System.out.println(\"Invalid Phone Number - Please enter the Phone number again\");}\t\t \t// This will print the argument at the end of the line\t\r\n return phoneNumber;}", "public static boolean validateInputLength(String[] args) {\n return args.length == 3;\n }", "@Override\n public void verifyHasPhone() {\n }", "private static boolean m4389a(String str) {\n return str != null && str.length() != 0 && Pattern.compile(\"^[0-9A-Fa-f]{13,18}+$\").matcher(str).matches() && str.indexOf(\"000000000\") == -1 && str.indexOf(\"111111111\") == -1 && str.indexOf(\"222222222\") == -1 && str.indexOf(\"333333333\") == -1 && str.indexOf(\"444444444\") == -1 && str.indexOf(\"555555555\") == -1 && str.indexOf(\"666666666\") == -1 && str.indexOf(\"777777777\") == -1 && str.indexOf(\"888888888\") == -1 && str.indexOf(\"999999999\") == -1;\n }", "public boolean isCNPJ(String CNPJ) {\n\t\t// considera-se erro CNPJ's formados por uma sequencia de numeros iguais\n if (CNPJ.equals(\"00000000000000\") || CNPJ.equals(\"11111111111111\") ||\n CNPJ.equals(\"22222222222222\") || CNPJ.equals(\"33333333333333\") ||\n CNPJ.equals(\"44444444444444\") || CNPJ.equals(\"55555555555555\") ||\n CNPJ.equals(\"66666666666666\") || CNPJ.equals(\"77777777777777\") ||\n CNPJ.equals(\"88888888888888\") || CNPJ.equals(\"99999999999999\") ||\n (CNPJ.length() != 14))\n return(false);\n\n char dig13, dig14;\n int sm, i, r, num, peso;\n\n// \"try\" - protege o codigo para eventuais erros de conversao de tipo (int)\n try {\n// Calculo do 1o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i=11; i>=0; i--) {\n// converte o i-�simo caractere do CNPJ em um n�mero:\n// por exemplo, transforma o caractere '0' no inteiro 0\n// (48 eh a posi��o de '0' na tabela ASCII)\n num = (int)(CNPJ.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig13 = '0';\n else dig13 = (char)((11-r) + 48);\n\n// Calculo do 2o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i=12; i>=0; i--) {\n num = (int)(CNPJ.charAt(i)- 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig14 = '0';\n else dig14 = (char)((11-r) + 48);\n\n// Verifica se os d�gitos calculados conferem com os d�gitos informados.\n if ((dig13 == CNPJ.charAt(12)) && (dig14 == CNPJ.charAt(13)))\n return(true);\n else return(false);\n } catch (InputMismatchException erro) {\n return(false);\n }\n\t}", "@Test\n\tpublic void invalidLengthShort() {\n\t\tboolean result = validator.isValid(\"73602851\");\n\t\tassertFalse(result);\n\t}", "@Test\n public void contactNumber_WhenValid_ShouldReturnTrue(){\n RegexTest valid = new RegexTest();\n boolean result = valid.contactNumber( \"91 1234567890\");\n Assert.assertEquals(true,result);\n }", "public boolean validatePhoneNumber(String phoneNumber) {\n\t\t// TODO: your work\n\t\tif (phoneNumber.length() != 10) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!phoneNumber.startsWith(\"0\")) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tInteger.parseInt(phoneNumber);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean isPhoneNumberValid(String phoneNumber){\n boolean isValid = false;\n\n String expression = \"^\\\\(?(\\\\d{3})\\\\)?[- ]?(\\\\d{3})[- ]?(\\\\d{4})$\";\n CharSequence inputStr = phoneNumber;\n Pattern pattern = Pattern.compile(expression);\n Matcher matcher = pattern.matcher(inputStr);\n if(matcher.matches()){\n isValid = true;\n }\n return isValid;\n }", "java.lang.String getPhonenumber();", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "public static boolean isValidNumber(String number) {\n\t\tSet<String> set = new HashSet<String>();\n\t\tset.add(\"4\");\n\t set.add(\"7\");\n\t\t\n\t if(number.substring(0, 1).equals(\"3\") && set.contains(number.substring(1, 2)) && number.length() == 15) { return true; }\n\t\treturn false;\n\t}", "public static boolean isValidMobileNo(String str) {\n Pattern ptrn = Pattern.compile(\"(0/91)?[7-9][0-9]{9}\"); \r\n //the matcher() method creates a matcher that will match the given input against this pattern \r\n Matcher match = ptrn.matcher(str); \r\n //returns a boolean value \r\n return (match.find() && match.group().equals(str)); \r\n }", "int minLength();", "private boolean isValidPhoneNumber(String phoneNumber) {\r\n System.out.println(\"Inside a valid phone number and number is\" + phoneNumber);\r\n return Pattern.matches(phoneNumberRegex, phoneNumber);\r\n }", "public boolean checkInvalid4(String x) {\n int temp = x.length();\n for (int i = 0; i < x.length(); i++) {\n if (consonants.contains(String.valueOf(x.charAt(i))))\n temp--;\n }\n return temp > 3;\n }", "public void startMobileWithOnlyNumber92(final EditText et_email)\n {\n\n et_email.addTextChangedListener(new TextWatcher()\n {\n public void afterTextChanged(Editable s)\n {\n String x = s.toString();\n\n\n if (x.startsWith(\"1\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n if (x.startsWith(\"2\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n if (x.startsWith(\"3\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n\n if (x.startsWith(\"4\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n if (x.startsWith(\"5\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n if (x.startsWith(\"6\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n if (x.startsWith(\"7\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n if (x.startsWith(\"8\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n if (x.startsWith(\"9\")){\n\n Toast.makeText(LoginActivity.this, \"Pleae enter number starting with 03\", Toast.LENGTH_SHORT).show();\n et_email.setText(\"\");\n }\n\n if (x.startsWith(\"0\")){\n if (x.length()==11){\n //doctorSignInEmail.setText(x);\n et_email.setFilters(new InputFilter[] {new InputFilter.LengthFilter(11)});\n\n }\n }\n else {\n et_email.setFilters(new InputFilter[] {new InputFilter.LengthFilter(120)});\n }\n\n }\n public void beforeTextChanged(CharSequence s, int start, int count, int after)\n {\n\n }\n public void onTextChanged(CharSequence s, int start, int before, int count)\n {\n\n }\n });//end for login editText\n\n }", "public boolean phoneValidate(final String phone) {\n\n\t\ttry {\n\t\t\tif (empHomePhone.equals(employeeHomePhone.getText().toString()))\n\t\t\t\treturn true;\n\t\t\tint pNumber = Integer.parseInt(phone);\n\t\t\tif ((pNumber < Integer.MAX_VALUE) && (pNumber > 999999))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\n\t\t} catch (NumberFormatException e) {\n\t\t\tLog.e(\"Phone length is null\", \"Please fill the phone field\");\n\t\t\tToast.makeText(this, \"Phone Field is Empty\", Toast.LENGTH_SHORT)\n\t\t\t\t\t.show();\n\t\t\treturn false;\n\t\t}\n\n\t}", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4 && password.equals(\"123456\");\n }", "public boolean isCorrectPhoneNumberFormat( String number ){\n try {\n // Test for '('\n StringTokenizer tokenizer = new StringTokenizer( number, \"()-\", true );\n String token1 = tokenizer.nextToken();\n if ( token1.compareTo(\"(\") != 0 ) return false;\n \n // Test for three digit area code\n String token2 = tokenizer.nextToken();\n if ( token2.length() != 3 ) return false;\n int areacode = Integer.parseInt(token2);\n \n // Test for ')'\n String token3 = tokenizer.nextToken();\n if ( token3.compareTo(\")\") != 0 ) return false;\n \n // Test for three digit number\n String token4 = tokenizer.nextToken();\n if ( token4.length() != 3 ) return false;\n int threedigits = Integer.parseInt(token4);\n \n // Test for '-'\n String token5 = tokenizer.nextToken();\n if ( token5.compareTo(\"-\") != 0 ) return false;\n \n // Test for four digit number\n String token6 = tokenizer.nextToken();\n if ( token6.length() != 4 ) return false;\n int fourdigits = Integer.parseInt(token6);\n \n } catch ( Exception e ){\n return false;\n }\n return true;\n }", "private boolean validatePhone(String phone_value) {\n \tboolean result;\n \t\n \tif (phone_value == null)\n \t{\n \t\tresult = false;\n \t}\n \telse\n \t{\n \t\tif ( phone_value.equals(\"\") )\n \t\t\tresult = true;\n \t\telse\n \t\t\tresult = android.util.Patterns.PHONE.matcher(phone_value).matches();\n \t}\n \t\n \treturn result;\n }", "public boolean isValid(String pw) {\n return checkLength(pw)\n && checkLowerCase(pw)\n && checkUpperCase(pw)\n && checkDigits(pw)\n && checkSpecialChars(pw)\n && noOtherSpecialChars(pw)\n && checkNumberContinuation(pw)\n && check3sameNumbersMax(pw);\n }", "java.lang.String getUserPhone();", "public boolean isValidPhone(TextInputLayout tiPhone, EditText etPhone) {\n String phone = etPhone.getText().toString().trim();\n boolean result = false;\n\n if (phone.length() == 0)\n tiPhone.setError(c.getString(R.string.required));\n else if (phone.length() != PHONE_SIZE)\n tiPhone.setError(c.getString(R.string.specificLength, Integer.toString(PHONE_SIZE)));\n else if (!phone.matches(\"\\\\d{10}\"))\n tiPhone.setError(c.getString(R.string.onlyNumbers));\n else {\n result = true;\n tiPhone.setError(null);\n }\n return result;\n }", "public boolean isPhone3Valid() throws BusinessRuleException {\n\t\treturn true;\n\t}", "public static String validPhone(String message){\n boolean success = false;\n String line = \"\";\n do {\n line = readLine(message).trim();\n success = checkPhoneNumber(line);\n if (!success)\n System.out.println(\"Debes introducir un número de teléfono válido... \");\n } while(!success);\n return line;\n }", "private boolean verificarCnpj(String cnpj) {\n return true;\n \n// if (cnpj.length() != 14) {\n// return false;\n// }\n//\n// int soma = 0;\n// int dig = 0;\n//\n// String digitosIniciais = cnpj.substring(0, 12);\n// char[] cnpjCharArray = cnpj.toCharArray();\n//\n// /* Primeira parte da validação */\n// for (int i = 0; i < 4; i++) {\n// if (cnpjCharArray[i] - 48 >= 0 && cnpjCharArray[i] - 48 <= 9) {\n// soma += (cnpjCharArray[i] - 48) * (6 - (i + 1));\n// }\n// }\n//\n// for (int i = 0; i < 8; i++) {\n// if (cnpjCharArray[i + 4] - 48 >= 0 && cnpjCharArray[i + 4] - 48 <= 9) {\n// soma += (cnpjCharArray[i + 4] - 48) * (10 - (i + 1));\n// }\n// }\n//\n// dig = 11 - (soma % 11);\n//\n// digitosIniciais += (dig == 10 || dig == 11) ? \"0\" : Integer.toString(dig);\n//\n// /* Segunda parte da validação */\n// soma = 0;\n//\n// for (int i = 0; i < 5; i++) {\n// if (cnpjCharArray[i] - 48 >= 0 && cnpjCharArray[i] - 48 <= 9) {\n// soma += (cnpjCharArray[i] - 48) * (7 - (i + 1));\n// }\n// }\n//\n// for (int i = 0; i < 8; i++) {\n// soma += (cnpjCharArray[i + 5] - 48) * (10 - (i + 1));\n// }\n//\n// dig = 11 - (soma % 11);\n// digitosIniciais += (dig == 10 || dig == 11) ? \"0\" : Integer.toString(dig);\n\n// return cnpj.equals(digitosIniciais);\n }", "private boolean hasValidLength()\n {\n final int length = mTextInputLayout.getText().length();\n return (length >= mMinLen && length <= mMaxLen);\n }", "public static boolean isCNPJ(String CNPJ) {\n\t\tif (CNPJ.equals(\"00000000000000\") || CNPJ.equals(\"11111111111111\") || CNPJ.equals(\"22222222222222\") || CNPJ.equals(\"33333333333333\")\r\n\t\t\t\t|| CNPJ.equals(\"44444444444444\") || CNPJ.equals(\"55555555555555\") || CNPJ.equals(\"66666666666666\") || CNPJ.equals(\"77777777777777\")\r\n\t\t\t\t|| CNPJ.equals(\"88888888888888\") || CNPJ.equals(\"99999999999999\") || (CNPJ.length() != 14))\r\n\t\t\treturn (false);\r\n\r\n\t\tchar dig13, dig14;\r\n\t\tint sm, i, r, num, peso;\r\n\r\n\t\ttry {\r\n\t\t\t// Calculo do 1o. Digito Verificador\r\n\t\t\tsm = 0;\r\n\t\t\tpeso = 2;\r\n\t\t\tfor (i = 11; i >= 0; i--) {\r\n\t\t\t\t// converte o i-ésimo caractere do CNPJ em um número:\r\n\t\t\t\t// por exemplo, transforma o caractere '0' no inteiro 0\r\n\t\t\t\t// (48 eh a posição de '0' na tabela ASCII)\r\n\t\t\t\tnum = (int) (CNPJ.charAt(i) - 48);\r\n\t\t\t\tsm = sm + (num * peso);\r\n\t\t\t\tpeso = peso + 1;\r\n\t\t\t\tif (peso == 10)\r\n\t\t\t\t\tpeso = 2;\r\n\t\t\t}\r\n\r\n\t\t\tr = sm % 11;\r\n\t\t\tif ((r == 0) || (r == 1))\r\n\t\t\t\tdig13 = '0';\r\n\t\t\telse\r\n\t\t\t\tdig13 = (char) ((11 - r) + 48);\r\n\r\n\t\t\t// Calculo do 2o. Digito Verificador\r\n\t\t\tsm = 0;\r\n\t\t\tpeso = 2;\r\n\t\t\tfor (i = 12; i >= 0; i--) {\r\n\t\t\t\tnum = (int) (CNPJ.charAt(i) - 48);\r\n\t\t\t\tsm = sm + (num * peso);\r\n\t\t\t\tpeso = peso + 1;\r\n\t\t\t\tif (peso == 10)\r\n\t\t\t\t\tpeso = 2;\r\n\t\t\t}\r\n\r\n\t\t\tr = sm % 11;\r\n\t\t\tif ((r == 0) || (r == 1))\r\n\t\t\t\tdig14 = '0';\r\n\t\t\telse\r\n\t\t\t\tdig14 = (char) ((11 - r) + 48);\r\n\r\n\t\t\t// Verifica se os dígitos calculados conferem com os dígitos\r\n\t\t\t// informados.\r\n\t\t\tif ((dig13 == CNPJ.charAt(12)) && (dig14 == CNPJ.charAt(13)))\r\n\t\t\t\treturn (true);\r\n\t\t\telse\r\n\t\t\t\treturn (false);\r\n\t\t} catch (Exception erro) {\r\n\t\t\treturn (false);\r\n\t\t}\r\n\t}", "public static boolean checkphnum(String phonenum) {\n\n if (phonenum.matches(\"\\\\d\\\\d\\\\d-\\\\d\\\\d\\\\d-\\\\d\\\\d\\\\d\\\\d\"))\n return true;\n else\n return false;\n\n\n }", "public static boolean checkValidInputPhone(String inputPhoneNumber) {\n if (inputPhoneNumber == null) {\n return false;\n }\n Pattern pattern = Pattern.compile(\"^([0-9]){9,10}$\");\n Matcher matcher = pattern.matcher(inputPhoneNumber);\n return matcher.matches();\n }", "boolean testLength(Tester t) {\n return t.checkExpect(lob3.length(), 3) && t.checkExpect(los3.length(), 3)\n && t.checkExpect(los1.length(), 1) && t.checkExpect(new MtLoGamePiece().length(), 0);\n }", "public Optional<String> validatePhoneNumber(String number) {\n\n String regexStr = \"^[0-9]{11}$\";\n if (number.matches(regexStr) && number.substring(0, 1).equals(\"0\")) {\n return Optional.of(formatPhoneNumber(number));\n }\n return Optional.absent();\n }", "private void check6(){\n \n if (errorCode == 0){\n \n int firstSecond = Integer.parseInt(number.substring(0,2));\n int seventhEight = Integer.parseInt(number.substring(6,8));\n \n if (firstSecond + seventhEight != 100){\n valid = false;\n errorCode = 6;\n }\n }\n\t}", "boolean hasUserPhone();", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "private boolean isPasswordValid(String password) {\n return password.length() >= 4;\n }", "private static Boolean testUsername(String username){\n\t\t//Setting Up Regex -> All Numbers and Letters maximum 14 signs\n\t\tString pattern =\"[A-z1-9]{2,14}\";\n\t\tPattern p = Pattern.compile(pattern);\n\t\tMatcher m = p.matcher(username);\n\t\t\t\n\t\tif(m.matches() && !username.isEmpty()){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isPhoneType3Valid() throws BusinessRuleException {\n\t\treturn true;\n\t}" ]
[ "0.73499644", "0.73368925", "0.7170869", "0.69847244", "0.68850183", "0.68056583", "0.6693652", "0.6672511", "0.6671902", "0.6649908", "0.66456497", "0.661764", "0.6553653", "0.6548859", "0.6504745", "0.6487433", "0.6483806", "0.6430987", "0.64285904", "0.642634", "0.6409998", "0.64002633", "0.6376575", "0.63629085", "0.6344165", "0.63069767", "0.6302178", "0.6300076", "0.6277133", "0.6257359", "0.6234652", "0.6232077", "0.62216836", "0.62124044", "0.61767924", "0.6164552", "0.6139359", "0.61358565", "0.6095803", "0.6064161", "0.6053759", "0.60385954", "0.6025183", "0.601536", "0.60019", "0.60009587", "0.59942824", "0.5982788", "0.59516376", "0.5947747", "0.5943227", "0.59374404", "0.5936247", "0.59293234", "0.59275377", "0.591249", "0.59104997", "0.5881935", "0.58762276", "0.5861931", "0.5839723", "0.5828855", "0.5807451", "0.5803211", "0.5792923", "0.5791854", "0.5786834", "0.5786834", "0.5786834", "0.57856435", "0.57740235", "0.5758751", "0.5755362", "0.5746331", "0.5745974", "0.57459474", "0.57357717", "0.572215", "0.57161677", "0.57151186", "0.57008064", "0.5700156", "0.56998146", "0.56977195", "0.5695027", "0.5690235", "0.5673821", "0.5673445", "0.5671744", "0.56701756", "0.5661838", "0.56548554", "0.5651478", "0.5634102", "0.56314874", "0.56314874", "0.56314874", "0.5629571", "0.5626086", "0.5622107" ]
0.7512577
0
phone Number length check 3 or 4
public boolean phoneLengthThreeOrFour(String chkstr){ chkstr = chkstr.trim().replaceAll(" ", ""); if(chkstr.length() > 4 || chkstr.length() < 3){ return false; }else{ return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean phoneLengthThree(String chkstr){\r\n\t\tchkstr = chkstr.trim().replaceAll(\" \", \"\");\r\n\t\tif(chkstr.length() != 3){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "private boolean isPhoneValid(String password) {\n return password.length() == 10;\r\n }", "private boolean isPhoneValid(String phoneno) {\n return phoneno.length() > 9;\n }", "private boolean is_phonenumber(String nr)\n\t{\n\t\t// if the string is not null, length is between 0 and 16, starts with \"00\" and all the characters in the sttring are numbers\n\t\t// then it's valid\n\t\tif(nr != null && nr.length() > 0 && nr.length() < 16 && nr.substring(0, 2).equals(\"00\") && valid_numbers(nr))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private void check1(){\n \n\t\tif (firstDigit != 4){\n valid = false;\n errorCode = 1;\n }\n\t}", "@Override\n public boolean isValid(PhoneNumber phoneNumber) {\n String number = phoneNumber.getNumber();\n return isPhoneNumber(number) && number.startsWith(\"+380\") && number.length() == 13;\n }", "public boolean verifisTel(String text) {\n if (text.matches(\"^[0-9]+$\")&& text.length()==8) {\n return true;\n } else {\n return false;\n }\n }", "private boolean checkLengthPlateNumber(EditText text, TextInputLayout TFB, String massage) {\n if(text.getText().toString().length() > 10)\n {\n TFB.setErrorEnabled(true);\n TFB.setError(massage);\n return false;\n }\n else\n {\n TFB.setErrorEnabled(false);\n return true;\n }\n }", "public static boolean checkPhoneNumber(String phone){\n String regex = \"\\\\d{9}\"; \n if (phone.matches(regex))\n return true;\n else\n return false;\n }", "public static boolean validatePhone(String number) {\n if (number.length() == 8) {\n for (int i = 0; i < number.length(); i++) {\n if (!Character.isDigit(number.charAt(i))) {\n return false;\n }\n } return true;\n } return false;\n }", "public static boolean validateMobile(String phone){\n int k=0;\n k=phone.length();\n if(k==10){\n return true;\n }\n return false;\n }", "private static boolean validatePhoneNumber(String phoneNo) {\n if (phoneNo.matches(\"\\\\d{10}\")) return true;\n //validating phone number with -, . or spaces\n else if(phoneNo.matches(\"\\\\d{3}[-\\\\.\\\\s]\\\\d{3}[-\\\\.\\\\s]\\\\d{4}\")) return true;\n //validating phone number with extension length from 3 to 5\n else if(phoneNo.matches(\"\\\\d{3}-\\\\d{3}-\\\\d{4}\\\\s(x|(ext))\\\\d{3,5}\")) return true;\n //validating phone number where area code is in braces ()\n else if(phoneNo.matches(\"\\\\(\\\\d{3}\\\\)-\\\\d{3}-\\\\d{4}\")) return true;\n //return false if nothing matches the input\n else return false;\n\n }", "public final boolean checkPhoneNum() {\n EditText editText = (EditText) _$_findCachedViewById(R.id.etPhoneNum);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etPhoneNum\");\n CharSequence text = editText.getText();\n if (text == null || text.length() == 0) {\n showMsg(\"请输入手机号\");\n return false;\n }\n EditText editText2 = (EditText) _$_findCachedViewById(R.id.etPhoneNum);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPhoneNum\");\n if (editText2.getText().length() == 11) {\n return true;\n }\n showMsg(\"请输入正确的手机号\");\n return false;\n }", "private boolean validate(){\n\n String MobilePattern = \"[0-9]{10}\";\n String name = String.valueOf(userName.getText());\n String number = String.valueOf(userNumber.getText());\n\n\n if(name.length() > 25){\n Toast.makeText(getApplicationContext(), \"pls enter less the 25 characher in user name\",\n Toast.LENGTH_SHORT).show();\n return true;\n }\n\n\n\n else if(name.length() == 0 || number.length() == 0 ){\n Toast.makeText(getApplicationContext(), \"pls fill the empty fields\",\n Toast.LENGTH_SHORT).show();\n return false;\n }\n\n\n\n else if(number.matches(MobilePattern))\n {\n\n return true;\n }\n else if(!number.matches(MobilePattern))\n {\n Toast.makeText(getApplicationContext(), \"Please enter valid 10\" +\n \"digit phone number\", Toast.LENGTH_SHORT).show();\n\n\n return false;\n }\n\n return false;\n\n }", "public boolean validarTel(String text) {\n if (text.length() == 9) {\n return true;\n } else {\n return false;\n }\n }", "public boolean validatePhoneNumber(String input){\n\t\tif (input.matches(\"\\\\d{10}\")) return true;\n\t\t//validating phone number with -, . or spaces\n\t\telse if(input.matches(\"\\\\d{3}[-\\\\.\\\\s]\\\\d{3}[-\\\\.\\\\s]\\\\d{4}\")) return true;\n\t\t//validating phone number with extension length from 3 to 5\n\t\telse if(input.matches(\"\\\\d{3}-\\\\d{3}-\\\\d{4}\\\\s(x|(ext))\\\\d{3,5}\")) return true;\n\t\t//validating phone number where area code is in braces ()\n\t\telse if(input.matches(\"\\\\(\\\\d{3}\\\\)-\\\\d{3}-\\\\d{4}\")) return true;\n\t\t//return false if nothing matches the input\n\t\telse return false;\n\t}", "private boolean checkDigit(String code, int length) {\n int len = length - 1;\n int[] digits = new int[len];\n int digitSum = 0;\n int lastDigit;\n\n if (length == 13) {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n for (int i = 0; i < len; i++) {\n int digit = Integer.parseInt(String.valueOf(code.charAt(i)));\n\n if (i % 2 == 0) {\n digits[i] = digit;\n } else {\n digits[i] = digit * 3;\n }\n }\n\n for (int i = 0; i < digits.length; i++) {\n digitSum = digitSum + digits[i];\n }\n\n if (10 - (digitSum % 10) == lastDigit) {\n return true;\n } else if ((digitSum % 10) == 0 && lastDigit == 0) {\n return true;\n } else {\n return false;\n }\n\n } else if (length == 10) {\n if (String.valueOf(code.charAt(len)).equals(\"X\") ||\n String.valueOf(code.charAt(len)).equals(\"x\")) {\n lastDigit = 10;\n } else {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n }\n\n int weight = 11;\n for (int i = 0; i < len; i++) {\n int digit = Integer.parseInt(String.valueOf(code.charAt(i)));\n weight--;\n digits[i] = digit * weight;\n }\n\n for (int i = 0; i < digits.length; i++) {\n digitSum = digitSum + digits[i];\n }\n\n if (11 - (digitSum % 11) == lastDigit) {\n return true;\n } else {\n return false;\n }\n\n } else {\n return false;\n }\n }", "protected void validateMobileNumber(){\n /*\n Checking For Mobile number\n The Accepted Types Are +00 000000000 ; +00 0000000000 ;+000 0000000000; 0 0000000000 ; 00 0000000000\n */\n Boolean mobileNumber = Pattern.matches(\"^[0]?([+][0-9]{2,3})?[-][6-9]+[0-9]{9}\",getMobileNumber());\n System.out.println(mobileNumberResult(mobileNumber));\n }", "private boolean validatePhone(String phone) {\n if (phone.matches(\"\\\\d{10}\")) {\n return true;\n } //validating phone number with -, . or spaces\n else if (phone.matches(\"\\\\d{3}[-\\\\.\\\\s]\\\\d{3}[-\\\\.\\\\s]\\\\d{4}\")) {\n return true;\n } //validating phone number where area code is in braces ()\n else if (phone.matches(\"\\\\(\\\\d{3}\\\\)-\\\\d{3}-\\\\d{4}\")) {\n return true;\n } //return false if nothing matches the input\n else {\n return false;\n }\n }", "public boolean isPhoneValid(String phone) {\n return phone.length() < 11;\n }", "public static boolean passwordDigitCheck (String password){\n int numberOfDigits = 0;\n for (int i = 0; i < password.length(); i++){\n if (Character.isDigit(password.charAt(i))){\n numberOfDigits++;\n }\n if (numberOfDigits >=3){\n return true;\n }\n }\n return false;\n }", "private boolean isValidMobile(String phone) {\n if (!Pattern.matches(\"[a-zA-Z]+\", phone)) {\n return phone.length() == 10;\n }\n return false;\n }", "private boolean CheckPhoneNumber() {\n\t\tString phoneNumber = Phone_textBox.getText();\n\n\t\t// if field is empty\n\t\tif (phoneNumber.equals(\"\")) {\n\t\t\tif (!Phone_textBox.getStyleClass().contains(\"error\"))\n\t\t\t\tPhone_textBox.getStyleClass().add(\"error\");\n\t\t\tPhoneNote.setText(\"* Enter Number\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// if field contains a character that is not a digit\n\t\tif (!phoneNumber.matches(\"([0-9])+\")) {\n\t\t\tif (!Phone_textBox.getStyleClass().contains(\"error\"))\n\t\t\t\tPhone_textBox.getStyleClass().add(\"error\");\n\t\t\tPhoneNote.setText(\"* Worng Format(?)\");\n\t\t\tTooltip.install(PhoneNote, new Tooltip(\"Phone Number can only contain digits\"));\n\t\t\treturn false;\n\t\t}\n\n\t\t// if field contains more or less than 10 digits\n\t\tif (phoneNumber.length() != 10) {\n\t\t\tif (!Phone_textBox.getStyleClass().contains(\"error\"))\n\t\t\t\tPhone_textBox.getStyleClass().add(\"error\");\n\t\t\tPhoneNote.setText(\"* Worng Format(?)\");\n\t\t\tTooltip.install(PhoneNote, new Tooltip(\"Phone Number must be 10 digits long\"));\n\t\t\treturn false;\n\t\t}\n\n\t\tPhone_textBox.getStyleClass().remove(\"error\");\n\t\tPhoneNote.setText(\"*\");\n\t\tTooltip.uninstall(PhoneNote, new Tooltip(\"Phone Number can only contain digits\"));\n\t\tTooltip.uninstall(PhoneNote, new Tooltip(\"Phone Number must be 10 digits long\"));\n\t\treturn true;\n\t}", "public static boolean isValidPhoneNumber(String number) {\n\n if(number.length()==10 && isValidNumber(number)){\n System.out.print(\"Is \" + number + \" a valid phone number : \");\n return true;\n }\n\n else{\n System.out.print(\"Is \" + number + \" a valid phone number : \");\n return false;\n }\n \n }", "private boolean isPhoneValid(String phone) {\n return !phone.contains(\" \");\r\n }", "Boolean checkLength(String detail);", "private boolean checkLengthDeviceSerialEditText (EditText text, TextInputLayout TFB, String massage) {\n if(text.getText().toString().length() > 10 || text.getText().toString().length() < 10)\n {\n TFB.setErrorEnabled(true);\n TFB.setError(massage);\n return false;\n }\n else\n {\n TFB.setErrorEnabled(false);\n return true;\n }\n\n\n }", "public static boolean isPhoneValidation(String phone) {\n\n return (phone.length() > 6 && phone.length() <= 14);\n }", "private boolean isPhoneValid(String phone){\n try{\n Long.parseLong(phone.replace(\"-\", \"\").replace(\"(\", \"\")\n .replace(\")\", \"\"));\n return true;\n } catch (Exception e){\n return false;\n }\n }", "public boolean checkInvalid4(String x) {\n int temp = x.length();\n for (int i = 0; i < x.length(); i++) {\n if (consonants.contains(String.valueOf(x.charAt(i))))\n temp--;\n }\n return temp > 3;\n }", "private void check3(){\n \n if (errorCode == 0){\n \n if (firstDigit * fifthDigit * ninthDigit != 24){\n valid = false;\n errorCode = 3;\n }\n }\n\t}", "public static boolean isValidNumber(String number) {\n\t\tSet<String> set = new HashSet<String>();\n\t\tset.add(\"4\");\n\t set.add(\"7\");\n\t\t\n\t if(number.substring(0, 1).equals(\"3\") && set.contains(number.substring(1, 2)) && number.length() == 15) { return true; }\n\t\treturn false;\n\t}", "boolean hasPhoneNumber();", "private boolean isValidMobileNumber(String number) {\n return Patterns.PHONE.matcher(number).matches() && (number.length() > 10);\n }", "public String validarTelefono(String tel) {\n int lon = tel.length();\n if (lon == 9) {\n if (isNumeric(tel)) {\n return tel;\n } else {\n return \"\";\n }\n } else if (lon == 8) {\n return \"0\" + tel;\n } else if (lon == 7) {\n return \"07\" + tel;\n } else if (lon == 6) {\n return \"072\" + tel;\n } else {\n return \"\";\n }\n }", "private static boolean checkLength(String password) {\n \treturn password.length() >= minLength;\n }", "public boolean Validate() \r\n {\n return phoneNumber.matcher(getText()).matches();\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "private boolean checkPhoneNum() {\n\t\tphoneNum = et_phone.getText().toString().trim();\r\n\t\tif(isMobileNO(phoneNum)){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static boolean checkPhone(String phone) {\n return StringUtils.isEmpty(phone) || phone.length() == 11;\n }", "public boolean isCorrectPhoneNumberFormat( String number ){\n try {\n // Test for '('\n StringTokenizer tokenizer = new StringTokenizer( number, \"()-\", true );\n String token1 = tokenizer.nextToken();\n if ( token1.compareTo(\"(\") != 0 ) return false;\n \n // Test for three digit area code\n String token2 = tokenizer.nextToken();\n if ( token2.length() != 3 ) return false;\n int areacode = Integer.parseInt(token2);\n \n // Test for ')'\n String token3 = tokenizer.nextToken();\n if ( token3.compareTo(\")\") != 0 ) return false;\n \n // Test for three digit number\n String token4 = tokenizer.nextToken();\n if ( token4.length() != 3 ) return false;\n int threedigits = Integer.parseInt(token4);\n \n // Test for '-'\n String token5 = tokenizer.nextToken();\n if ( token5.compareTo(\"-\") != 0 ) return false;\n \n // Test for four digit number\n String token6 = tokenizer.nextToken();\n if ( token6.length() != 4 ) return false;\n int fourdigits = Integer.parseInt(token6);\n \n } catch ( Exception e ){\n return false;\n }\n return true;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isSSNFourDigits(String toCheck) {\r\n if (toCheck.length() > 0 && toCheck.length() != 4) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have 4 Characters\");\r\n return false;\r\n } else if (toCheck.length() == 0) {\r\n JOptionPane.showMessageDialog\r\n (null, \"No Social Security # entered\");\r\n return false;\r\n } else if (toCheck.length() == 4) {\r\n for (int i = 0; i < 4; i++) {\r\n if (!Character.isDigit(toCheck.charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have Only Numbers\");\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "private boolean isPhoneNumberValid(String phoneNumber){\n boolean isValid = false;\n\n String expression = \"^\\\\(?(\\\\d{3})\\\\)?[- ]?(\\\\d{3})[- ]?(\\\\d{4})$\";\n CharSequence inputStr = phoneNumber;\n Pattern pattern = Pattern.compile(expression);\n Matcher matcher = pattern.matcher(inputStr);\n if(matcher.matches()){\n isValid = true;\n }\n return isValid;\n }", "public static boolean isValidPhoneNo(String userInput) {\n return Pattern.matches(Constants.PHONENO_VALIDATION, userInput);\n }", "public boolean validate(int value) {\n return (Integer.toString(value).length() == 4) ? true : false;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4 && password.equals(\"123456\");\n }", "public static boolean checkPhoneNumber (String phoneNumber) throws UserRegistrationException{\n check = Pattern.compile(\"^[0-9]{1,3} [0-9]{10}$\").matcher(phoneNumber).matches();\n if (check) {\n return true;\n } else {\n throw new UserRegistrationException(\"Enter a valid Phone number\");\n }\n }", "private void check4(){\n \n if (errorCode == 0){\n int sum = 0;\n \n for(int i = 0; i < number.length();){\n sum += Integer.parseInt(number.substring(i, ++i));\n }\n \n if (sum % 4 != 0){\n valid = false;\n errorCode = 4;\n }\n }\n\t}", "private boolean checkOdometerNumber(EditText text, TextInputLayout TFB, String massage) {\n if(text.getText().toString().length() > 8)\n {\n TFB.setErrorEnabled(true);\n TFB.setError(massage);\n return false;\n }\n else\n {\n TFB.setErrorEnabled(false);\n return true;\n }\n }", "private boolean isPasswordValid(String password) {\n return password.length() >= 4;\n }", "public static boolean validaPlaca(String placa){\n\t\t if(placa.length() != 7){\n\t\t return false;\n\t\t }\n\t\t if(!placa.substring(0, 3).matches(\"[A-Z]*\")){\n\t\t return false;\n\t\t }\n\t\t return placa.substring(3).matches(\"[0-9]*\");\n\t}", "public static boolean validate(String mobileNo) {\n//\t\tif(mobileNo.length() > 10)\n//\t\t\tmobileNo = mobileNo.substring(mobileNo.length()-10);\n\n\t\tpattern = Pattern.compile(MOBILE_PATTERN);\n\t\tmatcher = pattern.matcher(mobileNo);\n\t\treturn matcher.matches();\n \n\t}", "public static boolean verificaRecapitoTelefonico (String recapito){\r\n\t\t\r\n\t\tif (Pattern.matches(\"[0-9]{5,}\", recapito )) return true;\r\n\t\t\r\n\t\tSystem.out.println(\"Telefono non valido\"); \r\n\t\treturn false;\r\n\t\t\r\n\t}", "public boolean validarTelefono(String telefono){\n boolean isTelefono = true;\n isTelefono = validarLong(telefono);\n if(isTelefono){\n isTelefono = telefono.length()<15 && telefono.length()>7?true:false;\n }\n return isTelefono;\n }", "public static boolean validateInputLength(String[] args) {\n return args.length == 3;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "public boolean validatePhoneNumber(String phoneNumber) {\n\t\t// TODO: your work\n\t\tif (phoneNumber.length() != 10) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!phoneNumber.startsWith(\"0\")) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tInteger.parseInt(phoneNumber);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Test\n public void testIsValidPhonenumber() {\n System.out.println(\"isValidPhonenumber\");\n String phonenumber = \"gd566666666666666666666666666666666666666\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidPhonenumber(phonenumber);\n assertEquals(expResult, result);\n }", "public boolean checkLength(String password) {\n return password.matches(\"^.{8,25}$\");\n }", "private static boolean m4389a(String str) {\n return str != null && str.length() != 0 && Pattern.compile(\"^[0-9A-Fa-f]{13,18}+$\").matcher(str).matches() && str.indexOf(\"000000000\") == -1 && str.indexOf(\"111111111\") == -1 && str.indexOf(\"222222222\") == -1 && str.indexOf(\"333333333\") == -1 && str.indexOf(\"444444444\") == -1 && str.indexOf(\"555555555\") == -1 && str.indexOf(\"666666666\") == -1 && str.indexOf(\"777777777\") == -1 && str.indexOf(\"888888888\") == -1 && str.indexOf(\"999999999\") == -1;\n }", "private static String checkAddress(String raw) \n\t{\n\t\t// Check to see if the length is greater than the maxLength of user input.\n\t\tif(raw.length() > maxLength) \n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\treturn raw;\n\t}", "public void MaxlengthPhoneNumber() {\n\t\tCommonFunctions.elementAttributeContainsValue(PhoneNumber, \"maxlength\", \"10\");\n\t}", "public static boolean isValidMobileNo(String str) {\n Pattern ptrn = Pattern.compile(\"(0/91)?[7-9][0-9]{9}\"); \r\n //the matcher() method creates a matcher that will match the given input against this pattern \r\n Matcher match = ptrn.matcher(str); \r\n //returns a boolean value \r\n return (match.find() && match.group().equals(str)); \r\n }", "public boolean isValid(String pw) {\n return checkLength(pw)\n && checkLowerCase(pw)\n && checkUpperCase(pw)\n && checkDigits(pw)\n && checkSpecialChars(pw)\n && noOtherSpecialChars(pw)\n && checkNumberContinuation(pw)\n && check3sameNumbersMax(pw);\n }", "void validateMobileNumber(String stringToBeValidated,String name);", "private boolean isValidPhoneNumber(String phoneNumber) {\r\n System.out.println(\"Inside a valid phone number and number is\" + phoneNumber);\r\n return Pattern.matches(phoneNumberRegex, phoneNumber);\r\n }", "public boolean isValidPhone(TextInputLayout tiPhone, EditText etPhone) {\n String phone = etPhone.getText().toString().trim();\n boolean result = false;\n\n if (phone.length() == 0)\n tiPhone.setError(c.getString(R.string.required));\n else if (phone.length() != PHONE_SIZE)\n tiPhone.setError(c.getString(R.string.specificLength, Integer.toString(PHONE_SIZE)));\n else if (!phone.matches(\"\\\\d{10}\"))\n tiPhone.setError(c.getString(R.string.onlyNumbers));\n else {\n result = true;\n tiPhone.setError(null);\n }\n return result;\n }", "public boolean isCnpRightLength(Person person) {\n\t\tString cnp = person.getCnp();\n\t\tif (cnp.length() < 12) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}", "private boolean validatePhone(String phone_value) {\n \tboolean result;\n \t\n \tif (phone_value == null)\n \t{\n \t\tresult = false;\n \t}\n \telse\n \t{\n \t\tif ( phone_value.equals(\"\") )\n \t\t\tresult = true;\n \t\telse\n \t\t\tresult = android.util.Patterns.PHONE.matcher(phone_value).matches();\n \t}\n \t\n \treturn result;\n }", "public static String validPhoneNumber(String input) throws IllegalArgumentException {\n\t\tif (input == null || input.length() == 0) {\n\t\t throw new IllegalArgumentException(\"PhoneNumber is not present.\");\n\t\t}\n\t\t\n\t\tString phoneNumberRegex = \"^\\\\+?[0-9 -]{3,20}$\";\n\t\t\n\t\tinput = input.trim();\n\t\t\n\t\tPattern pattern = Pattern.compile(phoneNumberRegex);\n\t\tboolean matchesPattern = pattern.matcher(input).matches();\n\t\t\n\t\tinput = input.trim().replaceAll(\"[- ]+\",\"\");\n\t\t\n\t\tif(!matchesPattern || input.length() < 3){\n\t\t\tthrow new IllegalArgumentException(\"PhoneNumber is not valid.\");\n\t\t}\n\t\t\n\t\treturn input;\n\t}", "public boolean phoneValidate(final String phone) {\n\n\t\ttry {\n\t\t\tif (empHomePhone.equals(employeeHomePhone.getText().toString()))\n\t\t\t\treturn true;\n\t\t\tint pNumber = Integer.parseInt(phone);\n\t\t\tif ((pNumber < Integer.MAX_VALUE) && (pNumber > 999999))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\n\t\t} catch (NumberFormatException e) {\n\t\t\tLog.e(\"Phone length is null\", \"Please fill the phone field\");\n\t\t\tToast.makeText(this, \"Phone Field is Empty\", Toast.LENGTH_SHORT)\n\t\t\t\t\t.show();\n\t\t\treturn false;\n\t\t}\n\n\t}", "public Optional<String> validatePhoneNumber(String number) {\n\n String regexStr = \"^[0-9]{11}$\";\n if (number.matches(regexStr) && number.substring(0, 1).equals(\"0\")) {\n return Optional.of(formatPhoneNumber(number));\n }\n return Optional.absent();\n }", "private boolean isPasswordValid(String pin) {\n if(pin.length()==4) {\n try {\n Integer.parseInt(pin);\n return true;\n } catch (Exception e) {\n return false;\n }\n }\n return false;\n }", "public static boolean checkphnum(String phonenum) {\n\n if (phonenum.matches(\"\\\\d\\\\d\\\\d-\\\\d\\\\d\\\\d-\\\\d\\\\d\\\\d\\\\d\"))\n return true;\n else\n return false;\n\n\n }", "private void txtphnoFocusLost(java.awt.event.FocusEvent evt) {\n String ph=txtphno.getText();\n char[]ch=ph.toCharArray();\n int j=0;\n if(ph.length()!=10)\n {\n JOptionPane.showMessageDialog(this, \"You Entered Wrong phone number\");\n }\n \n for(int i=0; i<ph.length(); i++)\n {\n if(ch[i]<48 || ch[i]>57)\n {\n j++;\n }\n }\n \n if(j!=0)\n {\n JOptionPane.showMessageDialog(this, \"Only Numerical Values should be Entered\");\n\n }\n }", "private boolean isPasswordValid(String password) {\n return (password.length() > 4);\n }", "private boolean isPasswordValid(String password) {\r\n //TODO: Replace this with your own logic\r\n return password.length() > 4;\r\n }", "public static boolean checkValidInputPhone(String inputPhoneNumber) {\n if (inputPhoneNumber == null) {\n return false;\n }\n Pattern pattern = Pattern.compile(\"^([0-9]){9,10}$\");\n Matcher matcher = pattern.matcher(inputPhoneNumber);\n return matcher.matches();\n }", "static boolean isValidPhoneNumber(String phoneNumber) {\n return phoneNumber != null && Pattern.matches(\"\\\\d\\\\d\\\\d-\\\\d\\\\d\\\\d-\\\\d\\\\d\\\\d\\\\d\", phoneNumber);\n }", "public static boolean checkFinalPhoneNumber(String finalPhoneNumber) {\n Pattern pattern = Pattern.compile(\"^((\\\\+375)+([0-9]){9})|((\\\\+7)+([0-9]){10})|((\\\\+380)+([0-9]){9})$\");\n Matcher matcher = pattern.matcher(finalPhoneNumber);\n return matcher.matches();\n }" ]
[ "0.76974577", "0.7291201", "0.71827394", "0.7056603", "0.68677956", "0.6798", "0.6758233", "0.6757438", "0.6732272", "0.67064816", "0.66550857", "0.66099733", "0.6603889", "0.6566235", "0.656452", "0.6545651", "0.64956015", "0.6490161", "0.64809257", "0.64651793", "0.64289665", "0.6421103", "0.6418066", "0.64175653", "0.6393374", "0.63548", "0.6303242", "0.6282218", "0.6275868", "0.626701", "0.6262757", "0.62432986", "0.6237131", "0.62343395", "0.6218061", "0.6210088", "0.61897755", "0.6171548", "0.6171548", "0.6171548", "0.61463994", "0.61437094", "0.6134421", "0.6134301", "0.61242557", "0.6124065", "0.6121831", "0.6117165", "0.6085218", "0.60785365", "0.6078117", "0.6066675", "0.6058661", "0.605178", "0.6048578", "0.6043546", "0.60384583", "0.6014627", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.6014356", "0.60089755", "0.60008216", "0.59947926", "0.5993476", "0.59913504", "0.59873044", "0.5985656", "0.5974271", "0.5969555", "0.59177065", "0.59045017", "0.59012085", "0.58977824", "0.58935624", "0.58931637", "0.58502275", "0.5843443", "0.58354205", "0.5835345", "0.58329606", "0.5821709", "0.5815069", "0.580063", "0.5775498" ]
0.79793805
0
Move players between the bench and starting positions
public static void editLineup(League theLeague, Team theTeam, Scanner keyboard) { System.out.println(""); System.out.println("---Edit Lineup---"); System.out.println(""); theTeam.teamToStringNum(); System.out.println(""); System.out.println("Select a player to move from the bench to starting or vice versa:"); System.out.println("0 - Return to Team Menu"); System.out.println("1-" + theTeam.getRoster().size() + " - Select a player to be dropped"); int lineupChoice = Input.validInt(0, theTeam.getRoster().size(), keyboard); if (lineupChoice == 0) { return; } Player thePlayer = theTeam.getTeamPlayer(lineupChoice - 1); if (thePlayer.getIsStarting()) { thePlayer.setBench(); return; } String position = thePlayer.getPosition(); if (theTeam.starterCount(position) < theLeague.getPositionMax(position)) { thePlayer.setStarting(); } else { System.out.println(""); System.out.println("***You have the maximum number of starters at the " + position + " position***"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void movePlayer(String nomeArq, int px, int py) {\r\n if(Main.player1.Vez()) {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)){\r\n \tMain.player1.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player1.MudaLado(false,true);\r\n } \r\n pos = Main.player1.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0.1;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false) {\r\n \tMain.player1.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player1.Size()[0],Main.player1.Size()[1])==false)\r\n {\r\n \tMain.player1.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n Main.Fase.repinta(); \r\n }\r\n else {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)) {\r\n \tMain.player2.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player2.MudaLado(false,true);\r\n } \r\n pos = Main.player2.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false) {\r\n \tMain.player2.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false)\r\n {\r\n \tMain.player2.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n }\r\n }", "public void moveEverythingALittle(){\n //ponieważ wszystko idealnie jest zsynchronizowane to else nie wykona sie gdy current = getDestination\n if(player.getCurrentX()<player.getDestinationX())\n player.currentX += 1;\n else if(player.getCurrentX()>player.getDestinationX())\n player.currentX -= 1;\n\n if( player.getCurrentY()<player.getDestinationY())\n player.currentY += 1;\n else if( player.getCurrentY()>player.getDestinationY())\n player.currentY -= 1;\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n if(item.getCurrentX()<item.getDestinationX())\n item.currentX += 1;\n else if(item.getCurrentX()>item.getDestinationX())\n item.currentX -= 1;\n\n if( item.getCurrentY()<item.getDestinationY())\n item.currentY += 1;\n else if ( item.getCurrentY()>item.getDestinationY())\n item.currentY -= 1;\n }\n }", "public void movePlayer(String direction) {\n if(playerAlive(curPlayerRow, curPlayerCol)){\n if(direction.equals(\"u\")&&(curPlayerRow-1)>=0){\n overwritePosition(curPlayerRow, curPlayerCol, (curPlayerRow-1), curPlayerCol);\n curPlayerRow -= 1;\n }else if(direction.equals(\"d\")&&(curPlayerRow+1)<=7){\n overwritePosition(curPlayerRow, curPlayerCol, (curPlayerRow+1), curPlayerCol);\n curPlayerRow += 1;\n }else if(direction.equals(\"l\")&&(curPlayerCol-1)>=0){\n overwritePosition(curPlayerRow, curPlayerCol, curPlayerRow, (curPlayerCol-1));\n curPlayerCol -= 1;\n }else if(direction.equals(\"r\")&&(curPlayerCol+1)<=9){\n overwritePosition(curPlayerRow, curPlayerCol, curPlayerRow, (curPlayerCol+1));\n curPlayerCol += 1;\n }\n }\n if(playerFoundTreasure(curPlayerRow, curPlayerCol)){\n playerWins();\n }\n adjustPlayerLifeLevel(curPlayerRow, curPlayerCol);\n int[] array = calcNewTrollCoordinates(curPlayerRow, curPlayerCol, curTrollRow, curTrollCol);\n if(curPlayerRow == curTrollRow && curPlayerCol == curTrollCol){\n gameBoard[curTrollRow][curTrollCol] = new TrollPiece();\n }else{\n int newTrollRow = array[0];\n int newTrollCol = array[1];\n overwritePosition(curTrollRow, curTrollCol, newTrollRow, newTrollCol);\n curTrollRow = newTrollRow;\n curTrollCol = newTrollCol;\n }\n }", "private void setupPlayerPosition() {\n\t\tHashMap<Suspect, Coordinates> startPositions = new HashMap<Suspect, Coordinates>();\r\n\t\tstartPositions.put(Suspect.KasandraScarlet, new Coordinates(18, 28));\r\n\t\tstartPositions.put(Suspect.JackMustard, new Coordinates(7, 28));\r\n\t\tstartPositions.put(Suspect.DianeWhite, new Coordinates(0, 19));\r\n\t\tstartPositions.put(Suspect.JacobGreen, new Coordinates(0, 9));\r\n\t\tstartPositions.put(Suspect.EleanorPeacock, new Coordinates(6, 0));\r\n\t\tstartPositions.put(Suspect.VictorPlum, new Coordinates(20, 0));\r\n\r\n\t\tfor (int i = 0; i < this.listOfPlayer.size(); i++) {\r\n\t\t\tPlayer p = this.listOfPlayer.get(i);\r\n\t\t\tSuspect sus = p.getSuspect().getData();\r\n\t\t\tboolean b = p.setCoord(startPositions.get(sus), this.grid);\r\n\t\t\t// should always be able to put character on starting position\r\n\t\t}\r\n\t\tSystem.out.println(\"Initial player starting positions set\");\r\n\t}", "public static void movePlayerToStartingLocation(Map map) {\n movePlayer(map, 2, 2); // or instead of 0,0 you can select a different starting location\r\n }", "public void step() {\r\n\t\tcard1 = player1.getCard();\r\n\t\tcard2 = player2.getCard();\r\n\t\twarPile.add(card1);\r\n\t\twarPile.add(card2);\r\n\t\tgameState = \"Player 1: \" + card1 + \"\\n\" + \"Player 2: \" + card2 + \"\\n\";\r\n\t\tif(card1.getRank() == card2.getRank()) {\r\n\t\t\tgameState = \"Cards added to the War Pile\" + \"\\n\";\r\n\t\t}else if(card1.getRank() > card2.getRank()){\r\n\t\t\ttransferCards(player1);\r\n\t\t\tgameState = \"Cards go to Player 1 \\n\";\r\n\t\t}else {\r\n\t\t\ttransferCards(player2);\r\n\t\t\tgameState = \"Cards go to Player 2 \\n\";\r\n\t\t}\r\n\t\tmoves ++;\r\n\t}", "public void Move(){\n for(int i = 0; i < moveList.length; i++){\n playerString = \"\";\n switch(moveList[i]) {\n case 1: {\n //TODO: Visited points to others\n System.out.println(\"Moving up!\");\n //Logic for fitness score might need to be moved\n if(!(game.mazeArray[game.playerPosition.getPlayerY() -1][game.playerPosition.getPlayerX()] == 1)){\n playerString.concat(\"game.playerPosition.getPlayerY() - 1 + game.playerPosition.getPlayerX()\");\n if(vistedMoves.contains(playerString)){\n vistedPoints += 2;\n } else {\n freedomPoints += 5;\n vistedMoves.add(playerString);\n }\n } else {\n System.out.println(\"Stuck\");\n wallHugs += 10;\n }\n game.moveUp();\n if(game.checkWin()){\n freedomPoints += 200;\n }\n break;\n }\n case 2: {\n System.out.println(\"Moving left!\");\n if(!(game.mazeArray[game.playerPosition.getPlayerY()][game.playerPosition.getPlayerX() -1] == 1)){\n playerString.concat(\"game.playerPosition.getPlayerY() + game.playerPosition.getPlayerX() -1\");\n if(vistedMoves.contains(playerString)){\n vistedPoints += 2;\n } else {\n freedomPoints += 5;\n vistedMoves.add(playerString);\n }\n } else {\n System.out.println(\"Stuck\");\n wallHugs += 1;\n }\n game.moveLeft();\n if(game.checkWin()){\n freedomPoints += 200;\n }\n break;\n }\n case 3: {\n System.out.println(\"Moving right!\");\n if(!(game.mazeArray[game.playerPosition.getPlayerY()][game.playerPosition.getPlayerX() +1] == 1)){\n playerString.concat(\"game.playerPosition.getPlayerY() + game.playerPosition.getPlayerX() +1\");\n if(vistedMoves.contains(playerString)){\n vistedPoints += 2;\n } else {\n freedomPoints += 5;\n vistedMoves.add(playerString);\n }\n } else {\n System.out.println(\"Stuck\");\n wallHugs += 1;\n }\n game.moveRight();\n if(game.checkWin()){\n freedomPoints += 200;\n }\n break;\n }\n case 4: {\n System.out.println(\"Moving down!\");\n if(!(game.mazeArray[game.playerPosition.getPlayerY() +1][game.playerPosition.getPlayerX()] == 1)){\n playerString.concat(\"game.playerPosition.getPlayerY() + 1 + game.playerPosition.getPlayerX()\");\n if(vistedMoves.contains(playerString)){\n vistedPoints += 2;\n } else {\n freedomPoints += 5;\n vistedMoves.add(playerString);\n }\n freedomPoints += 1;\n } else {\n System.out.println(\"Stuck\");\n wallHugs += 1;\n }\n game.moveDown();\n if(game.checkWin()){\n freedomPoints += 200;\n }\n break;\n }\n default: {\n System.out.println(\"End of line\");\n break;\n //You shouldn't be here mate.\n }\n }\n }\n\n }", "public void move()\n {\n if (!alive) {\n return;\n }\n\n if (speedTimer > 0) {\n speedTimer --;\n } else if (speedTimer == 0 && speed != DEFAULT_SPEED) {\n speed = DEFAULT_SPEED;\n }\n\n Location last = playerLocations.get(playerLocations.size()-1);\n Location next = null;\n\n // For the speed, iterate x blocks between last and next\n\n if (direction == UPKEY)\n {\n next = getLocation(last.getX(), (int)(last.getY() - speed * getPixelSize()));\n } else if (direction == DOWNKEY)\n {\n next = getLocation(last.getX(), (int)(last.getY() + speed * getPixelSize()));\n } else if (direction == LEFTKEY)\n {\n next = getLocation((int)(last.getX() - speed * getPixelSize()), last.getY());\n } else if (direction == RIGHTKEY)\n {\n next = getLocation((int)(last.getX() + speed * getPixelSize()), last.getY());\n }\n\n ArrayList<Location> line = getLine(last, next);\n\n if (line.size() == 0) {\n gameOver();\n return;\n }\n\n for (Location loc : line) {\n if (checkCrash (loc)) {\n gameOver();\n return;\n } else {\n // Former bug: For some reason when a player eats a powerup a hole appears in the line where the powerup was.\n Location l2 = getLocation(loc.getX(), loc.getY());\n l2.setType(LocationType.PLAYER);\n l2.setColor(this.col);\n\n playerLocations.add(l2);\n getGridCache().add(l2);\n }\n }\n }", "public void move()\n\t{\n time++;\n\t\tif (time % 10 == 0)\n\t\t{\n\t\t\thistogramFrame.clearData();\n\t\t}\n\t\tfor (int i = 0; i < nwalkers; i++)\n\t\t{\n\t\t\tdouble r = random.nextDouble();\n\t\t\tif (r <= pRight)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] + 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] - 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft + pDown)\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] - 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] + 1;\n\t\t\t}\n\t\t\tif (time % 10 == 0)\n\t\t\t{\n\t\t\t\thistogramFrame.append(Math.sqrt(xpositions[i] * xpositions[i]\n\t\t\t\t\t\t+ ypositions[i] * ypositions[i]));\n\t\t\t}\n\t\t\txmax = Math.max(xpositions[i], xmax);\n\t\t\tymax = Math.max(ypositions[i], ymax);\n\t\t\txmin = Math.min(xpositions[i], xmin);\n\t\t\tymin = Math.min(ypositions[i], ymin);\n\t\t}\n\t}", "@Test\n public void testMovePlayerToCell()\n {\n theEngine.start();\n assertTrue(theEngine.inPlayingState());\n \n assertFalse(getThePlayer().getLocation() == getEmptyCell());\n movePlayerToCell(getEmptyCell());\n assertEquals(getThePlayer().getLocation(), getEmptyCell());\n }", "public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }", "@Test\n public void onlyStartPlayerMoves() {\n assertTrue(game.move(Location.R1, Location.R3));\n assertEquals(1, game.getCount(Location.R3));\n assertEquals(1, game.getCount(Location.R1));\n }", "public void moveObjects() {\n // move ball and paddles\n ball.moveBall();\n playerOnePaddle.movePaddle();\n playerTwoPaddle.movePaddle();\n }", "public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.x != 0) {\t\t\t\t\n\t\t\t\t\tcurrentLocation.x--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (currentLocation.y - ChristopherColumbusLocation.y < 0) {\n\t\t\t\tif (currentLocation.y + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.y++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.y != 0) {\n\t\t\t\t\tcurrentLocation.y--;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}", "void move(int steps);", "@Override\n\tpublic void moveExecStart(Counter player) {\n\n\t}", "private void movementPhase() {\n ClickObserver.getInstance().setCreatureFlag(\"\");\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(false);\n TheCupGUI.update();\n Board.removeCovers();\n }\n });\n for (Player p : playerList) {\n \tplayer = p;\n player.flipAllUp();\n\t ClickObserver.getInstance().setActivePlayer(player);\n\t ClickObserver.getInstance().setCreatureFlag(\"Movement: SelectMovers\");\n\t InfoPanel.uncover(player.getName());\n\t if (p.getHexesWithPiece().size() > 0) {\n\t \tClickObserver.getInstance().setClickedTerrain(p.getHexesWithPiece().get(0));\n\t }\n\t pause();\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tClickObserver.getInstance().whenTerrainClicked();\n \t GUI.getHelpText().setText(\"Movement Phase: \" + player.getName()\n + \", Move your armies\");\n \t Game.getRackGui().setOwner(player);\n }\n });\n\t \n\t while (isPaused) {\n \ttry { Thread.sleep(100); } catch( Exception e ){ return; } \n\t }\n\t InfoPanel.cover(player.getName());\n player.flipAllDown();\n }\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(true);\n }\n });\n ClickObserver.getInstance().setCreatureFlag(\"\");\n }", "int playerMoveStart(Player player, int oldAmount);", "private void move() {\n resetUpdate();\n\n gameMessage.setSpace1(clientMessage.getSpace1());\n gameMessage.resetGameMessage();\n gameMessage.notify(gameMessage);\n\n\n if( liteGame.isWinner() ) endOfTheGame = true;\n }", "private void moveTheCardsTotheWinner(int winPlayer,Player tempPlayer)\n {\n for(int i=0;i<tempPlayer.getLastIndex();i++)\n if(winPlayer == 1)\n FirstPlayer.addCardToBegining(tempPlayer.removeTheCard());\n else if (winPlayer == 2) \n SecondPlayer.addCardToBegining(tempPlayer.removeTheCard()); \n }", "public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}", "public void chasePlayer() {\n refreshObstructionMatrix();\n Coordinate currPosition = new Coordinate(getX(), getY());\n Player player = this.dungeon.getPlayer();\n Coordinate playerPosition = new Coordinate(player.getX(), player.getY());\n\n if (currPosition.equals(playerPosition)) {\n // Debug.printC(\"Enemy has reached the player!\", Debug.RED);\n player.useItem(this);\n } else {\n this.pathToDest = pathFinder.getPathToDest(currPosition, playerPosition);\n if (!this.pathToDest.empty()) {\n Coordinate nextPosition = this.pathToDest.pop();\n // this.setCoordinate(nextPosition);\n if (getX() + 1 == nextPosition.x) {\n moveRight();\n } else if (getX() - 1 == nextPosition.x) {\n moveLeft();\n } else if (getY() + 1 == nextPosition.y) {\n moveDown();\n } else if (getY() - 1 == nextPosition.y) {\n moveUp();\n }\n }\n }\n }", "private static void move() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(timer);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\trunTime += timer;\r\n\t\tif (runTime > stepUp) {\r\n\t\t\ttimer *= 0.9;\r\n\t\t\tstepUp += 5000;\r\n\t\t}\r\n\r\n\t\tupdateSnake(lastMove);\r\n\t\t// updateField();\r\n\r\n\t\tif (score >= 10 && (r.nextInt(40) == 0)) {\r\n\t\t\taddFood(MOUSE);\r\n\t\t}\r\n\t\tif (score >= 30 && (r.nextInt(50) == 0)) {\r\n\t\t\taddFood(POISON);\r\n\t\t}\r\n\t}", "boolean makeMove(int index, Player player);", "public void move() {\n\n int move_position_x = 0;\n int move_postion_y = 0;\n Random random = new Random();\n do {\n\n move_position_x = 0;\n move_postion_y = 0;\n int direction = random.nextInt(6);\n switch (direction) {\n case 0:\n move_postion_y = -1;\n break;\n case 1:\n case 4:\n move_postion_y = 1;\n break;\n case 2:\n case 5:\n move_position_x = 1;\n break;\n case 3:\n move_position_x = -1;\n }\n } while ((this.positionX + move_position_x < 0) || (this.positionX + move_position_x >= size_of_map) || (\n this.positionY + move_postion_y < 0) || (this.positionY + move_postion_y >= size_of_map));\n this.positionX += move_position_x;\n this.positionY += move_postion_y;\n }", "public void move(){\n\t\t\n\t}", "public static void makeEnemyMove() { //all players after index 1 are enemies\n if (gameMode == EARTH_INVADERS) {//find leftmost and rightmost vehicle columns to see if we need to move down\n int leftMost = board[0].length;\n int rightMost = 0;\n int lowest = 0;\n for (int i = FIRST_VEHICLE; i < players.length; i++) {//find left-most, right-most and lowest most vehicles (non aircraft/train) to determine how formation should move\n Player curr = players[i];\n if (curr == null)\n continue;\n String name = curr.getName();\n if (name.equals(\"NONE\") || curr.isFlying() || name.startsWith(\"TRAIN\") || (curr instanceof Monster))\n continue;\n if (curr.getCol() < leftMost)\n leftMost = curr.getCol();\n if (curr.getCol() > rightMost)\n rightMost = curr.getCol();\n if (curr.getRow() > lowest)\n lowest = curr.getRow();\n curr.setHeadDirection(DOWN);\n }\n for (int i = FIRST_VEHICLE; i < players.length; i++) {//***move aircraft and trains\n Player curr = players[i];\n if (curr == null)\n continue;\n String name = curr.getName();\n if (name.equals(\"NONE\") || curr.isFlying() || name.startsWith(\"TRAIN\") || (curr instanceof Monster)) {\n if (curr.isMoving())\n continue;\n ArrayList<Integer> dirs = new ArrayList(); //array of preferred directions - everything but the reverse of their body position\n int bodyDir = curr.getBodyDirection();\n curr.clearDirections();\n int r = curr.getRow();\n int c = curr.getCol();\n if (bodyDir == UP) {\n if (isValidMove(curr, r - 1, c))\n dirs.add(UP);\n if (isValidMove(curr, r, c + 1))\n dirs.add(RIGHT);\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r, c - 1))\n dirs.add(LEFT);\n }\n } else if (bodyDir == RIGHT) {\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r - 1, c))\n dirs.add(UP);\n }\n if (isValidMove(curr, r, c + 1))\n dirs.add(RIGHT);\n if (isValidMove(curr, r + 1, c))\n dirs.add(DOWN);\n } else if (bodyDir == DOWN) {\n if (isValidMove(curr, r + 1, c))\n dirs.add(DOWN);\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r, c + 1))\n dirs.add(RIGHT);\n }\n if (isValidMove(curr, r, c - 1))\n dirs.add(LEFT);\n } else //if(curr.getBodyDirection()==LEFT)\n {\n if (isValidMove(curr, r - 1, c))\n dirs.add(UP);\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r + 1, c))\n dirs.add(DOWN);\n }\n if (isValidMove(curr, r, c - 1))\n dirs.add(LEFT);\n }\n int rand = 0;\n if (dirs.size() > 0)\n rand = dirs.get((int) (Math.random() * dirs.size()));\n if (curr.isFlying()) { //if aircraft is flying in the visible board, don't change direction\n if (r == 1 && (c == 0 || c == board[0].length - 1)) //we are in the first row but behind a border\n { //we only want aircraft to appear in row 1 in EARTH INVADERS (like the UFO in space invaders)\n if (bodyDir == LEFT || bodyDir == RIGHT) {\n rand = UP;\n if (Math.random() < .5)\n rand = DOWN;\n } else if (c == 0)\n rand = RIGHT;\n else if (c == board[0].length - 1)\n rand = LEFT;\n else\n //if(dirs.contains(bodyDir))\n rand = bodyDir;\n } else if (r == 0 || c == 0 || r == board.length - 1 || c == board[0].length - 1) {\n rand = bodyDir;\n if (r == 0 && c == 0) {\n rand = RIGHT;\n if (Math.random() < .5)\n rand = DOWN;\n } else if (r == 0 && c == board[0].length - 1) {\n rand = LEFT;\n if (Math.random() < .5)\n rand = DOWN;\n } else if (r == board.length - 1 && c == 0) {\n rand = RIGHT;\n if (Math.random() < .5)\n rand = UP;\n } else if (r == board.length - 1 && c == board[0].length - 1) {\n rand = LEFT;\n if (Math.random() < .5)\n rand = UP;\n }\n } else if (/*dirs.contains(bodyDir) && */(r > 0 && c > 0 && r < board.length - 1 && c < board[0].length - 1))\n rand = bodyDir; //make it so aircraft prefer to keep going the same direciton\n\n } else if (name.startsWith(\"TRAIN\")) {//make it so trains prefer to follow the right wall\n for (int j = 0; j < dirs.size(); j++)\n if (dirs.get(j) != bodyDir) {\n rand = dirs.get(j);\n break;\n }\n }\n curr.setDirection(rand);\n curr.setBodyDirection(rand);\n }\n }//***end aircraft/train movement\n if (leftMost == 1) //move vehicles down and start them moving right\n {\n if (EI_moving == LEFT) {\n EI_moving = DOWN;\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n if (lowest < board.length - 3 && !curr.isFlying() && !curr.getName().startsWith(\"TRAIN\"))\n curr.setRow(curr.getRow() + 1);\n }\n } else if (EI_moving == DOWN) {\n EI_moving = RIGHT;\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n if (!curr.isFlying() && !curr.getName().startsWith(\"TRAIN\")) {\n curr.setDirection(RIGHT);\n curr.setBodyDirection(RIGHT);\n }\n }\n } else if (EI_moving == RIGHT)\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n if (!curr.isFlying() && !curr.getName().startsWith(\"TRAIN\"))\n curr.setDirection(RIGHT);\n }\n }//***end leftmost is first col\n else if (rightMost == board[0].length - 2) //move vehicles down and start them moving left\n {\n if (EI_moving == RIGHT) {\n EI_moving = DOWN;\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n if (lowest < board.length - 3 && !curr.isFlying() && !curr.getName().startsWith(\"TRAIN\"))\n curr.setRow(curr.getRow() + 1);\n }\n } else if (EI_moving == DOWN) {\n EI_moving = LEFT;\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n if (!curr.isFlying() && !curr.getName().startsWith(\"TRAIN\")) {\n curr.setDirection(LEFT);\n curr.setBodyDirection(LEFT);\n }\n }\n } else if (EI_moving == LEFT)\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n\n if (!curr.isFlying() && !curr.getName().startsWith(\"TRAIN\"))\n curr.setDirection(LEFT);\n }\n }//***end rightmost is last col\n else if (EI_moving == LEFT)\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n if (!curr.isFlying() && !curr.getName().startsWith(\"TRAIN\"))\n curr.setDirection(LEFT);\n }\n else if (EI_moving == RIGHT)\n for (int i = FIRST_VEHICLE; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n if (!curr.isFlying() && !curr.getName().startsWith(\"TRAIN\"))\n curr.setDirection(RIGHT);\n }\n return;\n }//***end EARTH INVADERS enemy movements\n for (int i = 2; i < players.length; i++) {\n Player curr = players[i];\n if (curr == null || curr.getName().equals(\"NONE\"))\n continue;\n String name = curr.getName();\n int r = curr.getRow();\n int c = curr.getCol();\n if (r > 0 && c > 0 && r < board.length - 1 && c < board[0].length - 1 && (curr instanceof Vehicle))\n ((Vehicle) (curr)).setOnField(true);\n\n if (curr.isFlying() && webs[panel].size() > 0) {\n int x = curr.findX(cellSize);\n int y = curr.findY(cellSize);\n for (int p = 0; p < webs[panel].size(); p++) {\n int[] ray = webs[panel].get(p);\n if (Utilities.isPointOnRay(x, y, ray[0], ray[1], ray[2], ray[3])) {\n explosions.add(new Explosion(\"BIG\", x, y, explosionImages, animation_delay));\n Ordinance.radiusDamage(-1, x, y, 25, panel, .5);\n Spawner.resetEnemy(i);\n webs[panel].remove(p);\n p--;\n Structure str1 = structures[ray[4]][ray[5]][panel];\n Structure str2 = structures[ray[6]][ray[7]][panel];\n if (str1 != null)\n str1.setWebValue(0);\n if (str2 != null)\n str2.setWebValue(0);\n Utilities.updateKillStats(curr);\n break;\n }\n }\n }\n //reset any ground vehicle that ended up in the water\n //reset any train not on tracks - we need this because a player might change panels as a vehicle spawns\n if (name.startsWith(\"TRAIN\")) {\n Structure str = structures[r][c][panel];\n if (str != null && str.getName().equals(\"hole\") && str.getHealth() != 0) {\n explosions.add(new Explosion(\"BIG\", curr.getX() - (cellSize / 2), curr.getY() - (cellSize / 2), puffImages, animation_delay));\n Utilities.updateKillStats(curr);\n Spawner.resetEnemy(i);\n continue;\n } else if (board[r][c][panel].startsWith(\"~\")) {\n explosions.add(new Explosion(\"BIG\", curr.getX() - (cellSize / 2), curr.getY() - (cellSize / 2), puffImages, animation_delay));\n Spawner.resetEnemy(i);\n continue;\n } else if (!board[r][c][panel].startsWith(\"T\")) {\n explosions.add(new Explosion(\"SMALL\", curr.getX() - (cellSize / 2), curr.getY() - (cellSize / 2), puffImages, animation_delay));\n Spawner.resetEnemy(i);\n continue;\n }\n } else //ground vehicles\n if (!curr.isFlying() && !curr.getName().startsWith(\"BOAT\") && (curr instanceof Vehicle)) {\n\n if (((Vehicle) (curr)).getStunTime() > numFrames) //ground unit might be stunned by WoeMantis shriek\n continue;\n if (board[r][c][panel].startsWith(\"~\")) {\n explosions.add(new Explosion(\"SMALL\", curr.getX() - (cellSize / 2), curr.getY() - (cellSize / 2), puffImages, animation_delay));\n Spawner.resetEnemy(i);\n continue;\n }\n } else //reset any water vehicle that ended up on land\n if (name.startsWith(\"BOAT\")) {\n if (!board[r][c][panel].startsWith(\"~\")) {\n explosions.add(new Explosion(\"SMALL\", curr.getX() - (cellSize / 2), curr.getY() - (cellSize / 2), puffImages, animation_delay));\n Spawner.resetEnemy(i);\n continue;\n }\n } else if (curr.getHealth() <= 0) {\n Spawner.resetEnemy(i);\n continue;\n }\n\n //if a ground unit has been on the playable field and leaves it, respawn them\n if (!curr.isFlying() && !name.startsWith(\"TRAIN\") && (curr instanceof Vehicle)) {\n if ((r == 0 || c == 0 || r == board.length - 1 || c == board[0].length - 1) && ((Vehicle) (curr)).getOnField()) {\n ((Vehicle) (curr)).setOnField(false);\n Spawner.resetEnemy(i);\n continue;\n }\n }\n if (name.endsWith(\"nukebomber\")) {//for the nukebomber, set the detonation coordinates so nuke fires when the plane exits the field\n int dr = curr.getDetRow();\n int dc = curr.getDetCol();\n int bd = curr.getBodyDirection();\n int dd = curr.getDetDir();\n if (bd == dd && (((bd == LEFT || bd == RIGHT) && c == dc) || (bd == UP || bd == DOWN) && r == dr)) {\n Ordinance.nuke();\n curr.setDetRow(-1);\n curr.setDetCol(-1);\n }\n }\n\n if (curr.isMoving())\n continue;\n int bodyDir = curr.getBodyDirection();\n curr.clearDirections();\n int[] target = isMonsterInSight(curr);\n int mDir = target[0]; //direction of the monster, -1 if none\n int monsterIndex = target[1]; //index of the monster in the players array, -1 if none\n ArrayList<Integer> dirs = new ArrayList(); //array of preferred directions - everything but the reverse of their body position\n if (bodyDir == UP) {\n if (isValidMove(curr, r - 1, c)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == UP) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(UP);\n }\n if (isValidMove(curr, r, c + 1)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == RIGHT) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(RIGHT);\n }\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r, c - 1)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == LEFT) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(LEFT);\n }\n }\n } else if (bodyDir == RIGHT) {\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r - 1, c)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == UP) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(UP);\n }\n }\n if (isValidMove(curr, r, c + 1)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == RIGHT) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(RIGHT);\n }\n if (isValidMove(curr, r + 1, c)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == DOWN) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(DOWN);\n }\n } else if (bodyDir == DOWN) {\n if (isValidMove(curr, r + 1, c)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == DOWN) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(DOWN);\n }\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r, c + 1)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == RIGHT) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(RIGHT);\n }\n }\n if (isValidMove(curr, r, c - 1)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == LEFT) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(LEFT);\n }\n } else //if(curr.getBodyDirection()==LEFT)\n {\n\n if (isValidMove(curr, r - 1, c)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == UP) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(UP);\n }\n if (!name.startsWith(\"TRAIN\")) //trains need to follow the track circuit - only straight and right turns\n {\n if (isValidMove(curr, r + 1, c)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == DOWN) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(DOWN);\n }\n }\n if (isValidMove(curr, r, c - 1)) {\n if (Utilities.nonFlyingCivilian(name) && mDir == LEFT) {\n }//civilians don't want to move towards the monster if it is in direct sight\n else\n dirs.add(LEFT);\n }\n }\n\n if (dirs.size() > 0) {\n if (curr instanceof Monster) {//***MONSTER AI*******************\n double headTurnProb = 0.25;\n double stompProb = 0.5;\n int vDir = isVehicleInSight(curr);\n if (vDir >= 0) {\n boolean airShot = false;\n int vD = vDir;\n if (vD >= 10) {\n airShot = true;\n vD -= 10;\n }\n if (curr.head360() || !Utilities.oppositeDirections(vD, curr.getHeadDirection())) {\n curr.setHeadDirection(vD);\n if ((curr.getName().startsWith(\"Gob\") || curr.getName().startsWith(\"Boo\")) && numFrames >= curr.getLastShotTime() + curr.getReloadTime()) {\n Bullet temp = null;\n if (curr.getName().startsWith(\"Boo\")) {\n temp = new Bullet(curr.getName() + vD, curr.getX(), curr.getY(), 50, beamImages, SPEED, \"BEAM\", SPEED * 10, airShot, i, -1, -1);\n } else if (curr.getName().startsWith(\"Gob\")) {\n temp = new Bullet(\"flame\" + vD, curr.getX(), curr.getY(), 15, monsterFireImages, SPEED, \"FIRE\", SPEED * 4, airShot, i, -1, -1);\n }\n if (temp != null) {\n temp.setDirection(vD);\n bullets.add(temp);\n curr.setLastShotTime(numFrames);\n continue;\n }\n }\n }\n } else if (Math.random() < headTurnProb) {\n String hd = \"right\";\n if (Math.random() < .5)\n hd = \"left\";\n Utilities.turnHead(curr, hd);\n }\n Structure str = structures[r][c][panel];\n if (str != null && str.getHealth() > 0 && str.isDestroyable() && !str.getName().startsWith(\"FUEL\") && Math.random() < stompProb)\n playerMove(KeyEvent.VK_SPACE, i);\n else {\n int dir = dirs.get((int) (Math.random() * dirs.size()));\n if (dir == UP) {\n if (curr.getBodyDirection() != UP) {\n curr.setBodyDirection(UP);\n curr.setHeadDirection(UP);\n } else {\n if (!curr.isSwimmer() && board[r - 1][c][panel].equals(\"~~~\") && !board[r][c][panel].equals(\"~~~\")) {\n continue;\n }\n if (r - 1 >= 1) {\n str = structures[r - 1][c][panel]; //don't walk into a fire\n if (str != null && str.onFire())\n continue;\n }\n playerMove(KeyEvent.VK_UP, i);\n }\n } else if (dir == DOWN) {\n if (curr.getBodyDirection() != DOWN) {\n curr.setBodyDirection(DOWN);\n curr.setHeadDirection(DOWN);\n } else {\n if (!curr.isSwimmer() && board[r + 1][c][panel].equals(\"~~~\") && !board[r][c][panel].equals(\"~~~\")) {\n continue;\n }\n if (r + 1 <= structures.length - 1) {\n str = structures[r + 1][c][panel]; //don't walk into a fire\n if (str != null && str.onFire())\n continue;\n }\n playerMove(KeyEvent.VK_DOWN, i);\n }\n } else if (dir == LEFT) {\n if (curr.getBodyDirection() != LEFT) {\n curr.setBodyDirection(LEFT);\n curr.setHeadDirection(LEFT);\n } else {\n if (!curr.isSwimmer() && board[r][c - 1][panel].equals(\"~~~\") && !board[r][c][panel].equals(\"~~~\")) {\n continue;\n }\n if (c - 1 >= 1) {\n str = structures[r][c - 1][panel]; //don't walk into a fire\n if (str != null && str.onFire())\n continue;\n }\n playerMove(KeyEvent.VK_LEFT, i);\n }\n } else if (dir == RIGHT) {\n if (curr.getBodyDirection() != RIGHT) {\n curr.setBodyDirection(RIGHT);\n curr.setHeadDirection(RIGHT);\n } else {\n if (!curr.isSwimmer() && board[r][c + 1][panel].equals(\"~~~\") && !board[r][c][panel].equals(\"~~~\")) {\n continue;\n }\n if (c + 1 <= board[0].length - 1) {\n str = structures[r][c + 1][panel]; //don't walk into a fire\n if (str != null && str.onFire())\n continue;\n }\n playerMove(KeyEvent.VK_RIGHT, i);\n }\n }\n }\n continue;\n }//end monster AI movement\n else //shoot at a target\n if (name.endsWith(\"troops\") || name.endsWith(\"jeep\") || name.endsWith(\"police\") || name.startsWith(\"TANK\") || name.endsWith(\"coastguard\") || name.endsWith(\"destroyer\") || name.endsWith(\"fighter\") || name.equals(\"AIR bomber\")) {\n boolean airShot = false;\n if (gameMode == EARTH_INVADERS) //we don't want vehicles to shoot each other\n {\n airShot = true;\n curr.setHeadDirection(DOWN);\n }\n if (monsterIndex >= 0 && monsterIndex < players.length && players[monsterIndex].isFlying())\n airShot = true;\n if (curr.getName().endsWith(\"fighter\"))\n curr.setDirection(bodyDir); //keep moving while shooting\n if (mDir != -1 && curr.getRow() > 0 && curr.getCol() > 0 && curr.getRow() < board.length - 1 && curr.getCol() < board[0].length - 1) { //don't shoot from off the visible board\n if ((mDir == bodyDir || ((curr.getName().startsWith(\"TANK\") || curr.getName().endsWith(\"jeep\") || name.equals(\"AIR bomber\")) && (mDir == curr.getHeadDirection() || name.equals(\"AIR bomber\")))) && numFrames >= curr.getLastShotTime() + curr.getReloadTime()) { //AIR bomber needs to be able to drop bombs if they see the monster in front of them or behind them, so we need to check the name in two conditions\n Bullet temp;\n if (name.endsWith(\"jeep\") || name.endsWith(\"coastguard\")) {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 65, (int) (Math.random() * 10) + 30);\n temp = new Bullet(\"jeep\" + mDir, curr.getX(), curr.getY(), 5, machBulletImages, SPEED, \"BULLET\", SPEED * 6, airShot, i, -1, -1);\n } else if (name.endsWith(\"troops\") || name.endsWith(\"police\")) {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 70, (int) (Math.random() * 10) + 20);\n temp = new Bullet(\"troops\" + mDir, curr.getX(), curr.getY(), 3, bulletImages, SPEED, \"BULLET\", SPEED * 6, airShot, i, -1, -1);\n } else if (name.endsWith(\"destroyer\") || name.endsWith(\"artillery\")) {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 45, (int) (Math.random() * 10) + 85);\n temp = new Bullet(\"destroyer\" + mDir, curr.getX(), curr.getY(), 15, shellImages, SPEED, \"SHELL\", SPEED * 3, true, i, players[monsterIndex].findX(cellSize), players[monsterIndex].findY(cellSize));\n } else if (name.endsWith(\"fighter\")) {\n channels[0].programChange(instr[TAIKO].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 10) + 5, (int) (Math.random() * 10) + 40);\n temp = new Bullet(\"fighter\" + mDir, curr.getX(), curr.getY(), 30, rocketImages, SPEED, \"SHELL\", SPEED * 8, true, i, players[monsterIndex].findX(cellSize), players[monsterIndex].findY(cellSize));\n } else if (name.endsWith(\"missile\")) {\n temp = new Bullet(\"missile\" + mDir, curr.getX(), curr.getY(), 50, rocketImages, SPEED, \"SHELL\", SPEED * 3, true, i, players[monsterIndex].findX(cellSize), players[monsterIndex].findY(cellSize));\n channels[0].programChange(instr[TAIKO].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 10) + 5, (int) (Math.random() * 10) + 40);\n } else if (name.endsWith(\"flame\")) {\n temp = new Bullet(\"flame\" + mDir, curr.getX(), curr.getY(), 15, monsterFireImages, SPEED, \"FIRE\", SPEED * 4, airShot, i, -1, -1);\n channels[0].programChange(instr[TAIKO].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 10) + 5, (int) (Math.random() * 10) + 40);\n } else if (name.equals(\"AIR bomber\")) {\n temp = null;\n if (!DISABLE_BOMBERS) {\n int mR = players[PLAYER1].getRow(); //main player row & col\n int mC = players[PLAYER1].getCol();\n int mR2 = -99; //possible 2nd monster row & col\n int mC2 = -99;\n if (p1partner) {\n mR2 = players[PLAYER2].getRow();\n mC2 = players[PLAYER2].getCol();\n }\n if (players[PLAYER1].getHealth() > 0 && (Math.abs(r - mR) <= 2 || Math.abs(c - mC) <= 2 || Math.abs(r - mR2) <= 2 || Math.abs(c - mC2) <= 2)) {//our bomber is in the same row & col as a monster + or - 1\n if (bodyDir == UP && r < board.length - 1) {\n Ordinance.bigExplosion(curr.getX(), curr.getY() + (cellSize * 2), panel);\n Ordinance.radiusDamage(-1, curr.getX(), curr.getY() + (cellSize * 2), 50, panel, .25);\n } else if (bodyDir == DOWN && r > 1) {\n Ordinance.bigExplosion(curr.getX(), curr.getY() - (cellSize * 2), panel);\n Ordinance.radiusDamage(-1, curr.getX(), curr.getY() - (cellSize * 2), 50, panel, .25);\n } else if (bodyDir == RIGHT && c < board[0].length - 1) {\n Ordinance.bigExplosion(curr.getX() - (cellSize * 2), curr.getY(), panel);\n Ordinance.radiusDamage(-1, curr.getX() - (cellSize * 2), curr.getY(), 50, panel, .25);\n } else if (bodyDir == LEFT && c > 1) {\n Ordinance.bigExplosion(curr.getX() + (cellSize * 2), curr.getY(), panel);\n Ordinance.radiusDamage(-1, curr.getX() + (cellSize * 2), curr.getY(), 50, panel, .25);\n }\n }\n }\n } else {\n channels[0].programChange(instr[GUNSHOT].getPatch().getProgram());\n channels[0].noteOn((int) (Math.random() * 6) + 45, (int) (Math.random() * 10) + 85);\n temp = new Bullet(\"\" + mDir, curr.getX(), curr.getY(), 15, shellImages, SPEED, \"SHELL\", SPEED * 5, airShot, i, -1, -1);\n }\n if (temp != null)\n temp.setDirection(mDir);\n\n if (name.endsWith(\"troops\") || name.endsWith(\"police\") && Math.random() < .5) //make the police move towards the monster half the time\n {\n if (mDir == UP && isValidMove(curr, curr.getRow() - 1, curr.getCol()))\n curr.setDirection(UP);\n else if (mDir == DOWN && isValidMove(curr, curr.getRow() + 1, curr.getCol()))\n curr.setDirection(DOWN);\n else if (mDir == LEFT && isValidMove(curr, curr.getRow(), curr.getCol() - 1))\n curr.setDirection(LEFT);\n else if (mDir == RIGHT && isValidMove(curr, curr.getRow(), curr.getCol() + 1))\n curr.setDirection(RIGHT);\n else\n curr.setDirection(-1);\n }\n if (temp != null && players[PLAYER1].getHealth() > 0) {\n if (gameMode == EARTH_INVADERS && !curr.isFlying()) {\n } else {\n if (numFrames >= ceaseFireTime + ceaseFireDuration || gameMode == EARTH_INVADERS) {\n bullets.add(temp);\n curr.setLastShotTime(numFrames);\n continue;\n }\n }\n }\n } else //change to face the monster to line up a shot\n {\n if (name.endsWith(\"troops\") || name.endsWith(\"police\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.endsWith(\"artillery\")) {\n curr.setDirection(-1); //stop to shoot\n curr.setBodyDirection(mDir);\n } else if (curr.getName().startsWith(\"TANK\") || curr.getName().endsWith(\"jeep\"))\n curr.setHeadDirection(mDir);\n continue;\n }\n }\n }\n int rand = dirs.get((int) (Math.random() * dirs.size()));\n if (curr.isFlying() && (r > 0 && c > 0 && r < board.length - 1 && c < board[0].length - 1)) {\n rand = bodyDir; //make it so aircraft prefer to keep going the same direciton\n } else if (name.startsWith(\"TRAIN\")) {//make it so trains prefer to follow the right wall\n for (int j = 0; j < dirs.size(); j++)\n if (dirs.get(j) != bodyDir) {\n rand = dirs.get(j);\n break;\n }\n }\n curr.setDirection(rand);\n curr.setBodyDirection(rand);\n\n continue;\n }\n //if no preferred direction, include the option to turn around\n //civilians should prefer to turn around rather than approach the monster\n if (name.endsWith(\"civilian\") || name.endsWith(\"bus\")) {\n if (bodyDir == mDir) //if we are facing the same direction as the monster, turn around\n {\n if (bodyDir == UP && isValidMove(curr, curr.getRow() + 1, curr.getCol())) {\n curr.setDirection(DOWN);\n curr.setBodyDirection(DOWN);\n continue;\n } else if (bodyDir == DOWN && isValidMove(curr, curr.getRow() - 1, curr.getCol())) {\n curr.setDirection(UP);\n curr.setBodyDirection(UP);\n continue;\n } else if (bodyDir == LEFT && isValidMove(curr, curr.getRow(), curr.getCol() + 1)) {\n curr.setDirection(RIGHT);\n curr.setBodyDirection(RIGHT);\n continue;\n } else if (bodyDir == RIGHT && isValidMove(curr, curr.getRow(), curr.getCol() - 1)) {\n curr.setDirection(LEFT);\n curr.setBodyDirection(LEFT);\n continue;\n }\n }\n }\n int rand = (int) (Math.random() * 4);\n if (rand == UP && isValidMove(curr, curr.getRow() - 1, curr.getCol())) {\n curr.setDirection(UP);\n curr.setBodyDirection(UP);\n continue;\n }\n if (rand == DOWN && isValidMove(curr, curr.getRow() + 1, curr.getCol())) {\n curr.setDirection(DOWN);\n curr.setBodyDirection(DOWN);\n continue;\n }\n if (rand == LEFT && isValidMove(curr, curr.getRow(), curr.getCol() - 1)) {\n curr.setDirection(LEFT);\n curr.setBodyDirection(LEFT);\n continue;\n }\n if (rand == RIGHT && isValidMove(curr, curr.getRow(), curr.getCol() + 1)) {\n curr.setDirection(RIGHT);\n curr.setBodyDirection(RIGHT);\n continue;\n }\n\n }\n }", "public void setPlayersAtGo()\n {\n for(int i = 0; i < m_numPlayers; i++)\n {\n m_gameBoard.addPlayerToSpace(i + 1, 0);\n }\n }", "public void makeMove() {\n\t\tif (CheckForVictory(this)) {\n\t\t\t// System.out.println(\"VICTORY\");\n\t\t\tInterface.goalReached = true;\n\t\t\tfor (int i = 0; i < tmpStrings.length; i++) {\n\t\t\t\tif (moveOrder[i] == 0)\n\t\t\t\t\ttmpStrings[i] = \"turn left\";\n\t\t\t\telse if (moveOrder[i] == 1)\n\t\t\t\t\ttmpStrings[i] = \"turn right\";\n\t\t\t\telse\n\t\t\t\t\ttmpStrings[i] = \"go forward\";\n\n\t\t\t\tInterface.info.setText(\"Generation: \" + Parallel.generationNo + 1 + \" and closest distance to goal: \" + 0);\n\t\t\t}\n\t\t} else {\n\t\t\tmoveOrder[this.movesMade] = moves.remove();\n\t\t\tswitch (moveOrder[this.movesMade]) {\n\t\t\tcase (0):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 0)\n\t\t\t\t\tface = 3;\n\t\t\t\telse\n\t\t\t\t\tface--;\n\t\t\t\tbreak;\n\t\t\tcase (1):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 3)\n\t\t\t\t\tface = 0;\n\t\t\t\telse\n\t\t\t\t\tface++;\n\t\t\t\tbreak;\n\t\t\tcase (2):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 0 && Y - 1 >= 0)\n\t\t\t\t\tY--;\n\t\t\t\telse if (face == 1 && X + 1 <= map[0].length - 1)\n\t\t\t\t\tX++;\n\t\t\t\telse if (face == 2 && Y + 1 <= map.length - 1)\n\t\t\t\t\tY++;\n\t\t\t\telse if (face == 3 && X - 1 >= 0)\n\t\t\t\t\tX--;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Error making move :(\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "private void initPosition() {\r\n while (true) {\r\n int x = RandomUtil.nextInt(boardLength);\r\n int y = RandomUtil.nextInt(boardLength);\r\n if (board.isSimple(x, y)) {\r\n heroTeam.setPosition(x, y);\r\n board.setTeamPosition(x, y);\r\n break;\r\n }\r\n }\r\n }", "public void play() {\n HashSet<Board> positionsPlayed = new HashSet<Board>();\n _board = new Board();\n\n while (true) {\n int playerInd = _board.turn().ordinal();\n Move next;\n if (_playing) {\n if (_board.gameOver()) {\n announceWinner();\n _playing = false;\n continue;\n }\n if (_hasGUI) {\n if (_players[playerInd].type().equals(\"human\")) {\n if (_ready) {\n next = _nextMove;\n } else if (_readyCommand) {\n processCommand(_nextCommand);\n next = null;\n } else {\n continue;\n }\n } else {\n next = _players[playerInd].makeMove();\n }\n } else {\n next = _players[playerInd].makeMove();\n }\n assert !_playing || next != null;\n } else {\n if (_hasGUI) {\n System.out.print(\"\");\n if (_readyCommand) {\n processString(_nextCommand);\n }\n } else {\n getMove();\n }\n next = null;\n }\n if (next != null) {\n assert _board.isLegal(next);\n _board.makeMove(next);\n if (_players[playerInd].type().equals(\"machine\") && !_hasGUI) {\n System.out.println(_players[playerInd].side().abbrev().toUpperCase() + \"::\" + next.toString());\n if (_autoprint) {\n System.out.println(_board.toString2());\n }\n }\n if (_board.gameOver()) {\n announceWinner();\n _playing = false;\n }\n }\n _ready = false;\n }\n }", "private void setMapPos()\r\n {\r\n try\r\n {\r\n Thread.sleep(1000);//so that you can see players move\r\n }\r\n catch(Exception e){}\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int unitPos = 0;\r\n int firstX = 0;\r\n int firstY = 0;\r\n if (currentPlayer == 1)\r\n {\r\n unitPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n }\r\n if (currentPlayer == 2)\r\n {\r\n unitPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n }\r\n int tempX = unitPos % mapWidth;\r\n int tempY = unitPos - tempX;\r\n if (tempY == 0) {}\r\n else\r\n tempY = tempY / mapHeight;\r\n tempX = tempX - 11;\r\n tempY = tempY - 7;\r\n if (tempX >= 0)\r\n firstX = tempX;\r\n else\r\n firstX = tempX + mapWidth;\r\n if (tempY >= 0)\r\n firstY = tempY;\r\n else\r\n firstY = tempY + mapWidth;\r\n\r\n int drawWidth = worldPanel.getDrawWidth();\r\n int drawHeight = worldPanel.getDrawHeight();\r\n worldPanel.setNewXYPos(firstX, firstY);\r\n miniMap.setNewXY(firstX, firstY, drawWidth, drawHeight);\r\n }", "public void move() {\n\r\n\t}", "public void move() {\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n\n lista[i].move();\n }\n }", "public void move() {\n\t\tdouble xv = 0;\r\n\t\tdouble yv = 0;\r\n\t\t//this method allows the entity to hold both up and down (or left and right) and not move. gives for smooth direction change and movement\r\n\t\tif (moveRight) {\r\n\t\t\txv+=getSpeed();\r\n\t\t\torientation = Orientation.EAST;\r\n\t\t}\r\n\t\tif (moveLeft) {\r\n\t\t\txv-=getSpeed();\r\n\t\t\torientation = Orientation.WEST;\r\n\t\t}\r\n\t\tif (moveUp)\r\n\t\t\tyv-=getSpeed();\r\n\t\tif (moveDown)\r\n\t\t\tyv+=getSpeed();\r\n\t\tif (!doubleEquals(xv,0) || !doubleEquals(yv,0)) {\r\n\t\t\t((Player)this).useMana(0.1);\r\n\t\t\tImageIcon img = new ImageIcon(\"lib/assets/images/fireball.png\");\r\n\t\t\tBufferedImage image = new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.drawImage(img.getImage(), 0, 0, image.getWidth(), image.getHeight(), null);\r\n\t\t\tColor n = loop[ind%loop.length];\r\n\t\t\tind++;\r\n\t\t\timage = ImageProcessor.scaleToColor(image, n);\r\n\t\t\t//PopMessage.addPopMessage(new PopMessage(image,getX(),getY()));\r\n\t\t}\r\n\t\telse\r\n\t\t\t((Player)this).useMana(-0.1);\r\n\t\tmove(xv,yv);\r\n\t}", "@Test\n void moveWithinPLAYING() {\n getGame().start();\n assertThat(getGame().isInProgress()).isTrue();\n getGame().move(getPlayer(), Direction.EAST);\n assertThat(getPlayer().isAlive()).isTrue();\n verifyZeroInteractions(observer);\n assertThat(getGame().isInProgress()).isTrue();\n }", "public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}", "public boolean movePlayer(MazePlayer p, Direction d) {\n//\t System.out.println(\"Player \"+p.name+\" requests to move in direction \"+d);\n// players can move through walls with some small probability!\n\t\t // calculate the new position after the move \n\t\t MazePosition oldPos = playerPosition.get(p.name);\n\t\t MazePosition newPos = theBoard.tryMove(oldPos,d);\n\n\t\t \n\t\t //make sure there is no other player at that position\n\t\t // and if there is someone there then just return without moving\n\t\t if (playerPosition.containsValue(newPos)){\n\t\t\t if (!newPos.equals(oldPos))\n\t\t\t\t if (debugging) System.out.println(\"player \"+p.name+\" tried to move into an occupied space.\");\n\t\t\t else\n\t\t\t\t if (debugging) System.out.println(p.name+\" stays at \"+oldPos);\n\t\t\t return false;\n\t\t }\n\t\t \n\t\t //otherwise, make the move\n\t\t playerPosition.put(p.name,newPos);\n\t\t if (debugging) System.out.println(p.name+\": \"+oldPos+\" -> \"+newPos);\n\t\t \n\t\t //take off points if you moved through a wall\n\t\t if (!theBoard.canMove(oldPos,d)){\n\t\t\t score.put(p.name,score.get(p.name)-2);\n\t\t\t if (debugging) System.out.println(p.name+\" moved through a wall\");\n\t\t }\n\t\t \n\t\t // mark that old space as \"free space\"\n\t\t freeSpace.add(0,oldPos);\n\t\t \n\t\t // check to see if there is a jewel in the new position.\n\t\t int i = jewelPosition.indexOf(newPos);\n\t\t if (i > -1) {\n\t\t\t // add 5 to the score\n\t\t\t score.put(p.name,score.get(p.name)+5);\n\t\t\t // remove the jewel\n\t\t\t jewelPosition.remove(i);\n\t\t\t if (debugging) System.out.println(\"and lands on a jewel!, score is now \" +score.get(p.name));\n\t\t\t // add another jewel\n\t\t\t MazePosition q = getEmptySpace();\n\t\t\t jewelPosition.add(q);\n\t\t\t if (debugging) System.out.println(\"adding a new jewel at \"+q);\n\t\t\t \n\t\t }\n\t\t else {\n\t\t\t // if no jewel, then remove the space from the freeSpace list\n\t\t\t freeSpace.remove(newPos);\n\t\t }\n\t\t return true;\n\n }", "@Test\n public void testSimpleMove()\n {\n theEngine.start();\n assertTrue(theEngine.inPlayingState());\n theEngine.movePlayer(1, 0);\n assertTrue(theEngine.inPlayingState());\n }", "private void randomMove() {\n }", "private void moveGame() {\r\n\t\tmoveFireball1();\r\n\t\tmoveFireball2();\r\n\t\tmoveMehran();\r\n\t\tmoveLaser();\r\n\t\tmoveBullet();\r\n\t\tcheckPlayerCollisions();\r\n\t\tcheckForBulletCollisions();\r\n\t\tpause(DELAY);\r\n\t\tcount++;\r\n\t}", "public void move(int distance);", "public void move() {\n super.move(DIRECTION.getRandom());\n }", "public void makeMove() {\n ArrayList<Field> myFields = new ArrayList<>();\n for (Field[] fieldsRow : fields) {\n for (Field field : fieldsRow) {\n if(field != null && this.equals(field.getPlayer())) {\n myFields.add(field);\n }\n }\n }\n bestMove[0] = myFields.get(0);\n bestMove[1] = myFields.get(0);\n\n Random rand = new Random();\n for(Field destination : destinationFields) {\n if(canMove()) break;\n destinationField = destination;\n for (Field origin : myFields) {\n for(int i = 0; i < origin.getNeighbours().length; ++i) {\n Field neighbour = origin.getNeighbours()[i];\n if(neighbour != null) {\n if(neighbour.getPlayer() == null) {\n if(valueOfMove(origin, neighbour) > valueOfMove(bestMove[0], bestMove[1])) {\n bestMove[0] = origin;\n bestMove[1] = neighbour;\n } else if(valueOfMove(origin, neighbour) == valueOfMove(bestMove[0], bestMove[1])) {\n if(rand.nextBoolean()) {\n bestMove[0] = origin;\n bestMove[1] = neighbour;\n }\n }\n } else {\n Field nextField = neighbour.getNeighbours()[i];\n if(nextField != null) {\n correctJumpPaths(origin,null, origin);\n }\n }\n }\n }\n }\n }\n }", "public void slidePlayer(char next){\n\t\t\n\t\t\n\t\tif (next==SLIDE_LEFT){\n\t\t\t//Left\n\t\t\tfor(int j=-1; j>=0-_xIndex; j--){\n\t\t\t\tint nextX=_xIndex+j;\n\t\t\t\tint nextY=_yIndex;\n\t\t\t\tchar nextStop= this._room._roomGrid[nextX][nextY];\n\t\t\t\tif (nextStop == FREE || nextStop == SLIDE_UP || nextStop == SLIDE_DOWN || nextStop == SLIDE_RIGHT || nextStop == SEAMLESS){\n\t\t\t\t\t_gbs.getPlayer().addDest(nextX,nextY);\n\t\t\t\t\tSysOut.print(\"DEST ADDED\");\n\t\t\t\t\t_gbs.getPlayer().setAvoidMethod(\"freeze\");\n\t\t\t\t\t_gbs.getPlayer().setIgnoring(true);\n\t\t\t\t\tthis._approachTimer.start();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (next==SLIDE_DOWN){\n\t\t\t//Down\n\t\t\tfor(int j=1; j<=this._room._height-_yIndex-1; j++){\n\t\t\t\tint nextX=_xIndex;\n\t\t\t\tint nextY=_yIndex+j;\n\t\t\t\tchar nextStop= this._room._roomGrid[nextX][nextY];\n\t\t\t\tif (nextStop == FREE || nextStop == SLIDE_UP || nextStop == SLIDE_LEFT || nextStop == SLIDE_RIGHT || nextStop == SEAMLESS){\n\t\t\t\t\t_gbs.getPlayer().addDest(nextX,nextY);\n\t\t\t\t\tSysOut.print(\"DEST ADDED\");\n\t\t\t\t\t_gbs.getPlayer().setAvoidMethod(\"freeze\");\n\t\t\t\t\t_gbs.getPlayer().setIgnoring(true);\n\t\t\t\t\t_gbs.setSpinning(true);\n\t\t\t\t\tthis._approachTimer.start();\n\t\t\t\t\treturn;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\telse if (next==SLIDE_UP){\n\t\t\t//Up\n\t\t\tfor(int j=-1; j>=0-_yIndex; j--){\n\t\t\t\tint nextX=_xIndex;\n\t\t\t\tint nextY=_yIndex+j;\n\t\t\t\tchar nextStop= this._room._roomGrid[nextX][nextY];\n\t\t\t\tif (nextStop == FREE || nextStop == SLIDE_LEFT || nextStop == SLIDE_DOWN || nextStop == SLIDE_RIGHT || nextStop == SEAMLESS){\n\t\t\t\t\t_gbs.getPlayer().addDest(nextX,nextY);\n\t\t\t\t\tSysOut.print(\"DEST ADDED\");\n\t\t\t\t\t_gbs.getPlayer().setAvoidMethod(\"freeze\");\n\t\t\t\t\t_gbs.getPlayer().setIgnoring(true);\n\t\t\t\t\t_gbs.setSpinning(true);\n\t\t\t\t\tthis._approachTimer.start();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (next==SLIDE_RIGHT){\n\t\t\t//Right\n\t\t\tfor(int j=1; j<=this._room._width-_xIndex-1; j++){\n\t\t\t\tint nextX=_xIndex+j;\n\t\t\t\tint nextY=_yIndex;\n\t\t\t\tchar nextStop= this._room._roomGrid[nextX][nextY];\n\t\t\t\tif (nextStop == FREE || nextStop == SLIDE_UP || nextStop == SLIDE_DOWN || nextStop == SLIDE_LEFT || nextStop == SEAMLESS){\n\t\t\t\t\t_gbs.getPlayer().addDest(nextX,nextY);\n\t\t\t\t\tSysOut.print(\"DEST ADDED\");\n\t\t\t\t\t_gbs.getPlayer().setAvoidMethod(\"freeze\");\n\t\t\t\t\t_gbs.getPlayer().setIgnoring(true);\n\t\t\t\t\t_gbs.setSpinning(true);\n\t\t\t\t\tthis._approachTimer.start();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void doNextMove(Player player) {\r\n int newX = xCoord;\r\n int newY = yCoord;\r\n switch (currentDirection) {\r\n case 1:\r\n newX = xCoord + 1;\r\n break;\r\n case 2:\r\n newY = yCoord + 1;\r\n break;\r\n case -1:\r\n newX = xCoord - 1;\r\n break;\r\n case -2:\r\n newY = yCoord - 1;\r\n break;\r\n }\r\n if (checkValidMove(newX, newY)) {\r\n // System.out.println(xCoord + \" \" + yCoord);\r\n // System.out.println(newX + \" \" + newY);\r\n moveTo(newX, newY);\r\n // System.out.println(xCoord + \" \" + yCoord);\r\n\r\n } else {\r\n turnAround();\r\n doNextMove(player);\r\n }\r\n }", "public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}", "private void moveOrTurn() {\n\t\t// TEMP: look at center of canvas if out of bounds\n\t\tif (!isInCanvas()) {\n\t\t\tlookAt(sens.getXMax() / 2, sens.getYMax() / 2);\n\t\t}\n\n\t\t// if we're not looking at our desired direction, turn towards. Else, move forward\n\t\tif (needToTurn()) {\n\t\t\tturnToDesiredDirection();\n\t\t} else {\n\t\t\tmoveForward(2.0);\n\t\t}\n\n\t\t// move in a random direction every 50 roaming ticks\n\t\tif (tickCount % 100 == 0) {\n\t\t\tgoRandomDirection();\n\t\t}\n\t\ttickCount++;\n\t}", "public void move() { \n\t\tSystem.out.println(\"MOVING\");\n\t\tswitch(direction) {\n\t\t\tcase NORTH: {\n\t\t\t\tyloc -= ySpeed;\n\t\t\t}\n\t\t\tcase SOUTH: {\n\t\t\t\tyloc+= xSpeed;\n\t\t\t}\n\t\t\tcase EAST: {\n\t\t\t\txloc+= xSpeed;\n\t\t\t}\n\t\t\tcase WEST: {\n\t\t\t\txloc-= xSpeed;\n\t\t\t}\n\t\t\tcase NORTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase NORTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc+=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc+= ySpeed;\n\t\t\t}\n\t\t}\n\t}", "public void updatePosition(){\n\t\t//maps the position to the closest \"grid\"\n\t\tif(y-curY>=GameSystem.GRID_SIZE/2){\n\t\t\tcurY=curY+GameSystem.GRID_SIZE;\n\t\t\tyGridNearest++;\n\t\t}\n\t\telse if(curX-x>=GameSystem.GRID_SIZE/2){\n\t\t\tcurX=curX-GameSystem.GRID_SIZE;\n\t\t\txGridNearest--;\n\t\t}\n\t\telse if(x-curX>=GameSystem.GRID_SIZE/2){\n\t\t\tcurX=curX+GameSystem.GRID_SIZE;\n\t\t\txGridNearest++;\n\t\t}\n\t\telse if(curY-y>=GameSystem.GRID_SIZE/2){\n\t\t\tcurY=curY-GameSystem.GRID_SIZE;\n\t\t\tyGridNearest--;\n\t\t}\n\t\t//sets the last completely arrived location grid\n\t\tif(y-yTemp>=GameSystem.GRID_SIZE){\n\t\t\tyTemp=yTemp+GameSystem.GRID_SIZE;\n\t\t\ty=yTemp;\n\t\t\tlastY++;\n\t\t}\n\t\telse if(xTemp-x>=GameSystem.GRID_SIZE){\n\t\t\txTemp=xTemp-GameSystem.GRID_SIZE;\n\t\t\tx=xTemp;\n\t\t\tlastX--;\n\t\t}\n\t\telse if(x-xTemp>=GameSystem.GRID_SIZE){\n\t\t\txTemp=xTemp+GameSystem.GRID_SIZE;\n\t\t\tx=xTemp;\n\t\t\tlastX++;\n\t\t}\n\t\telse if(yTemp-y>=GameSystem.GRID_SIZE){\n\t\t\tyTemp=yTemp-GameSystem.GRID_SIZE;\n\t\t\ty=yTemp;\n\t\t\tlastY--;\n\t\t}\n\t\t//only updates nextX and nextY when the move buttons are being pressed down\n\t\t/*\n\t\tif(movable){\n\t\t\tif(direction.equals(\"right\")){\n\t\t\t\t\tnextX=lastX+1;\n\t\t\t\t\tnextY=lastY;\n\t\t\t}\n\t\t\telse if(direction.equals(\"left\")){\n\t\t\t\tnextX=lastX-1;\n\t\t\t\tnextY=lastY;\n\t\t\t}\n\t\t\telse if(direction.equals(\"up\")){\n\t\t\t\tnextY=lastY-1;\n\t\t\t\tnextX=lastX;\n\t\t\t}\n\t\t\telse if(direction.equals(\"down\")){\n\t\t\t\tnextY=lastY+1;\n\t\t\t\tnextX=lastX;\n\t\t\t}\n\t\t}\n\t\t*/\n\t\t\n\t}", "public void move() {\n\t\tif ( board.getLevel() == 5 )\n\t\t\tmovementIndex = ( movementIndex + 1 ) % movement.length;\n\t}", "@Override\r\n\tpublic void move() {\n\t\tPoint target = strategy.search(this.getLocation(), new Point(0,0));\r\n\r\n\t\tint tries = 0;\r\n\t\t\r\n\t\twhile(!state.equals(\"Inactive\") && !game.movement(this, target.x, target.y)){\r\n\t\t\ttarget = strategy.search(new Point(x,y),playerLocation);\r\n\t\t\ttries++;\r\n\t\t\tif(tries > 4) return; // the search strategy has 4 tries to pick a valid location to move to\r\n\t\t}\r\n\t\t\r\n\t\tx = target.x;\r\n\t\ty = target.y;\r\n\r\n\t\tmoveSprite();\r\n\t}", "private void moveShipUp()\r\n\t\t{\r\n\t\t\t\tboolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit up\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n if(currentPos >= 0 && currentPos < mapWidth)\r\n {\r\n int newPos = mapHeight -1;\r\n int newPos2 = mapHeight * newPos + currentPos;\r\n int mapTemp = mapPieces[0][newPos2];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(newPos2);\r\n }\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - mapWidth];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos - mapWidth);\r\n }\r\n }//end if\r\n\r\n //if secondPlayer move unit up\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n if(currentPos >= 0 && currentPos < mapWidth)\r\n {\r\n int newPos = mapHeight -1;\r\n int newPos2 = mapHeight * newPos + currentPos;\r\n int mapTemp = mapPieces[0][newPos2];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(newPos2);\r\n }\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - mapWidth];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos - mapWidth);\r\n }//end else\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n\t\t}", "private void moveTile()\n {\n int[] moveIndices = null;\n \n int sourceRow = moveIndices[0];\n int sourceCol = moveIndices[1];\n int destRow = moveIndices[2] - 1;\n int destCol = moveIndices[3];\n \n if (sourceRow == 0) \n {\n try\n {\n game.playTileFromHand(sourceCol, destRow, destCol);\n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n else\n {\n sourceRow--;\n try\n {\n game.moveTileInBoard(sourceRow, sourceCol, destRow, destCol); \n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n }", "public void movePiece(Coordinate from, Coordinate to);", "private void moveUnitLeft()\r\n {\r\n boolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit left\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n if(currentPos == 0)\r\n {\r\n int mapTemp = mapPieces[0][mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(mapWidth - 1);\r\n }\r\n else\r\n {\r\n int temp1 = currentPos % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos + mapWidth - 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos - 1);\r\n }//end else\r\n }//end else\r\n }//end if\r\n\r\n //if firstPlayer move unit left\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n if(currentPos == 0)\r\n {\r\n int mapTemp = mapPieces[0][mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(mapWidth - 1);\r\n }\r\n else\r\n {\r\n int temp1 = currentPos % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos + mapWidth - 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos - 1);\r\n }//end else\r\n }//end else\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n }", "public void move() {\n\t\tif (isLuck) {\n\t\t\tif (rand.nextBoolean()) {\n\t\t\t\txPos++;\n\t\t\t}\n\t\t} else {\n\t\t\tif (rightCount < skill) {\n\t\t\t\trightCount++;\n\t\t\t\txPos++;\n\t\t\t}\n\t\t}\n\t}", "private void moveShipDown()\r\n\t\t{\r\n\t\t\t\tboolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit down\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n int temp1 = mapWidth * mapHeight - mapWidth;\r\n int temp2 = mapWidth * mapHeight;\r\n if(currentPos >= temp1 && currentPos < temp2)\r\n {\r\n int newPos = currentPos % mapHeight;\r\n int mapTemp = mapPieces[0][newPos];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(newPos);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos + mapWidth);\r\n }//end else\r\n }//end if\r\n\r\n //if secondPlayer move unit down\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n int temp1 = mapWidth * mapHeight - mapWidth;\r\n int temp2 = mapWidth * mapHeight;\r\n if(currentPos >= temp1 && currentPos < temp2)\r\n {\r\n int newPos = currentPos % mapHeight;\r\n int mapTemp = mapPieces[0][newPos];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(newPos);\r\n }\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos + mapWidth);\r\n }//end if\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n\t\t}", "public void move() {\n spriteBase.move();\n\n Double newX = spriteBase.getXCoordinate() + spriteBase.getDxCoordinate();\n Double newY = spriteBase.getYCoordinate() + spriteBase.getDyCoordinate();\n\n if (!newX.equals(spriteBase.getXCoordinate())\n || !newY.equals(spriteBase.getYCoordinate())) {\n Logger.log(String.format(\"Monster moved from (%f, %f) to (%f, %f)\",\n spriteBase.getXCoordinate(), spriteBase.getYCoordinate(), newX, newY));\n }\n }", "private Point move(Point[] players, int[] chat_ids, Point self)\n\t{\n\t\t//Move to a new position within the room anywhere within 6 meters of your current position. Any conversation you were previously engaged in is terminated: you have to be stationary to chat.\n\t\t//Initiate a conversation with somebody who is standing at a distance between 0.5 meters and 2 meters of you. In this case you do not move. You can only initiate a conversation with somebody on the next turn if they and you are both not currently engaged in a conversation with somebody else. \t\n\t\tint i = 0, target = 0;\n\t\twhile (players[i].id != self_id) i++;\n\t\t//look through players who are within 6 meters => Point[] players\n\t\tPoint p = self;\n for (target = 0; target<players.length; ++target) {\n\t\t\t//if we do not contain any information on them, they are our target => W[]\n\t\t\tif (W[p.id] != -1 || p.id == self.id) continue;\n p = players[target];\n }\n if (p.equals(self)) {\n for (target = 0; target < players.length; ++target) {\n if (W[p.id] == 0 || p.id == self.id) continue;\n p = players[target];\n }\n }\n if (!p.equals(self)) {\n\t\t\t// compute squared distance\n\t\t\tdouble dx1 = self.x - p.x;\n\t\t\tdouble dy1 = self.y - p.y;\n\t\t\tdouble dd1 = dx1 * dx1 + dy1 * dy1;\n\t\t\t//check if they are engaged in conversations with someone\n\t\t\tint chatter = 0;\n\t\t\twhile (chatter<players.length && players[chatter].id != chat_ids[target]) chatter++;\n\n\t\t\t//check if they are engaged in conversations with someone and whether that person is in our vicinity\n\t\t\tif(chat_ids[target]!=p.id && chatter!=players.length)\n\t\t\t{\n\t\t\t\t//if they are, we want to stand in front of them, .5 meters in the direction of who they're conversing with => check if result is within 6meters\n\t\t\t\tPoint other = players[chatter];\n\t\t\t\tdouble dx2 = self.x - other.x;\n\t\t\t\tdouble dy2 = self.y - other.y;\n\t\t\t\tdouble dd2 = dx2 * dx2 + dy2 * dy2;\n\n\t\t\t\tdouble dx3 = dx2-dx1;\n\t\t\t\tdouble dy3 = dy2-dy1;\n\t\t\t\tdouble dd3 = Math.sqrt(dx3 * dx3 + dy3 * dy3);\n\n\t\t\t\tdouble dx4 = (dx2 - 0.5*(dx3/dd3)) * -1;\n\t\t\t\tdouble dy4 = (dy2 - 0.5*(dy3/dd3)) * -1;\n\t\t\t\tdouble dd4 = dx4 * dx4 + dy4 * dy4;\n\n\t\t\t\tif (dd4 <= 2.0)\n\t\t\t\t\treturn new Point(dx4, dy4, self.id);\n }\n\t\t\t//if not chatting to someone or don't know position of chatter, just get as close to them as possible\n\t\t\telse return new Point((dx1-0.5*(dx1/dd1)) * -1, (dy1-0.5*(dy1/dd1)) * -1, self.id);\t\t\t\t\n\t\t}\n\n\t\t\tdouble dir = random.nextDouble() * 2 * Math.PI;\n\t\t\tdouble dx = 6 * Math.cos(dir);\n\t\t\tdouble dy = 6 * Math.sin(dir);\n\t\t\treturn new Point(dx, dy, self_id);\n\t}", "private void makeMove() {\r\n //if not all pieces placed, place a new piece\r\n if(numPieces < 3) {\r\n if(pieces == null)\r\n pieces = new PositionData[Constants.NUM_PIECES];\r\n placePiece();\r\n return;\r\n }\r\n //move a random piece to a random location\r\n int pieceNumber = getRandomPiece();\r\n PositionData randomPoint = getRandomPoint();\r\n //move the piece\r\n Game.movePiece(pieces[pieceNumber], randomPoint);\r\n }", "private void swapPlayer(){\r\n resetTurn();\r\n tries = 0;\r\n Player temp = currentPlayer;\r\n currentPlayer = nextPlayer;\r\n nextPlayer = temp;\r\n if(!gameOver()){\r\n if(currentPlayer.getClass() == Ia.class) {\r\n int[] result = currentPlayer.estimateNextMove(this.getClone());\r\n if (result[0] == 0 && result[1] == 0 && result[2] == 0 && result[3] == 0) currentPlayer.setCanMove(false);\r\n else {\r\n currentPlayer.setCanMove(true);\r\n int row = result[0];\r\n int col = result[1];\r\n int nextRow = result[2];\r\n int nextCol = result[3];\r\n makeMove(row, col, nextRow, nextCol);\r\n }\r\n swapPlayer();\r\n }\r\n }\r\n else {\r\n getWinner();\r\n if(winner == null) System.out.println(\"DRAW!\");\r\n else {\r\n System.out.println(winner.getPlayerName() + \" WIN!\");\r\n if (winner.getClass() == Ia.class)\r\n System.out.println(\"Max time used to move: \" + winner.getMaxTime() + \" seconds\");\r\n }\r\n isOver = true;\r\n }\r\n\r\n }", "public void move() {\r\n\t\tmoveCount++;\r\n\t}", "private void moveUnitUp()\r\n {\r\n boolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit up\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n if(currentPos >= 0 && currentPos < mapWidth)\r\n {\r\n int newPos = mapHeight -1;\r\n int newPos2 = mapHeight * newPos + currentPos;\r\n int mapTemp = mapPieces[0][newPos2];\r\n if(mapTemp == 0 || mapTemp == 14)//if they try to move on water\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(newPos2);\r\n }\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - mapWidth];\r\n if(mapTemp == 0 || mapTemp == 14)//if they try to move on water\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos - mapWidth);\r\n }\r\n }//end if\r\n\r\n //if secondPlayer move unit up\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n if(currentPos >= 0 && currentPos < mapWidth)\r\n {\r\n int newPos = mapHeight -1;\r\n int newPos2 = mapHeight * newPos + currentPos;\r\n int mapTemp = mapPieces[0][newPos2];\r\n if(mapTemp == 0 || mapTemp == 14)//if they try to move on water\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(newPos2);\r\n }\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - mapWidth];\r\n if(mapTemp == 0 || mapTemp == 14)//if they try to move on water\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos - mapWidth);\r\n }//end else\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n }", "public void act() \n {\n moveTowardsPlayer(); \n }", "public static void startGame() {\r\n\t\tfor (MovingUnit mu : _players) {\r\n\t\t\t((WinningInterface) mu).startUnit();\r\n\t\t}\r\n\t}", "void playerMove(State state);", "private void wander(){\n\t\tmonster.moveRandom();\r\n\t\tsaveMove();\r\n\t}", "public void move(Vector start,Vector dist);", "public void move() {\n switch (dir) {\n case 1:\n this.setX(getX() + this.speed);\n moveHistory.add(new int[] {getX() - this.speed, getY()});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 2:\n this.setY(getY() - this.speed);\n moveHistory.add(new int[] {getX(), getY() + this.speed});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 3:\n this.setX(getX() - this.speed);\n moveHistory.add(new int[] {getX() + this.speed, getY()});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 4:\n this.setY(getY() + this.speed);\n moveHistory.add(new int[] {getX(), getY() - this.speed});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n default:\n break;\n }\n }", "private void nextPosition()\n\t{\n\t\tdouble playerX = Game.player.getX();\n\t\tdouble playerY = Game.player.getY();\n\t\tdouble diffX = playerX - x;\n\t\tdouble diffY = playerY - y;\n\t\tif(Math.abs(diffX) < 64 && Math.abs(diffY) < 64)\n\t\t{\n\t\t\tclose = true;\n\t\t} \n\t\telse\n\t\t{\n\t\t\tclose = false;\n\t\t}\n\t\tif(close)\n\t\t{\n\t\t\tattackPlayer();\n\t\t} \n\t\telse if(alarm.done())\n\t\t{\n\t\t\tdirection = Math.abs(random.nextInt() % 360) + 1;\n\t\t\talarm.setTime(50);\n\t\t}\n\t\thspd = MathMethods.lengthDirX(speed, direction);\n\t\tvspd = MathMethods.lengthDirY(speed, direction);\n\t\tif(hspd > 0 && !flippedRight)\n\t\t{\n\t\t\tflippedRight = true;\n\t\t\tsetEnemy();\n\t\t} \n\t\telse if(hspd < 0 && flippedRight)\n\t\t{\n\t\t\tflippedRight = false;\n\t\t\tsetEnemy();\n\t\t}\n\t\tmove();\n\t\talarm.tick();\n\t\tshootTimer.tick();\n\t}", "private void move()\r\n {\r\n int num = Game.random(4);\r\n String direction;\r\n if (num == 0)\r\n direction = \"north\";\r\n else if (num == 1)\r\n direction = \"east\";\r\n else if (num == 2)\r\n direction = \"south\";\r\n else //num == 3\r\n direction = \"west\";\r\n Room nextRoom = room.nextRoom(direction);\r\n if (nextRoom != null)\r\n {\r\n changeRoom(nextRoom);\r\n \r\n //Monster or Robot greets everyone was already in the room\r\n ArrayList<Person> peopleList = new ArrayList<Person>();\r\n \r\n peopleList = nextRoom.getPeople();\r\n peopleList.remove(name);\r\n \r\n String greetings =\"Hey \";\r\n for (int i=0; i<peopleList.size(); i++)\r\n \tgreetings += peopleList.get(i).getName() + \", \";\r\n\r\n if (!(peopleList.size()==0))\r\n \tsay(greetings);\r\n } \r\n \r\n }", "public void tryMove() {\n if(!currentPlayer.getHasPlayed()){\n if (!currentPlayer.isEmployed()) {\n String destStr = chooseNeighbor();\n\n currentPlayer.moveTo(destStr, getBoardSet(destStr));\n if(currentPlayer.getLocation().getFlipStage() == 0){\n currentPlayer.getLocation().flipSet();\n }\n refreshPlayerPanel();\n }\n else {\n view.showPopUp(currentPlayer.isComputer(), \"Since you are employed in a role, you cannot move but you can act or rehearse if you have not already\");\n }\n }\n else{ \n view.showPopUp(currentPlayer.isComputer(), \"You've already moved, rehearsed or acted this turn. Try a different command or click `end turn` to end turn your turn.\");\n }\n view.updateSidePanel(playerArray);\n }", "public void MoveTileSelf(Integer position){\n /**\n * if opponent activated confusion - move to a random tile\n */\n if(confused){\n //random tile for confusion\n Integer tile;\n do{\n Integer tile1 = returnRandom(getNthDigit(position,1)-1,getNthDigit(position,1)+2);\n Integer tile2 = returnRandom(getNthDigit(position,2)-1,getNthDigit(position,2)+2); // between 0 and 2\n tile = Integer.parseInt(tile1.toString() + tile2.toString());\n }while (tile==myTile || tile==opponentTile || getNthDigit(tile,1)<1 || getNthDigit(tile,1)>7 || getNthDigit(tile,2)<1 || getNthDigit(tile,2)>7);\n position = tile;\n showTimedAlertDialog(\"You are confused!\", \"moving at a random direction\", 5);\n confused = false;\n }\n\n /**\n * send message to opponent\n */\n MultiplayerManager.getInstance().SendMessage(position.toString());\n\n if(!is_debug){\n HandleLejos(myTile, position);\n }\n\n ImageView player1 = findImageButton(\"square_\"+position.toString());\n ImageView player1_old = findImageButton(\"square_\"+myTile.toString());\n player1.setImageDrawable(getResources().getDrawable(R.drawable.tank_blue));\n player1_old.setImageDrawable(getResources().getDrawable(android.R.color.transparent));\n myTile = position;\n myTurn = false;\n turnNumber = turnNumber + 1;\n }", "public void move();", "public void move();", "public void paradiseMove(){\n if (!getCurrentMainCellCoordinates().equals(new DiscreteCoordinates(11, 9))) {\n move(30);\n }\n }", "public void move()\n {\n x = x + unitVector.getValue(1)*speed;\n y = y + unitVector.getValue(2)*speed;\n }", "public void move(int delta);", "private void playerMoved(int currentPlayer, int currentUnit, boolean moved)\r\n {\r\n if(moved == true)//if player has made a legitimate move\r\n {\r\n worldPanel.repaint();\r\n int movesLeft = 0;\r\n if(currentPlayer == 1)\r\n {\r\n int myPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n\r\n //check to see if a player challenges another player\r\n for(int i = 0; i < worldPanel.player2.getNumUnits(); i++)\r\n {\r\n int pos = worldPanel.player2.units[i].getPosition();\r\n if(myPos == pos)\r\n {\r\n fight(1, currentUnit - 1, i);\r\n return;\r\n }\r\n }//end for\r\n\r\n //check to see if a player captures a city\r\n for(int i = 0; i < worldPanel.player2.getNumCities(); i++)\r\n {\r\n int pos = worldPanel.player2.cities[i].getLocation();\r\n if(myPos == pos)\r\n {\r\n captureCity(1,i);\r\n return;\r\n }\r\n }//end for\r\n movesLeft = worldPanel.player1.units[currentUnit - 1].getMovementsLeft();\r\n int temp = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n int temp1 = mapPieces[0][temp];\r\n if(temp1 == 54 || temp1 == 51 || temp1 == 52 || temp1 == 53)//if unit moves on rock or something\r\n worldPanel.player1.units[currentUnit - 1].setMovementsLeft(movesLeft - 2);\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setMovementsLeft(movesLeft - 1);\r\n movesLeft = worldPanel.player1.units[currentUnit - 1].getMovementsLeft();\r\n }//end if\r\n else if(currentPlayer == 2)\r\n {\r\n int myPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n\r\n //check to see if a player challenges another player\r\n for(int i = 0; i < worldPanel.player1.getNumUnits(); i++)\r\n {\r\n int pos = worldPanel.player1.units[i].getPosition();\r\n if(myPos == pos)\r\n {\r\n fight(2, currentUnit - 1, i);\r\n return;\r\n }\r\n }\r\n\r\n //check to see if a player captures a city\r\n for(int i = 0; i < worldPanel.player1.getNumCities(); i++)\r\n {\r\n int pos = worldPanel.player1.cities[i].getLocation();\r\n if(myPos == pos)\r\n {\r\n captureCity(2,i);\r\n return;\r\n }\r\n }//end for\r\n movesLeft = worldPanel.player2.units[currentUnit - 1].getMovementsLeft();\r\n int temp = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n int temp1 = mapPieces[0][temp];\r\n if(temp1 == 54 || temp1 == 51 || temp1 == 52 || temp1 == 53)//if unit moves on rock or something\r\n worldPanel.player2.units[currentUnit - 1].setMovementsLeft(movesLeft - 2);\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setMovementsLeft(movesLeft - 1);\r\n movesLeft = worldPanel.player2.units[currentUnit - 1].getMovementsLeft();\r\n\r\n //worldPanel.player2.units[currentUnit - 1].setMovementsLeft(movesLeft - 1);\r\n movesLeft = worldPanel.player2.units[currentUnit - 1].getMovementsLeft();\r\n }\r\n\r\n if(movesLeft <= 0)//if unit has run out of moves\r\n {\r\n if(currentPlayer == 1)\r\n {\r\n worldPanel.player1.units[currentUnit - 1].resetMovement();\r\n }\r\n if(currentPlayer == 2)\r\n {\r\n worldPanel.player2.units[currentUnit - 1].resetMovement();\r\n }\r\n currentUnit++;\r\n }//end if\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end if\r\n\r\n int temp = worldPanel.getNumUnits(currentPlayer);\r\n if(currentUnit > temp)\r\n {\r\n if(currentPlayer == 1)\r\n worldPanel.setCurrentPlayer(2);\r\n else\r\n\t\t\t\t\t\t{\r\n worldPanel.setCurrentPlayer(1);\r\n\t\t\t\t\t\t\t\tyear = unitPanel.getYear() + 20;//add 20 years to the game\r\n\t\t\t\t\t\t}\r\n worldPanel.setCurrentUnit(1);\r\n }//end if\r\n\r\n setInfoPanel();//set up the information panel\r\n }", "private void playerMove(PlayerPiece playerPiece, String direction) {\n // Row will be -1 from player location with the same column value\n System.out.println(playerPiece + \" trying to move \" + direction + \".\");\n Tile playerLocation = playerPiece.getLocation();\n System.out.println(\"Player in: \" + playerLocation.getRow() + \" \" + playerLocation.getColumn());\n int newRow = playerLocation.getRow();\n int newColumn = playerLocation.getColumn();\n switch (direction) {\n case \"u\":\n newRow -= 1;\n break;\n case \"d\":\n newRow += 1;\n break;\n case \"l\":\n newColumn -= 1;\n break;\n case \"r\":\n newColumn += 1;\n break;\n }\n if (newRow >= 0 && newColumn >= 0 && newRow < this.board.getGrid().getRows() && newColumn < this.board.getGrid().getColumns()) {\n System.out.println(newRow + \" \" + newColumn);\n Tile newLocation = this.board.getGrid().getTile(newRow, newColumn);\n System.out.println(\"New Location:\" + newLocation);\n System.out.println(\"Cords: \" + newLocation.getRow() + \" \" + newLocation.getColumn());\n if (newLocation.isAvailable()) {\n playerLocation.removeOccupier();\n playerPiece.setLocation(newLocation);\n newLocation.setOccupier(playerPiece);\n System.out.println(\"Player moved to: \" + playerLocation.getRow() + \" \" + playerLocation.getColumn());\n this.board.getGrid().print();\n }\n }\n }", "public boolean moveUnit(Position from, Position to);", "public void move() {\n if (!canMove) {\n return;\n }\n int moveX = currDirection == EAST ? PACE : currDirection == WEST ? -PACE : 0;\n int moveY = currDirection == NORTH ? PACE : currDirection == SOUTH ? -PACE : 0;\n if (grid == null || grid.isOutside(currX + moveX, currY + moveY)) {\n return;\n }\n currX += moveX;\n currY += moveY;\n }", "public void moveAllAgents() {\n\t\tPoint moveTo \t\t= null;\n\t\tGameClient client \t= null;\n\t\t\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\t\tclient = HandleCommunication.findClient(p.getName(), server.getConnectedClientList());\n\t\t\t\tmoveTo = getSafeTeleportPosition();\n\t\t\t\tmovePlayer(p.getName(), p.getPosition(), moveTo, false);\n\t\t\t\tserver.sendMessageToClient(client.getClientSocket(), \"@124@\" + moveTo.x + \"@\" + moveTo.y + \"@\");\n\t\t\t}\n\t\t}\n\t}", "void move() {\r\n\t\tif (x + xa < 0){\r\n\t\t\txa = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (x + xa > game.getWidth() - diameter){\r\n\t\t\txa = -mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (y + ya < 0){\r\n\t\t\tya = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (y + ya > game.getHeight() - diameter){\r\n\t\t\tgame.gameOver();\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (colisionPalas()){\r\n\t\t\tya = -mov;\r\n\t\t}\r\n\t\telse if(colisionEstorbos()){\r\n\t\t\tgame.puntuacion+=2;\r\n\t\t}\r\n\t\t\r\n\t\tx = x + xa;\r\n\t\ty = y + ya;\r\n\t}", "private void moveUnitDown()\r\n {\r\n boolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit down\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n int temp1 = mapWidth * mapHeight - mapWidth;\r\n int temp2 = mapWidth * mapHeight;\r\n if(currentPos >= temp1 && currentPos < temp2)\r\n {\r\n int newPos = currentPos % mapHeight;\r\n int mapTemp = mapPieces[0][newPos];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(newPos);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos + mapWidth);\r\n }//end else\r\n }//end if\r\n\r\n //if secondPlayer move unit down\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n int temp1 = mapWidth * mapHeight - mapWidth;\r\n int temp2 = mapWidth * mapHeight;\r\n if(currentPos >= temp1 && currentPos < temp2)\r\n {\r\n int newPos = currentPos % mapHeight;\r\n int mapTemp = mapPieces[0][newPos];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(newPos);\r\n }\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos + mapWidth);\r\n }//end if\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n }", "public void move() {\n\n }", "public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}", "@Test\n\tpublic void testPlayerMovement() {\n\t\tEngine engine = new Engine(20);\n\t\tint x = engine.getMoveableObject(0).getX() + engine.getMoveableObject(0).getDisplacement().getXDisplacement();\n\t\tint y = engine.getMoveableObject(0).getY() + engine.getMoveableObject(0).getDisplacement().getYDisplacement();\n\t\tengine.update();\n\t\tassertEquals(\"failure - player's next x coordinate is not correct\", x, engine.getMoveableObject(0).getX(), 0.0);\n\t\tassertEquals(\"failure - player's next y coordinate is not correct\", y, engine.getMoveableObject(0).getY(), 0.0);\n\t}", "@Test\n\tpublic final void nextPositionUpTest() {\n\t\tplayer.setUp(true);\n\t\tplayer.getNextYPosition();\n\t\tassertTrue(player.isJumping());\n\t}", "private void move(){\n \n currentAnimation = idleDown;\n \n if(playerKeyInput.allKeys[VK_W]){\n int ty = (int) (objectCoordinateY - speed + bounds.y) / 16;\n \n if(!collisionDetection((int) (objectCoordinateX + bounds.x)/16, ty)){\n objectCoordinateY -= speed;\n currentAnimation = upWalk;\n }\n } \n \n if(playerKeyInput.allKeys[VK_S]){\n int ty = (int) (objectCoordinateY + speed + bounds.y + bounds.height) / 16;\n if(!collisionDetection((int) (objectCoordinateX + bounds.x)/16, ty)){\n objectCoordinateY += speed;\n currentAnimation = downWalk;\n }\n } \n \n if(playerKeyInput.allKeys[VK_A]){\n int tx = (int) (objectCoordinateX - speed + bounds.x) / 16;\n if(!collisionDetection(tx, (int) (objectCoordinateY + bounds.y)/16)){\n objectCoordinateX -= speed;\n currentAnimation = sideWalkLeft;\n }\n } \n \n if(playerKeyInput.allKeys[VK_D]){\n int tx = (int) (objectCoordinateX + speed + bounds.x + bounds.width) / 16;\n if(!collisionDetection(tx, (int) (objectCoordinateY + bounds.y)/16)){\n objectCoordinateX += speed;\n currentAnimation = sideWalkRight;\n }\n } \n \n if(playerKeyInput.allKeys[VK_E]){\n currentAnimation = pickUp;\n } \n }", "@Override\n void movePhase() throws IOException, InterruptedException, IOExceptionFromController {\n boolean godPower = false;\n ArrayList<Cell> possibleMoves = findPossibleMoves(activeWorker.getPosition());\n Cell movePosition = client.chooseMovePosition(possibleMoves);\n CellView startView = new CellView(activeWorker.getPosition());\n CellView endView = new CellView(movePosition);\n CellView startView2 = null;\n CellView endView2 = null;\n // + allow pushing away opponents\n if (movePosition.hasWorker()) {\n godPower = true;\n Worker pushedWorker = movePosition.getWorker();\n Cell nextCell;\n int nextX = movePosition.getPosX() + (movePosition.getPosX() - activeWorker.getPosition().getPosX());\n int nextY = movePosition.getPosY() + (movePosition.getPosY() - activeWorker.getPosition().getPosY());\n nextCell = board.getCell(nextX, nextY);\n startView2 = endView;\n endView2 = new CellView(nextCell);\n try {\n pushedWorker.move(nextCell);\n } catch (IllegalMoveException e) {\n gameController.logError(e.getMessage());\n return;\n }\n //\n }\n try {\n activeWorker.move(movePosition);\n } catch (IllegalMoveException e) {\n gameController.logError(e.getMessage());\n }\n if (godPower) displayMove(startView, endView, startView2, endView2, card);\n else displayMove(startView, endView, null);\n }", "public void move() {\n\n if (_currentFloor == Floor.FIRST) {\n _directionOfTravel = DirectionOfTravel.UP;\n }\n if (_currentFloor == Floor.SEVENTH) {\n _directionOfTravel = DirectionOfTravel.DOWN;\n }\n\n\n if (_directionOfTravel == DirectionOfTravel.UP) {\n _currentFloor = _currentFloor.nextFloorUp();\n } else if (_directionOfTravel == DirectionOfTravel.DOWN) {\n _currentFloor = _currentFloor.nextFloorDown();\n }\n\n if(_currentFloor.hasDestinationRequests()){\n stop();\n } \n\n }", "void movePiece() {\n\n }", "private void moveShipLeft()\r\n\t\t{\r\n\t\t\t\tboolean moved = true;\r\n \tint currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit left\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n if(currentPos == 0)\r\n {\r\n int mapTemp = mapPieces[0][mapWidth - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(mapWidth - 1);\r\n }\r\n else\r\n {\r\n int temp1 = currentPos % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos + mapWidth - 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos - 1);\r\n }//end else\r\n }//end else\r\n }//end if\r\n\r\n //if firstPlayer move unit left\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n if(currentPos == 0)\r\n {\r\n int mapTemp = mapPieces[0][mapWidth - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(mapWidth - 1);\r\n }\r\n else\r\n {\r\n int temp1 = currentPos % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos + mapWidth - 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos - 1);\r\n }//end else\r\n }//end else\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n\t\t}", "public void move() {\n float diffX = cDestination.getX() - getCenterX();\n float diffY = cDestination.getY() - getCenterY();\n\n float newX = cPosition.getX() + cSpeed * Math.signum(diffX);\n float newY = cPosition.getY() + cSpeed * Math.signum(diffY);\n\n cPosition.setX(newX);\n cPosition.setY(newY);\n }", "public void turns() {\n\t\tint temp = 0;\n\t\tthis.startOrder();\n\t\tSystem.out.println(\"_______________________________________________\");\n\t\tfor (Player p : this.playerList) {\n\t\t\ttemp++;\n\t\t\tp.play(this);\n\t\t\t//System.out.println(\"Player \" + temp + \"'s melds: \" + p.getMelds());\n\t\t\tSystem.out.println(\"_______________________________________________\");\n\t\t}\n\t}", "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "public int movePlayer(CPositionEntity pInitialPosition, CPositionEntity pFinalPosition){\r\n int i = 0;\r\n int lReturnValue = MOVE_PLAYER_FAILURE_PLAYER_NOT_IN_SQUAD;\r\n for (CYourPlayerEntry lPlayerEntry : mYourPlayerEntries) {\r\n if (lPlayerEntry.getPosition().getName().equals(pInitialPosition.getName()) && lPlayerEntry.getPlayer() != null) {\r\n lReturnValue = MOVE_PLAYER_SUCCESS_NO_SWAP;\r\n }\r\n }\r\n\r\n /*\r\n * if we found the player we want to put in our squad\r\n * we go through every player of the squad\r\n */\r\n\r\n if (lReturnValue == MOVE_PLAYER_SUCCESS_NO_SWAP){\r\n for (CYourPlayerEntry lPlayerEntry : mYourPlayerEntries){\r\n if (lPlayerEntry.getPosition() != null){\r\n /*\r\n * if a player in the squad already has the position\r\n * where we want to put our passed player, we set his\r\n * position to the passed initial one (to swap him with the\r\n * player we want to move)\r\n */\r\n if (lPlayerEntry.getPosition().getName().equals(pFinalPosition.getName())){\r\n editPlayerPosition(i, pInitialPosition);\r\n lReturnValue = MOVE_PLAYER_SUCCESS_WITH_SWAP;\r\n }\r\n /*\r\n * when we finally find our passed player, we set\r\n * his position to the passed final one\r\n */\r\n else if (lPlayerEntry.getPosition().getName().equals(pInitialPosition.getName())) {\r\n editPlayerPosition(i, pFinalPosition);\r\n }\r\n }\r\n i++;\r\n }\r\n }\r\n return lReturnValue;\r\n }", "@Test\n public void moveNotTwoPositionsApartGameTest() {\n this.readable = new StringReader(\"7 4 4 4 q\");\n Appendable output = new StringBuilder(\" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O _ O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"Score: 32\\n\"\n + \"Invalid move. Play again. The move has to be two pieces apart\\n\"\n + \"Game quit!\\n\"\n + \"State of game when quit:\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O _ O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"Score: 32\");\n\n this.gameController = new MarbleSolitaireControllerImpl(this.readable, this.appendable);\n\n this.gameController.playGame(this.model1);\n\n assertEquals(this.appendable.toString(), output.toString());\n }" ]
[ "0.71120185", "0.69663996", "0.6926742", "0.6721636", "0.672035", "0.66952544", "0.6604439", "0.65974826", "0.6574272", "0.65542907", "0.65391463", "0.65328056", "0.6521029", "0.6520189", "0.6499302", "0.64905804", "0.64624184", "0.6452921", "0.6447353", "0.6441017", "0.6432103", "0.64272857", "0.6417653", "0.6417481", "0.6414883", "0.6414825", "0.64120495", "0.6407161", "0.6404027", "0.6392204", "0.63892406", "0.6345546", "0.6327978", "0.6304405", "0.6303465", "0.6295422", "0.62913364", "0.6285167", "0.6279519", "0.62743616", "0.62545574", "0.62535787", "0.6253326", "0.62345797", "0.6231528", "0.6223853", "0.62123406", "0.62091947", "0.6208632", "0.62084216", "0.62065846", "0.62046236", "0.620193", "0.6195319", "0.61818725", "0.61742604", "0.61740005", "0.61720747", "0.61713123", "0.6171282", "0.6166862", "0.61664534", "0.6165569", "0.61647725", "0.616242", "0.61613864", "0.61589336", "0.61563003", "0.6152082", "0.61495924", "0.6147885", "0.6142429", "0.61349946", "0.6133829", "0.6133673", "0.61272717", "0.61272717", "0.6124344", "0.6122918", "0.6121029", "0.6119682", "0.61171186", "0.61142135", "0.6113745", "0.61076677", "0.6106987", "0.61061704", "0.6105714", "0.61031556", "0.6102902", "0.6099989", "0.60930073", "0.6083627", "0.60789335", "0.60664815", "0.60661376", "0.6065743", "0.60638297", "0.6060635", "0.606021", "0.6057908" ]
0.0
-1
Remove a player from the team and make the player a free agent.
public static void dropPlayer(League theLeague, Team theTeam, Scanner keyboard) { System.out.println(""); System.out.println("---Drop Player---"); System.out.println(""); theTeam.teamToStringNum(); System.out.println(""); System.out.println(" 0 - Return to Team Menu"); System.out.println("1-" + theTeam.getRoster().size() + " - Select a player to be dropped"); int dropChoice = Input.validInt(0, theTeam.getRoster().size(), keyboard); if (dropChoice == 0) { return; } Player thePlayer = theTeam.getTeamPlayer(dropChoice - 1); thePlayer.setFreeAgent(); theLeague.playerList().set(thePlayer.getId(), thePlayer); theTeam.getRoster().remove(thePlayer); System.out.println(""); System.out.println("***You have dropped " + thePlayer.playerToString() + "***"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removePlayer(Player player) {\r\n players.remove(player);\r\n player.damage(Double.MAX_VALUE);\r\n }", "@Override\n public void removePlayer(Player player){\n this.steadyPlayers.remove(player);\n }", "public void cmdRemovePlayer(User teller, Player player) {\n boolean removed = tournamentService.removePlayer(player);\n tournamentService.flush();\n if (!removed) {\n command.tell(teller, \"I''m not able to find {0} in the tournament.\", player);\n } else {\n command.tell(teller, \"Done. Player {0} is no longer in the tournament.\", player);\n }\n }", "public void removePlayer(Player player){\n playerList.remove(player);\n }", "public void removePlayer(Player player) {\n String entry = player.getName();\n Team currentTeam = null;\n\n // Find player team.\n for (Team team : scoreboard.getTeams()) if (team.hasEntry(entry)) currentTeam = team;\n\n // If no team is found, do not continue.\n if (currentTeam == null) return;\n\n // Remove player from the team.\n currentTeam.removeEntry(entry);\n\n ////////////////////////////////////////////////\n // Begin checking to see if we can remove this\n // team from the scoreboard.\n ////////////////////////////////////////////////\n\n // Check if the team has players.\n if (currentTeam.getSize() >= 1) return;\n\n // Check if the team is a default preset.\n for (UserGroup userGroup : UserGroup.values()) {\n if (userGroup.getTeamName().equals(currentTeam.getName())) return;\n }\n\n // If the team has no players and is not a default\n // preset, then lets remove the team from the\n // scoreboard.\n removeTeam(currentTeam.getName());\n }", "private void removePlayerFromLobby() {\n\n //Added Firebase functionality assuming var player is the player who wants to leave the game.\n }", "public void removePlayer(Player player) {\n\n\t\tplayers.remove(player);\n\t}", "public void remove(Player player) {\n\t\tgetPlayers().remove(player);\n\t\tif (getPlayers().size() < 2) {\n\n\t\t}\n\t}", "public void removePlayer(String name) {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getName().equals(name)) {\n\t\t\t\toccupiedPositions.remove(p.getPosition());\n\t\t\t\tif(p.getType() == Player.PlayerType.Agent) {\n\t\t\t\t\treAssignRobots(p);\n\t\t\t\t\tthis.agents -= 1;\n\t\t\t\t}\n\t\t\t\tplayerList.remove(p);\n\t\t\t}\n\t\t}\n\t\tserver.broadcastToClient(name, SendSetting.RemovePlayer, null, null);\n\t\tserver.updateGameplane();\n\t}", "private void deleteFakeTeam(Player player) {\n\t\tPacketContainer packet = new PacketContainer(PacketType.Play.Server.SCOREBOARD_TEAM);\n\t\tpacket.getStrings().write(0, FakeTeamName);\n\t\tpacket.getIntegers().write(1, 1); // Set remove mode\n\t\t\n\t\ttry {\n\t\t\tProtocolLibrary.getProtocolManager().sendServerPacket(player, packet);\n\t\t} catch (InvocationTargetException e) {\n\t\t\t// Should never happen unless packet changes\n\t\t\tthrow new AssertionError(e);\n\t\t}\n\t}", "public void killPlayer() {\n \tdungeon.removeentity(getX(), getY(), name);\n \t\tdungeon.deleteentity(getX(),getY(),name);\n \t\t//System.out.println(\"YOU LOSE MAMA\");\n \t\t//System.exit(0);\n \t\t\n }", "public void removePlayer(EntityPlayerMP player)\r\n {\r\n int var2 = (int)player.managedPosX >> 4;\r\n int var3 = (int)player.managedPosZ >> 4;\r\n\r\n for (int var4 = var2 - this.playerViewRadius; var4 <= var2 + this.playerViewRadius; ++var4)\r\n {\r\n for (int var5 = var3 - this.playerViewRadius; var5 <= var3 + this.playerViewRadius; ++var5)\r\n {\r\n PlayerManager.PlayerInstance var6 = this.getPlayerInstance(var4, var5, false);\r\n\r\n if (var6 != null)\r\n {\r\n var6.removePlayer(player);\r\n }\r\n }\r\n }\r\n\r\n this.players.remove(player);\r\n }", "public void removePlayer(Player outPlayer) {\n\t\tgetPlayersInRoom().remove(outPlayer);\n\n\t}", "void remove(Team team);", "private void eliminatePlayer(Player loser){\n players.remove(loser);\n }", "boolean removePlayer(String player);", "public void removePlayer(String name) {\n\t\tUser user = users.get(userTurn);\n\t\tFootballPlayer player = market.findPlayer(name);\n\t\tdouble marketValue = player.getMarketValue();\n\t\t\n\t\tif (tmpTeam.size() > 0) {\n\t\t\tuser.updateBudget(marketValue, \"+\");\n\t\t\ttmpTeam.removePlayer(name);\n\t\t}\n\t\tSystem.out.println(\"budget after sell\" + user.getBudget());\n\t}", "public void removePlayer(Player player)\n {\n if (player == null) {\n return;\n }\n\n removePlayer(player.getName());\n }", "public void removeMember(Player player) {\n\t\tmembers.remove(player.getUniqueId());\n\t\tif (members.isEmpty()) {\n\t\t\tdeleteParty(this); // Uncaches empty parties\n\t\t}\n\t}", "public void removePlayerFromTable(Player player){\n\t\tgamePlayers.remove(player);\n\t}", "public void removePlayer(String p) {\n this.playersNames.remove(p);\n }", "public void removeAgentAndPlayer(Agent agent) {\n\t\tif ( agents.remove(agent) ) {\n\t\t\tPlayer p = agentPlayers.get(agent);\n\t\t\tif ( p != null ) {\n\t\t\t\t// tell the engine to execute the player's Quit action (which removes the Player from the world)\n\t\t\t\tengine.submitAction(new ActionQuit(p));\n\t\t\t}\n\t\t\t// finally, detach the Agent from their Player\n\t\t\tdetachAgent(agent);\n\t\t\t// the agent no longer wants to handle the events coming from the engine\n\t\t\tengine.unregisterWorldUpdateHandler(agent);\n\t\t\tengine.unregisterPlayerActionsUpdateHandler(agent);\n\t\t\t// we (the session) no longer want to handle actions coming from the agent\n\t\t\tagent.unregisterPlayerActionHandler(this);\n\t\t}\n\t}", "public void removeTomb(String player) {\r\n\t\ttombs.remove(player);\r\n\t}", "public void removePlayer(Player player){\n for(int x = 0; x < players.size(); x++){\n if(players.get(x) == player){\n players.remove(x);\n }\n }\n }", "public void removeMember(Player player) {\n this.members.remove(player.getUniqueId().toString());\n }", "void removeFromGame() {\n\t\t// remove from game\n\t\t//only for multi-player\n\t}", "private void removePlayerFromTheGame(){\n ServerConnection toRemove = currClient;\n\n currClient.send(\"You have been removed from the match!\");\n updateCurrClient();\n server.removePlayerFromMatch(gameID, toRemove);\n\n if ( toRemove == client1 ){\n this.client1 = null;\n }\n else if ( toRemove == client2 ){\n this.client2 = null;\n }\n else {\n client3 = null;\n }\n gameMessage.notify(gameMessage);\n\n if ( (client1 == null && client2 == null) || (client2 == null && client3 == null) || (client1 == null && client3 == null) ){\n gameMessage.notify(gameMessage);\n }\n if ( liteGame.isWinner() ) endOfTheGame = true;\n playerRemoved = true;\n }", "public void cmdRemoveTeam(User teller, Team team) {\n int playerCount = tournamentService.removeTeam(team);\n tournamentService.flush();\n if (playerCount < 0) {\n command.tell(teller, \"I''m not able to find {0} in the tournament.\", team);\n } else {\n command.tell(teller, \"Done. Team {0} is no longer in the tournament.\", team.getTeamCode());\n command.tell(teller, \"{0} players were also removed.\", playerCount);\n }\n }", "public void removePlayer(GamePlayer player) {\n\t\tplayer.setCurrentGame(null);\n\t\tplayer.setJoinLocation(null);\n\t\tif (monster != null && monster.equals(player))\n\t\t\tmonster = null;\n\t\tplayers.remove(player);\n\t}", "public void dealCard(Player player){\n TrainCard removedCard = draw();\n player.addTrainCard(removedCard);\n }", "public void kill()\r\n {\n if(isTouching(TopDownPlayer.class))\r\n {\r\n health(1);\r\n\r\n getWorld().removeObject(player);\r\n //getWorld().addObject (new Test(), 20, 20);\r\n\r\n }\r\n // if(healthCount >= 1)\r\n // {\r\n // World world;\r\n // world = getWorld();\r\n // getWorld().removeObject(player);\r\n // \r\n // getWorld().addObject (new Test(), 20, 20);\r\n // }\r\n }", "public void addKill(ArenaPlayer player) {\n \t\tTeam t = getTeam(player);\n \t\tt.addKill(player);\n \t}", "public Player removePlayer() {\n\t\tPlayer toReturn = this.player;\n\t\tthis.player = null;\n\t\treturn toReturn;\n\t}", "public static void playerRelease() {\n\t\tPlayer.release();\n\t}", "public void removePlayer(String name) {\n\t\tcreateGameLobbyController.removePlayerFromList(name);\n\t}", "public void removePlayerFromCurrentLobby(LobbyPlayer player) {\n DocumentReference doc = Firebase.docRefFromPath(\"lobbies/\" + player.getLobbyCode());\n doc.update(FieldPath.of(\"players\", player.getUsername()), FieldValue.delete());\n removeListener();\n GameService.removeListener();\n cache = null;\n }", "public abstract BossBar removePlayer(UUID uuid);", "public void removeFromQueue(Player player) {\n }", "public void removePlayer(Person user) {\r\n\t\trooms[user.getY()][user.getX()].removeOccupant(user);\r\n\t}", "public void removeAgent() {agent = null;}", "public void removePlayer(int place) {\r\n\t\tplayers.remove(place);\r\n\t}", "public void eliminatePlayer(Character player){\r\n\t\tplayer.setAsPlayer(false);\r\n\t\tSystem.err.println(player.getName() + \" was eliminated\");\r\n\t}", "public void removePlayer(Player plr){\r\n\t\t\r\n\t\tlobby.removePlayerFromLobby(plr);\r\n\t\tlobby.updateNames();\r\n\t\tsendNameInfoToAll();\r\n\t\tremoveConnection(plr);\r\n\t}", "public void giveUp() {\n if (!finished)\n player.kill();\n }", "private void deletePlayer(Player p) \r\n\t{\n\t\tlogger.info(\"Deleting player ; '\" + p.getName() +\"'\");\r\n\t\tplayerDao.remove(p);\r\n\t}", "@Override\n\tpublic void deletePlayer(Joueur joueur) {\n\t\t\n\t}", "void releasePlayer();", "public void remove(Player p) {\r\n\t\tAsyncCatcher.enabled = false;\r\n\t\tsboard.remove(p.getUniqueId());\r\n\t\tp.setScoreboard(Bukkit.getScoreboardManager().getNewScoreboard());\r\n\t\tAsyncCatcher.enabled = true;\r\n\t}", "@Override\r\n\tpublic void delete(Player t) {\n\r\n\t}", "public synchronized void delPlayer(@NotNull PlayerInterface player) {\n\n for(BoardCell boardCell[] : board.getGrid()) {\n for(BoardCell b : boardCell) {\n if(b.getWorker() != null) {\n if(b.getWorker().getPlayerWorker().getNickname().equals(player.getNickname())) {\n b.setWorker(null);\n }\n }\n }\n }\n player.getWorkerRef().clear();\n for (int i = 0; i < onlinePlayers.size(); i++) {\n if(onlinePlayers.get(i).getNickname().equals(player.getNickname())) {\n if(started) {\n stateList.remove(i);\n onlinePlayers.remove(i);\n nickNames.remove(player.getNickname());\n }\n break;\n }\n }\n }", "void clean(Player p);", "public void deadPlayer() {\r\n\t\tthis.nbPlayer --;\r\n\t}", "public void removePlayer(String player)\n {\n if (listeners.containsKey(player.toLowerCase())) {\n listeners.remove(player.toLowerCase());\n }\n }", "public void removePlayer(int a_playerNum)\n {\n //get the player to be removed\n Player playerRemoved = m_currentPlayers.get(a_playerNum - 1);\n //increment the number bankrupt players and set the removed player bankrupt\n m_numOfBankruptPlayers++;\n playerRemoved.setBankrupt();\n //mark the player removed and add it to the finished players list\n m_currentPlayers.set(a_playerNum - 1, playerRemoved);\n m_finishedPlayers.add(playerRemoved);\n }", "@Test\n public void testremovePlayer() {\n session.removePlayer(playerRemco);\n // There already was 1 player, so now there should be 0\n assertEquals(0, session.getPlayers().size());\n }", "public void unfreezePlayer(Player player) {\r\n\t\tif (isFrozen(player)) {\r\n\t\t\tendFreeze(player);\r\n\t\t}\r\n\t}", "private void sellPlayer(int num) {\n\t\tString playerName = playerNameArray[num].getText();\n\t\tgame.removePlayer(playerName);\n\t\tplayerNameArray[num].setText(\"\");\n\t\timageArray[num].setIcon(MainGui.getShirt(\"noTeam\"));\n\t\tbuttonArray[num].setText(\"+\");\n\t\tlblBudgetText.setText(game.getCurrentUser().getBudget() + \"kr\");\n\t}", "void killPlayerByPlayerMove()\n {\n movePlayerToCell(getMonsterCell());\n }", "CratePrize removeEditingUser(Player player);", "public void removePlayer(int playerObjId)\n\t{\n\t\t_floodClient.remove(playerObjId);\n\t}", "@Override\n\tpublic void remove()\n\t{\n\t\tsuper.remove();\n\t\tgetMyPlayer().getGoldMines().remove(this);\n\t}", "default boolean removePlayer(Player player) {\n return removePlayer(Objects.requireNonNull(player, \"player\").getName());\n }", "public void removePlayer(int index) {\n trickPoints.remove(index);\n gamePoints.remove(index);\n lives.remove(index);\n }", "void removeMember(final PartyMember member);", "public abstract void destroyPlayer();", "void remove(Actor actor);", "public void playerLogout(Player player)\n {\n PlayerAFKModel playerAFKModel = players.get(player.getUniqueId());\n\n // Check if player is AFK\n if( playerAFKModel.isAFK() )\n {\n // Is AFK. Update AFK timer before removal\n playerAFKModel.updateAFKTimer();\n playerAFKModel.markAsNotAFK();\n }\n players.remove(player.getUniqueId());\n }", "public void removePlayer(String name) {\n for (Player player : players) {\n if (player.getName() != null && player.getName().equals(name)) {\n player.setState(false);\n for (Piece piece : player.getPieces()) {\n piece.setPosition(0);\n }\n\n // PLAYERLISTENER : Trigger playerEvent for player that LEFTGAME\n for (PlayerListener listener : playerListeners) {\n PlayerEvent event = new PlayerEvent(this, player.getColour(), PlayerEvent.LEFTGAME);\n listener.playerStateChanged(event);\n }\n\n if (player.getName().equals(players.get(activePlayer).getName())) {\n this.setNextActivePlayer();\n }\n }\n }\n }", "public Player detachAgent(Agent agent) {\n\t\tPlayer p = agentPlayers.get(agent);\n\t\tif ( p !=null ) {\n\t\t\tagentPlayers.put(agent, null);\n\t\t\treturn p;\n\t\t}\n\t\treturn null;\n\t}", "public void removeEnemy(Enemy e) {\r\n this.enemies.remove(e);\r\n this.numOfEnemies.decrease(1);\r\n }", "public static void despawnEntity(Player p, Entity entity){\n despawnEntity(p, entity.getId());\n }", "public void declineInvite(String player) {\r\n connection.declineInvite(player);\r\n }", "public void remove()\n {\n domain.removeParticipant(participant);\n }", "public static void dropOutManager(Match match, String leaverEmail) {\n Player leaver = match.getGame().getPlayerByEmail(leaverEmail);\n clearLeaverDebts(leaver, match);\n if (match.getGame().isThisThePlayingPlayer(leaver)) {\n Player nextPlayingPlayer = match.getGame().grabNextPlayingPlayer(leaver);\n decideIfOnlyOneOrManyPlayersLeftInGame(match, leaverEmail, nextPlayingPlayer);\n } else {\n decideIfOnlyOneOrManyPlayersLeftInGame(match, leaverEmail);\n }\n }", "public String removePlayer(int pno){\n\t\tplayerPosition.remove(pno);\n\t\tcollectedGold.remove(pno);\n\t\treturn \"You have left the game!\";\n\t}", "public void dealPlayer() {\n //Deal two cards to the player\n playerStack.add(cards[talonStack]);\n playerScore += evaluateCardScore(playerScore, cards[talonStack].rank);\n talonStack++;\n\n playerStack.add(cards[talonStack]);\n playerScore += evaluateCardScore(playerScore, cards[talonStack].rank);\n talonStack++;\n }", "public void removePlayer(int playerID) {\n\t\tthis.players.get(playerID).setLocation(null);//removes the player from the map\n\t\tthis.players.get(playerID).kill();\n\t\t\t\n\t\t\n\n\t\tif (this.currentPlayer == playerID) {\n\t\t\t// Advance turn to handle death on player's turn\n\t\t\tadvanceTurn(playerID);\n\t\t}\n\t}", "void playerHit() {\n if (lives == 0) {//if no lives left\n isDead = true;\n } else {//remove a life and reset positions\n lives -=1;\n immortalityTimer = 100;\n resetPositions();\n }\n }", "public void remove(RWDCar car) {\n game.removePlayer(car);\n }", "public void removePlayerDuringGame(String playerName) {\n for (Player player : players) {\n if (player.getName().equals(playerName)) {\n players.remove(player);\n }\n }\n }", "public void act() \r\n {\r\n Controller world = (Controller) getWorld();\r\n player = world.getPlayer();\r\n if (this.isTouching(Player.class))\r\n {\r\n player.minusHealth(5);\r\n world.removeObject(this);\r\n }\r\n }", "public synchronized void removeTheWarrior(){\n charactersOccupiedTheLocation[0]=null;\n notifyAll();\n }", "public void unregisterPlayer(final Player p) {\n\t\ttry {\n\t\n\t\n\t\tserver.getLoginConnector().getActionSender().playerLogout(p.getUsernameHash());\n\n\t\t\n\t\tp.setLoggedIn(false);\n\t\tp.resetAll();\n\t\tp.save();\n\t\tMob opponent = p.getOpponent();\n\t\tif (opponent != null) {\n\t\t\tp.resetCombat(CombatState.ERROR);\n\t\t\topponent.resetCombat(CombatState.ERROR);\n\t\t}\n\t\t\n\t\tdelayedEventHandler.removePlayersEvents(p);\n\t\tplayers.remove(p);\n\t\tsetLocation(p, p.getLocation(), null);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void removeGuestPlayerFromDB(String username) throws SQLException {\n PreparedStatement stm = T3DB.getConnection().prepareStatement(\n \"delete from GuestPlayer where displayname=?\");\n stm.setString(1, username);\n stm.executeUpdate();\n }", "public void unregister(final Player player) {\n\t\tplayer.getActionQueue().cancelQueuedActions();\n\t\t//final Player unregister = player;\n\t\tTrade.exitOutOfTrade(player, false);\n\t\tplayer.destroy();\n\t\tplayer.getSession().close(false);\n\t\tplayers.remove(player);\n\t\tlogger.info(\"Unregistered player : \" + player + \" [online=\" + players.size() + \"]\");\n\t\tengine.submitWork(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tloader.savePlayer(player);\n\t\t\t\tif(World.getWorld().getLoginServerConnector() != null && Constants.CONNNECT_TO_LOGIN_SERVER) {\n\t\t\t\t\tWorld.getWorld().getLoginServerConnector().disconnected(player.getName());\n\t\t\t\t} else {\n\t\t\t\t\t//Remove user online\n\t\t\t\t\tfor(Player p : World.getWorld().getPlayers())\n\t\t\t\t\t\tif(p.getFriends().contains(player.getNameAsLong()))\n\t\t\t\t\t\t\tp.getActionSender().sendPrivateMessageStatus(p.getNameAsLong(), -9);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void resetPlayer() {\r\n List<Artefact> inventory = currentPlayer.returnInventory();\r\n Artefact item;\r\n int i = inventory.size();\r\n\r\n while (i > 0) {\r\n item = currentPlayer.removeInventory(inventory.get(i - 1).getName());\r\n currentLocation.addArtefact(item);\r\n i--;\r\n }\r\n currentLocation.removePlayer(currentPlayer.getName());\r\n locationList.get(0).addPlayer(currentPlayer);\r\n currentPlayer.setHealth(3);\r\n }", "public void purchase(Player player) {\n\t\towned = true;\n\t\towner = player;\n\n\t\tupdateMonopoly(player);\n\t}", "public void erasePlayer(Player player) {\n if(player.equals(occupant)) {\n // System.out.println(\"killedToo\");\n revertBlock(player);\n getAdjacent(GameEngine.UP).erasePlayer(player);\n getAdjacent(GameEngine.DOWN).erasePlayer(player);\n getAdjacent(GameEngine.LEFT).erasePlayer(player);\n getAdjacent(GameEngine.RIGHT).erasePlayer(player);\n }\n }", "private void detener() {\n player.stop();\n player.release();\n player = null;\n }", "public void RemovePlayer(int game_number, String user)\n\t{\n\t\tgametype[game_number].PlayerLeavesGame(user);\n\t}", "public void addKillForPlayer(Player player) {\n\t\tincrementProperty(player, StatsProperty.KILLS);\n\t}", "@Override\r\n\tpublic final void purge() {\r\n\t\tthis.members.clear();\r\n\t\tthis.age++;\r\n\t\tthis.gensNoImprovement++;\r\n\t\tthis.spawnsRequired = 0;\r\n\r\n\t}", "public void removeFromGame(){\n this.isInGame = false;\n }", "public void respawnPlayer() {\n \tboard.swapTile(board.getTile(player.getPos()), board.getTile(new Point(8,0)));\n player.setPlayerPos(new Point(8,0));\n resetAmmo();\n }", "@Override\n public void unsuspendPlayer(String username) {\n if (match != null && username != null) {\n match.unsuspendPlayer(username);\n }\n }", "@Test\n\tpublic void validRemovePlayer_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tgameState.addPlayer(0, \"Ben\", Color.RED);\n\t\tgameState.removePlayer(0);\n\t\tassertNull(gameState.getPlayer(0));\n\t}", "public void remove(String playerId) {\n\t Player player = this.getPlayer(playerId);\n\t LOG.info(\"Removing player\" + player);\n\t\t// Step 2 delete it.\n\t\t// Remove it from players in DB\n\t this.playersInDB.remove(player);\n\t}", "public void killedByPlayer() {\r\n\t\tscreen.enemiesKilled++;\r\n\t\tMazeCrawler mc = screen.mazeHandler.mazeCrawler;\r\n\t\tint n = 2; //if enemy is large do movement n+1 times\r\n\t\tswitch (enemyType) {\r\n\t\tcase DOWN:\r\n\t\t\tmc.moveDown();\r\n\t\t\tif(large) {for(int i = 0; i < n; i++) mc.moveDown();}\r\n\t\t\tbreak;\r\n\t\tcase LEFT:\r\n\t\t\tmc.moveLeft();\r\n\t\t\tif(large) {for(int i = 0; i < n; i++) mc.moveLeft();}\r\n\t\t\tbreak;\r\n\t\tcase RIGHT:\r\n\t\t\tmc.moveRight();\r\n\t\t\tif(large) {for(int i = 0; i < n; i++) mc.moveRight();}\r\n\t\t\tbreak;\r\n\t\tcase UP:\r\n\t\t\tmc.moveUp();\r\n\t\t\tif(large) {for(int i = 0; i < n; i++) mc.moveUp();}\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tscreen.enemyDeath.play(.5f);\r\n\t\tdestroy();\r\n\t}", "private void discardPlayer(Player p)\n {\n locations.remove(p);\n plugin.getAM().arenaMap.remove(p);\n clearPlayer(p);\n }", "public void removePawn() {\n lives = 0;\n }" ]
[ "0.7484834", "0.74713916", "0.7205928", "0.7007985", "0.69635195", "0.6954035", "0.68358517", "0.6831881", "0.6826355", "0.680677", "0.6759897", "0.6755648", "0.6732189", "0.6720624", "0.66948706", "0.6690055", "0.66833806", "0.6678064", "0.6667804", "0.66225153", "0.6551566", "0.6547282", "0.6541538", "0.648495", "0.64785415", "0.64387894", "0.6434222", "0.642033", "0.64151734", "0.6412812", "0.64109474", "0.63796026", "0.63795656", "0.63666236", "0.6361411", "0.63469094", "0.633167", "0.6305046", "0.6289078", "0.62718076", "0.62654084", "0.62565786", "0.6243647", "0.62379974", "0.61852324", "0.61681926", "0.61327845", "0.6120556", "0.6118898", "0.6106049", "0.60726655", "0.6071991", "0.6059374", "0.6047794", "0.603346", "0.60310984", "0.6021988", "0.60087615", "0.5998572", "0.5994715", "0.5972373", "0.59648633", "0.5951215", "0.59492075", "0.5940813", "0.593805", "0.59137744", "0.59129846", "0.59092265", "0.58972484", "0.5893619", "0.5887617", "0.5876636", "0.58693594", "0.5858884", "0.5842739", "0.5835628", "0.58332694", "0.5819349", "0.5812694", "0.5808787", "0.5806701", "0.57984257", "0.57967615", "0.57955706", "0.5791039", "0.57805145", "0.57744116", "0.5768709", "0.57621527", "0.57604575", "0.5739299", "0.5732375", "0.57319355", "0.5727783", "0.5725627", "0.57118726", "0.57052577", "0.56860113", "0.5684416" ]
0.6248317
42
Add a free agent player to the team.
public static void addPlayer(League theLeague, Team theTeam, Scanner keyboard) { System.out.println(""); System.out.println("---Add Player---"); theTeam.teamToString(); System.out.println(""); System.out.println("--Top 20 Free Agents--"); theLeague.getFreeAgents(20); int playerChoice; do { do { System.out.println(""); System.out.println(" 0 - Filter Free Agents by Position"); System.out.println(" -1 - View All Free Agents"); System.out.println("1-" + theLeague.playerList().size() + " - Select a Player"); playerChoice = Input.validInt(-1, theLeague.playerList().size(), keyboard); if (playerChoice == -1) { theLeague.getFreeAgents(); } if (playerChoice == 0) { System.out.println(""); System.out.println("Which position would you like to view?"); System.out.println("1 - QB"); System.out.println("2 - WR"); System.out.println("3 - RB"); System.out.println("4 - TE"); switch (Input.validInt(1, 4, keyboard)) { case 1: System.out.println("\n--Top 20 Free Agent QBs--\n"); theLeague.getFreeAgents(20, "QB"); break; case 2: System.out.println("\n--Top 20 Free Agent WRs--\n"); theLeague.getFreeAgents(20, "WR"); break; case 3: System.out.println("\n--Top 20 Free Agent RBs--\n"); theLeague.getFreeAgents(20, "RB"); break; case 4: System.out.println("\n--Top 20 Free Agent TEs--\n"); theLeague.getFreeAgents(20, "TE"); break; default: break; } } } while (playerChoice < 1); if (theLeague.playerList().get(playerChoice - 1).getIsOwned()) { System.out.println(""); System.out.println(theLeague.playerList().get(playerChoice - 1).playerToString() + " is not available"); } } while (theLeague.playerList().get(playerChoice - 1).getIsOwned()); Player thePlayer = theLeague.playerList().get(playerChoice - 1); thePlayer.setIsOwned(); theTeam.getRoster().add(thePlayer); System.out.println(""); System.out.println("***" + theTeam.getManagerName() + " has added " + thePlayer.playerToString() + "***"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addPlayer(FootballPlayer aPlayer) {\n\t\tplayers.add(aPlayer);\n\t}", "public void addNewPlayer(Player p) {\n\t\t// if the player don't exists in the highscore list the player is added\n\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\tif(highscore.get(p.getName()) == null) {\n\t\t\t\thighscore.put(p.getName(), 0);\n\t\t\t}\n\t\t}\n\t\tthis.playerList.add(p); \n\t}", "public void addPlayer(Player player){\n players.add(player);\n }", "public void addPlayer(Player player) {\n //int id = Repository.getNextUniqueID();\n this.player = player;\n }", "void addPlayer(Player newPlayer);", "private void spawnPlayer() {\n\t\tplayer.show(true);\n\t\tplayer.resetPosition();\n\t\tplayerDead = false;\n\t\tplayerDeadTimeLeft = 0.0;\n\t}", "public void addPlayer(Player player) {\n playerList.add(player);\n }", "public void addPlayer(final Player aPlayer)\r\n\t{\r\n\t\tmPlayer.setX(mStartX * Block.SIZE);\r\n\t\tmPlayer.setY(mStartY * Block.SIZE);\r\n\t\taddEntity(mPlayer);\r\n\t}", "private void buyPlayer(FootballPlayer player, String playerName, int num) {\n\t\tint valid = game.addPlayer(playerName);\n\t\tif(valid==0) {\n\t\t\tplayerNameArray[num].setText(playerName);\n\t\t\timageArray[num].setIcon(MainGui.getShirt(player.getTeamName()));\n\t\t\tbuttonArray[num].setText(\"X\");\n\t\t\tlblBudgetText.setText(game.getCurrentUser().getBudget() + \" RGG\");\n\t\t\t\n\t\t} else if (valid==1) {\n\t\t\tJOptionPane.showMessageDialog(frame,\"You have already selected this player for your team\");\n\t\t} else if (valid==-1) {\n\t\t\tJOptionPane.showMessageDialog(frame,\"You don´t have enough budget too buy \" + playerName);\n\t\t}\n\t}", "public void addAgentAndPlayer(Agent agent) {\n\t\tif (!agents.contains(agent)) {\n\t\t\t// first add their player\n\t\t\tPlayer p = addPlayer(agent.getName());\n\t\t\tagentPlayers.put(agent, p);\n\t\t\t// add them as a listener\n\t\t\taddAgent(agent);\n\t\t}\n\t}", "public synchronized void addPlayer(PlayerHandler player) {\n\n if (activePlayers < numMaxPlayers) {\n\n players[activePlayers] = player;\n System.out.println(player.getName() + \" added to game as player \" + (activePlayers + 1));\n activePlayers++;\n return;\n }\n\n System.out.println(\"This room (\" + this.toString() + \") is full\");\n }", "public void cmdAddPlayer(User teller, String playerHandle) {\n Player player = tournamentService.findPlayer(playerHandle);\n try {\n player = tournamentService.createPlayer(playerHandle);\n } catch (InvalidPlayerException e) {\n replyError(teller, e);\n return;\n } catch (InvalidTeamException e) {\n replyError(teller, e);\n command.tell(teller, \"To create a new team, use the \\\"add-team\\\" command. Usage: add-team XXX\");\n return;\n }\n tournamentService.flush();\n command.tell(teller, \"Done. Player {0} has joined the \\\"{1}\\\".\", player, player.getTeam());\n command.tell(teller, \"To set the player''s real name, use: \\\"set-player {0} name 2200\\\"\", player);\n cmdShowPlayer(teller, player);\n }", "public void addMember(Player player) {\n\t\tif (members.isEmpty()) {\n\t\t\tcacheParty(this); // Caches the party if it went from empty to not empty\n\t\t}\n\t\tmembers.add(player.getUniqueId());\n\t}", "public void addPlayerShip()\n\t{\n\t\t//if a PlayerShip is already spawned, a new one will not be added\n\t\tif(shipSpawned)\n\t\t{\n\t\t\t\tSystem.out.println(\"A player ship is already spawned\");\n\t\t\t\treturn;\n\t\t}\n\t\tgameObj.add(new PlayerShip(getHeight(), getWidth()));\n\t\tSystem.out.println(\"Player ship added\");\n\t\tshipSpawned = true;\n\t\tnotifyObservers();\n\t}", "public void attachAgent(Agent agent, Player p) {\n\t\tif ( agentPlayers.get(agent)==null) {\n\t\t\tagentPlayers.put(agent, p);\n\t\t}\n\t}", "public void addPlayer(Player inPlayer) {\n\t\tgetPlayersInRoom().add(inPlayer);\n\t}", "public void addPlayerShip()\n\t{\n\t\t//if a PlayerShip is already spawned, a new one will not be added\n\t\tif (gameObj[1].size() == 0)\n\t\t{\n\t\t\tgameObj[1].add(new PlayerShip());\n\t\t\tSystem.out.println(\"PlayerShip added\");\n\t\t}else{\n\t\t\tSystem.out.println(\"A player ship is already spawned\");\n\t\t}\n\t\t\n\t}", "public void addPlayer(Player player) {\n this.add(player);\n this.players.add(player);\n }", "public void addKill(ArenaPlayer player) {\n \t\tTeam t = getTeam(player);\n \t\tt.addKill(player);\n \t}", "@Override\n public void addPlayer(Player player) {\n\n if(steadyPlayers.size()>0){\n PlayersMeetNotification.firePropertyChange(new PropertyChangeEvent(this, \"More than one Player in this Panel\",steadyPlayers,player));\n }\n steadyPlayers.add(player);\n\n }", "public void addPlayer(String p) {\n this.playersNames.add(p);\n }", "public void registerPlayer(BlackjackPlayer player) {\r\n getPlayers().add(player);\r\n }", "void addEventPlayers(Player player, boolean team);", "public void addMember(Player player) {\n this.members.add(player.getUniqueId().toString());\n }", "public static void addPlayer(MovingUnit player) {\r\n\t\t_players.add(player);\r\n\t}", "public void addPlayerToTable(Player player){\n\t\tgamePlayers.add(player);\n\t}", "public void addPlayer(Player player) {\r\n players.add(player);\r\n ((DefaultListModel<Player>) playerListGui.getModel()).addElement(player);\r\n }", "void addPlayer(IPlayer player);", "public void addPlayer(Player p) {\n if (gameState != GameState.AWAITING_PLAYERS) {\n throw new GameStateInvalidException(\"Cannot add players once game is underway...\");\n }\n\n // ok, just add...\n if (!players.contains(p)) {\n players.add(p);\n }\n }", "public void addPlayer(Player player, UserGroup userGroup) {\n addPlayer(player, userGroup.getTeamName(), userGroup.getUserGroupPrefix(), null);\n }", "public void addPlayer(String name) {\n if (nrOfPlayers() < 4) {\n players.add(new Player(name, nrOfPlayers() + 1));\n this.status = \"Initiated\";\n } else {\n throw new NoRoomForMorePlayersException();\n }\n }", "public void addPlayer(String name) {\n players.add(new Player(name));\n }", "public void addPlayer(String name) {\n\t\tcreateGameLobbyController.addPlayerToList(name);\n\t}", "public synchronized void attachTo(Player player){\n player.getDashboard().attach(this);\n players.put(player.getName(), player); //save this player to the list of known players\n }", "public void playerAddedToTeam(ArenaPlayer p, Team t) {\n \t\tif (!t.hasSetName() && t.getPlayers().size() > Defaults.MAX_TEAM_NAME_APPEND){\n \t\t\tt.setDisplayName(TeamUtil.createTeamName(indexOf(t)));\n \t\t}\n \t\tstartTracking(p);\n \t\tarenaInterface.onJoin(p,t);\n \n \t\tPerformTransition.transition(this, MatchState.ONJOIN, p,t, true);\n \t}", "public void addPlayer(String name, double attackStat, double blockStat){\n players.add(new Player(name, attackStat, blockStat));\n }", "public final void give(final Player player) {\n\t\tplayer.getInventory().addItem(this.getItem());\n\t}", "public abstract BossBar addPlayer(UUID player);", "public void acceptInvitation(Player player) {\n if (invitations.containsKey(player)) {\n Player p = invitations.remove(player);\n List<Player> team = teams.get(p);\n team.add(player);\n teamMessage(p, ChatColor.BLUE + player.getName() + \" has joined the team!\");\n } else {\n player.sendMessage(ChatColor.RED + \"You were not invited to any teams! Forever alone..\");\n }\n }", "public void addVps(Player player) {\n }", "public void addPlayerToRandomRoom(Player player) {\n\n randomRoomPlayers.add(player);\n synchronized (this) {\n notify();\n }\n }", "void addPerson(Player player);", "public void addPlayer(Player player) {\n\t\tif(players.isEmpty()) {\n\t\t\tcurrent=player;\n\t\t\tplayers.add(current);\n\t\t}\n\t\telse {\n\t\t\tplayers.add(player);\n\t\t}\n\t}", "public void addHero(Hero h) {\r\n if (team.size() < MAX_MEMBER_IN_A_TEAM) {\r\n team.add(h);\r\n }\r\n }", "public void addPlayerToTheList(){\n \tif(!txtFieldPlayerName.getText().trim().isEmpty() && totPlayers <= maximumPlayersAllowed){\n\t\t\t\n \t\t//creates a new Player and adds the name that the user inputs from the textField\n\t\t\tplayer.add(new Player(txtFieldPlayerName.getText()));\n\t\t\n\t\t\tString playerName = \"\";\n\t\t\tint playerNr = 1;\n\t\t\t\n\t\t\tfor(Player p : player){\n\t\t\t\tplayerName += playerNr+\": \"+p.getName()+\"<br>\"; \n\t\t\t\tplayerNr++;\n\t\t\t}\n\t\t\t\n\t\t\ttotPlayers++;\n\t\t\tlblPlayerList.setText(\"<html><h2>PLAYER LIST</h2>\"+playerName+\"</html>\");\n\t\t\ttxtFieldPlayerName.setText(\"\");\n\t\t}\n\t\t\n\t\tif(totPlayers >= minimumPlayersAllowed){\n\t\t\tbtnPlay.setEnabled(true);\n\t\t}\n\t\t\n\t\tif(totPlayers >= maximumPlayersAllowed){\n\t\t\tbtnAddPlayer.setEnabled(false);\n\t\t\ttxtFieldPlayerName.setEnabled(false);\n\t\t}\n }", "public boolean addPlayer(int pno){\n\t\t\n\t\t// Gets the coordinates of a non-wall and non-occupied space\n\t\tint[] pos = initiatePlayer(pno);\n\t\t\n\t\t// If a free space could not be found, return false and the client will be force quit\n\t\tif (pos == null){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Put the player into the HashMaps\n\t\tplayerPosition.put(pno, pos);\n\t\tcollectedGold.put(pno, 0);\n\t\t\n\t\treturn true;\n\t}", "public boolean addPlayer(GamePlayer player) {\n\t\tif (players.size() >= info.getMaximumPlayers())\n\t\t\treturn false;\n\t\tplayer.setCurrentGame(this);\n\t\tplayer.setJoinLocation(player.getPlayer().get().getLocation());\n\t\tplayers.add(player);\n\t\treturn true;\n\t}", "public boolean addPlayerItem(PlayerItem playerItem);", "public void addEntity(Player player) {\n\t\tentities.add(player);\n\t}", "public void activatedBy(final Player player) {\n //Battle with a Boss Unit\n }", "private void addPlayerToGroup(Scoreboard board, Player player) {\n String playername = player.getName();\n board.registerNewTeam(playername);\n board.getTeam(playername).addPlayer(player);\n }", "public World addPlayer(Player p){\r\n players.add(p);\r\n return this;\r\n }", "public void addPlayer(EntityPlayerMP player)\r\n {\r\n int var2 = (int)player.posX >> 4;\r\n int var3 = (int)player.posZ >> 4;\r\n player.managedPosX = player.posX;\r\n player.managedPosZ = player.posZ;\r\n\r\n for (int var4 = var2 - this.playerViewRadius; var4 <= var2 + this.playerViewRadius; ++var4)\r\n {\r\n for (int var5 = var3 - this.playerViewRadius; var5 <= var3 + this.playerViewRadius; ++var5)\r\n {\r\n this.getPlayerInstance(var4, var5, true).addPlayer(player);\r\n }\r\n }\r\n\r\n this.players.add(player);\r\n this.filterChunkLoadQueue(player);\r\n }", "boolean addPlayer(String player);", "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 boolean addPlayer(Player p) {\n\t\tif(p != null && !squareOccuped()) {\n\t\t\tthis.player = p;\n\t\t\treturn true;\n\t\t} else return false;\n\t}", "@Override\r\n public void giveCardToPlayer(Card card, int player, int plDeckPosition) {\r\n this.players.get(player).addCard(plDeckPosition, card);\r\n }", "private Player addNewPlayer(String username) {\n if (!playerExists(username)) {\n Player p = new Player(username);\n System.out.println(\"Agregado jugador \" + username);\n players.add(p);\n return p;\n }\n return null;\n }", "public void addPlayerToStats(Player player) {\n\t\tfindForPlayer(player);\n\t}", "public void purchase(Player player) {\n\t\towned = true;\n\t\towner = player;\n\n\t\tupdateMonopoly(player);\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 final void addPlayer(Player player) {\n\n\t\tif (player instanceof CulturePlayer) {\t\t\t\t\t\t\t\t// not too pretty but simple\n\t\t\tif (((CulturePlayer)player).isDissect()) { // instead of the culture player\n\t\t\t\tplayers.addAll(((CulturePlayer)player).getCulture()); // add all masters of the culture\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tplayers.add(player);\n\t}", "public boolean addPlayer(Player player)\n\t{\n\t\treturn playerList.add(player);\n\t}", "void playerAdded();", "public void addTeam(Team team) {\n int maxTotalTeamsCurrentlyAllowed = getTotalPlayersInLeague();\n\n // If a team has been created\n if(getTeams().size() != 0) {\n\n float greatestPlayerCount;\n // if the number of players on the largest team is not equal to zero\n if((greatestPlayerCount = (float) getTeamWithMostPlayers().getPlayerCount()) != 0) {\n\n // Get the sum of all the players in the league\n float totalLeaguePlayers = (float) getTotalPlayersInLeague();\n\n // divide the total players in league by number of players in largest team, rounded down\n float totalTeamsAllowedFloat = totalLeaguePlayers / greatestPlayerCount;\n\n // cast into double for Math.floor method\n double totalTeamsAllowedDouble = (double) totalTeamsAllowedFloat;\n\n // cast into integer for comparison\n maxTotalTeamsCurrentlyAllowed = (int) Math.floor(totalTeamsAllowedDouble);\n }\n\n }\n\n // If we're requesting to make more teams than the current max allowed, throw exception\n if (getTeams().size() < maxTotalTeamsCurrentlyAllowed) {\n teams.add(team);\n } else {\n throw new IndexOutOfBoundsException(\"Not enough players for a new team\");\n }\n\n }", "public void addTeam(Team team){\n\t\tthis.teamList.add(team);\n\t}", "void createPlayer(Player player);", "@Override\n public void landedOn(Player player) {}", "private void getFreeSpawn(Player player, String string) {\n \t\tif (arena.playerCount < 1) {\r\n \t\t\t// arena empty, randomly put player\r\n \t\t\tarena.tpPlayerToCoordName(player, string);\r\n \t\t\treturn;\r\n \t\t}\r\n \r\n \t\tHashSet<Location> spawns = Spawns.getSpawns(arena, \"free\");\r\n \t\tif (arena.playerCount >= spawns.size()) {\r\n \t\t\t// full anyways, randomly put player\r\n \r\n \t\t\tarena.tpPlayerToCoordName(player, string);\r\n \t\t\treturn;\r\n \t\t}\r\n \r\n \t\t// calculate \"most free\"\r\n \t\tint i = 0;\r\n \t\tfor (Location loc : spawns) {\r\n \t\t\ti++;\r\n \t\t\tif (i % spawns.size() != arena.playerCount % spawns.size()) {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\tArenaPlayer ap = ArenaPlayer.parsePlayer(player);\r\n \t\t\t\r\n \t\t\tap.setTelePass(true);\r\n \t\t\tplayer.teleport(loc);\r\n \t\t\tap.setTelePass(false);\r\n \t\t\t\r\n \t\t\treturn;\r\n \t\t}\r\n \t}", "public void newPlayer() {\r\n\t\tthis.nbMonster ++;\r\n\t\tthis.nbPlayer ++;\r\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 }", "public void action(Player myPlayer)\n {\n if (getNbUtilisation() == 0) {\n System.out.println(\"Not possible\");\n } else {\n int nHealthy = getPointsHealthy();\n myPlayer.addLifePoints(nHealthy);\n\n }\n }", "public int addPlayer(String name) {\n\t\tUser user = users.get(userTurn);\n\t\tFootballPlayer player = market.findPlayer(name);\n\t\tdouble marketValue = player.getMarketValue();\n\t\tSystem.out.println(\"budget before buy\" + user.getBudget());\n\t\t\n\t\tif(tmpTeam.containsPlayer(name)) {\n\t\t\treturn 1;\n\t\t} \n\t\telse if(user.hasEnoughBudget(marketValue)) {\n\t\t\ttmpTeam.addPlayer(name, player);\n\t\t\tuser.updateBudget(marketValue, \"-\");\n\t\t\tSystem.out.println(\"budget \" + user.getBudget());\n\t\t\tSystem.out.println(\"marketvalue \" +marketValue);\n\t\t\tSystem.out.println(\"budget after buy\" + user.getBudget());\n\t\t\treturn 0;\n\t\t}\n\t\treturn -1;\n\t}", "public boolean addPlayer(final Player player)\n {\n if (player == null || !player.isOnline()) {\n return false;\n }\n\n String playerName = player.getName().toLowerCase();\n\n if (!listeners.containsKey(playerName)) {\n listeners.put(playerName, player);\n\n player.setScoreboard(board);\n\n return true;\n }\n\n return false;\n }", "public void addPlayer(PacketBuilder packet, Player player, Player otherPlayer) {\n int xPos = otherPlayer.getLocation().getX()\n - player.getLocation().getX();\n int yPos = otherPlayer.getLocation().getY()\n - player.getLocation().getY();\n /*\n * Abstraction is used here for clientsided rearrangement\n * To keep errors from loading multiple revisions at one time.\n */\n addPlayer(otherPlayer, packet, xPos, yPos);\n }", "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 setHasPlayer(boolean hasPlayer) {\n\t\tHasPlayer = hasPlayer;\n\t}", "public void use(Player player) {\n\n\t}", "public RequestAddPlayerToArenaInitiator(Agent myAgent, ACLMessage request, ACLMessage reply, Player player) {\n super(myAgent,request);\n this.reply = reply;\n this.player = player;\n }", "public void generatePlayer()\n {\n board.getTile(8,0).insertPlayer(this.player);\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 }", "public void addPlayer(Player player, String teamName, String prefix, String suffix) {\n // Give the player the current scoreboard.\n player.setScoreboard(scoreboard);\n\n // Lets add the team to the scoreboard.\n addTeam(teamName, prefix, suffix);\n\n // Add the player to the team.\n getTeam(teamName).addEntry(player.getName());\n }", "public void giveUp() {\n if (!finished)\n player.kill();\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void sendFakeTeam(Player player) {\n\t\tPacketContainer packet = new PacketContainer(PacketType.Play.Server.SCOREBOARD_TEAM);\n\t\tpacket.getStrings().write(0, FakeTeamName);\n\t\tpacket.getIntegers().write(1, 0); // Set create mode\n\t\tpacket.getStrings().write(5, \"never\"); // Push type\n\t\t\n\t\tCollection<String> names = packet.getSpecificModifier(Collection.class).read(0);\n\t\tnames.add(player.getName());\n\t\t\n\t\ttry {\n\t\t\tProtocolLibrary.getProtocolManager().sendServerPacket(player, packet);\n\t\t} catch (InvocationTargetException e) {\n\t\t\t// Should never happen unless packet changes\n\t\t\tthrow new AssertionError(e);\n\t\t}\n\t}", "public void join(Player player) {\n\t\tGamePlayer gamePlayer = new GamePlayer(player);\n\t\tthis.gamePlayers.add(gamePlayer);\n\n\t\tif (getEmptyPad() != null) ß{\n\t\t\tPad pad = getEmptyPad();\n\t\t\tgamePlayer.setPad(pad);\n\t\t\tpad.setFree(false);\n\t\t\tLocation loc = pad.getLocation();\n\n\t\t\tplayer.teleport(new Location(loc.getWorld(), loc.getX(), loc.getY(), loc.getZ()));\n\t\t\tsetupPlayerInventory(player);\n\t\t\tplayer.sendMessage(\"You have joined the game\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Not enough room for \" + player.getName() + \" to join. Kicking...\");\n\t\t\tplayer.kickPlayer(\"Game Full\");\n\t\t}\n\t}", "public void setPlayer(Player newPlayer) {\n roomPlayer = newPlayer;\n }", "public static void addThief() {\r\n playerTeam.clearDead();\r\n if (playerTeam.teamSize() >= 4) {\r\n updateMessage(\"Time cheio\");\r\n return;\r\n }\r\n\r\n Thief newMember = new Thief(getPersonName(), 0);\r\n playerTeam.addMember(newMember);\r\n\r\n updateMessage(\"Adiocionado Ladrao\" + newMember.getName());\r\n }", "void useInBattle(PlayerCharacter player, Opponent enemy) {\n\t}", "public void addPlayer(String nickname, TBGPProtocolCallback callback) {\n\t\tbroadcast(nickname + \" joined the room\", TBGPCommand.SYSMSG);\n\t\tplayers.put(callback, nickname);\n\t}", "void givePlayerExp(BPlayer bPlayer, int exp);", "public void addPlayer(int place, Player p) {\r\n\t\tif (!players.containsKey(place))\r\n\t\t\tplayers.put(place, p);\r\n\t}", "public void townAdd(Player player, String[] names, boolean matchOnline) {\n\t\tResident resident;\n\t\tTown town;\n\t\ttry {\n\t\t\tresident = plugin.getTownyUniverse().getResident(player.getName());\n\t\t\ttown = resident.getTown();\n\t\t\tif (!resident.isMayor())\n\t\t\t\tif (!town.hasAssistant(resident))\n\t\t\t\t\tthrow new TownyException(\"You are not the mayor or an assistant.\");\n\t\t} catch (TownyException x) {\n\t\t\tplugin.sendErrorMsg(player, x.getError());\n\t\t\treturn;\n\t\t}\n\n\t\ttownAddResidents(player, town, (matchOnline ? plugin.getTownyUniverse().getOnlineResidents(player, names) : getResidents(player, names)));\n\t\t\n\t\tplugin.updateCache();\n\t}", "public void enter(FieldPlayer player){\n player.getTeam().setReceiver(player);\n \n //this player is also now the controlling player\n player.getTeam().setControllingPlayer(player);\n\n //there are two types of receive behavior. One uses arrive to direct\n //the receiver to the position sent by the passer in its telegram. The\n //other uses the pursuit behavior to pursue the ball. \n //This statement selects between them dependent on the probability\n //ChanceOfUsingArriveTypeReceiveBehavior, whether or not an opposing\n //player is close to the receiving player, and whether or not the receiving\n //player is in the opponents 'hot region' (the third of the pitch closest\n //to the opponent's goal\n double PassThreatRadius = 70.0;\n\n if (( player.isInHotRegion() ||\n RandFloat() < Params.Instance().ChanceOfUsingArriveTypeReceiveBehavior) &&\n !player.getTeam().isOpponentWithinRadius(player.getPos(), PassThreatRadius)){\n player.getSteering().arriveOn();\n }\n else{\n player.getSteering().pursuitOn();\n }\n \n //FIXME: Change animation\n// player.info.setAnim(\"Run\");\n// player.info.setDebugText(\"ReceiveBall\");\n }", "public void welcomePlayer(Player p);", "@Callable\n public static void register(Address player) {\n Blockchain.require(Blockchain.getCaller().equals(owner));\n Blockchain.require(!isPlayerRegistered(player));\n requireNoValue();\n\n playerScores.put(player, 0);\n\n BettingEvents.registered(player);\n }", "public int addPlayer(PlayerListener player) {\n\t\tfinal int playerID = this.players.size();\n\n\t\tthis.players.add(new Player(\"Player \" + playerID,\n\t\t\t\tgenerateRandomStartLocation(), player));\n\n\t\tif (this.players.size() == 1) {\n\t\t\tstartNewGame();\n\t\t}\n\n\t\treturn playerID;\n\t}", "@Override\n public void addTeamIdentifier(TeamIdentifier teamIdentifier) {\n }", "default boolean addPlayer(Player player) {\n return addPlayer(Objects.requireNonNull(player, \"player\").getName());\n }", "public void addTeam(final TeamController team) {\r\n\t\tteamList.add(team);\r\n\t}", "public static void playerRelease() {\n\t\tPlayer.release();\n\t}" ]
[ "0.66642284", "0.6649115", "0.65903527", "0.6516365", "0.6433667", "0.6424812", "0.6401259", "0.6393299", "0.6333211", "0.63322127", "0.63108635", "0.6308096", "0.62872064", "0.628306", "0.62703", "0.6268276", "0.62651044", "0.6211004", "0.61498505", "0.6116625", "0.60838836", "0.6078483", "0.6069221", "0.60393953", "0.6031023", "0.602595", "0.602219", "0.60073584", "0.60041445", "0.59968305", "0.59659874", "0.5952068", "0.5936085", "0.5935323", "0.59193206", "0.59160596", "0.590845", "0.5901852", "0.589254", "0.589203", "0.58840376", "0.585995", "0.584978", "0.58238477", "0.5818693", "0.58052194", "0.58028924", "0.5800648", "0.57887554", "0.57819504", "0.5771009", "0.5764086", "0.5759856", "0.57567954", "0.57445645", "0.57296646", "0.5723715", "0.57165116", "0.5714147", "0.569039", "0.5669789", "0.5662956", "0.56426185", "0.56377375", "0.5612735", "0.5590163", "0.5587069", "0.558195", "0.55819225", "0.55789256", "0.55648786", "0.5561143", "0.5556321", "0.55509305", "0.5539756", "0.55302143", "0.5529856", "0.55088574", "0.5507092", "0.5495488", "0.5495359", "0.54937565", "0.5480599", "0.5475284", "0.5472784", "0.5470235", "0.5446954", "0.5440562", "0.5425814", "0.54156417", "0.54110986", "0.5406749", "0.53873736", "0.5379059", "0.53748274", "0.5360648", "0.53585196", "0.5354591", "0.53454405", "0.53422797" ]
0.65358585
3
Send a message to another team offering to trade players.
public static void proposeTrade(League theLeague, Team theTeam, Scanner keyboard) { System.out.println(""); System.out.println("---Propose Trade---"); for (int x = 0; x < theLeague.getNumTeams(); x++) { if (!theLeague.getTeam(x).equals(theTeam)) { System.out.println(""); System.out.println("Team number: " + (x + 1)); theLeague.getTeam(x).teamManNameToString(); } } System.out.println(""); System.out.println("Select a team to view:"); int otherTeamChoice; do { otherTeamChoice = Input.validInt(1, theLeague.getNumTeams(), keyboard) - 1; } while (otherTeamChoice == theLeague.getTeamList().indexOf(theTeam)); Team otherTeam = theLeague.getTeam(otherTeamChoice); System.out.println(""); System.out.println("---Propose Trade---"); System.out.println(""); otherTeam.teamToString(); System.out.println(""); System.out.println("Would you like to propose a trade to this team?"); System.out.println("1 - Yes"); System.out.println("2 - No, Return to Team Menu"); if (Input.validInt(1, 2, keyboard) == 1) { System.out.println(""); System.out.println("Enter your trade offer (max 64 characters):"); System.out.println("0 - Return to Team Menu"); String proposal = Input.validString(32, keyboard); if (proposal.equals("0")) { return; } otherTeam.setProposedTrade(theTeam.getManagerName() + ": " + proposal); System.out.println(""); System.out.println("***You have proposed a trade:***"); System.out.println("To " + otherTeam.getManagerName() + ": " + proposal); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendJoiningPlayer() {\r\n Player p = nui.getPlayerOne();\r\n XferJoinPlayer xfer = new XferJoinPlayer(p);\r\n nui.notifyJoinConnected();\r\n networkPlayer.sendOutput(xfer);\r\n }", "public synchronized void sendPrivateMessageToPlayer(Player player, String message) {\n SlackUser user;\n if (isTestingMode) {\n user = session.findUserByUserName(testingModeUserName);\n } else {\n user = session.findUserByUserName(player.getUserName());\n }\n SlackMessageHandle<SlackChannelReply> openDirectHandle = session.openDirectMessageChannel(user);\n SlackChannel directChannel = openDirectHandle.getReply().getSlackChannel();\n session.sendMessage(directChannel, message, null);\n }", "private void sendMessagetoRespectivePlayer(int num) {\n Message msg1;\n if(flag == \"player1\"){\n prevP1 = num;\n int newPositionGroup = num / 10;\n if(winningHoleGroup == newPositionGroup){\n msg1 = p1Handler.obtainMessage(3);\n }\n else if((winningHoleGroup == newPositionGroup-1) || (winningHoleGroup == newPositionGroup+1)){\n msg1 = p1Handler.obtainMessage(4);\n }\n else{\n msg1 = p1Handler.obtainMessage(5);\n }\n p1Handler.sendMessage(msg1);\n }\n else{\n prevP2 = num;\n int newPositionGroup = num / 10;\n if(winningHoleGroup == newPositionGroup){\n msg1 = p2Handler.obtainMessage(3);\n }\n else if((winningHoleGroup == newPositionGroup-1) || (winningHoleGroup == newPositionGroup+1)){\n msg1 = p2Handler.obtainMessage(4);\n }\n else{\n msg1 = p2Handler.obtainMessage(5);\n }\n p2Handler.sendMessage(msg1);\n }\n }", "@Override\r\n\tpublic void sendTradeOffer(TradeOffer offer) {\n\t\t\r\n\t}", "@Override\n public void sendChatMessage(EntityPlayer player) {\n }", "public void sendToCurrClient ( String message ){\n currClient.send( message );\n ServerConnection[] clients = new ServerConnection[]{client1, client2, client3};\n for(ServerConnection c: clients){\n if(c != currClient && c != null )\n if ( !message.contains(\"You won\") )\n c.send(\"Wait for \" + currClient.getName() + \" to end his turn\" );\n else c.send(\"You lost the match. \" + currClient.getName() + \" won the game.\");\n }\n }", "public void sendTo(P2PUser dest, Object msg) throws IOException;", "public static String requestTransfer(Player player, Team playersTeam, double bid, Library library, TransferList existingTransfers) {\n\t\tif (playersTeam.isMax()) {\n\t\t\treturn \"You already have 30 players in your team, this is the maximum. Sell some players before trying to buy any new!\";\n\t\t} else {\n\t\tif (existingTransfers.getTransfer(player)==null) {\n\t\t\tboolean answer = TransferLogic.getAnswer(player, bid, library, existingTransfers);\n\t\t\tif (answer) {\n\t\t\t\tTeam opponentsTeam = library.getTeamForName(player.getTeam());\n\t\t\t\topponentsTeam.deleteIfInCurrentTeam(player);\n//\t\t\t\tif (opponentsTeam.getPositions().contains(player)) {\n//\t\t\t\t\t\n//\t\t\t\t\tboolean itsdone=false;\n//\t\t\t\t\tfor (int i=0;i<opponentsTeam.getTeam().size();i++) {\n//\t\t\t\t\t\tif (!itsdone) {\n//\t\t\t\t\t\t\tPlayer p = opponentsTeam.getTeam().get(i);\n//\t\t\t\t\t\t\tif (p.getPlayerType().equals(player.getPlayerType()) && !(opponentsTeam.getPositions().contains(p))) {\n//\t\t\t\t\t\t\t\topponentsTeam.replacePlayerInCurrentTeam(player, p);\n//\t\t\t\t\t\t\t\titsdone=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\tif (!itsdone) {\n//\t\t\t\t\t\tfor (int i=0;i<opponentsTeam.getTeam().size();i++) {\n//\t\t\t\t\t\t\tif (!itsdone) {\n//\t\t\t\t\t\t\t\tPlayer p = opponentsTeam.getTeam().get(i);\n//\t\t\t\t\t\t\t\tif (((p instanceof FieldPlayer && player instanceof FieldPlayer) || (p instanceof Goalkeeper && player instanceof Goalkeeper)) && !(opponentsTeam.getPositions().contains(p))) {\n//\t\t\t\t\t\t\t\t\topponentsTeam.replacePlayerInCurrentTeam(player, p);\n//\t\t\t\t\t\t\t\t\titsdone=true;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t\t\n//\t\t\t\t\t\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\tplayersTeam.add(player);\n\t\t\t\topponentsTeam.getTeam().remove(player);\n\t\t\t\tplayer.setTeam(playersTeam.getTeamName());\n\t\t\t\tplayersTeam.setBudget(playersTeam.getBudget()-bid);\n\t\t\t\topponentsTeam.setBudget(opponentsTeam.getBudget()+bid);\n\t\t\t\tBigDecimal bbid = new BigDecimal(bid);\n\t\t\t\t\n\t\t\t\t//price string\n\t\t\t\t\n\t\t\t\tDecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US);\n\t\t\t\tbbid = bbid.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tDecimalFormat df = new DecimalFormat();\n\t\t\t\tdf.setGroupingUsed(false);\t\t\n\t\t\t\tString priceString = formatter.format(bbid.longValue());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn \"Congratulations! Your bid of \" + priceString + \" got accepted and \" + player.getName() + \" is now part of your team\";\n\t\t\t} else {\n\t\t\t\tdouble percentage = bid/player.getPrice().doubleValue()*100-100;\n\t\t\t\tdouble returnedprice=0;\n\t\t\t\tdouble price = player.getPrice().doubleValue();\n\t\t\t\tif (percentage<-10) {\n\t\t\t\t\treturnedprice=0.9*price;\n\t\t\t\t} if (percentage>=-10 && percentage<0) {\n\t\t\t\t\treturnedprice=price;\n\t\t\t\t} if (percentage>=0 && percentage<5) {\n\t\t\t\t\treturnedprice=1.05*price;\n\t\t\t\t} if (percentage>=5 && percentage<10) {\n\t\t\t\t\treturnedprice=1.1*price;\n\t\t\t\t} if (percentage>=10 && percentage<15) {\n\t\t\t\t\treturnedprice=1.15*price;\n\t\t\t\t} if (percentage>=15 && percentage<20) {\n\t\t\t\t\treturnedprice=1.2*price;\n\t\t\t\t} if (percentage>=20 && percentage<25) {\n\t\t\t\t\treturnedprice=1.25*price;\n\t\t\t\t} if (percentage>=25 && percentage<30) {\n\t\t\t\t\treturnedprice=1.3*price;\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tTransferInProgress tp = new TransferInProgress(player, returnedprice, bid);\n\t\t\t\texistingTransfers.addTransfer(tp);\n\t\t\t\tBigDecimal bbid = new BigDecimal(bid);\n\t\t\t\tBigDecimal breturnedprice = new BigDecimal(returnedprice);\n\t\t\t\t//price string\n\t\t\t\t\n\t\t\t\tDecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US);\n\t\t\t\tbbid = bbid.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tbreturnedprice = breturnedprice.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tDecimalFormat df = new DecimalFormat();\n\t\t\t\tdf.setGroupingUsed(false);\t\t\n\t\t\t\tString priceString = formatter.format(bbid.longValue());\n\t\t\t\tString priceString2 = formatter.format(breturnedprice.longValue());\n\t\t\t\treturn player.getTeam() + \" did not accept your offer of \" + priceString + \" for \" + player.getName() + \". They have indicated they want at least \" + priceString2 + \" for this player\";\n\t\t\t\t\n\t\t\t}\n\t\t} else {\n\t\t\tTransferInProgress tp = existingTransfers.getTransfer(player);\n\t\t\tboolean answer = TransferLogic.getAnswerForExistingTransfer(player, bid, library, existingTransfers, tp.getPriceReturned());\n\t\t\tif (answer) {\n\t\t\t\tTeam opponentsTeam = library.getTeamForName(player.getTeam());\n\t\t\t\topponentsTeam.deleteIfInCurrentTeam(player);\n//\t\t\t\tif (opponentsTeam.getPositions().contains(player)) {\n//\t\t\t\t\tboolean itsdone=false;\n//\t\t\t\t\tfor (int i=0;i<opponentsTeam.getTeam().size();i++) {\n//\t\t\t\t\t\tif (!itsdone) {\n//\t\t\t\t\t\t\tPlayer p = opponentsTeam.getTeam().get(i);\n//\t\t\t\t\t\t\tif (p.getPlayerType().equals(player.getPlayerType()) && !(opponentsTeam.getPositions().contains(p))) {\n//\t\t\t\t\t\t\t\topponentsTeam.replacePlayerInCurrentTeam(player, p);\n//\t\t\t\t\t\t\t\titsdone=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\tif (!itsdone) {\n//\t\t\t\t\t\tfor (int i=0;i<opponentsTeam.getTeam().size();i++) {\n//\t\t\t\t\t\t\tif (!itsdone) {\n//\t\t\t\t\t\t\t\tPlayer p = opponentsTeam.getTeam().get(i);\n//\t\t\t\t\t\t\t\tif (((p instanceof FieldPlayer && player instanceof FieldPlayer) || (p instanceof Goalkeeper && player instanceof Goalkeeper)) && !(opponentsTeam.getPositions().contains(p))) {\n//\t\t\t\t\t\t\t\t\topponentsTeam.replacePlayerInCurrentTeam(player, p);\n//\t\t\t\t\t\t\t\t\titsdone=true;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t\t\n//\t\t\t\t\t\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\tplayersTeam.add(player);\n\t\t\t\topponentsTeam.getTeam().remove(player);\n\t\t\t\tplayer.setTeam(playersTeam.getTeamName());\n\t\t\t\texistingTransfers.getTransfers().remove(tp);\n\t\t\t\tplayersTeam.setBudget(playersTeam.getBudget()-bid);\n\t\t\t\topponentsTeam.setBudget(opponentsTeam.getBudget()+bid);\n\t\t\t\tBigDecimal bbid = new BigDecimal(bid);\n\t\t\t\t//price string\n\t\t\t\t\n\t\t\t\tDecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US);\n\t\t\t\tbbid = bbid.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tDecimalFormat df = new DecimalFormat();\n\t\t\t\tdf.setGroupingUsed(false);\t\t\n\t\t\t\tString priceString = formatter.format(bbid.longValue());\n\t\t\t\treturn \"Congratulations! Your bid of \" + priceString + \" got accepted and \" + player.getName() + \" is now part of your team\";\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tdouble pricereturned = existingTransfers.getTransfer(player).getPriceReturned();\n\t\t\t\t\n\t\t\t\tif (bid>pricereturned) {\n\t\t\t\t\tdouble percentage = bid/player.getPrice().doubleValue()*100-100;\n\t\t\t\t\tdouble returnedprice=0;\n\t\t\t\t\tdouble price = player.getPrice().doubleValue();\n\t\t\t\t\tif (percentage<-10) {\n\t\t\t\t\t\treturnedprice=0.9*price;\n\t\t\t\t\t} if (percentage>=-10 && percentage<0) {\n\t\t\t\t\t\treturnedprice=price;\n\t\t\t\t\t} if (percentage>=0 && percentage<5) {\n\t\t\t\t\t\treturnedprice=1.05*price;\n\t\t\t\t\t} if (percentage>=5 && percentage<10) {\n\t\t\t\t\t\treturnedprice=1.1*price;\n\t\t\t\t\t} if (percentage>=10 && percentage<15) {\n\t\t\t\t\t\treturnedprice=1.15*price;\n\t\t\t\t\t} if (percentage>=15 && percentage<20) {\n\t\t\t\t\t\treturnedprice=1.2*price;\n\t\t\t\t\t} if (percentage>=20 && percentage<25) {\n\t\t\t\t\t\treturnedprice=1.25*price;\n\t\t\t\t\t} if (percentage>=25 && percentage<30) {\n\t\t\t\t\t\treturnedprice=1.3*price;\n\t\t\t\t\t}\n\t\t\t\t\texistingTransfers.getTransfer(player).setPriceReturned(returnedprice);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\texistingTransfers.getTransfer(player).setBid(bid);\n\t\t\t\tBigDecimal bbid = new BigDecimal (bid);\n\t\t\t\tBigDecimal bpriceReturned = new BigDecimal(existingTransfers.getTransfer(player).getPriceReturned());\n\t\t\t\t//price string\n\t\t\t\t\n\t\t\t\tDecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US);\n\t\t\t\tbbid = bbid.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tbpriceReturned = bpriceReturned.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tDecimalFormat df = new DecimalFormat();\n\t\t\t\tdf.setGroupingUsed(false);\t\t\n\t\t\t\tString priceString = formatter.format(bbid.longValue());\n\t\t\t\tString priceString2 = formatter.format(bpriceReturned.longValue());\n\t\t\t\treturn player.getTeam() + \" did not accept your offer of \" + priceString + \" for \" + player.getName() + \". They have indicated they want at least \" + priceString2 + \" for this player\";\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}}", "public abstract void sendConfirmationMessage(Player player);", "@Benchmark\n @BenchmarkMode(Mode.Throughput)\n public void send()\n {\n _sender1.send(_account);\n }", "boolean send(String message, PlayerID from, PlayerID to) {\n\t\tfor (Player player : players) {\n\t\t\tif (player.id().equals(to)) {\n\t\t\t\tplayer.sendMsg(\"P\" + from.toString() + \": \" + message);\n\t\t\t\tlog.add(new String[] { from.toString(), message, String.valueOf(System.currentTimeMillis()) });\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void sendFakeTeam(Player player) {\n\t\tPacketContainer packet = new PacketContainer(PacketType.Play.Server.SCOREBOARD_TEAM);\n\t\tpacket.getStrings().write(0, FakeTeamName);\n\t\tpacket.getIntegers().write(1, 0); // Set create mode\n\t\tpacket.getStrings().write(5, \"never\"); // Push type\n\t\t\n\t\tCollection<String> names = packet.getSpecificModifier(Collection.class).read(0);\n\t\tnames.add(player.getName());\n\t\t\n\t\ttry {\n\t\t\tProtocolLibrary.getProtocolManager().sendServerPacket(player, packet);\n\t\t} catch (InvocationTargetException e) {\n\t\t\t// Should never happen unless packet changes\n\t\t\tthrow new AssertionError(e);\n\t\t}\n\t}", "public void sendGameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDGM\" + lobby.getGameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t\t\r\n\t \t}\r\n\t\t}\r\n\t}", "public void sendTeleport(final Player player) {\r\n player.lock();\r\n World.submit(new Pulse(1) {\r\n\r\n int delay = 0;\r\n\r\n @Override\r\n public boolean pulse() {\r\n if (delay == 0) {\r\n player.getActionSender().sendMessage(\"You've been spotted by an elemental and teleported out of its garden.\");\r\n player.graphics(new Graphics(110, 100));\r\n player.getInterfaceState().openComponent(8677);\r\n PacketRepository.send(MinimapState.class, new MinimapStateContext(player, 2));\r\n face(player);\r\n } else if (delay == 6) {\r\n player.getProperties().setTeleportLocation(Location.create(getRespawnLocation()));\r\n PacketRepository.send(MinimapState.class, new MinimapStateContext(player, 0));\r\n player.getInterfaceState().close();\r\n face(null);\r\n player.unlock();\r\n return true;\r\n }\r\n delay++;\r\n return false;\r\n }\r\n });\r\n }", "private void sendMessage(CommandSender p, String msg) {\n\t\tif (p instanceof Player) {\n\t\t\tif (!((Player) p).isOnline()) return;\n\t\t}\n\t\t_.msg(p, GameMode.Sonic, msg);\n\t}", "public void sendPlayer(Player p) {\n\t\tp.sendMessage(ChatColor.GREEN + \"Welcome to the \" + ChatColor.GOLD + \"Tregmine Network\" + ChatColor.GREEN + \" Lobby!\");\n\t\tByteArrayDataOutput out = ByteStreams.newDataOutput();\n\t\tout.writeUTF(\"Connect\");\n\t\tout.writeUTF(\"Hub\");\n\t\tp.sendPluginMessage(this, \"BungeeCord\", out.toByteArray());\n\t}", "public void sendMessage() {\n\t\tString myPosition=this.agent.getCurrentPosition();\n\t\tif (myPosition!=null){\n\t\t\t\n\t\t\tList<String> wumpusPos = ((CustomAgent)this.myAgent).getStenchs();\n\t\t\t\n\t\t\tif(!wumpusPos.isEmpty()) {\n\t\t\t\tList<String> agents =this.agent.getYellowpage().getOtherAgents(this.agent);\n\t\t\t\t\n\t\t\t\tACLMessage msg=new ACLMessage(ACLMessage.INFORM);\n\t\t\t\tmsg.setSender(this.myAgent.getAID());\n\t\t\t\tmsg.setProtocol(\"WumpusPos\");\n\t\t\t\tmsg.setContent(wumpusPos.get(0)+\",\"+myPosition);\n\t\t\t\t\n\t\t\t\tfor(String a:agents) {\n\t\t\t\t\tif(this.agent.getConversationID(a)>=0) {\n\t\t\t\t\t\tif(a!=null) msg.addReceiver(new AID(a,AID.ISLOCALNAME));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.agent.sendMessage(msg);\n\t\t\t\tthis.lastPos=myPosition;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "public interface ITicketSpotBiz {\n //send ticket\n public void sendTicket(Player player);\n}", "public void send_message(){\n logical_clock++;\n System.out.println(\"Send Message Clock:\" +logical_clock);\n encrypt(logical_clock);\n\n }", "public void doSendMsg() {\n FacesContext fctx = FacesContext.getCurrentInstance();\n HttpSession sess = (HttpSession) fctx.getExternalContext().getSession(false);\n SEHRMessagingListener chatHdl = (SEHRMessagingListener) sess.getAttribute(\"ChatHandler\");\n if (chatHdl.isSession()) {\n //TODO implement chat via sehr.xnet.DOMAIN.chat to all...\n if (room.equalsIgnoreCase(\"public\")) {\n //send public inside zone\n chatHdl.sendMsg(this.text, SEHRMessagingListener.PUBLIC, moduleCtrl.getLocalZoneID(), -1, -1);\n } else {\n chatHdl.sendMsg(this.text, SEHRMessagingListener.PRIVATE_USER, moduleCtrl.getLocalZoneID(), -1, curUserToChat.getUsrid());\n }\n this.text = \"\";\n }\n //return \"pm:vwChatRoom\";\n }", "public void sendWinner(Winner winner) {\n try {\n getGlueObject().handleSend(new Envelope()\n .setMessageType(MessageType.FINISH_RACE)\n .setWinner(winner)\n );\n } catch (NoSuchActionException | ActionFailedException e) {\n AlertMessage.alertMsg(null, e.getMessage(), AlertType.ERROR);\n }\n }", "public synchronized void sendPublicMessageToPlayer(Player recipient, String message) {\n session.sendMessage(gameChannel, recipient.getUserName() + \", \" + message,null);\n }", "public void sendNameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDNM\" + lobby.getNameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t\t\r\n\t \t}\r\n\t\t}\r\n\t}", "private void othersturn(String otherplayermsg, int commandlength) {\n boolean burn = false;\n // decode variable that came with message\n int varlength = 0;\n for (int n = commandlength + 1; n < otherplayermsg.length(); n++) {\n char extract = otherplayermsg.charAt(n);\n if (extract == (':')) {\n varlength = n;\n break;\n }\n }\n String name = otherplayermsg.substring(commandlength + 1, varlength);\n int varlength2 = 0;\n for (int n = varlength + 1; n < otherplayermsg.length(); n++) {\n char extract = otherplayermsg.charAt(n);\n if (extract == (':')) {\n varlength2 = n;\n break;\n }\n }\n String cardno = otherplayermsg.substring(varlength + 1, varlength2);\n\n // determining which player just had a turn\n int playernumber = 0;\n for (int n = 0; n < 3; n++)\n if (name.equals(otherNames[n])) {\n playernumber = n;\n break;\n }\n\n if (cardno.equals(\"pickup\")) { // other players picks up pile\n cardcount[playernumber] = cardcount[playernumber] + pile.size();\n pile.clear();\n sh.addMsg(otherNames[playernumber] + \" picked up the pile\");\n } else if (cardno.equals(\"burn\")) { // other player burns the pile\n burnPile();\n burn = true;\n // removing cards from pile\n sh.addMsg(name + \" burnt the pile.\");\n if (deck == 0 || cardcount[playernumber] > 3) {\n if (cardcount[playernumber] > 0) cardcount[playernumber]--;\n } else deck--;\n } else if (cardno.equals(\"faceup\")) { // otherplayer plays a faceup card\n int varlength3 = 0;\n for (int n = varlength2 + 1; n < otherplayermsg.length(); n++) {\n char extract = otherplayermsg.charAt(n);\n if (extract == (':')) {\n varlength3 = n;\n break;\n }\n }\n String cardno2 = otherplayermsg.substring(varlength2 + 1, varlength3);\n if (cardno2.equals(\"multi\")) {\n burn = faceupmulti(otherplayermsg, varlength3, playernumber);\n } else {\n try {\n Card card = new Card(Integer.parseInt(cardno2));\n // adding card to pile\n pile.add(card);\n // burning pile if a 10 is played\n if (pile.topValue() == 10 || pile.isFourOfAKind()) {\n burnPile();\n burn = true;\n // removing cards from pile\n sh.addMsg(name + \" burnt the pile.\");\n }\n // removing card from table\n for (int n = 0; n < 3; n++)\n if (faceup[playernumber][n] != null)\n if (faceup[playernumber][n].getNumber() == card.getNumber()) {\n faceup[playernumber][n] = null;\n break;\n }\n } catch (NumberFormatException b) {\n sh.addMsg(\"Otherplayer - variable to Int error: \" + b);\n }\n }\n } else if (cardno.equals(\"facedown\")) { // if player plays one of there face down cards\n int varlength3 = 0;\n for (int n = varlength2 + 1; n < otherplayermsg.length(); n++) {\n char extract = otherplayermsg.charAt(n);\n if (extract == (':')) {\n varlength3 = n;\n break;\n }\n }\n String cardno2 = otherplayermsg.substring(varlength2 + 1, varlength3);\n if (cardno2.equals(\"pickup\")) {\n for (int n = varlength3 + 1; n < otherplayermsg.length(); n++) {\n char extract = otherplayermsg.charAt(n);\n if (extract == (':')) {\n varlength2 = n;\n break;\n }\n }\n String cardplayed = otherplayermsg.substring(varlength3 + 1, varlength2);\n int numPlayed = 0;\n try {\n numPlayed = Integer.parseInt(cardplayed);\n } catch (NumberFormatException b) {\n sh.addMsg(\"processTurn - facedown pickup - variable to Int error: \" + b);\n }\n cardcount[playernumber] = cardcount[playernumber] + pile.size() + 1;\n pile.clear();\n sh.addMsg(\n otherNames[playernumber]\n + \" played a \"\n + Card.getCardStringValue(numPlayed)\n + \" and had to picked up the pile\");\n } else {\n try {\n Card card = new Card(Integer.parseInt(cardno2));\n pile.add(card);\n // burning pile if a 10 is played\n if (pile.topValue() == 10 || pile.isFourOfAKind()) {\n burnPile();\n burn = true;\n // removing cards from pile\n sh.addMsg(name + \" burnt the pile.\");\n }\n } catch (NumberFormatException b) {\n sh.addMsg(\"Otherplayer - variable to Int error: \" + b);\n }\n }\n carddowncount[playernumber]--;\n } else if (cardno.equals(\"multi\")) { // if more than 1 card is played at a time\n // determining how many card where played\n int varlength3 = 0;\n for (int n = varlength2 + 1; n < otherplayermsg.length(); n++) {\n char extract = otherplayermsg.charAt(n);\n if (extract == (':')) {\n varlength3 = n;\n break;\n }\n }\n String numPlayedString = otherplayermsg.substring(varlength2 + 1, varlength3);\n // converting string to int for processing\n int numPlayed = 0;\n try {\n numPlayed = Integer.parseInt(numPlayedString);\n } catch (NumberFormatException b) {\n sh.addMsg(\"processTurn - multi - variable to Int error: \" + b);\n }\n for (int n = 0; n < numPlayed; n++) {\n varlength2 = varlength3;\n // determining how many card where played\n varlength3 = 0;\n for (int i = varlength2 + 1; i < otherplayermsg.length(); i++) {\n char extract = otherplayermsg.charAt(i);\n if (extract == (':')) {\n varlength3 = i;\n break;\n }\n }\n String cardnoString = otherplayermsg.substring(varlength2 + 1, varlength3);\n // converting string to int for processing\n try {\n Card card = new Card(Integer.parseInt(cardnoString));\n pile.add(card);\n } catch (NumberFormatException b) {\n sh.addMsg(\"processTurn - multi - variable to Int error: \" + b);\n }\n\n if (deck == 0 || cardcount[playernumber] > 3) {\n if (cardcount[playernumber] > 0) cardcount[playernumber]--;\n } else deck--;\n }\n\n // burning pile if a 10 is played or 4 of a kind\n if (pile.topValue() == 10 || pile.isFourOfAKind()) {\n burnPile();\n burn = true;\n // removing cards from pile\n sh.addMsg(name + \" burnt the pile.\");\n }\n\n } else {\n // adding card to pile\n try {\n Card card = new Card(Integer.parseInt(cardno));\n pile.add(card);\n // burning pile if a 10 is played\n if (pile.topValue() == 10 || pile.isFourOfAKind()) {\n burn = true;\n burnPile();\n // removing cards from pile\n sh.addMsg(name + \" burnt the pile.\");\n }\n } catch (NumberFormatException b) {\n sh.addMsg(\"Otherplayer else - variable to Int error: \" + b);\n }\n if (deck == 0 || cardcount[playernumber] > 3) {\n if (cardcount[playernumber] > 0) cardcount[playernumber]--;\n } else deck--;\n }\n if (!burn) nextTurn();\n displayTable();\n }", "@Override\n public void opponentSurrender(int id) {\n try {\n if (getClientInterface() != null)\n getClientInterface().notifyOpponentSurrender(id);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending opponent surrender error\");\n }\n }", "public void sendRequest() {\r\n\t\t\r\n\t\tclient.join(this, isHost, gameCode, playerName, playerNumber);\r\n\t\t\r\n\t}", "public void requestChat(String otherUsername) {\n System.out.println(\"Requesting chat with \" + otherUsername);\n toServer.println(\"newchat\" + \" \" + username + \" \" + otherUsername);\n toServer.flush();\n }", "public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}", "@Override\n public void sendOrder(List<AbstractPlayer> playersOrderList) {\n List<Integer> orderList = new ArrayList<>();\n for (AbstractPlayer player : playersOrderList) {\n orderList.add(player.getIdPlayer());\n }\n try {\n if (getClientInterface() != null)\n getClientInterface().notifyTurnOrder(orderList);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending order error\");\n }\n }", "void sendTransaction(IUserAccount target, ITransaction trans, IUserAccount user);", "public static void sendTo(Player player, OwnedWarp warp) {\n if(warp == null)\n return;\n try {\n Points.teleportTo(player, warp.getTarget(), warp.getName());\n } catch (InvalidDestinationException ex) {\n player.sendMessage(ex.getMessage());\n Stdout.println(ex.getMessage(), Level.ERROR);\n }\n }", "private void sendWinnerMessage(RaceTrackMessage playerDisconnectsMessage) {\n\t\tif(playerDisconnectsMessage != null)\n\t\t\ttry{\n\n\t\t\t\tint playerWhoWon = getPlayerWhoWonByPlayerID(((DisconnectMessage) playerDisconnectsMessage).getNextPlayerToMove()); \n\t\t\t\tint playerWhoWonID = getPlayerIDWhoWonByPlayerID(((DisconnectMessage) playerDisconnectsMessage).getNextPlayerToMove());\n\t\t\t\tif(playerWhoWon != -1){\n\t\t\t\t\tPoint2D lastVec = null;\n\t\t\t\t\tif(getPlayerMap().get(playerWhoWonID) != null)\n\t\t\t\t\t\tlastVec = getPlayerMap().get(playerWhoWonID).getCurrentPosition();\n\n\n\t\t\t\t\tPlayerWonMessage answer;\n\n\t\t\t\t\tanswer = VectorMessageServerHandler.generatePlayerWonMessage(playerWhoWon, playerWhoWon, lastVec);\n\n\t\t\t\t\tcloseGameByPlayerID(playerWhoWon);\n\n\t\t\t\t\tanswer.addClientID(playerWhoWonID);\n\n\t\t\t\t\tsendMessage(answer);\n\t\t\t\t\t\n\t\t\t\t\t//inform the AIs that game is over!!\n\n\t\t\t\t}\n\t\t\t}catch(ClassCastException e){\n\n\t\t\t}\n\t}", "public void sendMessage(String msg) {\n Player player = RegionOwn.server.getPlayer(name);\n if (player != null) {\n player.sendMessage(msg);\n } else if (RegionOwn.pm.isPluginEnabled(\"TextPlayer\")) {\n User user = TextPlayer.findUser(name);\n user.sendText(\"Region Security System\", msg);\n }\n }", "void sendPacketToPlayer(Player player, Object packet);", "public void messageToAll(String s) {\n\t\tfor(ClientThread player: players) {\n\t\t\tplayer.send(new Package(\"MESSAGE\",s));\n\t\t}\n\t\t\n\t}", "private void sendBucks() {\n\t\tint userid = userID;\n\n\t\tfor (int i = 0; i < userServices.getAllUsers().length; i++) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"User: \" + userList.get(i).getId() + \"\\t\" + \"username: \" + userList.get(i).getUsername() + \"\\n\");\n\t\t}\n\n\t\tSystem.out.println(\"Select and ID you want to send TE Bucks to: \\n\");\n\n\t\tint sendTo = Integer.parseInt(scan.nextLine());\n\n\t\tSystem.out.println(\"How much money?\");\n\t\tBigDecimal money = (new BigDecimal(scan.nextLine()));\n\n\t\ttry {\n\t\t\tif (accountServices.getBalanceByAccountID(userid).compareTo(money) < 0) {\n\t\t\t\tSystem.out.println(\"You do not have enough funds to make transfer\");\n\t\t\t\tsendBucks();\n\n\t\t\t}\n\t\t} catch (AccountsServicesException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\tTransfers holder = sendTransfer(userid, sendTo, money);\n\t\taccountServices.sendMoney(userid, holder);\n\n\t\ttry {\n\t\t\tSystem.out.println(\"$\" + money + \" sent to \" + sendTo);\n\t\t\tSystem.out.println(\"New balance: $\" + accountServices.getBalanceByAccountID(userid));\n\t\t} catch (AccountsServicesException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void sendPlayerToServer(Player player, String serverName) {\n\t\tByteArrayOutputStream b = new ByteArrayOutputStream();\n\t\tDataOutputStream out = new DataOutputStream(b);\n\t\ttry {\n\t\t\tout.writeUTF(\"Connect\");\n\t\t\tout.writeUTF(serverName);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"No connection to server.\");\n\t\t}\n\t\tplayer.sendPluginMessage(plugin, \"BungeeCord\", b.toByteArray());\n\t}", "public void sendMessageToPlayer(JSONObject msg, Player receiver)\n {\n if (mEnable && msg != null && receiver != null) {\n Log.d(LOGTAG,\"Sending message to receiver at pos \" + receiver.getPosition());\n\n // TODO: Check if device ok?\n BluetoothDevice recDevice = receiver.getBDevice();\n mBS.send(recDevice, MessageFactory.msgToBytes(msg));\n\n } else Log.d(LOGTAG,\"There is a problem sending a message to a receiver\");\n }", "public void send(Message msg);", "public static void privateMessage(Player fromPlayer, Player toPlayer, String[] message) {\n PlayerDataObject fromPDO = PlayerManager.getPlayerDataObject(fromPlayer);\n PlayerDataObject toPDO = PlayerManager.getPlayerDataObject(toPlayer);\n //target.sendMessage(ChatColor.DARK_GRAY + \"[\" + player.getFriendlyName() + ChatColor.DARK_GRAY + \" > you]: \" + ChatColor.WHITE + String.join(\" \", Arrays.copyOfRange(arg3, 1, arg3.length)).trim());\n //player.sendMessage(ChatColor.DARK_GRAY + \"[You > \" + target.getDisplayName() + ChatColor.DARK_GRAY + \"]: \" + ChatColor.WHITE + String.join(\" \", Arrays.copyOfRange(arg3, 1, arg3.length)).trim());\n ComponentBuilder toComp = new ComponentBuilder(ChatColor.DARK_GRAY + \"[\" + fromPDO.getFriendlyName() + ChatColor.DARK_GRAY + \" > you]\" + ChatColor.WHITE + \":\");\n toComp.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(\"PM \" + fromPDO.getPlainNick()).create()));\n toComp.event(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, \"/pm \" + fromPDO.getName() + \" \"));\n toComp.append(\" \").reset();\n \n ComponentBuilder fromComp = new ComponentBuilder(ChatColor.DARK_GRAY + \"[You > \" + toPDO.getDisplayName() + ChatColor.DARK_GRAY + \"]\" + ChatColor.WHITE + \":\");\n fromComp.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(\"PM \" + toPDO.getPlainNick()).create()));\n fromComp.event(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, \"/pm \" + toPDO.getName() + \" \"));\n fromComp.append(\" \").reset();\n \n TextComponent messageComp = new TextComponent();\n for (String part : message) {\n if (part.matches(\"^.*(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|].*$\")) {\n messageComp.addExtra(assembleURLComponent(part));\n messageComp.addExtra(\" \");\n } else {\n messageComp.addExtra(part + \" \");\n }\n }\n \n BaseComponent[] toMSG = toComp\n .append(messageComp)\n .create();\n BaseComponent[] fromMsg = fromComp\n .append(messageComp)\n .create();\n \n toPDO.sendMessageIf(toMSG);\n fromPDO.sendMessageIf(fromMsg);\n }", "@Override\n public void sendMessage(String from, String to, Message message){\n this.sendingPolicy.sendViaPolicy(from, to, message);\n //local persistence\n updateMessage(message);\n }", "public void askToAll() {\n\t\tfor(ClientThread player: players) {\n\t\t\tif(player != dealer)\n\t\t\t\tplayer.send(new Package(\"ASK\",null));\n\t\t\telse {\n\t\t\t\tdealer.send(new Package(\"MESSAGE\",\"As dealer, you'll wait for other players...\"));\n\t\t\t}\n\t\t}\n\t}", "public void requestAddUserToChat(String otherUsername){\n System.out.println(\"addtochat\" + \" \" + chatID + \" \" + otherUsername);\n toServer.println(\"addtochat\" + \" \" + chatID + \" \" + otherUsername);\n toServer.flush();\n }", "void sendTo(String from, String to, String m_id);", "public static void sendOK() {\n try {\n Server destServer = ServerState.getInstance().getServers().get(sourceID);\n MessageTransfer.sendServer(\n ServerMessage.getOk( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent OK to s\"+destServer.getServerID());\n }\n catch(Exception e) {\n System.out.println(\"INFO : Server s\"+sourceID+\" has failed. OK message cannot be sent\");\n }\n }", "public final void setSender(final Player newSender) {\n this.sender = newSender;\n }", "public boolean request() {\n\t\tif (inAnySession()) {\n\t\t\tplayer.exchangeSession.reset();\n\t\t\treturn false;\n\t\t}\n\t\t\n if (!PlayerRight.isDeveloper(player) && !PlayerRight.isDeveloper(other)) {\n if (player.playTime < 3000) {\n player.message(\"You cannot trade until you have 30 minutes of playtime. \" + Utility.getTime(3000 - player.playTime) + \" minutes remaining.\");\n return false;\n }\n if (other.playTime < 3000) {\n player.message(other.getName() + \" cannot trade until they have 30 minutes of playtime.\");\n return false;\n }\n }\n\t\t \n\t\tif (getSession(other).isPresent() && getSession(other).get().inAnySession()) {\n\t\t\tplayer.message(\"This player is currently is a \" + type.name + \" with another player.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (Objects.equals(player, other)) {\n\t\t\tplayer.message(\"You cannot \" + type.name + \" with yourself.\");\n\t\t\treturn false;\n\t\t}\n if (PlayerRight.isIronman(player) && !PlayerRight.isDeveloper(other)) {\n player.message(\"You can not \" + type.name + \" as you are an iron man.\");\n return false;\n }\n if (PlayerRight.isIronman(other) && !PlayerRight.isDeveloper(player)) {\n player.message(other.getName() + \" can not be \" + type.name + \"d as they are an iron man.\");\n return false;\n }\n\t\tif (player.exchangeSession.requested_players.contains(other)) {\n\t\t\tplayer.message(\"You have already sent a request to this player.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.locking.locked()) {\n\t\t\tplayer.message(\"You cannot send a \" + type.name + \" request right now.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.locking.locked()) {\n\t\t\tplayer.message(other.getName() + \" is currently busy.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.playerAssistant.busy()) {\n\t\t\tplayer.message(\"Please finish what you are doing before you do that.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.playerAssistant.busy()) {\n\t\t\tplayer.message(other.getName() + \" is currently busy.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.inActivity(ActivityType.DUEL_ARENA)) {\n\t\t\tplayer.message(\"You can not do that whilst in a duel!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.inActivity(ActivityType.DUEL_ARENA)) {\n\t\t\tother.message(\"You can not do that whilst in a duel!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!onRequest()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn SESSIONS.add(this);\n\t}", "public void acceptInvitation(Player player) {\n if (invitations.containsKey(player)) {\n Player p = invitations.remove(player);\n List<Player> team = teams.get(p);\n team.add(player);\n teamMessage(p, ChatColor.BLUE + player.getName() + \" has joined the team!\");\n } else {\n player.sendMessage(ChatColor.RED + \"You were not invited to any teams! Forever alone..\");\n }\n }", "public void sendInvite(String userName)\n\t{\n\t\tString user = userName.split(\": \")[1];\n\t\tUserBean receiver = null;\n\t\t\n\t\tfor(UserBean u: this.onlineUsers)\n\t\t{\n\t\t\tif(u.getUserName().equals(user))\n\t\t\t{\n\t\t\t\treceiver = u;\n\t\t\t\tSystem.out.println(user);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSocket controlSocket;\n\t\ttry {\n\t\t\tSystem.out.println(\"Setting up connection to: \" + receiver.getIpAddress());\n\t\t\tcontrolSocket = new Socket(receiver.getIpAddress(), Model.controlDataSocketNumber);\n\t\t\tObjectOutputStream toPeer = new ObjectOutputStream(controlSocket.getOutputStream());\n\t\t\tClientMessage c = new ClientMessage();\n\t\t\tc.setCommand(\"INVITE\");\n\t\t\tc.setUser(new UserBean(this.hostName, this.userName, this.ipAddress));\n\t\t\tthis.piece = this.generatePiece();\n\t\t\tc.setPiece(piece);\n\t\t\t\n\t\t\tthis.opponent = receiver;\n\t\t\t\n\t\t\ttoPeer.writeObject(c);\n\t\t\t\n\t\t\tcontrolSocket.close();\n\t\t\t\n\t\t} catch (IOException e) {\t\t\t\n\t\t\te.printStackTrace();\n\t\t} \n\n\t}", "@Override\n public void run() {\n if (pendingTeleports.containsKey(sender.getName())) {\n pendingTeleports.remove(sender.getName(),originalSender);\n if (senderPlayer.dimension != teleportee.dimension) {\n TeleportHelper.transferPlayerToDimension(teleportee,senderPlayer.dimension,server.getPlayerList());\n }\n teleportee.setPositionAndUpdate(senderPlayer.posX,senderPlayer.posY,senderPlayer.posZ);\n sender.addChatMessage(new TextComponentString(TextFormatting.GREEN+\"Teleport successful.\"));\n teleportee.addChatMessage(new TextComponentString(TextFormatting.GREEN+\"Teleport successful.\"));\n } //if not, the teleportee moved\n }", "private static void SendToAuctioneer(BigInteger msg) {\r\n\t\tmsg=auctioneer_pk.encrypt(msg)[0];\r\n\t\tsendToClient(auctioneer,msg);\r\n\t}", "public void sendMessages(String[] messages)\r\n\t{\r\n\t\tfor(Player player: this.players)\r\n\t\t{\r\n\t\t\tif(player != null)\r\n\t\t\t{\r\n\t\t\t\tplayer.sendMessages(messages);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void sendMessage(Space jSpace, int playerID, String msg) throws InterruptedException {\n\t\tsendHeader(jSpace, playerID, ServerCommands.message);\n\t\tjSpace.put(playerID, msg);\n\t}", "MatchWonMessage(String playerName, String teamName) {\r\n super(playerName);\r\n this.teamName = teamName;\r\n }", "public abstract void sendToChain(String mesg);", "@Override\n\tpublic void execute() {\n\t\t\n\t\tif (GamesHandler.test) {\n\t\t\tserverModel = ServerFacadeTest.getSingleton().getGameModel(gameID);\n\t\t} else {\n\t\t\tserverModel = ServerFacade.getSingleton().getGameModel(gameID);\n\t\t}\n\t\t\n\t\tPlayer player = serverModel.getPlayers().get(sender);\n\t\tDevCardList playerOldDevCards = player.getOldDevCards();\n\t\t\n\t\tplayerOldDevCards.setRoadBuilding(playerOldDevCards.getRoadBuilding() - 1);\n\t\t\n\t\tserverModel.getMap().addRoad(new Road(sender, spot1));\n\t\tserverModel.getMap().addRoad(new Road(sender, spot2));\n\t\t\n\t\tplayer.setRoads(player.getRoads() - 2);\n\t\t\n\t\tplayer.setPlayedDevCard(true);\n\t\t\n\t\tMessageLine line = new MessageLine();\n\t\tString username = player.getName();\n\t\tif(username.toLowerCase().equals(\"ife\") || username.toLowerCase().equals(\"ogeorge\")){\n\t\t\tline.setMessage(\"Ife built a couple of roads to try to catch up with Paul, but Daniel always wins anyway\");\n\t\t}\n\t\telse{\n\t\t\tline.setMessage(username + \" built a couple roads with a road building development card\");\n\t\t}\n//\t\tline.setMessage(username + \" built a couple roads with a road building development card\");\n\t\tline.setSource(username);\n\t\tserverModel.getLog().addLine(line);\n\t}", "public void sendMessage(Player player, MessageType type, Object... args){\r\n player.sendMessage(type.format(args));\r\n }", "public void sendMail() {\n String sub;\n String message;\n\n sub = \"Welcome\";\n message = \"Thank you for choosing us as your healthcare partners. Here we strive hard to ensure that\\n\"\n + \"you remain in good health. Not only we boast of an exellent team of doctors but also world class operational \\n\"\n + \"infrastructure in place. For any other information or details contact our reg desk. You can access\\n\"\n + \"your account with the Username:\" + txtUserName.getText()+ \"and your password:\" + txtPassword.getPassword().toString()+ \".\\n\\t\\t\\t -Team MVP\";\n\n SendEmail SE = new SendEmail(txtEmail.getText(), sub, message);\n }", "public abstract void sendPrivateMessage(String nickname, String message);", "public void sendLiteGame(){\n SerializableLiteGame toSend = liteGame.makeSerializable();\n\n if ( client1 != null ) {\n client1.send(toSend);\n }\n if ( client2 != null ) {\n client2.send(toSend);\n }\n if ( client3 != null ) {\n client3.send(toSend);\n }\n }", "private void send() {\n Toast.makeText(this, getString(R.string.message_sent, mBody, Contact.byId(mContactId).getName()),\n Toast.LENGTH_LONG).show();\n finish(); // back to DirectShareActivity\n }", "private void individualSend(UserLogic t) {\n if(t != UserLogic.this && t != null && ((String)UI.getContacts().getSelectedValue()).equals(t.username)){\r\n if(((String)t.UI.getContacts().getSelectedValue()).equals(username)) { //If both users are directly communicating\r\n t.UI.getProperList().addElement(username + \"> \" + UI.getMessage().getText()); //Send message\r\n t.UI.getContacts().setCellRenderer(clearNotification); //Remove notification\r\n }\r\n else{ //If the user are not directly communicating\r\n t.UI.getContacts().setCellRenderer(setNotification); //Set notification\r\n }\r\n if(t.chats.containsKey(username)){ //Store chats in other users database (When database exists)\r\n ArrayList<String> arrayList = t.chats.get(username); //Get data\r\n arrayList.add(username + \"> \" + UI.getMessage().getText()); //Add new message to the database\r\n t.chats.put(username, arrayList); //Store data\r\n }\r\n else { //When database doesn't exist\r\n ArrayList<String> arrayList = new ArrayList<>(); //create new database\r\n arrayList.add(username + \"> \" + UI.getMessage().getText()); //Add new message to the database\r\n t.chats.put(username, arrayList); //Store data\r\n }\r\n }\r\n //This writes on my screen\r\n if(t == UserLogic.this && t!=null){ //On the current user side\r\n UI.getProperList().addElement(\"Me> \" + UI.getMessage().getText()); //Write message to screen\r\n String currentChat = (String) UI.getContacts().getSelectedValue(); //Get selected user\r\n if(chats.containsKey(currentChat)){ //check if database exists\r\n ArrayList<String> arrayList = chats.get(currentChat);\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(currentChat, arrayList);\r\n }\r\n else { //When database doesn't exist\r\n ArrayList<String> arrayList = new ArrayList<>();\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(currentChat, arrayList);\r\n }\r\n }\r\n }", "public void sendmessage(String recipients,String message){\n String username = \"tolclin\";\n String apiKey = \"a134b86cef192b3e597957d96fe486f6dd887ba4592ecf31ed737c2f1407b348\";\n // Specify the numbers that you want to send to in a comma-separated list\n // Please ensure you include the country code (+254 for Kenya in this case)\n //String recipients = \"+254723095840\";--------------------was active\n // And of course we want our recipients to know what we really do\n //String message = \"We are tolclin IT. We code all day and sleep all night\";--------------was active\n // Create a new instance of our awesome gateway class\n AfricasTalkingGateway gateway = new AfricasTalkingGateway(username, apiKey);\n /*************************************************************************************\n NOTE: If connecting to the sandbox:\n 1. Use \"sandbox\" as the username\n 2. Use the apiKey generated from your sandbox application\n https://account.africastalking.com/apps/sandbox/settings/key\n 3. Add the \"sandbox\" flag to the constructor\n AfricasTalkingGateway gateway = new AfricasTalkingGateway(username, apiKey, \"sandbox\");\n **************************************************************************************/\n // Thats it, hit send and we'll take care of the rest. Any errors will\n // be captured in the Exception class below\n try {\n JSONArray results = gateway.sendMessage(recipients, message);\n //JOptionPane.showMessageDialog(null, \"Message Sent Successfully...\");\n// for( int i = 0; i < results.length(); ++i ) {\n// JSONObject result = results.getJSONObject(i);\n// //System.out.print(result.getString(\"status\") + \",\"); // status is either \"Success\" or \"error message\"\n// System.out.print(result.getString(\"statusCode\") + \",\");\n// System.out.print(result.getString(\"number\") + \",\");\n// System.out.print(result.getString(\"messageId\") + \",\");\n// System.out.println(result.getString(\"cost\"));\n// \n// }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null,\"Encountered an error while sending. Check on your internet connection...\");\n }\n }", "@Override\n\tpublic void sendSMS() {\n\t\tSystem.out.println(\"Logic B\" + \" Send By: \" + getVendorName());\n\t}", "private void sendBucks() {\n\t\tconsole.printUsers(userService.getAll(currentUser.getToken()));\n\t\tSystem.out.println(\"\");\n\n\t\tBoolean validResponse = false;\n\t\tint selectedUserId = -1;\n\t\tBigDecimal transferAmount = new BigDecimal(0);\n\t\tBigDecimal zero = new BigDecimal(0);\n\t\tBigDecimal currentBalance = (accountService.getAccountBalance(currentUser.getToken()));\n\t\tTransfer transfer = new Transfer();\n\n\t\twhile (true) {\n\t\t\t// ask which user you want to send money to or exit\n\t\t\tselectedUserId = console.getUserInputInteger(\"Enter ID of user you are sending to (0 to cancel)\");\n\t\t\tif (selectedUserId == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (selectedUserId > 0 && selectedUserId <= userService.getAll(currentUser.getToken()).length) {\n\t\t\t\t// prompt for amount to send\n\t\t\t\ttransferAmount = console.getUserInputBigDecimal(\"Enter amount\");\n\t\t\t\t// transfer money\n\n\t\t\t\tif (transferAmount.compareTo(zero) == 1 && transferAmount.compareTo(currentBalance) <= 0) {\n\n\t\t\t\t\ttransfer.setFromUserId(currentUser.getUser().getId());\n\t\t\t\t\ttransfer.setToUserId(selectedUserId);\n\t\t\t\t\ttransfer.setTransferAmount(transferAmount);\n\t\t\t\t\ttransfer.setStatusOfTransferId(2);\n\t\t\t\t\ttransfer.setTypeOfTransferId(2);\n\n\t\t\t\t\t\n\t\t\t\t\ttransferService.createTransfer(currentUser.getToken(), transfer);\n\t\t\t\t\tSystem.out.println(\"\\nTransfer Complete!\");\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\\nInsufficient Funds! Please try again.\\n\");\n\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tpublic void passedBy() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(250);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 250 dollars by landing on Bonus Square\");\n\n\t}", "private void buyPlayer(FootballPlayer player, String playerName, int num) {\n\t\tint valid = game.addPlayer(playerName);\n\t\tif(valid==0) {\n\t\t\tplayerNameArray[num].setText(playerName);\n\t\t\timageArray[num].setIcon(MainGui.getShirt(player.getTeamName()));\n\t\t\tbuttonArray[num].setText(\"X\");\n\t\t\tlblBudgetText.setText(game.getCurrentUser().getBudget() + \" RGG\");\n\t\t\t\n\t\t} else if (valid==1) {\n\t\t\tJOptionPane.showMessageDialog(frame,\"You have already selected this player for your team\");\n\t\t} else if (valid==-1) {\n\t\t\tJOptionPane.showMessageDialog(frame,\"You don´t have enough budget too buy \" + playerName);\n\t\t}\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 void transfer(String oldPlayerID, String newPlayerID) {\r\n\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\tPlayer p = players.get(i);\r\n\t\t\tif (p.getPlayerID().contentEquals(oldPlayerID) && !p.hasQuit()) {\r\n\t\t\t\tString color = \"\";\r\n\t\t\t\tif (i == 0) color = \"RED\";\r\n\t\t\t\telse if (i == 1) color = \"BLUE\";\r\n\t\t\t\telse if (i == 2) color = \"YELLOW\";\r\n\t\t\t\telse if (i == 3) color = \"GREEN\";\r\n\t\t\t\tp.setPlayerID(newPlayerID);\r\n\t\t\t\tgameChannel.sendMessage(\"**\"+Utils.getName(oldPlayerID, guild)+\"** transferred the \"+color+\" adventurer to \"+Utils.getName(newPlayerID, guild)).queue();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void sendMessage(String msg) {\n\t\tplayer.sendMessage(msg);\n\t}", "public void sendToWard(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "@RequestMapping(value = \"tradeOffer\",method = RequestMethod.GET)\n public @ResponseBody BotResult tradeOffer(String steamId) throws IOException, ServiceException {\n int r = processOrderService.answer(steamId);\n switch (r){\n case 0:\n return new BotResult(true,\"发送报价成功\",null);\n case 1:\n return new BotResult(false,\"未找到您的订单\",null);\n default:\n return new BotResult(false,\"服务器未知错误,请联系客服\",null);\n }\n }", "public void sendLogin() {\n WsMessage.LoginMsg_Req loginMsg_req = new WsMessage.LoginMsg_Req();\n loginMsg_req.token = Util.getMConfig(NTVDefine.KEY_MCONF_GAME_TICKET);\n loginMsg_req.userid = Util.getMConfig(NTVDefine.KEY_MCONF_GAME_OPENID);\n loginMsg_req.username = Util.getMConfig(NTVDefine.KEY_MCONF_GAME_USERNAME);\n loginMsg_req.usericon = \"\";\n loginMsg_req.biz = getBizByGameid(Util.getMConfig(NTVDefine.KEY_MCONF_GAME_GAMEID));\n loginMsg_req.env = Util.getString(NTVDefine.KCONF_STRING_CHAT_ENV);\n loginMsg_req.chatid = this.chatid;\n this.wsManager.sendMessage(loginMsg_req.type, loginMsg_req.toString());\n }", "@FXML\n private void sendMessage(ActionEvent actionEvent) {\n String playerName = RiskMain.getInstance().getDomain().getPlayerName();\n System.out.println(messageInput.getText());\n String text = playerName + \": \" + messageInput.getText();\n if (RiskMain.getInstance().getDomain().isServer()) {\n this.serverInterface = RiskMain.getInstance().getDomain().getServer();\n this.serverInterface\n .sendMessageChat(RiskMain.getInstance().getDomain().getPlayerName(),\n messageInput.getText(), recipientList.getValue());\n } else {\n this.clientPlayerInterface = RiskMain.getInstance().getDomain().getClient();\n this.clientPlayerInterface.sendMessageChat(RiskMain.getInstance().getDomain().getPlayerName(),\n messageInput.getText(), recipientList.getValue());\n }\n }", "@Override\n\tpublic void action(Player player) {\n\t\tfireMessageEvent(player.getPlayerId());\n\t\tplayer.setPosition(jail);\n\t\tplayer.setInJail(true);\n\t}", "public void fight(Team otherteam) {\n\t\tString aTeamCaptainName = this.captain.getName();\t//호출한 메서드\n\t\tString bTeamCaptainName = otherteam.captain.getName();\n\t\tSystem.out.println(aTeamCaptainName+\"과 \"+ bTeamCaptainName+\"이 싸운다\");\n\t\t\n\t}", "private void sendMessage() throws Exception {\n\t\tGetTimestamp(\"Sending Message: \");\n\t\tString inputMessage;\n\t\tinputMessage = input.nextLine();\n\t\tString tosend = encrypt(clientkey, inputMessage);\n\t\t\n\t\tJSONObject RESPONSE = new JSONObject();\n\t\tRESPONSE.put(\"payload\",tosend);\n\t\tSystem.out.println(RESPONSE);\n\t\t\n\t\tpw.println(tosend);\n\t\tpw.flush();\n\t\tSystem.out.println(\"Message sent to the client : \" + inputMessage);\n\t\tif (inputMessage.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"sending close command\");\n\t\t\tcloseConnection();\n\t\t} else {\n\t\t\tgetMessage();\n\t\t}\n\t}", "private void sendBucks() {\n\t\ttry {\n\t\t\tSystem.out.println(\"Please choose a user to send TE Bucks to:\");\n\t\t\tUser toUser;\n\t\t\tboolean isValidUser;\n\t\t\tdo {\n\t\t\t\ttoUser = (User)console.getChoiceFromOptions(userService.getUsers());\n\t\t\t\tisValidUser = ( toUser\n\t\t\t\t\t\t\t\t.getUsername()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(currentUser.getUser().getUsername())\n\t\t\t\t\t\t\t ) ? false : true;\n\n\t\t\t\tif(!isValidUser) {\n\t\t\t\t\tSystem.out.println(\"You can not send money to yourself\");\n\t\t\t\t}\n\t\t\t} while (!isValidUser);\n\t\t\t\n\t\t\t// Select an amount\n\t\t\tBigDecimal amount = new BigDecimal(\"0.00\");\n\t\t\tboolean isValidAmount = false;\n\t\t\tdo {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tamount = new BigDecimal(console.getUserInput(\"Enter An Amount (0 to cancel):\\n \"));\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tSystem.out.println(\"Please enter a numerical value\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tisValidAmount = amount.doubleValue() < userService\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getBalance(currentUserId)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.doubleValue();\n\t\t\t\tif(!isValidAmount) {\n\t\t\t\t\tSystem.out.println(\"You can not send more money than you have available!\");\n\t\t\t\t}\n\t\t\t\tif(amount.doubleValue() < 0.99 && amount.doubleValue() > 0.00) {\n\t\t\t\t\tSystem.out.println(\"You must send at least $0.99 TEB\");\n\t\t\t\t\tisValidAmount = false;\n\t\t\t\t} else if (amount.doubleValue() == 0.00) {\n\t\t\t\t\tmainMenu();\n\t\t\t\t}\n\t\t\t} while(!isValidAmount);\n\n\t\t\t// Create transfer object\n\t\t\tboolean confirmedAmount = false;\n\t\t\tString confirm = \"\";\n\t\t\tTransfer transfer = null;\n\t\t\twhile (!confirmedAmount) {\n\t\t\t\tconfirm = console.getUserInput(\"You entered: \" + amount.toPlainString() + \" TEB. Is this correct? (y/n)\");\n\t\t\t\tif (confirm.toLowerCase().startsWith(\"y\")) {\n\t\t\t\t\t// transferService to POST to server db\n\t\t\t\t\ttransfer = createTransferObj(\"Send\", \"Approved\", currentUserId, toUser.getId(), amount);\n\t\t\t\t\tboolean hasSent = transferService.sendBucks(currentUserId, toUser.getId(), transfer);\n\t\t\t\t\tif (hasSent) {\n\t\t\t\t\t\t// TODO :: Test this\n\t\t\t\t\t\tSystem.out.println(\"The code executed\");\n\t\t\t\t\t}\n\t\t\t\t\tconfirmedAmount = true;\n\t\t\t\t\tcontinue;\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Send canceled.\");\n\t\t\t\t\tconfirmedAmount = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t} \n\t\t\t}\n\t\t}catch(UserServiceException ex) {\n\t\t\tSystem.out.println(\"User Service Exception\");\n\t\t}catch(TransferServiceException ex) {\n\t\t\tSystem.out.println(\"Transfer Service Exception\");\n\t\t}\n\t\t\n\t}", "public void notifyCreation() {\n Player targetPlayer = this.getTarget().getPlayerReference(Player.class),\n senderPlayer = this.getToTeleport().getPlayerReference(Player.class);\n\n if (targetPlayer == null || senderPlayer == null) {\n return;\n }\n\n MainData.getIns().getMessageManager().getMessage(\"TPA_SENT\").sendTo(senderPlayer);\n\n if (this.type == TeleportType.TPA) {\n MainData.getIns().getMessageManager().getMessage(\"TPA_REQUESTED\")\n .format(\"%player%\", getToTeleport().getNameWithPrefix()).sendTo(targetPlayer);\n } else if (this.type == TeleportType.TPHERE) {\n MainData.getIns().getMessageManager().getMessage(\"TPHERE_REQUESTED\")\n .format(\"%player%\", getToTeleport().getNameWithPrefix()).sendTo(targetPlayer);\n }\n\n }", "public void dealerTurn() {\n\t\tview.writeLog(\"All players pass, dealer's turn.\");\n\t\tdealer.send(new Package(\"MESSAGE\",\"Now is your turn.\"));\n\t\tdealer.send(new Package(\"ASK\",null));\n\t}", "private void broadcast(String message)\n \t{\n \t\tfor(int i = 0; i < players.length; i++)\n \t\t{\n // PROTOCOL\n \t\t\tplayers[i].sendMessage(message);\n // PROTOCOL\n \t\t}\n \t}", "public static void sendChatMessage(Player toSend, byte chatType, String message){\n ChatComponentText chat = new ChatComponentText(message);\n\n PacketPlayOutChat packet = new PacketPlayOutChat(chat, chatType);\n ((CraftPlayer) toSend).getHandle().playerConnection.sendPacket(packet);\n }", "public void sendEntity(Entity entity);", "void sendMail(){\r\n String mailBody = getString(R.string.congratz_message, String.valueOf(playerScore));\r\n mailBody += \" \" + playerRating;\r\n\r\n Intent intent = new Intent(Intent.ACTION_SENDTO);\r\n intent.setData(Uri.parse(\"mailto:\")); //only email apps should handle this\r\n intent.putExtra(Intent.EXTRA_SUBJECT, \"Sports Trivia score for \" + getPlayerName());\r\n intent.putExtra(intent.EXTRA_TEXT, mailBody);\r\n\r\n if(intent.resolveActivity(getPackageManager())!=null){\r\n startActivity(intent);\r\n }\r\n }", "public void clientShout(String message) {\n\t\tfor (final Player player : this.players) {\n\t\t\tplayer.sendMessage(message);\n\t\t}\n\t}", "public void sendRouletteBet() {\n\t\tif (rouletteExecutor.getAposta() == null)\n\t\t\tnew Dialeg().setWarningText(\"You must bet!\");\n\t\telse {\n\t\t\tif (bool.compareAndSet(true, false)) {\n\t\t\t\ttry {\n\t\t\t\t\tmanager.getServer().enviarTrama(new Betting(rouletteExecutor.getAposta()));\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t//// e.printStackTrace();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnew Dialeg().setWarningText(\"You can't bet to the same number\");\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void whenSendOtherMessageThenOracleDontUnderstand() {\n this.testClient(\n Joiner.on(LN).join(\n \"Hello, dear friend, I'm a oracle.\",\n \"\",\n \"I don't understand you.\",\n \"\",\n \"\"\n ),\n Joiner.on(LN).join(\n \"Hello oracle\",\n \"How're you?\",\n \"Exit\",\n \"\"\n )\n );\n }", "public void sendChat(String s) {\n ACLMessage m = new ACLMessage(briscola.common.ACLCodes.ACL_CHAT);\n m.setConversationId(getChatID());\n m.setContent(s);\n if (players == null) {\n say(\"Nessun giocatore in lista\");\n } else {\n for (Player p : players) {\n m.addReceiver(p.getAID());\n }\n send(m);\n }\n }", "public static void reviewTrade(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Review Proposed Trade---\");\r\n\t\tSystem.out.println(theTeam.getProposedTrade());\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Would you like to accept this trade?\");\r\n\t\tSystem.out.println(\"1 - Accept\");\r\n\t\tSystem.out.println(\"2 - Reject\");\r\n\t\tSystem.out.println(\"0 - Return to Team Menu\");\r\n\r\n\t\tswitch (Input.validInt(0, 2, keyboard)) {\r\n\t\tcase 1:\r\n\t\t\ttheLeague.setPendingTrade(\"Accepted by \" + theTeam.getManagerName() + \" --- \" + theTeam.getProposedTrade());\r\n\t\t\ttheTeam.setProposedTrade(\"\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"***Trade Accepted - The Commissioner Must Process It.***\");\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\ttheTeam.setProposedTrade(\"\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"***Trade Rejected***\");\r\n\t\t\tbreak;\r\n\t\tcase 0:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "private void sendMessage(int tabnumber, String to) {\n\n\t\t/* check if we're connected */\n\t\tif (ElvinConsumerAction.connected) {\n\t\t\tElvinProducer producer = new ElvinProducer();\n\t\t\tproducer.send(server, \"chat\", chatinput[tabnumber].getText(), to);\n\n\t\t\tchathistory[tabnumber].append(\"\\n\"\n\t\t\t\t\t+ System.getProperty(\"user.name\") + \": \"\n\t\t\t\t\t+ chatinput[tabnumber].getText());\n\t\t} else {\n\t\t\tchathistory[tabnumber].append(\"\\n\"\n\t\t\t\t\t+ \"You are not connected to the server!\");\n\t\t}\n\t\tchatinput[tabnumber].setText(\"\");\n\t\tchatinput[tabnumber].setFocus();\n\t}", "private synchronized void sendToClient(PrintWriter pw, String message)\n {\n pw.write(message + \"\\n\");\n pw.flush();\n }", "@Test\n public void UserCanWriteAndSendAMessage() {\n proLogin(proWait);\n handler.getDriver(\"user\").navigate().refresh();\n // User to queue\n waitAndFillInformation(userWait);\n // User from queue\n\n waitAndPickFromQueue(proWait);\n\n // User can write message\n waitChatWindowsAppear(userWait).sendKeys(\"yy kaa koo\");\n\n // Can send it By Pressing Submit\n waitElementPresent(userWait, By.name(\"send\")).submit();\n assertEquals(\"\", waitChatWindowsAppear(userWait).getText());\n assertTrue(waitForTextToAppear(userWait, \"yy kaa koo\"));\n\n // Can send it By Pressing Enter\n waitChatWindowsAppear(userWait).sendKeys(\"kaa koo yy\");\n waitChatWindowsAppear(userWait).sendKeys(Keys.ENTER);\n\n assertEquals(\"\", waitChatWindowsAppear(userWait).getText());\n assertTrue(waitForTextToAppear(userWait, \"kaa koo yy\"));\n endConversationPro(proWait);\n }", "public static void playerBroadcast(Player sender, final String message, boolean webchat, boolean console) {\n\t\tfor (StandardPlayer player : instance.getOnlinePlayers()) {\n\t\t\tif (player != sender && player.isOnline()) {\n\t\t\t\ttry {\n\t\t\t\t\tplayer.sendMessage(message);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// Can happen if a player leaves as this handler is running\n\t\t\t\t\tinstance.getLogger().severe(\"Exception while broadcasting\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tBukkit.getConsoleSender().sendMessage(webchatConsoleGate(message, webchat, console));\n\t}", "@Override\n\tpublic void tellPlayer(String message) {\n\t\tSystem.out.println(message);\n\t}", "static private void TalkTo() {\n if (BSChristiansen.getCurrentRoom() == currentRoom) {\n System.out.println(BSChristiansen.getDescription() + \", yet he still gives you good advice:\\n\");\n System.out.println(BSChristiansen.getDialog(0));\n System.out.println(\"\");\n woundedSurvivor();\n } else if (mysteriousCrab.getCurrentRoom() == currentRoom && inventory.getInventory().containsKey(\"Shroom\")) {\n System.out.println(mysteriousCrab.getDescription() + \"\\n\" + mysteriousCrab.getDialog(0));\n } else {\n System.out.println(\"There is nobody to communicate with in this Room\");\n }\n\n }", "public void sendTurno() throws RemoteException, InterruptedException, IOException ;", "@Override\r\n\tpublic void setPlayerToTradeWith(int playerIndex) {\n\t\t\r\n\t}", "boolean teleport(Player p1, Player p2, boolean change);", "private void sendToOtherServers(ProxyEvent proxyEvent) throws AppiaEventException {\n //\t\tSystem.out.println(\"Sending to other servers: \"+ proxyEvent);\n \t\tproxyEvent.storeMessage();\n \t\tproxyEvent.setDir(Direction.DOWN);\n \t\tproxyEvent.setChannel(vsChannel);\n \t\tproxyEvent.setSourceSession(this);\n \t\tproxyEvent.init();\n \t\tproxyEvent.go();\n \n \t}", "public void serverSendMessageToUser(String username, String message) {\r\n \t\tServerCommand serverCommand = new PrivateMessageServerCommand(message, \"server\", username, null);\r\n \r\n \t\tRoMClient userClient = this.clients.getClientByUsername(username);\r\n \r\n \t\tthis.sendCommandToClient(userClient, serverCommand);\r\n \t}" ]
[ "0.6433061", "0.6226637", "0.6100585", "0.609819", "0.597259", "0.5871757", "0.58389574", "0.57888126", "0.57832515", "0.5767773", "0.57337534", "0.5715345", "0.57113075", "0.57102245", "0.5683788", "0.5678401", "0.5655205", "0.5651827", "0.56398743", "0.5625781", "0.56192386", "0.5619026", "0.56183106", "0.5614378", "0.5611829", "0.56001604", "0.55921", "0.5591702", "0.5590847", "0.5556297", "0.5548247", "0.55434674", "0.55335575", "0.55224496", "0.5512893", "0.5508543", "0.54987085", "0.5482588", "0.5479889", "0.5479746", "0.54774225", "0.5472104", "0.54582936", "0.54501426", "0.5427181", "0.54237956", "0.5416819", "0.5414936", "0.5410651", "0.5407445", "0.5407121", "0.5399092", "0.5393703", "0.5393633", "0.5374391", "0.5371933", "0.5370956", "0.5370718", "0.5369545", "0.53670174", "0.53652644", "0.5363818", "0.53591937", "0.5346119", "0.5343762", "0.5341889", "0.5310877", "0.53051674", "0.5303278", "0.52987164", "0.5289759", "0.52830154", "0.5280781", "0.52797735", "0.52723974", "0.5269925", "0.5265689", "0.52633256", "0.52586454", "0.52551657", "0.5253498", "0.5245914", "0.5244316", "0.52286375", "0.5212228", "0.5204272", "0.5200557", "0.5195093", "0.5191789", "0.51901996", "0.5188682", "0.5183644", "0.51779217", "0.5175344", "0.5173632", "0.5173171", "0.5167899", "0.5163013", "0.5162266", "0.5160897" ]
0.62161183
2
Respond to a trade that has been offered by another manager.
public static void reviewTrade(League theLeague, Team theTeam, Scanner keyboard) { System.out.println(""); System.out.println("---Review Proposed Trade---"); System.out.println(theTeam.getProposedTrade()); System.out.println(""); System.out.println("Would you like to accept this trade?"); System.out.println("1 - Accept"); System.out.println("2 - Reject"); System.out.println("0 - Return to Team Menu"); switch (Input.validInt(0, 2, keyboard)) { case 1: theLeague.setPendingTrade("Accepted by " + theTeam.getManagerName() + " --- " + theTeam.getProposedTrade()); theTeam.setProposedTrade(""); System.out.println(""); System.out.println("***Trade Accepted - The Commissioner Must Process It.***"); break; case 2: theTeam.setProposedTrade(""); System.out.println(""); System.out.println("***Trade Rejected***"); break; case 0: break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void respondToTrade(long tradeItemId, boolean response);", "@Override\r\n\tpublic void sendTradeOffer(TradeOffer offer) {\n\t\t\r\n\t}", "@Override\n protected void acceptTrade(Territory offerer, double demand, int typeDemand, double offer, int typeOffer){\n // An example for accepting a trade proposal: I only accept offers of peasants when I have less than 3 peasants\n // I am not checking what I am giving in exchange or how much, so you should work on that\n if (typeOffer == 3 && typeDemand == 2){\n acceptTrade = true;// no matter the amounts\n }\n else acceptTrade = false;\n }", "void offerTrade(int receiver, Resources resources);", "@Override\r\n\tpublic void acceptTrade(boolean willAccept) {\n\t\t\r\n\t}", "@ReceiveEvent\n public void onTradeResponse(TradeResponse response, EntityRef entity) {\n if (!entity.equals(localPlayer.getCharacterEntity())) {\n return;\n }\n\n tradingScreen.setMessage(response.message);\n refreshLists();\n }", "public TransactionResponse sell() {\r\n \t\ttry {\r\n \t\t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\t\tCalculation calc = hc.getCalculation();\r\n \t\t\tAccount acc = hc.getAccount();\r\n \t\t\tLanguageFile L = hc.getLanguageFile();\r\n \t\t\tLog log = hc.getLog();\r\n \t\t\tNotification not = hc.getNotify();\r\n \t\t\tInfoSignHandler isign = hc.getInfoSignHandler();\r\n \t\t\tString playerecon = hp.getEconomy();\r\n \t\t\tint id = hyperObject.getId();\r\n \t\t\tint data = hyperObject.getData();\r\n \t\t\tString name = hyperObject.getName();\r\n \t\t\tif (giveInventory == null) {\r\n \t\t\t\tgiveInventory = hp.getPlayer().getInventory();\r\n \t\t\t}\r\n \t\t\tif (amount > 0) {\r\n \t\t\t\tif (id >= 0) {\r\n \t\t\t\t\tint totalitems = im.countItems(id, data, giveInventory);\r\n \t\t\t\t\tif (totalitems < amount) {\r\n \t\t\t\t\t\tboolean sellRemaining = hc.getYaml().getConfig().getBoolean(\"config.sell-remaining-if-less-than-requested-amount\");\r\n \t\t\t\t\t\tif (sellRemaining) {\r\n \t\t\t\t\t\t\tamount = totalitems;\r\n \t\t\t\t\t\t} else {\t\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (amount > 0) {\r\n \t\t\t\t\t\tdouble price = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\tBoolean toomuch = false;\r\n \t\t\t\t\t\tif (price == 3235624645000.7) {\r\n \t\t\t\t\t\t\ttoomuch = true;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (!toomuch) {\r\n \t\t\t\t\t\t\tint maxi = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\tboolean isstatic = false;\r\n \t\t\t\t\t\t\tboolean isinitial = false;\r\n \t\t\t\t\t\t\tisinitial = Boolean.parseBoolean(hyperObject.getInitiation());\r\n \t\t\t\t\t\t\tisstatic = Boolean.parseBoolean(hyperObject.getIsstatic());\r\n \t\t\t\t\t\t\tif ((amount > maxi) && !isstatic && isinitial) {\r\n \t\t\t\t\t\t\t\tamount = maxi;\r\n \t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tboolean sunlimited = hc.getYaml().getConfig().getBoolean(\"config.shop-has-unlimited-money\");\r\n \t\t\t\t\t\t\tif (acc.checkshopBalance(price) || sunlimited) {\r\n \t\t\t\t\t\t\t\tif (maxi == 0) {\r\n \t\t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tim.removeItems(id, data, amount, giveInventory);\r\n \t\t\t\t\t\t\t\tdouble shopstock = 0;\r\n \t\t\t\t\t\t\t\tshopstock = hyperObject.getStock();\r\n \t\t\t\t\t\t\t\tif (!Boolean.parseBoolean(hyperObject.getIsstatic()) || !hc.getConfig().getBoolean(\"config.unlimited-stock-for-static-items\")) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setStock(shopstock + amount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tint maxi2 = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\t\tif (maxi2 == 0) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setInitiation(\"false\");\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tdouble salestax = hp.getSalesTax(price);\r\n \t\t\t\t\t\t\t\tacc.deposit(price - salestax, hp.getPlayer());\r\n \t\t\t\t\t\t\t\tacc.withdrawShop(price - salestax);\r\n \t\t\t\t\t\t\t\tif (sunlimited) {\r\n \t\t\t\t\t\t\t\t\tString globalaccount = hc.getYaml().getConfig().getString(\"config.global-shop-account\");\r\n \t\t\t\t\t\t\t\t\tacc.setBalance(0, globalaccount);\r\n \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\tresponse.addSuccess(L.f(L.get(\"SELL_MESSAGE\"), amount, calc.twoDecimals(price), name, calc.twoDecimals(salestax)), price - salestax, hyperObject);\r\n \t\t\t\t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\t\t\t\tString type = \"dynamic\";\r\n \t\t\t\t\t\t\t\tif (Boolean.parseBoolean(hyperObject.getInitiation())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"initial\";\r\n \t\t\t\t\t\t\t\t} else if (Boolean.parseBoolean(hyperObject.getIsstatic())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"static\";\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tlog.writeSQLLog(hp.getName(), \"sale\", name, (double) amount, calc.twoDecimals(price - salestax), calc.twoDecimals(salestax), playerecon, type);\r\n \t\t\t\t\t\t\t\tisign.updateSigns();\r\n \t\t\t\t\t\t\t\tnot.setNotify(name, null, playerecon);\r\n \t\t\t\t\t\t\t\tnot.sendNotification();\r\n \t\t\t\t\t\t\t\treturn response;\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tresponse.addFailed(L.get(\"SHOP_NOT_ENOUGH_MONEY\"), hyperObject);\r\n \t\t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"CURRENTLY_CANT_SELL_MORE_THAN\"), hyperObject.getStock(), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.f(L.get(\"CANNOT_BE_SOLD_WITH\"), name), hyperObject);\r\n \t\t\t\t\treturn response;\t\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"CANT_SELL_LESS_THAN_ONE\"), name), hyperObject);\r\n \t\t\t\treturn response;\t\r\n \t\t\t}\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"Transaction sell() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"', id='\" + hyperObject.getId() + \"', data='\" + hyperObject.getData() + \"', amount='\" + amount + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "public TransactionResponse sellEnchant() {\r\n \t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\tCalculation calc = hc.getCalculation();\r\n \t\tAccount acc = hc.getAccount();\r\n \t\tLog log = hc.getLog();\r\n \t\tNotification not = hc.getNotify();\r\n \t\tInfoSignHandler isign = hc.getInfoSignHandler();\r\n \t\ttry {\r\n \t\t\tString nenchant = \"\";\r\n \t\t\tString playerecon = hp.getEconomy();\r\n \t\t\tPlayer p = hp.getPlayer();\r\n \t\t\tnenchant = hyperObject.getMaterial();\r\n \t\t\tEnchantment ench = Enchantment.getByName(nenchant);\r\n \t\t\tint lvl = Integer.parseInt(hyperObject.getName().substring(hyperObject.getName().length() - 1, hyperObject.getName().length()));\r\n \t\t\tint truelvl = im.getEnchantmentLevel(p.getItemInHand(), ench);\r\n \t\t\tif (im.containsEnchantment(p.getItemInHand(), ench) && lvl == truelvl) {\r\n \t\t\t\tdouble dura = p.getItemInHand().getDurability();\r\n \t\t\t\tdouble maxdura = p.getItemInHand().getType().getMaxDurability();\r\n \t\t\t\tdouble duramult = (1 - dura / maxdura);\r\n \t\t\t\tif (p.getItemInHand().getType().equals(Material.ENCHANTED_BOOK)) {\r\n \t\t\t\t\tduramult = 1;\r\n \t\t\t\t}\r\n \t\t\t\tString mater = p.getItemInHand().getType().toString();\r\n \t\t\t\tdouble price = hyperObject.getValue(EnchantmentClass.fromString(mater));\r\n \t\t\t\tdouble fprice = duramult * price;\r\n \t\t\t\tboolean sunlimited = hc.getYaml().getConfig().getBoolean(\"config.shop-has-unlimited-money\");\r\n \t\t\t\tif (acc.checkshopBalance(fprice) || sunlimited) {\r\n \t\t\t\t\tim.removeEnchantment(p.getItemInHand(), ench);\r\n \t\t\t\t\tdouble shopstock = hyperObject.getStock();\r\n \t\t\t\t\thyperObject.setStock(shopstock + duramult);\r\n \t\t\t\t\tdouble salestax = hp.getSalesTax(fprice);\r\n \t\t\t\t\tacc.deposit(fprice - salestax, p);\r\n \t\t\t\t\tacc.withdrawShop(fprice - salestax);\r\n \t\t\t\t\tif (sunlimited) {\r\n \t\t\t\t\t\tString globalaccount = hc.getYaml().getConfig().getString(\"config.global-shop-account\");\r\n \t\t\t\t\t\tacc.setBalance(0, globalaccount);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tfprice = calc.twoDecimals(fprice);\r\n \t\t\t\t\tresponse.addSuccess(L.f(L.get(\"ENCHANTMENT_SELL_MESSAGE\"), 1, calc.twoDecimals(fprice), hyperObject.getName(), calc.twoDecimals(salestax)), calc.twoDecimals(fprice - salestax), hyperObject);\r\n \t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\tString type = \"dynamic\";\r\n \t\t\t\t\tif (Boolean.parseBoolean(hyperObject.getInitiation())) {\r\n \t\t\t\t\t\ttype = \"initial\";\r\n \t\t\t\t\t} else if (Boolean.parseBoolean(hyperObject.getIsstatic())) {\r\n \t\t\t\t\t\ttype = \"static\";\r\n \t\t\t\t\t}\r\n \t\t\t\t\tlog.writeSQLLog(p.getName(), \"sale\", hyperObject.getName(), 1.0, fprice - salestax, salestax, playerecon, type);\r\n \r\n \t\t\t\t\tisign.updateSigns();\r\n \t\t\t\t\tnot.setNotify(hyperObject.getName(), mater, playerecon);\r\n \t\t\t\t\tnot.sendNotification();\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.get(\"SHOP_NOT_ENOUGH_MONEY\"), hyperObject);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"ITEM_DOESNT_HAVE_ENCHANTMENT\"), hyperObject.getName()), hyperObject);\r\n \t\t\t}\r\n \t\t\treturn response;\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"ETransaction sellEnchant() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "@Test\n void checkTheManagerGetAlertAfterOwnerChangeTheBid() {\n String guest= tradingSystem.ConnectSystem().returnConnID();\n tradingSystem.Register(guest, \"Manager2\", \"123\");\n Response res= tradingSystem.Login(guest, \"Manager2\", \"123\");\n tradingSystem.AddNewManager(EuserId,EconnID,storeID,res.returnUserID());\n tradingSystem.subscriberBidding(NofetID,NconnID,storeID,4,20,2);\n store.changeSubmissionBid(EuserId,NofetID,4,30,1);\n }", "@Override\n\tpublic void approveAcceptedOffer(String matriculation) {\n\t\tofferman.approveAcceptedOffer(matriculation);\n\t\t\n\t}", "public TransactionResponse sellToInventory() {\r\n \t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\ttry {\r\n \t\t\tDataHandler sf = hc.getDataFunctions();\r\n \t\t\tCalculation calc = hc.getCalculation();\r\n \t\t\tAccount acc = hc.getAccount();\r\n \t\t\tLog log = hc.getLog();\r\n \t\t\tLanguageFile L = hc.getLanguageFile();\r\n \t\t\tString playerecon = tradePartner.getEconomy();\r\n \t\t\tdouble price = 0.0;\r\n \t\t\tif (setPrice) {\r\n \t\t\t\tprice = money;\r\n \t\t\t} else {\r\n \t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t}\r\n \t\t\tBoolean toomuch = false;\r\n \t\t\tif (price == 3235624645000.7) {\r\n \t\t\t\ttoomuch = true;\r\n \t\t\t}\r\n \t\t\tif (!toomuch) {\r\n \t\t\t\tim.removeItems(hyperObject.getId(), hyperObject.getData(), amount, hp.getPlayer().getInventory());\r\n \t\t\t\tim.addItems(amount, hyperObject.getId(), hyperObject.getData(), receiveInventory);\r\n \t\t\t\tacc.deposit(price, hp.getPlayer());\r\n \t\t\t\tacc.withdrawAccount(price, tradePartner.getName());\r\n \t\t\t\tresponse.addSuccess(L.f(L.get(\"SELL_CHEST_MESSAGE\"), amount, calc.twoDecimals(price), hyperObject.getName(), tradePartner.getName()), calc.twoDecimals(price), hyperObject);\r\n \t\t\t\tresponse.setSuccessful();\r\n \t\t\t\tlog.writeSQLLog(hp.getName(), \"sale\", hyperObject.getName(), (double) amount, calc.twoDecimals(price), 0.0, tradePartner.getName(), \"chestshop\");\r\n \t\t\t\ttradePartner.sendMessage(L.f(L.get(\"CHEST_SELL_NOTIFICATION\"), amount, calc.twoDecimals(price), hyperObject.getName(), hp.getPlayer()));\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"CURRENTLY_CANT_SELL_MORE_THAN\"), sf.getHyperObject(hyperObject.getName(), playerecon).getStock(), hyperObject.getName()), hyperObject);\r\n \t\t\t}\r\n \t\t\treturn response;\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"Transaction sellChest() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"', owner='\" + tradePartner.getName() + \"', amount='\" + amount + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "public boolean request() {\n\t\tif (inAnySession()) {\n\t\t\tplayer.exchangeSession.reset();\n\t\t\treturn false;\n\t\t}\n\t\t\n if (!PlayerRight.isDeveloper(player) && !PlayerRight.isDeveloper(other)) {\n if (player.playTime < 3000) {\n player.message(\"You cannot trade until you have 30 minutes of playtime. \" + Utility.getTime(3000 - player.playTime) + \" minutes remaining.\");\n return false;\n }\n if (other.playTime < 3000) {\n player.message(other.getName() + \" cannot trade until they have 30 minutes of playtime.\");\n return false;\n }\n }\n\t\t \n\t\tif (getSession(other).isPresent() && getSession(other).get().inAnySession()) {\n\t\t\tplayer.message(\"This player is currently is a \" + type.name + \" with another player.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (Objects.equals(player, other)) {\n\t\t\tplayer.message(\"You cannot \" + type.name + \" with yourself.\");\n\t\t\treturn false;\n\t\t}\n if (PlayerRight.isIronman(player) && !PlayerRight.isDeveloper(other)) {\n player.message(\"You can not \" + type.name + \" as you are an iron man.\");\n return false;\n }\n if (PlayerRight.isIronman(other) && !PlayerRight.isDeveloper(player)) {\n player.message(other.getName() + \" can not be \" + type.name + \"d as they are an iron man.\");\n return false;\n }\n\t\tif (player.exchangeSession.requested_players.contains(other)) {\n\t\t\tplayer.message(\"You have already sent a request to this player.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.locking.locked()) {\n\t\t\tplayer.message(\"You cannot send a \" + type.name + \" request right now.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.locking.locked()) {\n\t\t\tplayer.message(other.getName() + \" is currently busy.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.playerAssistant.busy()) {\n\t\t\tplayer.message(\"Please finish what you are doing before you do that.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.playerAssistant.busy()) {\n\t\t\tplayer.message(other.getName() + \" is currently busy.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.inActivity(ActivityType.DUEL_ARENA)) {\n\t\t\tplayer.message(\"You can not do that whilst in a duel!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.inActivity(ActivityType.DUEL_ARENA)) {\n\t\t\tother.message(\"You can not do that whilst in a duel!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!onRequest()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn SESSIONS.add(this);\n\t}", "@Override\n\tpublic void notifyAcceptedOffer(Role role, String managerName,\n\t\t\tString managerEmail) {\n\t\tSystem.out.println(\"Send an email to \" + managerEmail + \" because \" + role.getTitle() + \" Accepted\");\n\t\t\n\t}", "public void establishDealOffer() {\n DealOffer offer = new DealOffer();\n \n int moneyToOffer = (Integer)this.playersMoneyMap.get(currentPlayer).getValue();\n offer.offerCash(moneyToOffer);\n \n Map<JCheckBox, Space> thisPlayerMap = playersCheckBoxes.get(currentPlayer);\n if (thisPlayerMap != null) {\n for (JCheckBox checkBox : thisPlayerMap.keySet()) {\n if (checkBox.isSelected()) {\n offer.addPropertyToOffer(thisPlayerMap.get(checkBox));\n }\n }\n }\n \n int moneyToRequest = (Integer)this.playersMoneyMap.get(playerToOfferTo).getValue();\n offer.requestCash(moneyToRequest);\n \n Map<JCheckBox, Space> otherPlayerMap = playersCheckBoxes.get(playerToOfferTo);\n if (otherPlayerMap != null) {\n for (JCheckBox checkBox : otherPlayerMap.keySet()) {\n if (checkBox.isSelected()) {\n offer.addPropertyToRequest(otherPlayerMap.get(checkBox));\n }\n }\n }\n this.dealOffer = offer;\n \n }", "public void trade(Drop myDrop, User receiver) {\n getInventory().removeDrop(myDrop);\n receiver.getInventory().addDrop(myDrop);\n }", "@Override\n public void offerTrade(IResourceBank offer, int recipientPlayerIndex) throws ModelException {\n IPlayer p = GameModelFacade.instance().getLocalPlayer();\n\n if (!p.canAfford(offer) || !GameModelFacade.instance().localPlayerIsPlaying() || !offer.containsResources()) {\n throw new ModelException(\"Preconditions for action not met.\");\n }\n\n try {\n String clientModel = m_theProxy.offerTrade(p.getIndex(), offer, recipientPlayerIndex);\n new ModelInitializer().initializeClientModel(clientModel, m_theProxy.getPlayerId());\n } catch (NetworkException e) {\n throw new ModelException(e);\n }\n }", "@Override\r\n\t\tpublic void action() {\n MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.ACCEPT_PROPOSAL);\r\n MessageTemplate mt2 = MessageTemplate.MatchPerformative(ACLMessage.PROPOSE);\r\n ACLMessage msg = myAgent.receive(mt);\r\n //If it is a ACCEPT_PROPOSAL, the seller sell the book to the buyer (execpt if the book if not here anymore)\r\n if (msg != null) {\r\n // ACCEPT_PROPOSAL Message received. Process it\r\n title = msg.getContent();\r\n ACLMessage reply = msg.createReply();\r\n\r\n Integer price = (Integer) catalogue.remove(title);\r\n if (price != null) {\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(String.valueOf(price));\r\n System.out.println(title+\" sold to agent \"+msg.getSender().getName());\r\n }\r\n else {\r\n // The requested book has been sold to another buyer in the meanwhile .\r\n reply.setPerformative(ACLMessage.FAILURE);\r\n reply.setContent(\"not-available\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n //If it is a new PROPOSE, the buyer is trying to negociate.\r\n else {\r\n ACLMessage msg2 = myAgent.receive(mt2);\r\n if(msg2 != null){\r\n ACLMessage reply = msg2.createReply();\r\n //If the price of the buyer is OK for the seller according to his tolerance, the transaction is made\r\n if(((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) <= tolerance){\r\n System.out.println(myAgent.getLocalName() + \" say : OK, let's make a deal\");\r\n updateCatalogue(title, Integer.parseInt(msg2.getContent()));\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(msg2.getContent());\r\n }\r\n //Else, the seller accept to negociate, he up his tolerance and ask the buyer to up his real price\r\n else{\r\n //Send a REQUEST Message to negociate with the buyer\r\n reply.setPerformative(ACLMessage.REQUEST);\r\n //Up the tolerance by *change*\r\n tolerance += change;\r\n reply.setContent(String.valueOf(change));\r\n System.out.println(myAgent.getLocalName() + \" say : Let's up your real price while I up my tolerance (\" + ((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) + \" < \" + tolerance + \")\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n else{\r\n block();\r\n }\r\n }\r\n\t\t}", "public void onTradeRequest(String name)\n {\n\t\tif(traded_ammount > 0)\n\t\t{\n\t\t\ttraded_ammount = 0;\n\t\t\ttime = System.currentTimeMillis();\n\t\t}\n\t\tint[] player = getPlayerByName(name);\n\t\tint player_id = getPlayerPID(player[0]);\n\t\tsendTradeRequest(player_id);\n }", "public void sellTicket(String buyer) {\n\t\t/* !!!! Complete the implementation for this method\n\t\t * by invoking the method of a Box object.\n\t\t */\n\t\tticketBox.put(new Ticket(buyer));\n\t\t\n\t}", "@Override\n public void acceptTrade(boolean willAccept) throws ModelException {\n if (willAccept && !GameModelFacade.instance().canAcceptTrade()) {\n throw new ModelException(\"Preconditions for action not met.\");\n }\n\n IPlayer p = GameModelFacade.instance().getLocalPlayer();\n assert GameModelFacade.instance().getGame().getTradeOffer().getReceiver().equals(p);\n\n try {\n String clientModel = m_theProxy.acceptTrade(p.getIndex(), willAccept);\n new ModelInitializer().initializeClientModel(clientModel, m_theProxy.getPlayerId());\n } catch (NetworkException e) {\n throw new ModelException(e);\n }\n }", "void confirmRealWorldTrade(IUserAccount user, ITransaction trans);", "public int approve(String seller, String name, int itemID) {\n //store method to accept purchase of item with itemID and buyer with name\n return itemID;\n }", "public boolean acceptedTradeOffer()\n\t{\n\t\treturn m_isReadyToTrade;\n\t}", "void acceptTrade(boolean accept);", "@Override\n protected void trade(){\n // An example of a random trade proposal: offer peasants in exchange of soldiers\n // Pick the id of the potential partner (without checking if it is my neighbor)\n double pertnerID = (new Random()).nextInt(42)+1;\n trade[0] = pertnerID;\n // Choose the type of good demanded (peasants - 3)\n double demandType = 3;\n trade[1] = demandType;\n // Choose the amount of demanded goods\n double demand = Math.random();\n trade[2] = demand;\n // Choose the type of good offered in exchange (peasants - 2)\n double offerType = 2;\n trade[3] = offerType;\n // Choode the amount of goods offered in exchange (random but less than my total number of peasants)\n double offer = (new Random()).nextDouble()*myTerritory.getPeasants();\n trade[4] = offer;\n\n // This procedure updated the array trade, which contains the information\n // about trade proposals of the current lord\n }", "@RequestMapping(value = \"tradeOffer\",method = RequestMethod.GET)\n public @ResponseBody BotResult tradeOffer(String steamId) throws IOException, ServiceException {\n int r = processOrderService.answer(steamId);\n switch (r){\n case 0:\n return new BotResult(true,\"发送报价成功\",null);\n case 1:\n return new BotResult(false,\"未找到您的订单\",null);\n default:\n return new BotResult(false,\"服务器未知错误,请联系客服\",null);\n }\n }", "public void handleLastAcceptedOffer(String participant, long price);", "@Override\n\tpublic void msgPaymentAccepted(Lord l,double amount) {\n\t\t\n\t}", "public DealOffer getDealOffer() {\n return dealOffer;\n }", "public void sell(int amount, JsonObject quote, Handler<AsyncResult<Portfolio>> resultHandler) { \n delegate.sell(amount, quote, resultHandler);\n }", "public void askToAll() {\n\t\tfor(ClientThread player: players) {\n\t\t\tif(player != dealer)\n\t\t\t\tplayer.send(new Package(\"ASK\",null));\n\t\t\telse {\n\t\t\t\tdealer.send(new Package(\"MESSAGE\",\"As dealer, you'll wait for other players...\"));\n\t\t\t}\n\t\t}\n\t}", "public final void give(final Player player) {\n\t\tplayer.getInventory().addItem(this.getItem());\n\t}", "RequestSender onAgree(Consumer<Message> consumer);", "public TransactionResponse buyEnchant() {\r\n \t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\tCalculation calc = hc.getCalculation();\r\n \t\tAccount acc = hc.getAccount();\r\n \t\tLog log = hc.getLog();\r\n \t\tNotification not = hc.getNotify();\r\n \t\tInfoSignHandler isign = hc.getInfoSignHandler();\r\n \t\ttry {\r\n \t\t\tString playerecon = hp.getEconomy();\r\n \t\t\tPlayer p = hp.getPlayer();\r\n \t\t\tString nenchant = hyperObject.getMaterial();\r\n \t\t\tEnchantment ench = Enchantment.getByName(nenchant);\r\n \t\t\tint shopstock = 0;\r\n \t\t\tshopstock = (int) hyperObject.getStock();\r\n \t\t\tif (shopstock >= 1) {\r\n \t\t\t\tString mater = p.getItemInHand().getType().toString();\r\n \t\t\t\tdouble price = hyperObject.getCost(EnchantmentClass.fromString(mater));\r\n \t\t\t\tprice = price + hyperObject.getPurchaseTax(price);\r\n \t\t\t\tif (price != 123456789) {\r\n \t\t\t\t\tif (!im.containsEnchantment(p.getItemInHand(), ench)) {\r\n \t\t\t\t\t\tif (acc.checkFunds(price, p)) {\r\n \t\t\t\t\t\t\tif (im.canAcceptEnchantment(p.getItemInHand(), ench) && p.getItemInHand().getAmount() == 1) {\r\n \t\t\t\t\t\t\t\thyperObject.setStock(shopstock - 1);\r\n \t\t\t\t\t\t\t\tacc.withdraw(price, p);\r\n \t\t\t\t\t\t\t\tacc.depositShop(price);\r\n \t\t\t\t\t\t\t\tif (hc.getYaml().getConfig().getBoolean(\"config.shop-has-unlimited-money\")) {\r\n \t\t\t\t\t\t\t\t\tString globalaccount = hc.getYaml().getConfig().getString(\"config.global-shop-account\");\r\n \t\t\t\t\t\t\t\t\tacc.setBalance(0, globalaccount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tint l = hyperObject.getName().length();\r\n \t\t\t\t\t\t\t\tString lev = hyperObject.getName().substring(l - 1, l);\r\n \t\t\t\t\t\t\t\tint level = Integer.parseInt(lev);\r\n \t\t\t\t\t\t\t\tim.addEnchantment(p.getItemInHand(), ench, level);\r\n \t\t\t\t\t\t\t\tboolean stax;\r\n \t\t\t\t\t\t\t\tstax = Boolean.parseBoolean(hyperObject.getIsstatic());\r\n \t\t\t\t\t\t\t\tdouble taxrate;\r\n \t\t\t\t\t\t\t\tif (!stax) {\r\n \t\t\t\t\t\t\t\t\ttaxrate = hc.getYaml().getConfig().getDouble(\"config.enchanttaxpercent\");\r\n \t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\ttaxrate = hc.getYaml().getConfig().getDouble(\"config.statictaxpercent\");\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tdouble taxpaid = price - (price / (1 + taxrate / 100));\r\n \t\t\t\t\t\t\t\ttaxpaid = calc.twoDecimals(taxpaid);\r\n \t\t\t\t\t\t\t\tprice = calc.twoDecimals(price);\r\n \t\t\t\t\t\t\t\tresponse.addSuccess(L.f(L.get(\"ENCHANTMENT_PURCHASE_MESSAGE\"), 1, price, hyperObject.getName(), calc.twoDecimals(taxpaid)), calc.twoDecimals(price), hyperObject);\r\n \t\t\t\t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\t\t\t\tString type = \"dynamic\";\r\n \t\t\t\t\t\t\t\tif (Boolean.parseBoolean(hyperObject.getInitiation())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"initial\";\r\n \t\t\t\t\t\t\t\t} else if (Boolean.parseBoolean(hyperObject.getIsstatic())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"static\";\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tlog.writeSQLLog(p.getName(), \"purchase\", hyperObject.getName(), 1.0, price, taxpaid, playerecon, type);\r\n \r\n \t\t\t\t\t\t\t\tisign.updateSigns();\r\n \t\t\t\t\t\t\t\tnot.setNotify(hyperObject.getName(), mater, playerecon);\r\n \t\t\t\t\t\t\t\tnot.sendNotification();\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tresponse.addFailed(L.get(\"ITEM_CANT_ACCEPT_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tresponse.addFailed(L.get(\"INSUFFICIENT_FUNDS\"), hyperObject);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tresponse.addFailed(L.get(\"ITEM_ALREADY_HAS_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.get(\"ITEM_CANT_ACCEPT_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"THE_SHOP_DOESNT_HAVE_ENOUGH\"), hyperObject.getName()), hyperObject);\r\n \t\t\t}\r\n \t\t\treturn response;\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"ETransaction buyEnchant() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "public void cancelTradeOffer()\n\t{\n\t\tm_trade.cancelOffer(this);\n\t}", "@Override\r\n\tpublic void onTrade(Trade trade) throws Exception {\n\t\t\r\n\t}", "boolean canAcceptTrade();", "public TransactionResponse buyEnchantFromItem() {\r\n \t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\tCalculation calc = hc.getCalculation();\r\n \t\tAccount acc = hc.getAccount();\r\n \t\tLog log = hc.getLog();\r\n \t\ttry {\r\n \t\t\tPlayer p = hp.getPlayer();\r\n \t\t\tString nenchant = \"\";\r\n \t\t\tnenchant = hyperObject.getMaterial();\r\n \t\t\tEnchantment ench = Enchantment.getByName(nenchant);\r\n \t\t\tString mater = p.getItemInHand().getType().toString();\r\n \t\t\tdouble price = hyperObject.getValue(EnchantmentClass.fromString(mater));\r\n \t\t\tif (price != 123456789) {\r\n \t\t\t\tif (!im.containsEnchantment(p.getItemInHand(), ench)) {\r\n \t\t\t\t\tif (im.canAcceptEnchantment(p.getItemInHand(), ench) && p.getItemInHand().getAmount() == 1) {\r\n \t\t\t\t\t\tif (acc.checkFunds(price, p)) {\r\n \t\t\t\t\t\t\tacc.withdraw(price, p);\r\n \t\t\t\t\t\t\tacc.depositAccount(price, tradePartner.getName());\r\n \t\t\t\t\t\t\tint l = hyperObject.getName().length();\r\n \t\t\t\t\t\t\tString lev = hyperObject.getName().substring(l - 1, l);\r\n \t\t\t\t\t\t\tint level = Integer.parseInt(lev);\r\n \t\t\t\t\t\t\tim.addEnchantment(p.getItemInHand(), ench, level);\r\n \t\t\t\t\t\t\tim.removeEnchantment(giveItem, ench);\r\n \t\t\t\t\t\t\tprice = calc.twoDecimals(price);\r\n \t\t\t\t\t\t\tresponse.addSuccess(L.f(L.get(\"PURCHASE_ENCHANTMENT_CHEST_MESSAGE\"), 1, calc.twoDecimals(price), hyperObject.getName(), tradePartner.getName()), calc.twoDecimals(price), hyperObject);\r\n \t\t\t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\t\t\tlog.writeSQLLog(p.getName(), \"purchase\", hyperObject.getName(), 1.0, price, 0.0, tradePartner.getName(), \"chestshop\");\r\n \t\t\t\t\t\t\ttradePartner.sendMessage(L.f(L.get(\"CHEST_ENCHANTMENT_BUY_NOTIFICATION\"), 1, calc.twoDecimals(price), hyperObject.getName(), p));\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tresponse.addFailed(L.get(\"INSUFFICIENT_FUNDS\"), hyperObject);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tresponse.addFailed(L.get(\"ITEM_CANT_ACCEPT_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.get(\"ITEM_ALREADY_HAS_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.get(\"ITEM_CANT_ACCEPT_ENCHANTMENT\"), hyperObject);\r\n \t\t\t}\r\n \t\t\treturn response;\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"ETransaction buyChestEnchant() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"', owner='\" + tradePartner.getName() + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "private boolean willComputerTrade(LinkedList<Card> initiatorTradeItems, LinkedList<Card> otherPlayerTradeItems, Player otherPlayer) {\n\t\tint tradeValue = 0;\n\t\tfor (Card item : initiatorTradeItems)\n\t\t\ttradeValue += AICardEvaluator.getCardValueToPlayer(item, otherPlayer, otherPlayer.getHandCards());\n\t\tfor (Card item : otherPlayerTradeItems)\n\t\t\ttradeValue -= AICardEvaluator.getCardValueToPlayer(item, otherPlayer, otherPlayer.getHandCards());\n\t\t\n\t\t// factor in initiator rank and trade value, depending on other player's computer level\n\t\tif (otherPlayer.getPlayerType() == PlayerType.COMPUTER_MEDIUM) {\n\t\t\tint initiatorTradeValue = 0;\n\t\t\tfor (Card item : otherPlayerTradeItems)\n\t\t\t\tinitiatorTradeValue += AICardEvaluator.getCardValueToPlayer(item, initiator, null);\n\t\t\tfor (Card item : initiatorTradeItems)\n\t\t\t\tinitiatorTradeValue -= AICardEvaluator.getCardValueToPlayer(item, initiator, null);\n\t\t\ttradeValue -= initiatorTradeValue;\n\t\t}\n\t\telse if (otherPlayer.getPlayerType() == PlayerType.COMPUTER_HARD) {\n\t\t\tdouble playerFactor = GM.getPlayers().size() - AIManager.getRankedPlayers().indexOf(initiator);\n\t\t\tplayerFactor /= (double)GM.getPlayers().size();\n\t\t\tplayerFactor *= 2.0;\n\t\t\tint initiatorTradeValue = 0;\n\t\t\tfor (Card item : otherPlayerTradeItems)\n\t\t\t\tinitiatorTradeValue += AICardEvaluator.getCardValueToPlayer(item, initiator, null);\n\t\t\tfor (Card item : initiatorTradeItems)\n\t\t\t\tinitiatorTradeValue -= AICardEvaluator.getCardValueToPlayer(item, initiator, null);\n\t\t\ttradeValue -= initiatorTradeValue * playerFactor;\n\t\t}\n\t\t\n\t\treturn (tradeValue >= 0);\n\t}", "@Test\n void checkManagerWithPermissionGetAlert(){\n LinkedList<PermissionEnum.Permission> list=new LinkedList<>();\n list.add(PermissionEnum.Permission.RequestBidding);\n tradingSystem.AddNewManager(EuserId,EconnID,storeID,NofetID);\n tradingSystem.EditManagerPermissions(EuserId,EconnID,storeID,NofetID,list);\n Response Alert=new Response(\"Alert\");\n store.sendAlertOfBiddingToManager(Alert);\n //??\n }", "protected void handleBuy(Message m) {\n return;\n }", "@Override\n\tpublic void satisfyTrade(TickEvent<Trade> tradeEvent) throws TradeException {\n\n\t}", "public void denyTrade(Trade trade) {\n Player owner = trade.getOwner();\n Player targetPlayer = trade.getTarget();\n owner.removeTrade(trade);\n targetPlayer.removeTrade(trade);\n }", "@Ignore\n\t@Test\n\tpublic void testAgentAccepts() {\n\t\tparty.connect(connection);\n\t\tparty.notifyChange(settings);\n\n\t\tBid bid = makeBid(\"1\", \"1\");// best pssible\n\t\tparty.notifyChange(new ActionDone(new Offer(otherparty, bid)));\n\t\tparty.notifyChange(new YourTurn());\n\t\tassertEquals(1, connection.getActions().size());\n\t\tassertTrue(connection.getActions().get(0) instanceof Accept);\n\n\t}", "public void updateOwners() {\n\t\tbuyOrder.getOwner().executedOrder(buyOrder,this);\n\t\tsellOrder.getOwner().executedOrder(sellOrder,this);\n\t}", "Trade matchOrder(List<Order> buyList, List<Order> sellList) throws \n OrderBookOrderException, OrderBookTradeException;", "public boolean canTrade()\n\t{\n\t\treturn System.currentTimeMillis() - m_lastTrade > 60 * 1000 && getPartyCount() >= 2;\n\t}", "@Override\n public void sell() {\n }", "public void examine (Player player) {\n\t\tString desc = getType().getDescription()+\" (id=\"+id+\", amount=\"+amount+\")\";\n\t\tplayer.getDispatcher().sendGameMessage(desc);\n\t\tint value = Virtue.getInstance().getExchange().lookupPrice(id);\n\t\tif (value != -1) {\n\t\t\tplayer.getDispatcher().sendGameMessage(\"This item is worth: \"+StringUtility.formatNumber(value)\n\t\t\t\t\t+\"gp on the Grand Exchange.\");\n\t\t}\n\t}", "public void trade(Player player, Type type, int[] trade) {\n \t\taddResources(type, 1);\n \t\tplayer.useResources(type, 1);\n \n \t\tfor (int i = 0; i < Hexagon.TYPES.length; i++) {\n \t\t\tif (trade[i] <= 0)\n \t\t\t\tcontinue;\n \n \t\t\tuseResources(Hexagon.TYPES[i], trade[i]);\n \t\t\tplayer.addResources(Hexagon.TYPES[i], trade[i]);\n \n \t\t\tfor (int j = 0; j < trade[i]; j++) {\n \t\t\t\tappendAction(R.string.player_traded_away, Hexagon\n \t\t\t\t\t\t.getTypeStringResource(Hexagon.TYPES[i]));\n \t\t\t}\n \t\t}\n \n \t\tappendAction(R.string.player_traded_with, player.getName());\n \t\tappendAction(R.string.player_got_resource, Hexagon\n \t\t\t\t.getTypeStringResource(type));\n \t}", "public void buy() throws CannotAffordException {\r\n\t\tGame game = Game.getInstance();\r\n\t\tgame.decreaseBudget(price);\r\n\t\tgame.getInventory().add(id);\r\n\t}", "TradeItem createTradeItem(Account proposer, Flippo proposerFlippo, Account receiver, Flippo receiverFlippo);", "public void dealerTurn() {\n\t\tview.writeLog(\"All players pass, dealer's turn.\");\n\t\tdealer.send(new Package(\"MESSAGE\",\"Now is your turn.\"));\n\t\tdealer.send(new Package(\"ASK\",null));\n\t}", "void onDemandAsked(Vehicule newDemand);", "java.lang.String getSeller();", "@Override\r\n\tpublic void setTrade(Trade trade) {\n\t\t this.trade = trade;\r\n\t}", "public RequestResponseBehaviour(BoatCoordinator myAgent, MessageTemplate mt) {\n super(myAgent, mt);\n showMessage(\"Waiting REQUESTs from authorized agents\");\n this.receiver = receiver;\n }", "public InventoryView openMerchant ( Villager trader , boolean force ) {\n\t\treturn extract ( handle -> handle.openMerchant ( trader , force ) );\n\t}", "@Override\n\tpublic void passedBy() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(250);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 250 dollars by landing on Bonus Square\");\n\n\t}", "public void addBuy(RightFormEvent rfe) {\n\t\tdbs.addBuy(buy);\r\n\t}", "public void addTradeRequest(TradeRequest request){\n tradeRequests.add(request);\n }", "boolean CanOfferTrade(Resources offer);", "public void updateMoney()\n\t\t{\n\t\t\t\n\t\t\tFPlayer p1 = this.viewer;\n\t\t\tFPlayer p2 = (p1.equals(this.t.p1)) ? this.t.p2 : this.t.p1;\n\t\t\t\n\t\t\tItemStack om = new ItemStack(Material.GREEN_WOOL,1);\n\t\t\tItemMeta it = om.getItemMeta();\n\t\t\tit.setDisplayName(ChatColor.DARK_GREEN+ChatColor.BOLD.toString()+\"Money in trade:\");\n\t\t\tit.setLore(Arrays.asList(new String[] {\"\",Util.getMoney(this.t.getMoneyTraded(p1)),\"\",\"Click to add/remove money from trade\"}));\n\t\t\tom.setItemMeta(it);\n\t\t\t\n\t\t\tif (this.canAdd()) super.contents.put(0,new ItemSwapMenu(this,om,new MenuMoney(super.viewer,this.t)));\n\t\t\telse super.contents.put(0,new ItemDummy(this,om));\n\t\t\t\n\t\t\t// Trader money in trade\n\t\t\tItemStack tm = new ItemStack(Material.GREEN_WOOL,1);\n\t\t\tit = tm.getItemMeta();\n\t\t\tit.setDisplayName(ChatColor.DARK_GREEN+ChatColor.BOLD.toString()+\"Money in trade:\");\n\t\t\tit.setLore(Arrays.asList(new String[] {\"\",Util.getMoney(this.t.getMoneyTraded(p2))}));\n\t\t\ttm.setItemMeta(it);\n\t\t\tsuper.contents.put(8,new ItemDummy(this,tm));\n\t\t\tthis.composeInv();\n\t\t}", "@Override\n\tpublic void update(Peer otherPeer) {\n\t\tList<Request> requests = peer.getRequests();\n\t\tfor(Request request : requests){\n\t\t\tif(otherPeer.equals(request.getConsumer()) || otherPeer.equals(request.getProvider()))\t\t\n\t\t\t\tupdateAccounting(request);\n\t\t}\t\n\t\t\n\t\t/**\n\t\t * Once the accounting for all requests of this peer was performed, \n\t\t * we now update the lastUpdatedTime of this accounting info. \n\t\t */\n\t\tgetAccountingInfo(otherPeer).setLastUpdated(TimeManager.getInstance().getTime());\n\t\t\n\t\tfinishRequests();\t\t\n\t}", "public String getSeller() {\n return seller;\n }", "public String getSeller() {\n return seller;\n }", "public void createTrade(String symbol, String fiat, String type, double amount) {\n // Type should be \"sell\" or \"buy\"\n if (!type.equals(\"sell\") && !type.equals(\"buy\"))\n return; // TODO - throw exception here\n\n // Create request object\n JSONObject data = new JSONObject();\n try {\n data.put(\"uuid\", getUUID());\n data.put(\"type\", type);\n data.put(\"fiat_value\", amount);\n data.put(\"fiat\", fiat);\n data.put(\"crypto_symbol\", symbol);\n } catch (JSONException e) {\n return; // TODO - throw exception here\n }\n\n api.createTrade(new VolleyJsonCallback() {\n @Override\n public void onSuccess(JSONObject json) throws JSONException {\n Trade t = new Trade(\n json.getString(\"uuid\"),\n json.getString(\"type\"),\n json.getDouble(\"fiat_value\"),\n json.getString(\"fiat\"),\n json.getDouble(\"crypto_value\"),\n json.getString(\"crypto_symbol\")\n );\n\n user.AddTrade(t);\n\n String typeStr = (type == \"buy\") ? \"Bought \" : \"Sold \";\n String text = typeStr + t.fiat_value + \"€ of \" + t.crypto_symbol;\n Toast.makeText(getApplicationContext(), text, Toast.LENGTH_LONG).show();\n\n // Create notification if enabled and trade is a buy\n if (getNotificationEnabled() && t.type.equals(\"buy\")) {\n Intent intent = new Intent(App.this, UpdateBroadcast.class);\n intent.putExtra(\"symbol\", t.crypto_symbol);\n intent.putExtra(\"fiat_price\", t.fiat_value);\n intent.putExtra(\"crypto_value\", t.crypto_value);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(App.this, 0, intent, 0);\n\n AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);\n\n long currentTime = System.currentTimeMillis();\n //long remindIn = 1000 * 60 * 60; // Remind in this many milliseconds (1h)\n long remindIn = 1000 * 5;\n\n alarmManager.set(AlarmManager.RTC_WAKEUP, currentTime+remindIn, pendingIntent);\n }\n }\n\n @Override\n public void onError(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG).show();\n }\n }, data);\n }", "public void setSeller(String seller) {\n this.seller = seller;\n }", "public void setSeller(String seller) {\n this.seller = seller;\n }", "@Override\n\tpublic boolean approvePartner(Partner partner) {\n\t\treturn false;\n\t}", "public abstract void sellItem(AbstractItemAPI item);", "public void testBidDeclineNotification(){\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n // owner.declineBid(thing1, bid);\n //assertTrue(borrower.notifiedOfDeclinedBid(bid));\n\n assertTrue(false);\n }", "public void sell() {\n for (Company x : _market.getCompanies()) {\n if (x.getRisk() > _confidence || x.numLeft() < 3 || x.getRisk() < _confidence - 15){\n if (_stocks.get(x) == 1) {\n _stocks.remove(x);\n } else {\n _stocks.put(x, _stocks.get(x) - 1);\n }\n _money += x.getPrice();\n x.gain();\n break;\n } else {\n _happy = true;\n }\n }\n }", "private void botTrading(){\n if(game.isCardPositive(game.getHighestSharePriceStock())){\n int numShares = player.getFunds()/(game.getHighestSharePriceStock().getSharePrice()+3);\n player.getShares().set(game.getIndex(game.getHighestSharePriceStock()), player.getShares().get(game.getIndex(game.getHighestSharePriceStock())) + numShares);\n player.setFunds(-numShares*(game.getHighestSharePriceStock().getSharePrice()+3));\n }\n }", "public void doLogicBuy() {\n\t\tif (!player.isHuman) {\n\t\t\tif (player.money > estimatedFee * 1.5) //\n\t\t\t{\n\t\t\t\tint free = (int) (player.money - estimatedFee * 1.5);\n\t\t\t\tCell c = board.getCells().get(player.position);\n\t\t\t\tif (c instanceof TradeableCell) {\n\t\t\t\t\tTradeableCell tc = (TradeableCell) c;\n\t\t\t\t\tif (tc.getOwner() == null && tc.getPrice() < free) {\n\t\t\t\t\t\ttc.buy(player);\n\t\t\t\t\t\tboard.addMessage(\"Just bought\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void performMarginalSellOrder(\n\t\tStockExchangeLevel1View traderMarketView) {\n\n\t\tStock randomStock = chooseElement(inventory.keySet(), random);\n\n\t\tLong bestBidPrice = \n\t\t\ttraderMarketView.getBestBidPrice(randomStock);\n\n\t\tLong price = bestBidPrice - 1l;\n\n\t\tInteger quantity = random.nextInt(inventory.get(randomStock));\n\n\t\tDefaultLimitSellOrder defaultLimitSellOrder = new DefaultLimitSellOrder(this, randomStock, quantity, price);\n\t\ttraderMarketView.placeLimitSellOrder(defaultLimitSellOrder);\n\n\t}", "@Override\n public boolean hire(Seller seller) {\n sellerDao.save(seller);\n return true;\n }", "private void forwardToClientDemands(final int widgetToLoad) {\n Timer additionalAction = new Timer() {\n @Override\n public void run() {\n eventBus.goToClientDemandsModule(null, widgetToLoad);\n }\n };\n if (displayThankYouPopup) {\n eventBus.showThankYouPopup(\n Storage.MSGS.thankYouCodeActivatedToClientDashboard(), additionalAction);\n } else {\n eventBus.goToClientDemandsModule(null, widgetToLoad);\n }\n }", "public String offerTrade(OfferTrade offerTrade) throws Exception {\n\t\tString url = server_url + \"/moves/offerTrade\";\n\t\tURL obj = new URL(url);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\n\t\t//add request header\n\t\tcon.setRequestMethod(\"POST\");\n\t\tcon.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n\t\tcon.setRequestProperty(\"Accept-Language\", \"en-US,en;q=0.5\");\n\t\tcon.setRequestProperty(\"Cookie\", usercookie + \"; \" + gamecookie);\n\t\t\n\t\tJsonObject info = new JsonObject();\n\t\tinfo.addProperty(\"type\",\"offerTrade\");\n\t\tinfo.addProperty(\"playerIndex\", offerTrade.playerIndex);\n\t\tinfo.addProperty(\"receiver\", offerTrade.receiverIndex);\n\t\t\n\t\tJsonObject offer = new JsonObject();\n\t\toffer.addProperty(\"wood\", offerTrade.wood);\n\t\toffer.addProperty(\"sheep\", offerTrade.sheep);\n\t\toffer.addProperty(\"ore\", offerTrade.ore);\n\t\toffer.addProperty(\"wheat\", offerTrade.wheat);\n\t\toffer.addProperty(\"brick\", offerTrade.brick);\n\t\tinfo.add(\"offer\", offer);\n\t\t\n\t\t// Send post request\n\t\tcon.setDoOutput(true);\n\t\tDataOutputStream wr = new DataOutputStream(con.getOutputStream());\n\t\twr.writeBytes(info.toString());\n\t\twr.flush();\n\t\twr.close();\n\n\t\tint responseCode = con.getResponseCode();\n\t\t//System.out.println(\"\\nSending 'POST' request to URL : \" + url);\n\t\t//System.out.println(\"Post parameters : \" + info.toString());\n\t\t//System.out.println(\"Response Code : \" + responseCode);\n\n\t\tif (responseCode == 400) {\n\t\t\tthrow new Exception();\n\t\t}\n\t\tBufferedReader in = new BufferedReader(\n\t\t new InputStreamReader(con.getInputStream()));\n\t\tString inputLine;\n\t\tStringBuffer response = new StringBuffer();\n\n\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\tresponse.append(inputLine);\n\t\t}\n\t\tin.close();\n\t\t\n\t\t//print result\n\t\t////System.out.println(response.toString());\n\t\treturn response.toString();\n\t}", "public Offer addSellOffer(OfferRequest offerRequest) {\n if (isValidOffer(offerRequest)) {\n\n if (isValidUser(offerRequest)) {\n\n Asset offerAsset = assetService.getAssetByName(offerRequest.getAsset());\n OrganisationalUnit offerOrganisationalUnit = organisationalUnitService\n .getOrganisationalUnitByName(offerRequest.getOrganisationalUnit());\n\n double offerAssetQuantity = offerRequest.getQuantity();\n\n OrganisationalUnitAsset offerOrganisationalUnitAsset = organisationalUnitAssetService\n .getOrganisationalUnitAsset(offerOrganisationalUnit, offerAsset);\n\n if (hasSufficientAssets(offerOrganisationalUnitAsset, offerAssetQuantity)) {\n\n return saveOffer(offerRequest, offerOrganisationalUnit, offerAsset, OfferType.SELL);\n }\n throw new BadRequestException(String.format(\"Not enough %s to complete the offer request\",\n offerRequest.getAsset()));\n\n }\n throw new NotFoundException(\"Organisational Unit or Asset Type does not exist\");\n } else {\n throw new BadRequestException(\"Invalid SELL Offer\");\n }\n\n }", "public void logTrade(String player1, String player2) {\n\t\ttry {\n\n\t\t\tDateFormat df = new SimpleDateFormat(\"'On' MM/dd/yyyy 'at' HH:mm:ss\");\n\t\t\tDate d = new Date();\n\t\t\tBufferedWriter log = new BufferedWriter(new FileWriter(Data.TRADE_LOG, true));\n\n\t\t\ttry {\n\t\t\t\tlog.write(df.format(d) + \", \" + player1 + \" and \" + player2 + \" traded with each other.\");\n\n\t\t\t\tlog.newLine();\n\t\t\t\tlog.newLine();\n\n\t\t\t\tlog.write(player1 + \"'s offer was: \");\n\t\t\t\tfor (int i = 0; i < ClickingButtons.ids1.size(); i++) {\n\t\t\t\t\tlog.write(ClickingButtons.amounts1.get(i) + \"x \"\n\t\t\t\t\t\t\t+ c.getItems().getItemName(ClickingButtons.ids1.get(i)) + \", \");\n\t\t\t\t}\n\n\t\t\t\tlog.newLine();\n\t\t\t\tlog.newLine();\n\n\t\t\t\tlog.write(player2 + \"'s offer was: \");\n\t\t\t\tfor (int i = 0; i < ClickingButtons.ids2.size(); i++) {\n\t\t\t\t\tlog.write(ClickingButtons.amounts2.get(i) + \"x \"\n\t\t\t\t\t\t\t+ c.getItems().getItemName(ClickingButtons.ids2.get(i)) + \", \");\n\n\t\t\t\t}\n\n\t\t\t\tlog.newLine();\n\n\t\t\t} finally {\n\t\t\t\tlog.newLine();\n\t\t\t\tlog.newLine();\n\t\t\t\tlog.newLine();\n\t\t\t\tlog.close();\n\n\t\t\t\tClickingButtons.ids1.clear();\n\t\t\t\tClickingButtons.ids2.clear();\n\t\t\t\tClickingButtons.amounts1.clear();\n\t\t\t\tClickingButtons.amounts2.clear();\n\t\t\t}\n\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}", "public static boolean receiveLotteryBuyAmount(Player player, String action, int xAmount) {\n\t\tif (!action.equals(\"BUY LOTTERY TICKETS\")) {\n\t\t\treturn false;\n\t\t}\n\t\tif (player.isAdministratorRank() && !ServerConfiguration.DEBUG_MODE) {\n\t\t\tplayer.getPA().sendMessage(\"\" + ServerConstants.getServerName() + \" is not on debug mode.\");\n\t\t\tplayer.getPA().closeInterfaces(true);\n\t\t\treturn true;\n\t\t}\n\t\tint currentCurrencyAmount = ItemAssistant.getItemAmount(player, ServerConstants.getMainCurrencyId());\n\t\tint maxAmount = Integer.MAX_VALUE / getLotteryTicketCost();\n\t\tif (xAmount > maxAmount) {\n\t\t\txAmount = maxAmount;\n\t\t}\n\t\tif (xAmount * getLotteryTicketCost() > currentCurrencyAmount) {\n\t\t\txAmount = currentCurrencyAmount / getLotteryTicketCost();\n\t\t}\n\t\tif (xAmount == 0) {\n\t\t\tplayer.getPA().closeInterfaces(true);\n\t\t\tplayer.getPA()\n\t\t\t .sendMessage(\"You need at least \" + Misc.formatNumber(getLotteryTicketCost()) + \" \" + ServerConstants.getMainCurrencyName() + \" to buy a lottery ticket.\");\n\t\t\treturn true;\n\t\t}\n\t\tLotteryDatabase data = LotteryDatabase.getPlayerLotteryInstance(player.getPlayerName());\n\t\tif (data == null) {\n\t\t\tLotteryDatabase.lotteryDatabase.add(new LotteryDatabase(player.getPlayerName(), xAmount));\n\t\t} else {\n\t\t\tdata.setTickestPurchased(data.getTicketsPurchased() + xAmount);\n\t\t}\n\t\ttotalTicketsPurchased += xAmount;\n\t\tItemAssistant.deleteItemFromInventory(player, ServerConstants.getMainCurrencyId(), xAmount * getLotteryTicketCost());\n\t\tplayer.getDH().sendStatement(\n\t\t\t\t\"You have purchased x\" + Misc.formatNumber(xAmount) + \" lottery ticket\" + Misc.getPluralS(xAmount) + \" for \" + Misc.formatNumber(xAmount * getLotteryTicketCost())\n\t\t\t\t+ \" \" + ServerConstants.getMainCurrencyName() + \".\");\n\t\tNpc npc = NpcHandler.npcs[lotteryNpcIndex];\n\t\tnpc.forceChat(\"The pot is currently at \" + getTotalPotString() + \"!\");\n\t\treturn true;\n\n\t}", "void addTrade(Trade trade);", "public boolean pay(String szDebterName, String szAmount, String szEntitledName) {\n\t\tboolean bWasAdded;\n\t\t// INFO\n\t\tplay.Logger.info(\"<BUSINESS_LOGIC> The Gelt was'nt confirmed by the debter \" + szDebterName\n\t\t\t\t+ \" the system will delete from the data_base\");\n\t\t// Delete from the records of the temp debts who waiting for confirm\n\t\tbWasAdded = deleteDebt(szDebterName, szAmount, szEntitledName);\n\t\treturn bWasAdded;\n\t}", "AddonRecommendationTransmitter getAddonRecommendationTransmitter();", "public void buyIn(double buyingAmount) {\n if (bankroll > buyingAmount) {\n bankroll -= buyingAmount;\n activePlayer = true;\n }\n }", "@Override\n public void use(AbstractPlayer p, AbstractMonster m) {\n addToBot(new GainBlockAction(p,block));\n if (AbstractDungeon.player.hand.contains(this)){\n if (AbstractDungeon.player.hand.group.indexOf(this)-1 >= 0){\n addToBot(new RewindAction(AbstractDungeon.player.hand.group.get(AbstractDungeon.player.hand.group.indexOf(this)-1),AbstractDungeon.player.hand));\n }\n if (AbstractDungeon.player.hand.group.indexOf(this)+1 <= AbstractDungeon.player.hand.group.size()-1){\n addToBot(new RewindAction(AbstractDungeon.player.hand.group.get(AbstractDungeon.player.hand.group.indexOf(this)+1),AbstractDungeon.player.hand));\n }\n }\n }", "public void addBuy() {\r\n\t\tbuys++;\r\n\t\tnotifyObservers();\r\n\t}", "private void doAgentRequest(final String amount) {\n\n bankRequestObject = new JSONObject();\n try {\n bankRequestObject.put(Constants.CLASS_TRANSACTIONS_FROM, mCurrentUser);\n bankRequestObject.put(Constants.CLASS_TRANSACTIONS_TYPE, Constants.CLASS_TRANSACTIONS_TYPE_FUNDS_REQUEST_AGENT);\n bankRequestObject.put(Constants.CLASS_TRANSACTIONS_AMOUNT, Integer.parseInt(amount));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n mProgressBar.setVisibility(View.INVISIBLE);\n\n saveTransaction(amount, Constants.CLASS_TRANSACTIONS_TYPE_FUNDS_REQUEST_AGENT);\n\n Fragment showQRFragment = new ShowQR();\n Bundle qrContent = new Bundle();\n qrContent.putString(\"qrData\", bankRequestObject.toString());\n showQRFragment.setArguments(qrContent);\n mFormWrap.setVisibility(View.GONE);\n getSupportFragmentManager().beginTransaction().replace(mContainer.getId(), showQRFragment).commit();\n showDone();\n\n }", "public static String requestTransfer(Player player, Team playersTeam, double bid, Library library, TransferList existingTransfers) {\n\t\tif (playersTeam.isMax()) {\n\t\t\treturn \"You already have 30 players in your team, this is the maximum. Sell some players before trying to buy any new!\";\n\t\t} else {\n\t\tif (existingTransfers.getTransfer(player)==null) {\n\t\t\tboolean answer = TransferLogic.getAnswer(player, bid, library, existingTransfers);\n\t\t\tif (answer) {\n\t\t\t\tTeam opponentsTeam = library.getTeamForName(player.getTeam());\n\t\t\t\topponentsTeam.deleteIfInCurrentTeam(player);\n//\t\t\t\tif (opponentsTeam.getPositions().contains(player)) {\n//\t\t\t\t\t\n//\t\t\t\t\tboolean itsdone=false;\n//\t\t\t\t\tfor (int i=0;i<opponentsTeam.getTeam().size();i++) {\n//\t\t\t\t\t\tif (!itsdone) {\n//\t\t\t\t\t\t\tPlayer p = opponentsTeam.getTeam().get(i);\n//\t\t\t\t\t\t\tif (p.getPlayerType().equals(player.getPlayerType()) && !(opponentsTeam.getPositions().contains(p))) {\n//\t\t\t\t\t\t\t\topponentsTeam.replacePlayerInCurrentTeam(player, p);\n//\t\t\t\t\t\t\t\titsdone=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\tif (!itsdone) {\n//\t\t\t\t\t\tfor (int i=0;i<opponentsTeam.getTeam().size();i++) {\n//\t\t\t\t\t\t\tif (!itsdone) {\n//\t\t\t\t\t\t\t\tPlayer p = opponentsTeam.getTeam().get(i);\n//\t\t\t\t\t\t\t\tif (((p instanceof FieldPlayer && player instanceof FieldPlayer) || (p instanceof Goalkeeper && player instanceof Goalkeeper)) && !(opponentsTeam.getPositions().contains(p))) {\n//\t\t\t\t\t\t\t\t\topponentsTeam.replacePlayerInCurrentTeam(player, p);\n//\t\t\t\t\t\t\t\t\titsdone=true;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t\t\n//\t\t\t\t\t\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\tplayersTeam.add(player);\n\t\t\t\topponentsTeam.getTeam().remove(player);\n\t\t\t\tplayer.setTeam(playersTeam.getTeamName());\n\t\t\t\tplayersTeam.setBudget(playersTeam.getBudget()-bid);\n\t\t\t\topponentsTeam.setBudget(opponentsTeam.getBudget()+bid);\n\t\t\t\tBigDecimal bbid = new BigDecimal(bid);\n\t\t\t\t\n\t\t\t\t//price string\n\t\t\t\t\n\t\t\t\tDecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US);\n\t\t\t\tbbid = bbid.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tDecimalFormat df = new DecimalFormat();\n\t\t\t\tdf.setGroupingUsed(false);\t\t\n\t\t\t\tString priceString = formatter.format(bbid.longValue());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn \"Congratulations! Your bid of \" + priceString + \" got accepted and \" + player.getName() + \" is now part of your team\";\n\t\t\t} else {\n\t\t\t\tdouble percentage = bid/player.getPrice().doubleValue()*100-100;\n\t\t\t\tdouble returnedprice=0;\n\t\t\t\tdouble price = player.getPrice().doubleValue();\n\t\t\t\tif (percentage<-10) {\n\t\t\t\t\treturnedprice=0.9*price;\n\t\t\t\t} if (percentage>=-10 && percentage<0) {\n\t\t\t\t\treturnedprice=price;\n\t\t\t\t} if (percentage>=0 && percentage<5) {\n\t\t\t\t\treturnedprice=1.05*price;\n\t\t\t\t} if (percentage>=5 && percentage<10) {\n\t\t\t\t\treturnedprice=1.1*price;\n\t\t\t\t} if (percentage>=10 && percentage<15) {\n\t\t\t\t\treturnedprice=1.15*price;\n\t\t\t\t} if (percentage>=15 && percentage<20) {\n\t\t\t\t\treturnedprice=1.2*price;\n\t\t\t\t} if (percentage>=20 && percentage<25) {\n\t\t\t\t\treturnedprice=1.25*price;\n\t\t\t\t} if (percentage>=25 && percentage<30) {\n\t\t\t\t\treturnedprice=1.3*price;\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tTransferInProgress tp = new TransferInProgress(player, returnedprice, bid);\n\t\t\t\texistingTransfers.addTransfer(tp);\n\t\t\t\tBigDecimal bbid = new BigDecimal(bid);\n\t\t\t\tBigDecimal breturnedprice = new BigDecimal(returnedprice);\n\t\t\t\t//price string\n\t\t\t\t\n\t\t\t\tDecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US);\n\t\t\t\tbbid = bbid.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tbreturnedprice = breturnedprice.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tDecimalFormat df = new DecimalFormat();\n\t\t\t\tdf.setGroupingUsed(false);\t\t\n\t\t\t\tString priceString = formatter.format(bbid.longValue());\n\t\t\t\tString priceString2 = formatter.format(breturnedprice.longValue());\n\t\t\t\treturn player.getTeam() + \" did not accept your offer of \" + priceString + \" for \" + player.getName() + \". They have indicated they want at least \" + priceString2 + \" for this player\";\n\t\t\t\t\n\t\t\t}\n\t\t} else {\n\t\t\tTransferInProgress tp = existingTransfers.getTransfer(player);\n\t\t\tboolean answer = TransferLogic.getAnswerForExistingTransfer(player, bid, library, existingTransfers, tp.getPriceReturned());\n\t\t\tif (answer) {\n\t\t\t\tTeam opponentsTeam = library.getTeamForName(player.getTeam());\n\t\t\t\topponentsTeam.deleteIfInCurrentTeam(player);\n//\t\t\t\tif (opponentsTeam.getPositions().contains(player)) {\n//\t\t\t\t\tboolean itsdone=false;\n//\t\t\t\t\tfor (int i=0;i<opponentsTeam.getTeam().size();i++) {\n//\t\t\t\t\t\tif (!itsdone) {\n//\t\t\t\t\t\t\tPlayer p = opponentsTeam.getTeam().get(i);\n//\t\t\t\t\t\t\tif (p.getPlayerType().equals(player.getPlayerType()) && !(opponentsTeam.getPositions().contains(p))) {\n//\t\t\t\t\t\t\t\topponentsTeam.replacePlayerInCurrentTeam(player, p);\n//\t\t\t\t\t\t\t\titsdone=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\tif (!itsdone) {\n//\t\t\t\t\t\tfor (int i=0;i<opponentsTeam.getTeam().size();i++) {\n//\t\t\t\t\t\t\tif (!itsdone) {\n//\t\t\t\t\t\t\t\tPlayer p = opponentsTeam.getTeam().get(i);\n//\t\t\t\t\t\t\t\tif (((p instanceof FieldPlayer && player instanceof FieldPlayer) || (p instanceof Goalkeeper && player instanceof Goalkeeper)) && !(opponentsTeam.getPositions().contains(p))) {\n//\t\t\t\t\t\t\t\t\topponentsTeam.replacePlayerInCurrentTeam(player, p);\n//\t\t\t\t\t\t\t\t\titsdone=true;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t\t\n//\t\t\t\t\t\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\tplayersTeam.add(player);\n\t\t\t\topponentsTeam.getTeam().remove(player);\n\t\t\t\tplayer.setTeam(playersTeam.getTeamName());\n\t\t\t\texistingTransfers.getTransfers().remove(tp);\n\t\t\t\tplayersTeam.setBudget(playersTeam.getBudget()-bid);\n\t\t\t\topponentsTeam.setBudget(opponentsTeam.getBudget()+bid);\n\t\t\t\tBigDecimal bbid = new BigDecimal(bid);\n\t\t\t\t//price string\n\t\t\t\t\n\t\t\t\tDecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US);\n\t\t\t\tbbid = bbid.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tDecimalFormat df = new DecimalFormat();\n\t\t\t\tdf.setGroupingUsed(false);\t\t\n\t\t\t\tString priceString = formatter.format(bbid.longValue());\n\t\t\t\treturn \"Congratulations! Your bid of \" + priceString + \" got accepted and \" + player.getName() + \" is now part of your team\";\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tdouble pricereturned = existingTransfers.getTransfer(player).getPriceReturned();\n\t\t\t\t\n\t\t\t\tif (bid>pricereturned) {\n\t\t\t\t\tdouble percentage = bid/player.getPrice().doubleValue()*100-100;\n\t\t\t\t\tdouble returnedprice=0;\n\t\t\t\t\tdouble price = player.getPrice().doubleValue();\n\t\t\t\t\tif (percentage<-10) {\n\t\t\t\t\t\treturnedprice=0.9*price;\n\t\t\t\t\t} if (percentage>=-10 && percentage<0) {\n\t\t\t\t\t\treturnedprice=price;\n\t\t\t\t\t} if (percentage>=0 && percentage<5) {\n\t\t\t\t\t\treturnedprice=1.05*price;\n\t\t\t\t\t} if (percentage>=5 && percentage<10) {\n\t\t\t\t\t\treturnedprice=1.1*price;\n\t\t\t\t\t} if (percentage>=10 && percentage<15) {\n\t\t\t\t\t\treturnedprice=1.15*price;\n\t\t\t\t\t} if (percentage>=15 && percentage<20) {\n\t\t\t\t\t\treturnedprice=1.2*price;\n\t\t\t\t\t} if (percentage>=20 && percentage<25) {\n\t\t\t\t\t\treturnedprice=1.25*price;\n\t\t\t\t\t} if (percentage>=25 && percentage<30) {\n\t\t\t\t\t\treturnedprice=1.3*price;\n\t\t\t\t\t}\n\t\t\t\t\texistingTransfers.getTransfer(player).setPriceReturned(returnedprice);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\texistingTransfers.getTransfer(player).setBid(bid);\n\t\t\t\tBigDecimal bbid = new BigDecimal (bid);\n\t\t\t\tBigDecimal bpriceReturned = new BigDecimal(existingTransfers.getTransfer(player).getPriceReturned());\n\t\t\t\t//price string\n\t\t\t\t\n\t\t\t\tDecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US);\n\t\t\t\tbbid = bbid.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tbpriceReturned = bpriceReturned.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tDecimalFormat df = new DecimalFormat();\n\t\t\t\tdf.setGroupingUsed(false);\t\t\n\t\t\t\tString priceString = formatter.format(bbid.longValue());\n\t\t\t\tString priceString2 = formatter.format(bpriceReturned.longValue());\n\t\t\t\treturn player.getTeam() + \" did not accept your offer of \" + priceString + \" for \" + player.getName() + \". They have indicated they want at least \" + priceString2 + \" for this player\";\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}}", "static void confirm_A(Messenger messenger, Response_e response)\n {\n sendToClient(messenger, Request_e.Request_A_en.valueOf(), response, null);\n }", "@Override\r\n\t\tpublic void setTradeApplication(TradeApplication app) {\n\t\t\t\r\n\t\t}", "private void tradeCommand(){\n out.println(\"\\r\\nShares you own:\" +\n \"\\r\\nApple: \" + player.getShares().get(0) +\n \"\\r\\nBP: \" + player.getShares().get(1) +\n \"\\r\\nCisco: \" + player.getShares().get(2) +\n \"\\r\\nDell: \" + player.getShares().get(3) +\n \"\\r\\nEricsson: \" + player.getShares().get(4) +\n \"\\r\\n\\r\\nShare prices: Apple-\" + game.apple.getSharePrice() +\n \", BP-\" + game.bp.getSharePrice() +\n \", Cisco-\" + game.cisco.getSharePrice() +\n \", Dell-\" + game.dell.getSharePrice() +\n \", Ericsson-\" + game.ericsson.getSharePrice() +\n \"\\r\\n\\r\\nFunds: £\" + player.getFunds() + \", Current value of shares: £\" + getTotalShareValue(player) + \"\\r\\n\"\n );\n\n out.println(\"Would you like to buy(b) or sell(s) shares? Enter 'X' to exit.\");\n String bsInput = in.nextLine().trim();\n if (bsInput.toUpperCase().equals(\"B\")){\n getTradeParam(1); //buy\n }else if (bsInput.toUpperCase().equals(\"S\")){\n getTradeParam(0); //sell\n }else if (bsInput.toUpperCase().equals(\"X\")){\n command();\n }else{\n out.println(\"Invalid input\");\n tradeCommand();\n }\n }", "private void forwardToCreateDemands() {\n Timer additionalAction = new Timer() {\n @Override\n public void run() {\n eventBus.goToCreateDemandModule();\n }\n };\n if (displayThankYouPopup) {\n eventBus.showThankYouPopup(\n Storage.MSGS.thankYouCodeActivatedToDemandCreation(), additionalAction);\n } else {\n eventBus.goToCreateDemandModule();\n }\n }", "Offer getOffer();", "@Override\n protected void tradeOutcome(long period, int proposerID, double[] tradeProposal, boolean tradeCompleted){\n // This method provides information about the outcome of the trade, so I will leave this open to you,\n // to do whatever you want to do with the info.\n\n // period: step of the simulation in which the trade occured\n // proposerID: id of the territory that created the trade proposal (it can be yourself)\n // tradeProposal: the actual trade proposal that was either sent or received by your lord.\n // The information in the tradeProposal array is organized in the exact same way as in your own tradeProposal\n // so you can store and use that information as you wish\n // tradeCompleted: an indicator if the transaction was completed (true) or not (false)\n }", "@JsonIgnore public Participant getSeller() {\n return (Participant) getValue(\"seller\");\n }", "private void forwardToSupplierDemands(final int widgetToLoad) {\n Timer additionalAction = new Timer() {\n @Override\n public void run() {\n eventBus.goToSupplierDemandsModule(null, widgetToLoad);\n }\n };\n if (displayThankYouPopup) {\n eventBus.showThankYouPopup(\n Storage.MSGS.thankYouCodeActivatedToSupplierDashboard(), additionalAction);\n } else {\n eventBus.goToSupplierDemandsModule(null, widgetToLoad);\n }\n }", "public void applyTrade(Trade trade) {\n\t\tthis.sharesOwned += trade.getNumberOfShares();\n\t}", "private void informHospitalAgentOfSwap(AID otherAgent, AID hospitalAgent, String timestamp) {\n\n ACLMessage acceptSwapMessage = new ACLMessage(ACLMessage.INFORM);\n acceptSwapMessage.setProtocol(FIPANames.InteractionProtocol.FIPA_PROPOSE);\n acceptSwapMessage.setLanguage(patientAgent.getCodec().getName());\n acceptSwapMessage.setOntology(HospitalOntology.NAME);\n acceptSwapMessage.setConversationId(timestamp);\n acceptSwapMessage.addReceiver(hospitalAgent);\n\n AllocationSwapSummary allocationSwapSummary = new AllocationSwapSummary();\n allocationSwapSummary.setProposingAgentOldAppointment(currentlyProposedAllocationSwap.getCurrentAllocation());\n allocationSwapSummary.setProposingAgent(patientAgent.getName());\n allocationSwapSummary.setReceivingAgentOldAppointment(currentlyProposedAllocationSwap.getDesiredAllocation());\n allocationSwapSummary.setReceivingAgent(otherAgent.getName());\n allocationSwapSummary.setTimestamp(timestamp);\n\n\n try {\n patientAgent.getContentManager().fillContent(acceptSwapMessage, allocationSwapSummary);\n } catch (Codec.CodecException e) {\n throw new RuntimeException(e);\n } catch (OntologyException e) {\n throw new RuntimeException(e);\n }\n\n patientAgent.send(acceptSwapMessage);\n }", "public void actionOffered();" ]
[ "0.6371902", "0.61862385", "0.60838675", "0.60825634", "0.5989605", "0.5759881", "0.5644717", "0.56406915", "0.5629104", "0.56280166", "0.55955064", "0.5595173", "0.5594075", "0.5593241", "0.55447936", "0.5508816", "0.54788315", "0.53746086", "0.53663296", "0.53373015", "0.53325605", "0.5310893", "0.53076166", "0.528455", "0.52828985", "0.52518535", "0.5242807", "0.52208555", "0.5214566", "0.5194061", "0.5192166", "0.5189183", "0.5165798", "0.5164472", "0.51622117", "0.51065636", "0.5100909", "0.5081829", "0.50782293", "0.50597274", "0.50492764", "0.50477237", "0.5044277", "0.50156975", "0.49982154", "0.499647", "0.49707946", "0.4970697", "0.4965335", "0.4942514", "0.49405372", "0.49289784", "0.4903187", "0.48889944", "0.48854297", "0.4879101", "0.48751405", "0.48686522", "0.48588145", "0.48503715", "0.48427135", "0.48383236", "0.48322585", "0.48317137", "0.48239607", "0.48239607", "0.4805488", "0.47977963", "0.47977963", "0.4790338", "0.47895306", "0.4769202", "0.47676536", "0.4764318", "0.47626832", "0.475898", "0.47584638", "0.47411227", "0.47366962", "0.47363546", "0.47350988", "0.47322568", "0.47296336", "0.47195876", "0.47181135", "0.4716011", "0.47059435", "0.47033733", "0.4701336", "0.47002906", "0.46960828", "0.46900883", "0.46897092", "0.46865934", "0.46806476", "0.4676509", "0.46754923", "0.46737078", "0.46697393", "0.46692783", "0.4669159" ]
0.0
-1
Change the name of the team.
public static void editTeamName(League theLeague, Team theTeam, Scanner keyboard) { System.out.println(""); System.out.println("---Edit Team Name---"); System.out.println("Enter your new team name: (max 32 characters)"); System.out.println("0 - Return to Team Menu"); String teamName; do { teamName = Input.validString(32, keyboard); if (teamName.equals("0")) { return; } for (int y = 0; y < theLeague.getNumTeams(); y++) { if (teamName.equalsIgnoreCase(theLeague.getTeam(y).getTeamName())) { System.out.println("That team name is already being used."); teamName = ""; } } } while (teamName.isEmpty()); theTeam.setTeamName(teamName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTeamName(String name) {\n\t\tteamName = name;\n\t}", "public void setName(String name){\n\t\tthis.tournamentName = name;\n\t}", "public void setTeamName(String teamName) {\r\n this.teamName = teamName;\r\n }", "public void setName(String newname)\n {\n name = newname;\n \n }", "public void setName(String name)\r\n\t{\r\n\t\tthis.playerName = name;\r\n\t}", "public Team(String name) {\n this.name = name;\n }", "public void setName(String new_name){\n this.name=new_name;\n }", "public void setName(String name)\n {\n playersName = name;\n }", "public void setName(String newname){\n name = newname; \n }", "void setName(String name) {\n setStringStat(name, playerName);\n }", "private void setName(String nameIn){\r\n\t\tplayerName = nameIn;\r\n\t}", "public void setName(String new_name) {\n\t\t_name = new_name;\n\t}", "public final void setName(final String nameNew) {\n this.name = nameNew;\n }", "public void setName(String newName) {\n this.name = newName;\n }", "public void setName(String newName){\n name = newName;\n }", "public void setTeamName(String teamName) {\n\t\tthis.teamName = teamName;\n\t}", "public void setName(String newname) {\n name=newname;\n }", "public void changeName(String name) {\n this.name = name;\n }", "public void setName (String n) {\n name = n;\n }", "public void setName(String n) {\r\n name = n;\r\n }", "public void setName(String newName) {\n name = newName;\n }", "public void setName(String newName) {\n this.name = newName;\n }", "public void setName(String newName) {\n this.name = newName;\n }", "public void setName(String newName){\n name=newName;\n }", "public void setName(String newName){\n\n //assigns the value newName to the name field\n this.name = newName;\n }", "public void setName(final String name);", "public void setName(String n) {\n this.name = n;\n }", "public void setName(final String name) {\n this.name = name;\n }", "public void setName(final String name) {\n this.name = name;\n }", "@Override\r\n\tpublic void setName(String newName) \r\n\t{\r\n\t\tthis._name = newName;\r\n\t}", "public void setName(String newName) {\n name = newName;\n }", "public void setName(String newName) {\n name = newName;\n }", "public void setName( final String name )\r\n {\r\n this.name = name;\r\n }", "public void setName (String n){\n\t\tname = n;\n\t}", "public void setName(String name) {\n _name = name;\n }", "public void setName(String newName) {\n this.name = newName;\n }", "public void setName(String newName) {\n this.name = newName;\n }", "public void setName(String name)\n {\n fName = name;\n }", "public void setName(final String name) {\n this.name = name;\n }", "public void setName(final String name) {\n this.name = name;\n }", "public void setName(final String name) {\n this.name = name;\n }", "public void setName(final String name) {\n this.name = name;\n }", "public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName( String name )\n {\n this.name = name;\n }", "public void setName( String name )\n {\n this.name = name;\n }", "public void setName (String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\r\n\t\tthis.name = name;\r\r\n\t}", "public void setName(String newname) {\n\t\tname = newname == null? \"\" : newname;\n\t\tfireNameChanged();\n\t}", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(final String name) {\n\t\tGuard.ArgumentNotNullOrEmpty(name, \"name\");\n\t\t\n\t\tthis.name = name;\n\t\t\n\t\tif (bukkitPlayer != null) {\n\t\t\tbukkitPlayer.setDisplayName(name);\n\t\t\tbukkitPlayer.setCustomName(name);\n\t\t\tbukkitPlayer.setPlayerListName(name);\n\t\t}\n\t\tdb.updateField(this, \"name\", name);\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName( final String name )\n\t{\n\t\tthis.name = name;\n\t}", "public void setName(String name)\n \t{\n \t\tthis.name = name;\n \t}", "public void setName(String name){\n \t\tthis.name = name;\n \t}", "public void setName(String newValue);", "public void setName(String newValue);", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName(String name) {\r\n\t\t_name = name;\r\n\t}", "public void setName(String name) {\n \t\tthis.name = name;\n \t}", "public void setName (String name) {\n this.name = name;\n }", "public void setName( String name ) {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\n {\n this.name = name;\n }", "public void setName(String name)\r\n\t{\t\t\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\n this.name = name;\n }", "public void setName(final String name) {\n\t\tthis.name = name;\n\t}", "public void setName(final String name) {\n\t\tthis.name = name;\n\t}", "public void setName(final String name) {\n\t\tthis.name = name;\n\t}", "public void setName(final String name) {\n\t\tthis.name = name;\n\t}", "void setName(String name_);", "public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}", "public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}", "public void setName(final String name) {\n mName = name;\n }" ]
[ "0.79217255", "0.7779549", "0.75734437", "0.7567474", "0.7455916", "0.73128444", "0.73089004", "0.7289535", "0.72331756", "0.7230683", "0.7229192", "0.7215933", "0.72099406", "0.72004396", "0.71909475", "0.7183035", "0.7153083", "0.713312", "0.7128176", "0.7123449", "0.70910347", "0.70895755", "0.70895755", "0.7083084", "0.7056459", "0.7048849", "0.70364225", "0.7031214", "0.7031214", "0.702767", "0.7017956", "0.7017956", "0.70071155", "0.70025694", "0.6996523", "0.6995925", "0.6995925", "0.6994862", "0.6989316", "0.6989316", "0.6989316", "0.6989316", "0.6985209", "0.6985209", "0.69833404", "0.69833404", "0.6979732", "0.6979048", "0.697405", "0.6973012", "0.6973012", "0.6970227", "0.6970197", "0.6970197", "0.6970197", "0.6967732", "0.6965848", "0.6957423", "0.6956222", "0.6956222", "0.69531244", "0.69531244", "0.69531244", "0.69521725", "0.69521725", "0.69521725", "0.6951882", "0.6951774", "0.6951584", "0.69498056", "0.6949404", "0.6949404", "0.6949404", "0.6949404", "0.6949404", "0.6949404", "0.6949404", "0.6949404", "0.6949404", "0.6949404", "0.69448483", "0.6942347", "0.6942347", "0.6942347", "0.6942347", "0.6942347", "0.6942347", "0.6942347", "0.6942347", "0.6942347", "0.6942347", "0.6942347", "0.69419956", "0.69419956", "0.69419956", "0.69419956", "0.69378954", "0.693517", "0.6929609", "0.6926782" ]
0.72978747
7
Only available to the commissioner edit scores, edit standings, remove accepted trades after they are processed.
public static void commissionerTools(League theLeague, Scanner keyboard) { System.out.println(""); System.out.println("---Commissioner Tools---"); System.out.println("1 - Edit Scores"); System.out.println("2 - Edit Standings"); System.out.println("3 - Review Accepted Trade"); System.out.println("0 - Return to Team Menu"); switch (Input.validInt(0, 3, keyboard)) { case 1: editScores(theLeague, keyboard); break; case 2: editStandings(theLeague, keyboard); break; case 3: if (theLeague.getPendingTrade().isEmpty()) { System.out.println(""); System.out.println("--There are no accepted trades pending--"); break; } reviewAcceptedTrade(theLeague, keyboard); break; case 0: break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void botTrading(){\n if(game.isCardPositive(game.getHighestSharePriceStock())){\n int numShares = player.getFunds()/(game.getHighestSharePriceStock().getSharePrice()+3);\n player.getShares().set(game.getIndex(game.getHighestSharePriceStock()), player.getShares().get(game.getIndex(game.getHighestSharePriceStock())) + numShares);\n player.setFunds(-numShares*(game.getHighestSharePriceStock().getSharePrice()+3));\n }\n }", "private void enableRemove(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(false);\n setSubmit.setDisable(true);\n addCS.setDisable(true);\n removeCS.setDisable(false);\n setCS.setDisable(true);\n addIT.setDisable(true);\n removeIT.setDisable(false);\n setIT.setDisable(true);\n addECE.setDisable(true);\n removeECE.setDisable(false);\n setECE.setDisable(true);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(false);\n dateSetText.setDisable(true);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(false);\n nameSetText.setDisable(true);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(true);\n }", "CratePrize removeEditingUser(Player player);", "private void decreaseStock() {\n\t\tint decreaseBy; // declares decreaseBy\n\t\tint sic_idHolder; // declares sic_idHolder\n\t\t\n\t\tSystem.out.println(\"Please enter the SIC-ID of the card you wish to edit:\");\n\t\tsic_idHolder = scan.nextInt();\n\t\tscan.nextLine();\n\n\t\tif(inventoryObject.cardExists(sic_idHolder)) { // checks to see if the card with the inputed ID exists\n\t\tSystem.out.println(\"Please enter the amount you wish to decrease the stock by (Note: This should be a positive number):\");\n\t\tdecreaseBy = scan.nextInt();\n\t\tscan.nextLine();\n\t\t\n\t\tif(decreaseBy <= 0) { //checks to see is decrease by is negative\n\t\t\tSystem.out.println(\"Error! You must decrease the stock by 1 or more\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t\tif(inventoryObject.quantitySize(sic_idHolder) - decreaseBy < 0 ) { // checks to see if the current quantity minus decreasedBy is negative\n\t\t\tSystem.out.println(\"Error. Quantity can not be reduced to a negative number\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t\tinventoryObject.decreaseStock(sic_idHolder, decreaseBy); // calls decreaseStock in InventoryManagement\n\t\tgetUserInfo();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"There are no cards with the ID you entered\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t}", "private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }", "public void removeSkills()\r\n\t{\n\t\tgetPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false);\r\n\t\t// Cancel Gatekeeper Transformation\r\n\t\tgetPlayer().removeSkill(SkillTable.getInstance().getInfo(8248, 1), false);\r\n\t\tgetPlayer().removeSkill(SkillTable.getInstance().getInfo(5656, 1), false);//Update by rocknow\r\n\t\tgetPlayer().removeSkill(SkillTable.getInstance().getInfo(5657, 1), false);//Update by rocknow\r\n\t\tgetPlayer().removeSkill(SkillTable.getInstance().getInfo(5658, 1), false);//Update by rocknow\r\n\t\tgetPlayer().removeSkill(SkillTable.getInstance().getInfo(5659, 1), false, false);//Update by rocknow\r\n\r\n\t\tgetPlayer().setTransformAllowedSkills(EMPTY_ARRAY);\r\n\t}", "public void supprimerInaccessibles(){\n grammaireCleaner.nettoyNonAccGramm();\n setChanged();\n notifyObservers(\"3\");\n }", "@Scheduled(cron = \"0 0 0 * * ?\")\n\tpublic void executeMaturityTrades() {\n\t\tfinal Stream<Trade> maturedTrades = this.getTrades().stream()\n\t\t\t\t.filter(item -> item.getmDate().before(DateTimeUtils.getTodayDate()));\n\t\tmaturedTrades.forEachOrdered(item -> item.setExpired('Y'));\n\t\tSystem.out.println(\"All matured trades set to exprired.\");\n\t}", "void cancelProduction();", "public void act()\n {\n // if (claimer ==null){\n // this.setClaim(false);\n //}\n if(claimer == null){\n setClaim(false);\n }\n if (energy>0){\n \n removeEnergy(decayRate);\n\n }\n else {\n // getWorld().removeObject(this);\n\n }\n \n //check the energy decay\n //change size and weight\n //\n }", "void rejectNewOrders();", "public void soin() {\n if (!autoriseOperation()) {\n return;\n }\n if (tamagoStats.getXp() >= 2) {\n incrFatigue(-3);\n incrHumeur(3);\n incrFaim(-3);\n incrSale(-3);\n incrXp(-2);\n\n if (tamagoStats.getPoids() == 0) {\n incrPoids(3);\n } else if (tamagoStats.getPoids() == TamagoStats.POIDS_MAX) {\n incrPoids(-3);\n }\n\n setEtatPiece(Etat.NONE);\n tamagoStats.setEtatSante(Etat.NONE);\n\n setChanged();\n notifyObservers();\n }\n }", "private CommandResult clearAllLessons() {\n timetable.clearTimetable();\n logger.log(Level.INFO, \"User has cleared timetable\");\n return new CommandResult(\"Timetable has been cleared completely\");\n }", "public void updateUndo() {\n\n\t\t// player A clicked undo, special case (freeTurn)\n\t\tif (a.getFreeTurn() == true) {\n\t\t\tif (a.getUndoLimit() == 3)\n\t\t\t\treturn;\n\n\t\t\ta.setTurn(true);\n\t\t\tb.setTurn(false);\n\n\t\t\ta.setFreeTurn(false);\n\t\t\ta.incrementUndo();\n\t\t}\n\n\t\t// player B clicked undo, special case (freeTurn)\n\t\telse if (b.getFreeTurn() == true) {\n\t\t\tif (b.getUndoLimit() == 3)//\n\t\t\t\treturn;\n\n\t\t\tb.setTurn(true);\n\t\t\ta.setTurn(false);\n\n\t\t\tb.setFreeTurn(false);\n\t\t\tb.incrementUndo();\n\t\t}\n\n\t\t// player A clicked undo\n\t\telse if (a.getTurn() == false) {\n\t\t\tif (a.getUndoLimit() == 3)\n\t\t\t\treturn;\n\n\t\t\ta.setTurn(true);\n\t\t\tb.setTurn(false);\n\n\t\t\ta.incrementUndo();\n\t\t}\n\n\t\t// player B clicked undo\n\t\telse {\n\t\t\tif (b.getUndoLimit() == 3)//\n\t\t\t\treturn;\n\n\t\t\tb.setTurn(true);\n\t\t\ta.setTurn(false);\n\n\t\t\tb.incrementUndo();\n\t\t}\n\n\t\tfor (int x = 0; x < 14; x++) {\n\t\t\tint prevNumber = bucket[x].gePrevNumOfRocks();\n\t\t\tbucket[x].setnumOfRocks(prevNumber, false);\n\t\t}\n\t}", "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 }", "private void actionChangedEstimatorOFF ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetFile().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetManual().setEnabled(false);\r\n\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorAlgorithmType().setEnabled(false);\r\n\t}", "@Override\n public void onClick(View v) {\n ClearInputTextFields();\n enterAnotherJob.setEnabled(false);\n compareCurrent.setEnabled(false);\n saveJobOffer.setEnabled(true);\n cancel.setEnabled(true);\n }", "private final void maintain(){\n\t\tif(host.getStrength()>MAINTENANCE_COST){\n\t\t\thost.expend(MAINTENANCE_COST);\n\t\t}\n\t\telse{\n\t\t\tkill();\n\t\t}\n\t}", "private void courseEffects() {\n\t\t\n\t}", "public void actionPerformed(ActionEvent event) {\n selectedPeriodRemove=teacherPeriodsList.getSelectedIndex();\r\n selectedTeacherRemove=editTeachersList.getSelectedIndex(); \r\n \r\n //if there is a selected period\r\n if ((selectedPeriodRemove!=-1)&&(selectedTeacherRemove!=-1)){\r\n \r\n //Clearing books with that period and teacher\r\n for (int i = 0; i < bookInv.numBookSets(); i++){\r\n for (int j = 0; j < bookInv.getBookSet(i).getSize(); j++){\r\n Book temp = bookInv.getBookSet(i).getBook(j);\r\n String teacherName = teachers.get(selectedTeacherRemove).getName();\r\n if (temp.getTeacherName() != null){\r\n if (temp.getTeacherName().equals(teacherName)){\r\n bookInv.getBookSet(i).getBook(j).setInStockStatus(true);\r\n bookInv.getBookSet(i).getBook(j).setStudentName(null);\r\n bookInv.getBookSet(i).getBook(j).setTeacherName(null);\r\n bookInv.getBookSet(i).getBook(j).setPeriodNum(-1);\r\n }\r\n }\r\n }\r\n }\r\n //Saving inventory\r\n try{\r\n bookInv.saveInv();\r\n }catch(IOException e){}\r\n \r\n teachers.get(selectedTeacherRemove).removeSinglePeriodBooks(selectedPeriodRemove);\r\n teachers.get(selectedTeacherRemove).removePeriod(selectedPeriodRemove);\r\n teachers.get(selectedTeacherRemove).writePeriodList (false); \r\n \r\n //remove the period from the list model\r\n teacherPeriodsListModel.removeElementAt(selectedPeriodRemove);\r\n } else if (selectedTeacherRemove==-1){\r\n JLabel chooseTeacher = new JLabel( \"Please select a teacher to edit!\");\r\n chooseTeacher.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n JOptionPane.showMessageDialog(new JFrame(), chooseTeacher, \"Teacher Editor\", JOptionPane.ERROR_MESSAGE); \r\n } else {\r\n JLabel choosePeriod = new JLabel( \"Please select a period to remove!\");\r\n choosePeriod.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n JOptionPane.showMessageDialog(new JFrame(), choosePeriod, \"Teacher Editor\", JOptionPane.ERROR_MESSAGE); \r\n }\r\n teacherPeriodsList.clearSelection();\r\n }", "@Override\r\n\t\tpublic void action() {\n MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.ACCEPT_PROPOSAL);\r\n MessageTemplate mt2 = MessageTemplate.MatchPerformative(ACLMessage.PROPOSE);\r\n ACLMessage msg = myAgent.receive(mt);\r\n //If it is a ACCEPT_PROPOSAL, the seller sell the book to the buyer (execpt if the book if not here anymore)\r\n if (msg != null) {\r\n // ACCEPT_PROPOSAL Message received. Process it\r\n title = msg.getContent();\r\n ACLMessage reply = msg.createReply();\r\n\r\n Integer price = (Integer) catalogue.remove(title);\r\n if (price != null) {\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(String.valueOf(price));\r\n System.out.println(title+\" sold to agent \"+msg.getSender().getName());\r\n }\r\n else {\r\n // The requested book has been sold to another buyer in the meanwhile .\r\n reply.setPerformative(ACLMessage.FAILURE);\r\n reply.setContent(\"not-available\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n //If it is a new PROPOSE, the buyer is trying to negociate.\r\n else {\r\n ACLMessage msg2 = myAgent.receive(mt2);\r\n if(msg2 != null){\r\n ACLMessage reply = msg2.createReply();\r\n //If the price of the buyer is OK for the seller according to his tolerance, the transaction is made\r\n if(((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) <= tolerance){\r\n System.out.println(myAgent.getLocalName() + \" say : OK, let's make a deal\");\r\n updateCatalogue(title, Integer.parseInt(msg2.getContent()));\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(msg2.getContent());\r\n }\r\n //Else, the seller accept to negociate, he up his tolerance and ask the buyer to up his real price\r\n else{\r\n //Send a REQUEST Message to negociate with the buyer\r\n reply.setPerformative(ACLMessage.REQUEST);\r\n //Up the tolerance by *change*\r\n tolerance += change;\r\n reply.setContent(String.valueOf(change));\r\n System.out.println(myAgent.getLocalName() + \" say : Let's up your real price while I up my tolerance (\" + ((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) + \" < \" + tolerance + \")\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n else{\r\n block();\r\n }\r\n }\r\n\t\t}", "private void reviewDeptPolicies() {\n if(metWithHr && metDeptStaff) {\n reviewedDeptPolicies = true;\n } else {\n System.out.println(\"Sorry, you cannot review \"\n + \" department policies until you have first met with HR \"\n + \"and then with department staff.\");\n }\n }", "public void clear() {\n for (int i = 0; i < if_you_items.length; i++) {\n if_you_items[i].setEnabled(true);\n }\n for (int i = 0; i < then_we_items.length; i++) {\n then_we_items[i].setEnabled(true);\n }\n non_promised_ministries.clear();\n non_promised_ministries.addAll(all_ministries);\n // if not at war, can't ask/offer peace\n if (game.getDiplomacy().getDiplomaticState(game.getTurn(), faction) != C.DS_WAR) {\n if_you_items[IfYouWill.PEACE.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.PEACE.ordinal()].setEnabled(false);\n }\n if (faction > C.HOUSE5) { // non-house\n non_promised_ministries.clear();\n if_you_items[IfYouWill.TECH.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.TECH.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n return;\n }\n // search for promised votes and ministries in pending contracts of sender\n for (Contract con : game.getDiplomacy().getSentContracts()) {\n for (Term term : con.getTerms()) {\n if (term.getDonor() == game.getTurn()) {\n switch (term.getType()) {\n case VOTES:\n System.out.println(\"DBG no votes\");\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n break;\n case MINISTRY:\n non_promised_ministries.remove(new Integer(term.getAmount()));\n break;\n case MONEY:\n break;\n case STATE:\n break;\n case TECH:\n break;\n default:\n throw new AssertionError();\n }\n }\n if (term.getDonor() == faction) {\n switch (term.getType()) {\n case VOTES:\n System.out.println(\"DBG no votes\");\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n break;\n case MINISTRY:\n non_promised_ministries.remove(new Integer(term.getAmount()));\n break;\n case MONEY:\n break;\n case STATE:\n break;\n case TECH:\n break;\n default:\n throw new AssertionError();\n }\n }\n }\n }\n // search for promised votes and ministries for sender and for receiver\n // those that are made with sender\n if (game.getRegency().getVotes()[game.getTurn()][Regency.CANDIDATE_IDX] > -1\n || game.getRegency().getVotes()[faction][Regency.CANDIDATE_IDX] == game.getTurn()) {\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n }\n int[] promises = game.getDiplomacy().getMinistryPromises(game.getTurn());\n for (int i = 0; i < promises.length; i++) {\n if (promises[i] > -1) {\n non_promised_ministries.remove(new Integer(promises[i]));\n }\n }\n promises = game.getDiplomacy().getMinistryPromises(faction);\n for (int i = 0; i < promises.length; i++) {\n if (promises[i] == game.getTurn()) {\n non_promised_ministries.remove(new Integer(promises[i]));\n }\n }\n if (non_promised_ministries.isEmpty()) {\n then_we_items[ThenWeWill.MINISTRY.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.MINISTRY.ordinal()].setEnabled(false);\n }\n }", "public void updateDisabledButtons() {\n\t\t//at least 3 credits should be there for perform add max action\n\t\tif (obj.getCredit() < 3)\n\t\t\taddMax.setEnabled(false);\n\t\t//at least a credit should be there for perform add max action\n\t\tif (obj.getCredit() == 0)\n\t\t\taddOne.setEnabled(false);\n\t\tif (obj.getCredit() >= 3)\n\t\t\taddMax.setEnabled(true);\n\t\tif (obj.getCredit() > 0)\n\t\t\taddOne.setEnabled(true);\n\t}", "private void updatePlayerClaim(){\n if(chestProgressLevel!=1){\n return; //the chest isnt unlocked!\n }\n\n //count the total players, and the players who unlocked it.\n int totalPlayers = 0;\n int unlockedPlayers = 0;\n for(JuggernautPlayer player: JuggernautGame.getInstance().getPlayers()){\n if(!player.isSurvivor() || !player.isAlive()){\n continue; //they be dead, they dont count! (Juggy also doesnt count, he doesnt get to unlock items)\n }\n totalPlayers++; //+1 total players\n if(player.isSurvivor() && player.getChestBonus(chestID)>=level){\n unlockedPlayers++; //they unlocked it, +1 unlocked players\n }\n }\n\n //all players unlocked it\n if(totalPlayers<=unlockedPlayers && chestProgressLevel==1){\n //lock the chest before respawning.\n lockChest();\n new BukkitRunnable() {\n\n int timeTillRespawn = 3; //3 seconds to respawn a chest\n @Override\n public void run() {\n //runs every second\n for(JuggernautPlayer jp : JuggernautGame.getInstance().getAllPeople()){\n //check if the player is in the radius of the chest (ignore Y)\n if(SkyMathHelper.isInRadius(location, jp.getPlayer().getLocation(), nametagRadius, false)) {\n //show them the hologram. Update if they already have the hologram active.\n //If this chest will not respawn, we tell them \"Good Luck!\" instead of the respawning message.\n if (jp.getLoadedEntities().containsKey(armorstandResetChestID)) {\n if(level==getMaxLevel()){\n jp.updateHologram(armorstandResetChestID, \"\\u00A76Good Luck!\");\n }else {\n jp.updateHologram(armorstandResetChestID, \"\\u00A76Respawning in \" + timeTillRespawn);\n }\n } else {\n if(level==getMaxLevel()) {\n jp.displayHologram(location.getX(), location.getY() + armorstandProgressbarHeight, location.getZ(), \"\\u00A76Good Luck!\", armorstandResetChestID);\n }else{\n jp.displayHologram(location.getX(), location.getY() + armorstandProgressbarHeight, location.getZ(), \"\\u00A76Respawning in \" + timeTillRespawn, armorstandResetChestID);\n }\n }\n }else{\n //they arent in range, so we remove this entity for them\n jp.removeEntities(armorstandResetChestID);\n }\n }\n\n //check if its time to respawn.\n if(timeTillRespawn--<=0){\n //its time! respawn the chest!\n respawnChest();\n for(JuggernautPlayer jp: JuggernautGame.getInstance().getPlayers()){\n //remove the countdown armorstand for all players\n jp.removeEntities(armorstandResetChestID);\n }\n this.cancel(); //cancel this runnable, we no longer need it.\n return;\n }\n }\n }.runTaskTimer(Juggernaut.pluginInstance, 0L, 20L); //every 20 ticks (1s)\n }else{\n //not all players unlocked the item yet. Lets indicate how many did.\n String emptyDisplayText = unlockedPlayers + \"/\" + totalPlayers + \" Claimed\";\n for(JuggernautPlayer JP: JuggernautGame.getInstance().getPlayers()){\n if(!SkyMathHelper.isInRadius(location, JP.getPlayer().getLocation(), nametagRadius, false)){\n //they arent in the radius, so we remove their armorstand again (if they had it).\n if(JP.getLoadedEntities().containsKey(this.armorstandClaimProgressID)) {\n JP.removeEntities(armorstandClaimProgressID);\n }\n continue;\n }\n\n //generate the color of the display text we need to show them. green if they claimed it, otherwise red.\n String displayText;\n if(JP.getChestBonus(chestID)>=level){\n displayText = \"\\u00A72\" + emptyDisplayText;\n }else{\n displayText = \"\\u00A7c\" + emptyDisplayText;\n }\n\n //update, or show the hologram to them.\n if(JP.getLoadedEntities().containsKey(this.armorstandClaimProgressID)){\n JP.updateHologram(armorstandClaimProgressID, displayText);\n }else{\n JP.displayHologram(this.location.getX(), this.location.getY()+this.armorstandClaimProgressHeight, this.location.getZ(), displayText, armorstandClaimProgressID);\n }\n }\n }\n }", "public void afterClickedEdit(View view) {\n GlobalUtils.showOpdtionDialog(this, new OptionDialogCallback() {\n @Override\n public void onActionHistory() {\n Intent intent = new Intent(MainActivity.this, HistoryActivity.class);\n startActivity(intent);\n }\n\n @Override\n public void onActionChangeTime() {\n if (GlobalUtils.TARGET_TREATMENT_TIME.equals(\"0\")) {\n GlobalUtils.showInfoDialog(MainActivity.this, \"Error\", \"You have not entered your total treatment time yet\", \"OK\", new SCDialogCallback() {\n @Override\n public void onAction1() {\n\n }\n\n @Override\n public void onAction2() {\n\n }\n\n @Override\n public void onAction3() {\n\n }\n\n @Override\n public void onAction4() {\n\n }\n });\n } else {\n aftererClickTarget();\n }\n }\n\n @Override\n public void onActionClear() {\n //show confirmation dialog\n GlobalUtils.showConfirmDialog(MainActivity.this, \"Confirmation\", \"Are you sure you want to clear all data?\", \"Yes\", \"No\", new SCDialogCallback() {\n @Override\n public void onAction1() {\n db.deleteSchedule(GlobalUtils.getCurrentDate().getFormattedDate());\n mListScheduleData.clear();\n GlobalUtils.calculated_schedule = new Schedule();\n initScheduleList();\n reset_Views();\n GlobalUtils.no_counting = true;\n GlobalUtils.TARGET_TREATMENT_TIME = \"0\";\n }\n\n @Override\n public void onAction2() {\n\n }\n\n @Override\n public void onAction3() {\n\n }\n\n @Override\n public void onAction4() {\n\n }\n });\n }\n\n @Override\n public void onActionSave() {\n\n }\n\n @Override\n public void onActionCancel() {\n\n }\n\n @Override\n public void onActionHelp() {\n Intent intent = new Intent(MainActivity.this,HelpActivity.class);\n startActivity(intent);\n }\n });\n\n\n }", "private void checkPoints() {\n if (mPointsManager.getScore() < 20 && !SharedDataManager.isHuntReady(this)) {\n /* Before the 30 points 'reward', player must have no locked target in history */\n if (SharedDataManager.isLockedTargetInHistory(MainActivity.this)) {\n return;\n }\n mPointsManager.setScore(30);\n updateInfo();\n try {\n if (!requestingPoints) {\n requestingPoints = true;\n /* Update the value in the server database if possible */\n mPointsManager.updateInDatabase(MainActivity.this, new ResponseTask.OnResponseTaskCompleted() {\n @Override\n public void onResponseTaskCompleted(Request request, Response response, OHException ohex, Object data) {\n /* It's ok if the request was not successful, the update will be done later */\n requestingPoints = false;\n }\n });\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "protected void deadlineLeasing() {\n log.info(\"OrdersBean : deadlineLeasing\");\n List<OrdersEntity> ordersEntitiesDeadline = ordersServices.findAllOrdersByIdUserAndStatusIsValidate(usersBean.getUsersEntity().getId());\n if (!ordersEntitiesDeadline.isEmpty()) {\n contractsBean.findAllContractsInAllMyOrdersForLeasingAndDeadlineIsLowerThan1Month(ordersEntitiesDeadline);\n }\n }", "@Test\n\tpublic void playAndRemoveDevelopmentCardTest()\n\t\t\tthrows CannotAffordException, DoesNotOwnException, BankLimitException, CannotPlayException\n\t{\n\t\tassertTrue(p.getDevelopmentCards().size() == 0);\n\t\tp.grantResources(DevelopmentCardType.getCardCost(), game.getBank());\n\t\tDevelopmentCardType c = buyDevelopmentCard();\n\t\tassertTrue(p.getDevelopmentCards().get(c) == 1);\n\n\t\t// Reset recent dev card for player, so they can play this turn\n\t\tgame.getPlayer(game.getCurrentPlayer()).clearRecentDevCards();\n\n\t\t// Reset recent dev card for player, so they can play this turn\n\t\tgame.getPlayer(game.getCurrentPlayer()).clearRecentDevCards();\n\n\t\t// Play card and test it was removed\n\t\tDevelopmentCardType key = (DevelopmentCardType) p.getDevelopmentCards().keySet().toArray()[0];\n\t\tp.playDevelopmentCard(key, game.getBank());\n\n\t\tassertTrue(p.getDevelopmentCards().get(c) == 0);\n\t}", "public static void reviewAcceptedTrade(League theLeague, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Accepted Trade---\");\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(theLeague.getPendingTrade());\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"-Has this trade been processed?-\");\r\n\t\tSystem.out.println(\"1 - Yes\");\r\n\t\tSystem.out.println(\"2 - No\");\r\n\r\n\t\tif (Input.validInt(1, 2, keyboard) == 1) {\r\n\t\t\ttheLeague.setPendingTrade(\"\");\r\n\t\t}\r\n\t}", "private void calculeStatRemove() {\n resourceA = this.getContext().getGame().getPlayer(idPlayer).getInventory().getValueRessource(type);\n int loose = resourceB - resourceA;\n int diff = (resourceA - resourceB) + value;\n this.getContext().getStats().incNbRessourceLoosePlayers(idPlayer,type,loose);\n this.getContext().getStats().incNbRessourceNotLoosePlayers(idPlayer,type,diff);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent resultIntent) {\n super.onActivityResult(requestCode, resultCode, resultIntent);\n if (requestCode == 1) {\n if (resultCode == Activity.RESULT_OK) {\n int price = resultIntent.getIntExtra(\"Price\", Integer.MAX_VALUE);\n if (playerStats.getPlayerCash() - price >= 0) {\n this.playerStats.subtractPlayerCash(price);\n this.masterDeck.unlockCard(resultIntent.getStringExtra(\"Name\"));\n this.adapter.notifyItemChanged(resultIntent.getIntExtra(\"Position\", -1));\n showCash();\n showCardStats();\n } else {\n Toast.makeText(CardLibraryActivity.this, \"Not enough minerals.\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n }", "@Override\r\n\tpublic void reviewOfPastYear(ExemptTeamMember exemptTeamMember) {\n\t\t\r\n\t\t\r\n\t}", "protected void apply() {\r\n\t\tplayer.setAutoRoll(autoroll);\r\n\t\tplayer.setMission(mission);\r\n\t\tplayer.setState(state);\r\n\t\tplayer.getCards().setArtillery(cards.getArtillery());\r\n\t\tplayer.getCards().setCavalry(cards.getCavalry());\r\n\t\tplayer.getCards().setInfantry(cards.getInfantry());\r\n\t\tplayer.getCards().setJokers(cards.getJokers());\r\n\t\tMember member = player.getMember();\r\n\t\tif(score == Score.WIN) {\r\n\t\t\tmember.setScore(member.getScore() + player.getGame().getPlayers().size() - 1);\r\n\t\t\tmember.setWins(member.getWins() + 1);\r\n\t\t} else if(score == Score.LOSS) {\r\n\t\t\tmember.setScore(member.getScore() - 1);\r\n\t\t\tmember.setLosses(member.getLosses() + 1);\r\n\t\t}\r\n\t}", "public void gameDraft(){\n this.displayMessage(\"Starting the draft phase for player: \" + this.getCurrentPlayer());\n\n currentPlayer.bonusTroops();//Calculates the number of troops to be distributed\n\n //Keep asking player to send troops to territories until there are no more troops to send\n while (currentPlayer.getNumTroops() > 0){\n currentPlayer.draftChoice(this);//Calls the player obj to get the choice\n }\n\n //Draft complete. Move on to attack\n this.displayMessage(\"Draft stage complete, starting the attack phase for player: \" + this.getCurrentPlayer());\n }", "private void removeFromSavedScheduleList() {\n if (!yesNoQuestion(\"This will print every schedule, are you sure? \")) {\n return;\n }\n\n showAllSchedules(scheduleList.getScheduleList());\n\n System.out.println(\"What is the number of the one you want to remove?\");\n int removeIndex = obtainIntSafely(1, scheduleList.getScheduleList().size(), \"Number out of bounds\");\n scheduleList.getScheduleList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "public static void reviewTrade(League theLeague, Team theTeam, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Review Proposed Trade---\");\r\n\t\tSystem.out.println(theTeam.getProposedTrade());\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Would you like to accept this trade?\");\r\n\t\tSystem.out.println(\"1 - Accept\");\r\n\t\tSystem.out.println(\"2 - Reject\");\r\n\t\tSystem.out.println(\"0 - Return to Team Menu\");\r\n\r\n\t\tswitch (Input.validInt(0, 2, keyboard)) {\r\n\t\tcase 1:\r\n\t\t\ttheLeague.setPendingTrade(\"Accepted by \" + theTeam.getManagerName() + \" --- \" + theTeam.getProposedTrade());\r\n\t\t\ttheTeam.setProposedTrade(\"\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"***Trade Accepted - The Commissioner Must Process It.***\");\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\ttheTeam.setProposedTrade(\"\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tSystem.out.println(\"***Trade Rejected***\");\r\n\t\t\tbreak;\r\n\t\tcase 0:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void rewardSkills(final boolean send) {\n boolean update = false;\n if (AllSettingsConfig.AUTO_LEARN_SKILLS) {\n for (SkillLearn skillLearn : SkillAcquireHolder.getInstance().getNormalSkillsClassId(this).values()) {\n final SkillEntry sk = SkillTable.getInstance().getSkillEntry(skillLearn.getId(), skillLearn.getLevel());\n if (sk == null || !sk.getTemplate().getCanLearn(getPlayerClassComponent().getClassId()) || (!AllSettingsConfig.AUTO_LEARN_FORGOTTEN_SKILLS && skillLearn.isClicked())) {\n continue;\n }\n if (getSkillLevel(sk.getId()) < sk.getLevel())\n addSkill(sk, true);\n }\n update = true;\n/*\n\t\t\tint unLearnable = 0;\n\t\t\tCollection<SkillLearn> skills = SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL);\n\t\t\twhile(skills.size() > unLearnable) {\n\t\t\t\tunLearnable = 0;\n\t\t\t\tfor(final SkillLearn s : skills) {\n\t\t\t\t\tfinal SkillEntry sk = SkillTable.getInstance().getSkillEntry(s.getId(), s.getLevel());\n\t\t\t\t\tif(sk == null || !sk.getTemplate().getCanLearn(getPlayerClassComponent().getClassId()) || (!AllSettingsConfig.AUTO_LEARN_FORGOTTEN_SKILLS && s.isClicked())) {\n\t\t\t\t\t\tunLearnable++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\taddSkill(sk, true);\n\t\t\t\t}\n\t\t\t\tskills = SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL);\n\t\t\t}\n\t\t\tupdate = true;*/\n } else\n // Скиллы дающиеся бесплатно не требуют изучения\n {\n for (final SkillLearn skill : SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL)) {\n if (skill.getCost() == 0 && skill.getItemId() == 0) {\n final SkillEntry sk = SkillTable.getInstance().getSkillEntry(skill.getId(), skill.getLevel());\n addSkill(sk, true);\n if (!getShortCutComponent().getAllShortCuts().isEmpty() && sk.getLevel() > 1) {\n getShortCutComponent().getAllShortCuts().stream().filter(sc -> sc.getId() == sk.getId() && sc.getType() == ShortCut.TYPE_SKILL).forEach(sc -> {\n final ShortCut newsc = new ShortCut(sc.getSlot(), sc.getPage(), sc.getType(), sc.getId(), sk.getLevel(), 1);\n sendPacket(new ShortCutRegister(this, newsc));\n getShortCutComponent().registerShortCut(newsc);\n });\n }\n update = true;\n }\n }\n }\n if (isTransformed()) {\n update = true;\n //Генерируем новые скилы трансформации и выдаем их.\n getTransformation().addGiveAllSkills(getLevel());\n }\n if (send && update) {\n sendPacket(new SkillList(this));\n }\n\n updateStats();\n }", "public void effacerScore() {\r\n\t\tthis.meilleursScores = new MeilleursScores();\r\n\t\tthis.notifyObservateur();\r\n\t}", "public void cancel(){\n\t\tstartTime = -1;\n\t\tplayersFinished = new ArrayList<>();\n\t\tplayersFinishedMarked = new ArrayList<Player>();\n\t\tDNFs = new ArrayList<>();\n\t\ttempNumber = 0;\n\t\tmarkedNum = 0;\n\t\t//normally we'd mark started racers as such, but we are don't know how many started.\n\t}", "public void action() {\r\n\t\tLCD.drawString(\"Avoid Behavior!\", 0, 7);\r\n\r\n\t\tMapUpdate.updateWithoutObject(0);\r\n\t\tMapUpdate.updateWithObject(StandardRobot.us.getRange());\r\n\r\n\t\tif (StandardRobot.ts.isPressed()) {\r\n\t\t\tStandardRobot.pilot.setTravelSpeed(7);\r\n\t\t\tStandardRobot.pilot.travel(-5);\r\n\t\t\tcounter.countTravel();\r\n\r\n\t\t\tif (store.getFlag() == 0) {\r\n\t\t\t\tStandardRobot.pilot.rotate(-90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t} else {\r\n\t\t\t\tStandardRobot.pilot.rotate(90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t}\r\n\t\t} else {\r\n\r\n\t\t\tif (store.getFlag() == 0) {\r\n\t\t\t\tStandardRobot.pilot.rotate(-90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t} else {\r\n\t\t\t\tStandardRobot.pilot.rotate(90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void editTakingPrice() throws PresentationException {\n\t\tTakingPrice tp = null;\n\t\tint codebar_item;\n\t\tint code_supermarket;\n\t\tint newCodeItem;\n\n\t\tprinter.printMsg(\"Digite o código do item a ser alterado? \");\n\t\tcodebar_item = reader.readNumber();\n\n\t\tprinter.printMsg(\"Digite o código do supermercado a ser alterado? \");\n\t\tcode_supermarket = reader.readNumber();\n\n\t\tprinter.printMsg(\n\t\t\t\t\" Digite a data da tomada de preço do item: (Ex.Formato: '2017-12-16 10:55:53' para 16 de dezembro de 2017, 10 horas 55 min e 53 seg)\");\n\t\tString dateTP = reader.readText();\n\t\tdateTP = reader.readText();\n\n\t\tString pattern = \"yyyy-mm-dd hh:mm:ss\";\n\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\t\tDate dateTPF = null;\n\t\ttry {\n\t\t\tdateTPF = simpleDateFormat.parse(dateTP);\n\t\t} catch (ParseException e) {\n\t\t\tthrow new PresentationException(\"Não foi possível executar a formatação da data no padrão definido\", e);\n\t\t\t// e.printStackTrace();\n\t\t}\n\t\t// pensando em cadastrar o novo preço sem editar o preço antigo. Senão terei que\n\t\t// controlar por muitos atributos.\n\n\t\tif (tpm.checksExistence(codebar_item, code_supermarket, dateTPF)) {\n\t\t\ttp = tpm.getTakingPrice(codebar_item, code_supermarket, dateTPF);\n\t\t\tint codeSupermarket = tp.getCodeSupermarket();\n\t\t\tdouble priceItem = tp.getPrice();\n\t\t\tDate dateTPE = tp.getDate();\n\t\t\tint respEdit = 0;\n\n\t\t\ttpm.deleteTakingPrice(codebar_item, code_supermarket, dateTPE);\n\n\t\t\tdo {\n\t\t\t\ttry {\n\t\t\t\t\trespEdit = this.askWhatEdit(tp);\n\n\t\t\t\t} catch (NumeroInvalidoException e) {\n\t\t\t\t\tthrow new PresentationException(\"A opção digitada não é uma opção válida\", e);\n\t\t\t\t}\n\n\t\t\t\tif (respEdit == 1) {\n\t\t\t\t\tprinter.printMsg(\" Digite o novo código do item: \");\n\t\t\t\t\tnewCodeItem = reader.readNumber();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.saveTakingPrice(newCodeItem, priceItem, codeSupermarket, dateTPE);\n\t\t\t\t\t} catch (PresentationException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else if (respEdit == 2) {\n\t\t\t\t\tprinter.printMsg(\" Digite o novo código do supermercado: \");\n\t\t\t\t\tint newCodeSupermarket = 0;\n\t\t\t\t\tnewCodeSupermarket = reader.readNumber();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.saveTakingPrice(codebar_item, priceItem, newCodeSupermarket, dateTPE);\n\t\t\t\t\t} catch (PresentationException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else if (respEdit == 3) {\n\t\t\t\t\tprinter.printMsg(\" Digite o novo preço do item: \");\n\t\t\t\t\tdouble newPriceItem = 0;\n\t\t\t\t\tnewPriceItem = reader.readNumberDouble();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.saveTakingPrice(codebar_item, newPriceItem, codeSupermarket, dateTPE);\n\t\t\t\t\t} catch (PresentationException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else if (respEdit == 4) {\n\t\t\t\t\tprinter.printMsg(\n\t\t\t\t\t\t\t\" Digite a nova data da tomada de preço do item: (Ex.Formato: '2017-12-16 10:55:53' para 16 de dezembro de 2017, 10 horas 55 min e 53 seg)\");\n\t\t\t\t\tString date = reader.readText();\n\t\t\t\t\tdate = reader.readText();\n\n\t\t\t\t\t// String pattern = \"yyyy-mm-dd hh:mm:ss\";\n\t\t\t\t\t// SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\t\t\t\t\tDate newDateTP = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnewDateTP = simpleDateFormat.parse(date);\n\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\tthrow new PresentationException(\"A opção digitada não é uma opção válida\", e);\n\t\t\t\t\t\t// e.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"Date:\" + date);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.saveTakingPrice(codebar_item, priceItem, codeSupermarket, newDateTP);\n\t\t\t\t\t} catch (PresentationException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t} while (respEdit != 1 & respEdit != 2 & respEdit != 3 & respEdit != 4);\n\n\t\t} else\n\n\t\t{\n\t\t\tprinter.printMsg(\"Não existe tomada de preço com estes códigos cadastrados.\");\n\t\t}\n\n\t}", "public void lance() {\n\t\tthis.laRequete.ecrireMessage(\"202\",\" Commande Non implementee\"); //502 ou 202?\n\t\tthis.laRequete.ecrireLog(\"Commande Non implementee\");\n\t}", "public void editCommissionAccounts(CommissionAccount commissionAccount);", "public void ejectTicket(){if(this.inProgress()){this.currentTicket=null;}}", "@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 void updateMoney()\n\t\t{\n\t\t\t\n\t\t\tFPlayer p1 = this.viewer;\n\t\t\tFPlayer p2 = (p1.equals(this.t.p1)) ? this.t.p2 : this.t.p1;\n\t\t\t\n\t\t\tItemStack om = new ItemStack(Material.GREEN_WOOL,1);\n\t\t\tItemMeta it = om.getItemMeta();\n\t\t\tit.setDisplayName(ChatColor.DARK_GREEN+ChatColor.BOLD.toString()+\"Money in trade:\");\n\t\t\tit.setLore(Arrays.asList(new String[] {\"\",Util.getMoney(this.t.getMoneyTraded(p1)),\"\",\"Click to add/remove money from trade\"}));\n\t\t\tom.setItemMeta(it);\n\t\t\t\n\t\t\tif (this.canAdd()) super.contents.put(0,new ItemSwapMenu(this,om,new MenuMoney(super.viewer,this.t)));\n\t\t\telse super.contents.put(0,new ItemDummy(this,om));\n\t\t\t\n\t\t\t// Trader money in trade\n\t\t\tItemStack tm = new ItemStack(Material.GREEN_WOOL,1);\n\t\t\tit = tm.getItemMeta();\n\t\t\tit.setDisplayName(ChatColor.DARK_GREEN+ChatColor.BOLD.toString()+\"Money in trade:\");\n\t\t\tit.setLore(Arrays.asList(new String[] {\"\",Util.getMoney(this.t.getMoneyTraded(p2))}));\n\t\t\ttm.setItemMeta(it);\n\t\t\tsuper.contents.put(8,new ItemDummy(this,tm));\n\t\t\tthis.composeInv();\n\t\t}", "public void putCardMode(){\n for(int i = 0; i<3 ; i++){\n productionButtons[i].setText(\"Put here\");\n ProductionCard card = gui.getViewController().getGame().getProductionCard(i);\n if (card != null && card.getLevel() == 3){\n setEnabled(false);\n } else {\n productionButtons[i].setEnabled(true);\n }\n Gui.removeAllListeners(productionButtons[i]);\n productionButtons[i].addActionListener(new PutCardButtonListener(gui,chosenDeckNumber,i));\n }\n baseProductionPanel.disableButton();\n }", "@Override\n protected void setParms(final Collection<Parm> addParms,\n final Collection<Parm> removeParms,\n final Collection<Parm> displayedStateModParms) {\n // logDebug << \"--- setParms(parmsToAdd,parmsToRemov,displayedStateMod):\n // \"\n // << printAMR(addParms, displayedStateModParms, removeParms) <<\n // std::endl;\n\n // update list of parms\n parms.acquireWriteLock();\n try {\n for (Parm addParm : addParms) {\n if (addParm != null && !this.parms.contains(addParm)) {\n this.parms.add(addParm); // add the additions\n }\n }\n\n for (Parm removeParm : removeParms) {\n if (removeParm != null && this.parms.contains(removeParm)) {\n this.parms.remove(removeParm);\n }\n }\n } finally {\n parms.releaseWriteLock();\n }\n\n // recalculate the system time range changes, send notification\n TimeRange newSysTR = recalcSystemTimeRange();\n if (!newSysTR.equals(this.systemTimeRange)) {\n this.systemTimeRange = newSysTR;\n // TODO\n // SystemTimeRangeChangedMsg::send(_msgHand, _systemTimeRange);\n }\n\n // send ParmListChanged notification\n if (addParms.size() > 0 || removeParms.size() > 0) {\n parms.acquireReadLock();\n try {\n fireParmListChanged(\n this.parms.toArray(new Parm[this.parms.size()]),\n addParms.toArray(new Parm[addParms.size()]),\n removeParms.toArray(new Parm[removeParms.size()]));\n } finally {\n parms.releaseReadLock();\n }\n }\n\n List<Parm> addedDisplayed = new ArrayList<Parm>();\n List<Parm> removedDisplayed = new ArrayList<Parm>();\n for (Parm p : addParms) {\n if (p.getDisplayAttributes().isDisplayable()) {\n addedDisplayed.add(p);\n }\n }\n\n for (Parm p : removeParms) {\n if (p.getDisplayAttributes().isDisplayable()) {\n removedDisplayed.add(p);\n }\n }\n\n // send DisplayedParmListChanged notification\n if (removedDisplayed.size() > 0 || addedDisplayed.size() > 0) {\n parms.acquireReadLock();\n try {\n fireDisplayedParmListChanged(this.parms\n .toArray(new Parm[this.parms.size()]), addedDisplayed\n .toArray(new Parm[addedDisplayed.size()]),\n removedDisplayed.toArray(new Parm[removedDisplayed\n .size()]));\n } finally {\n parms.releaseReadLock();\n }\n }\n\n // send AvailableSourcesChanged notification\n // TODO\n // if (addedDbs.length() || remDbs.length())\n // AvailableSourcesChangedMsg::send(_msgHand, nowDbs, remDbs, addedDbs);\n\n }", "public void disperseRewards(Player player, boolean success){\n if(success){\n //if player is in a role on a scene card\n if(player.getCurrentRole().isOnCard()){\n player.addCredits(2);\n }\n else{\n player.addCredits(1);\n player.addMoney(1);\n }\n }\n else{\n //disperse loss rewards\n //if player is not on a scene card role\n if(!(player.getCurrentRole().isOnCard())){\n player.addMoney(1);\n }\n }\n }", "public static void updateManualEncumAppAmt(EscmProposalMgmt proposalmgmt, Boolean iscancel) {\n\n try {\n EscmProposalMgmt baseProposalObj = proposalmgmt.getEscmBaseproposal();\n OBContext.setAdminMode();\n List<EscmProposalmgmtLine> prolineList = proposalmgmt.getEscmProposalmgmtLineList();\n // checking with propsal line\n if (baseProposalObj == null) {\n for (EscmProposalmgmtLine proposalline : prolineList) {\n if (!proposalline.isSummary()) {\n EfinBudgetManencumlines encline = proposalline.getEfinBudgmanencumline();\n if (encline != null) {\n if (\"PAWD\".equals(proposalmgmt.getProposalstatus())) {\n encline.setAPPAmt(encline.getAPPAmt().subtract(proposalline.getAwardedamount()));\n } else {\n encline.setAPPAmt(encline.getAPPAmt().subtract(proposalline.getLineTotal()));\n }\n OBDal.getInstance().save(encline);\n }\n if (iscancel) {\n // BidManagementDAO.insertEncumbranceModification(encline,\n // proposalline.getLineTotal().negate(), null, \"PRO\", null, null);\n } else {\n proposalline.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(proposalline);\n }\n }\n }\n } else if (baseProposalObj != null) {\n for (EscmProposalmgmtLine lines : prolineList) {\n if (!lines.isSummary()) {\n if (lines.getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal()\n .subtract(lines.getLineTotal());\n\n // update in remaining amount\n EfinBudgetManencumlines encumLn = Utility.getObject(EfinBudgetManencumlines.class,\n encline.getId());\n encumLn.setAPPAmt(encumLn.getAPPAmt().add(amountDiffernce));\n encumLn.setRemainingAmount(encumLn.getRemainingAmount().subtract(amountDiffernce));\n OBDal.getInstance().save(encumLn);\n } else if (lines.getStatus() != null && lines.getEscmOldProposalline() != null\n && lines.getEscmOldProposalline().getStatus() == null) {\n EfinBudgetManencumlines encline = lines.getEscmOldProposalline()\n .getEfinBudgmanencumline();\n // if reserved then consider new proposal line total\n BigDecimal amountDiffernce = lines.getEscmOldProposalline().getLineTotal();\n\n // update in remaining amount\n EfinBudgetManencumlines encumLn = Utility.getObject(EfinBudgetManencumlines.class,\n encline.getId());\n encumLn.setAPPAmt(encumLn.getAPPAmt().add(amountDiffernce));\n encumLn.setRemainingAmount(encumLn.getRemainingAmount().subtract(amountDiffernce));\n OBDal.getInstance().save(encumLn);\n }\n }\n }\n }\n\n } catch (final Exception e) {\n log.error(\"Exception in updateManualEncumAppAmt after Reject : \", e);\n } finally {\n OBContext.restorePreviousMode();\n }\n }", "public void remove_transfered_points(int points) {\n\t\tthis.balance = this.balance - points;\n\t\tif(this.balance < 10000) this.status = \"Bronze\";\n\t\telse if(this.balance >= 10000) this.status = \"Silver\";\n\t\t\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tString message;\n\t\t\t\tif(isSprinklerSelected)//Sprinkler\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Are you sure you want to turn off this sprinkler now?\";\n\t\t\t\t\t//turn on the sprinkler for 1 hour\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, message, \"Confirm\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\t//update status=off to db\n\t\t\t\t\t\tsprinklerService.updateSprinklerStatus(selectedId, SprinklerStatus.OFF.toString());\n\t\t\t\t\t\t//update sprinkler run time - end_time\n\t\t\t\t\t\tint sprinklerId=sprinklerService.getSprinklerByName(selectedId).getSprinklerId();\n\t\t\t\t\t\tint runTimeId=sprinklerService.getSprinklerRunTimeToUpdate(sprinklerId).getId();\n\t\t\t\t\t\tsprinklerService.updateSprinklerRunTime(runTimeId);\n\t\t\t\t\t\t//refresh update pane for sprinkler\n\t\t\t\t\t\tpopulateSprinklerStatus();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse//group\n\t\t\t\t{\n\t\t\t\t\tmessage=\"Are you sure you want to turn off this sprinkler group now?\";\n\t\t\t\t\t//turn on the sprinkler for 1 hour\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, message, \"Confirm\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t\tif(response==JOptionPane.YES_OPTION)\n\t\t\t\t\t{\n\t\t\t\t\t\t//update status=off to db\n\t\t\t\t\t\tsprinklerGroup.updateSprinklerGroupStatus(selectedId, SprinklerStatus.OFF.toString());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//update group run time - end_time\n\t\t\t\t\t\tint groupId=sprinklerGroup.getSprinklerGroupByName(selectedId).getGroupId();\n\t\t\t\t\t\tint gRunTimeId=sprinklerService.getGroupRunTimeToUpdate(groupId).getGroupId();\n\t\t\t\t\t\tsprinklerService.updateGroupRunTime(gRunTimeId);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//refresh update pane for group\n\t\t\t\t\t\tpopulateGroupStatus();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "private void getDetailedDebitAgingOLDEST(List<DebtorsDetailedAgingHelper> agingList, Date atDate, EMCUserData userData) {\n getDetailedDebitAgingNONE(agingList, atDate, userData);\n\n //Aging lines to remove\n //List<DebtorsDetailedAgingLineDS> toRemove = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n //All credits\n List<DebtorsDetailedAgingLineDS> credits = new ArrayList<DebtorsDetailedAgingLineDS>();\n //All debits\n List<DebtorsDetailedAgingLineDS> debits = new ArrayList<DebtorsDetailedAgingLineDS>();\n\n for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n for (DebtorsDetailedAgingLineDS agingLine : agingHelper.getAgingLines()) {\n if (agingLine.getAmount().compareTo(BigDecimal.ZERO) < 0) {\n //Credit\n credits.add(agingLine);\n } else {\n //Debit\n debits.add(agingLine);\n }\n }\n }\n\n//Start allocating from oldest credits.\ncredit: for (DebtorsDetailedAgingLineDS credit : credits) {\n if (credit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n//Loop through debits\ndebit: for (DebtorsDetailedAgingLineDS debit : debits) {\n if (debit.getBalance().compareTo(BigDecimal.ZERO) != 0) {\n //Get difference between debit and credit balances.\n BigDecimal difference = debit.getBalance().add(credit.getBalance());\n if (difference.compareTo(BigDecimal.ZERO) > 0) {\n //Debit greater than credit. Allocate credit in full.\n debit.setBalance(debit.getBalance().add(credit.getBalance()));\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n } else if (difference.compareTo(BigDecimal.ZERO) < 0) {\n //Credit greater than debit.\n credit.setBalance(credit.getBalance().add(debit.getBalance()));\n debit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(debit);\n\n //Debit consumed\n continue;\n } else {\n //Debit == credit. Consume both.\n debit.setBalance(BigDecimal.ZERO);\n credit.setBalance(BigDecimal.ZERO);\n\n //toRemove.add(credit);\n //toRemove.add(debit);\n\n //Credit consumed. Continue outer loop.\n continue credit;\n }\n } else {\n //Credit, continue to next line.\n continue;\n }\n }\n } else {\n //Debit, continue to next line\n continue;\n }\n }\n\n //Try to remove all records from all bins.\n //TODO: Is there a more efficient way?\n //for (DebtorsDetailedAgingHelper agingHelper : agingList) {\n // agingHelper.getAgingLines().removeAll(toRemove);\n //}\n }", "void undoExpenseTracker() throws NoUserSelectedException;", "private void enableSet(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(false);\n addCS.setDisable(true);\n removeCS.setDisable(true);\n setCS.setDisable(false);\n addIT.setDisable(true);\n removeIT.setDisable(true);\n setIT.setDisable(false);\n addECE.setDisable(true);\n removeECE.setDisable(true);\n setECE.setDisable(false);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(true);\n dateSetText.setDisable(false);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(true);\n nameSetText.setDisable(false);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(false);\n }", "public static String requestTransfer(Player player, Team playersTeam, double bid, Library library, TransferList existingTransfers) {\n\t\tif (playersTeam.isMax()) {\n\t\t\treturn \"You already have 30 players in your team, this is the maximum. Sell some players before trying to buy any new!\";\n\t\t} else {\n\t\tif (existingTransfers.getTransfer(player)==null) {\n\t\t\tboolean answer = TransferLogic.getAnswer(player, bid, library, existingTransfers);\n\t\t\tif (answer) {\n\t\t\t\tTeam opponentsTeam = library.getTeamForName(player.getTeam());\n\t\t\t\topponentsTeam.deleteIfInCurrentTeam(player);\n//\t\t\t\tif (opponentsTeam.getPositions().contains(player)) {\n//\t\t\t\t\t\n//\t\t\t\t\tboolean itsdone=false;\n//\t\t\t\t\tfor (int i=0;i<opponentsTeam.getTeam().size();i++) {\n//\t\t\t\t\t\tif (!itsdone) {\n//\t\t\t\t\t\t\tPlayer p = opponentsTeam.getTeam().get(i);\n//\t\t\t\t\t\t\tif (p.getPlayerType().equals(player.getPlayerType()) && !(opponentsTeam.getPositions().contains(p))) {\n//\t\t\t\t\t\t\t\topponentsTeam.replacePlayerInCurrentTeam(player, p);\n//\t\t\t\t\t\t\t\titsdone=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\tif (!itsdone) {\n//\t\t\t\t\t\tfor (int i=0;i<opponentsTeam.getTeam().size();i++) {\n//\t\t\t\t\t\t\tif (!itsdone) {\n//\t\t\t\t\t\t\t\tPlayer p = opponentsTeam.getTeam().get(i);\n//\t\t\t\t\t\t\t\tif (((p instanceof FieldPlayer && player instanceof FieldPlayer) || (p instanceof Goalkeeper && player instanceof Goalkeeper)) && !(opponentsTeam.getPositions().contains(p))) {\n//\t\t\t\t\t\t\t\t\topponentsTeam.replacePlayerInCurrentTeam(player, p);\n//\t\t\t\t\t\t\t\t\titsdone=true;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t\t\n//\t\t\t\t\t\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\tplayersTeam.add(player);\n\t\t\t\topponentsTeam.getTeam().remove(player);\n\t\t\t\tplayer.setTeam(playersTeam.getTeamName());\n\t\t\t\tplayersTeam.setBudget(playersTeam.getBudget()-bid);\n\t\t\t\topponentsTeam.setBudget(opponentsTeam.getBudget()+bid);\n\t\t\t\tBigDecimal bbid = new BigDecimal(bid);\n\t\t\t\t\n\t\t\t\t//price string\n\t\t\t\t\n\t\t\t\tDecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US);\n\t\t\t\tbbid = bbid.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tDecimalFormat df = new DecimalFormat();\n\t\t\t\tdf.setGroupingUsed(false);\t\t\n\t\t\t\tString priceString = formatter.format(bbid.longValue());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn \"Congratulations! Your bid of \" + priceString + \" got accepted and \" + player.getName() + \" is now part of your team\";\n\t\t\t} else {\n\t\t\t\tdouble percentage = bid/player.getPrice().doubleValue()*100-100;\n\t\t\t\tdouble returnedprice=0;\n\t\t\t\tdouble price = player.getPrice().doubleValue();\n\t\t\t\tif (percentage<-10) {\n\t\t\t\t\treturnedprice=0.9*price;\n\t\t\t\t} if (percentage>=-10 && percentage<0) {\n\t\t\t\t\treturnedprice=price;\n\t\t\t\t} if (percentage>=0 && percentage<5) {\n\t\t\t\t\treturnedprice=1.05*price;\n\t\t\t\t} if (percentage>=5 && percentage<10) {\n\t\t\t\t\treturnedprice=1.1*price;\n\t\t\t\t} if (percentage>=10 && percentage<15) {\n\t\t\t\t\treturnedprice=1.15*price;\n\t\t\t\t} if (percentage>=15 && percentage<20) {\n\t\t\t\t\treturnedprice=1.2*price;\n\t\t\t\t} if (percentage>=20 && percentage<25) {\n\t\t\t\t\treturnedprice=1.25*price;\n\t\t\t\t} if (percentage>=25 && percentage<30) {\n\t\t\t\t\treturnedprice=1.3*price;\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tTransferInProgress tp = new TransferInProgress(player, returnedprice, bid);\n\t\t\t\texistingTransfers.addTransfer(tp);\n\t\t\t\tBigDecimal bbid = new BigDecimal(bid);\n\t\t\t\tBigDecimal breturnedprice = new BigDecimal(returnedprice);\n\t\t\t\t//price string\n\t\t\t\t\n\t\t\t\tDecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US);\n\t\t\t\tbbid = bbid.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tbreturnedprice = breturnedprice.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tDecimalFormat df = new DecimalFormat();\n\t\t\t\tdf.setGroupingUsed(false);\t\t\n\t\t\t\tString priceString = formatter.format(bbid.longValue());\n\t\t\t\tString priceString2 = formatter.format(breturnedprice.longValue());\n\t\t\t\treturn player.getTeam() + \" did not accept your offer of \" + priceString + \" for \" + player.getName() + \". They have indicated they want at least \" + priceString2 + \" for this player\";\n\t\t\t\t\n\t\t\t}\n\t\t} else {\n\t\t\tTransferInProgress tp = existingTransfers.getTransfer(player);\n\t\t\tboolean answer = TransferLogic.getAnswerForExistingTransfer(player, bid, library, existingTransfers, tp.getPriceReturned());\n\t\t\tif (answer) {\n\t\t\t\tTeam opponentsTeam = library.getTeamForName(player.getTeam());\n\t\t\t\topponentsTeam.deleteIfInCurrentTeam(player);\n//\t\t\t\tif (opponentsTeam.getPositions().contains(player)) {\n//\t\t\t\t\tboolean itsdone=false;\n//\t\t\t\t\tfor (int i=0;i<opponentsTeam.getTeam().size();i++) {\n//\t\t\t\t\t\tif (!itsdone) {\n//\t\t\t\t\t\t\tPlayer p = opponentsTeam.getTeam().get(i);\n//\t\t\t\t\t\t\tif (p.getPlayerType().equals(player.getPlayerType()) && !(opponentsTeam.getPositions().contains(p))) {\n//\t\t\t\t\t\t\t\topponentsTeam.replacePlayerInCurrentTeam(player, p);\n//\t\t\t\t\t\t\t\titsdone=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\tif (!itsdone) {\n//\t\t\t\t\t\tfor (int i=0;i<opponentsTeam.getTeam().size();i++) {\n//\t\t\t\t\t\t\tif (!itsdone) {\n//\t\t\t\t\t\t\t\tPlayer p = opponentsTeam.getTeam().get(i);\n//\t\t\t\t\t\t\t\tif (((p instanceof FieldPlayer && player instanceof FieldPlayer) || (p instanceof Goalkeeper && player instanceof Goalkeeper)) && !(opponentsTeam.getPositions().contains(p))) {\n//\t\t\t\t\t\t\t\t\topponentsTeam.replacePlayerInCurrentTeam(player, p);\n//\t\t\t\t\t\t\t\t\titsdone=true;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t\t\n//\t\t\t\t\t\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\tplayersTeam.add(player);\n\t\t\t\topponentsTeam.getTeam().remove(player);\n\t\t\t\tplayer.setTeam(playersTeam.getTeamName());\n\t\t\t\texistingTransfers.getTransfers().remove(tp);\n\t\t\t\tplayersTeam.setBudget(playersTeam.getBudget()-bid);\n\t\t\t\topponentsTeam.setBudget(opponentsTeam.getBudget()+bid);\n\t\t\t\tBigDecimal bbid = new BigDecimal(bid);\n\t\t\t\t//price string\n\t\t\t\t\n\t\t\t\tDecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US);\n\t\t\t\tbbid = bbid.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tDecimalFormat df = new DecimalFormat();\n\t\t\t\tdf.setGroupingUsed(false);\t\t\n\t\t\t\tString priceString = formatter.format(bbid.longValue());\n\t\t\t\treturn \"Congratulations! Your bid of \" + priceString + \" got accepted and \" + player.getName() + \" is now part of your team\";\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tdouble pricereturned = existingTransfers.getTransfer(player).getPriceReturned();\n\t\t\t\t\n\t\t\t\tif (bid>pricereturned) {\n\t\t\t\t\tdouble percentage = bid/player.getPrice().doubleValue()*100-100;\n\t\t\t\t\tdouble returnedprice=0;\n\t\t\t\t\tdouble price = player.getPrice().doubleValue();\n\t\t\t\t\tif (percentage<-10) {\n\t\t\t\t\t\treturnedprice=0.9*price;\n\t\t\t\t\t} if (percentage>=-10 && percentage<0) {\n\t\t\t\t\t\treturnedprice=price;\n\t\t\t\t\t} if (percentage>=0 && percentage<5) {\n\t\t\t\t\t\treturnedprice=1.05*price;\n\t\t\t\t\t} if (percentage>=5 && percentage<10) {\n\t\t\t\t\t\treturnedprice=1.1*price;\n\t\t\t\t\t} if (percentage>=10 && percentage<15) {\n\t\t\t\t\t\treturnedprice=1.15*price;\n\t\t\t\t\t} if (percentage>=15 && percentage<20) {\n\t\t\t\t\t\treturnedprice=1.2*price;\n\t\t\t\t\t} if (percentage>=20 && percentage<25) {\n\t\t\t\t\t\treturnedprice=1.25*price;\n\t\t\t\t\t} if (percentage>=25 && percentage<30) {\n\t\t\t\t\t\treturnedprice=1.3*price;\n\t\t\t\t\t}\n\t\t\t\t\texistingTransfers.getTransfer(player).setPriceReturned(returnedprice);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\texistingTransfers.getTransfer(player).setBid(bid);\n\t\t\t\tBigDecimal bbid = new BigDecimal (bid);\n\t\t\t\tBigDecimal bpriceReturned = new BigDecimal(existingTransfers.getTransfer(player).getPriceReturned());\n\t\t\t\t//price string\n\t\t\t\t\n\t\t\t\tDecimalFormat formatter = (DecimalFormat) NumberFormat.getInstance(Locale.US);\n\t\t\t\tbbid = bbid.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tbpriceReturned = bpriceReturned.setScale(2, BigDecimal.ROUND_DOWN);\n\t\t\t\tDecimalFormat df = new DecimalFormat();\n\t\t\t\tdf.setGroupingUsed(false);\t\t\n\t\t\t\tString priceString = formatter.format(bbid.longValue());\n\t\t\t\tString priceString2 = formatter.format(bpriceReturned.longValue());\n\t\t\t\treturn player.getTeam() + \" did not accept your offer of \" + priceString + \" for \" + player.getName() + \". They have indicated they want at least \" + priceString2 + \" for this player\";\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}}", "public int doProcessing(Context context, HttpServletRequest request,\n HttpServletResponse response, SubmissionInfo subInfo)\n throws ServletException, IOException, SQLException,\n AuthorizeException\n {\n // Get the values from the initial questions form\n boolean multipleTitles = Util.getBoolParameter(request,\n \"multiple_titles\");\n\t\t//Expect publishedBefore unless stated otherwise\n boolean publishedBefore = Util.getBoolParameter(request,\n \"published_before\", true);\n boolean multipleFiles = Util.getBoolParameter(request,\n \"multiple_files\");\n boolean isThesis = ConfigurationManager\n .getBooleanProperty(\"webui.submit.blocktheses\")\n && Util.getBoolParameter(request, \"is_thesis\");\n\n if (subInfo.isInWorkflow())\n {\n // Thesis question does not appear in workflow mode..\n isThesis = false;\n\n // Pretend \"multiple files\" is true in workflow mode\n // (There will always be the license file)\n multipleFiles = true;\n }\n\n // First and foremost - if it's a thesis, reject the submission\n if (isThesis)\n {\n WorkspaceItem wi = (WorkspaceItem) subInfo.getSubmissionItem();\n wi.deleteAll();\n subInfo.setSubmissionItem(null);\n\n // Remember that we've removed a thesis in the session\n request.getSession().setAttribute(\"removed_thesis\",\n Boolean.TRUE);\n\n return STATUS_THESIS_REJECTED; // since theses are disabled, throw\n // an error!\n }\n\n // Next, check if we are pruning some existing metadata\n if (request.getParameter(\"do_not_prune\") != null)\n {\n return STATUS_CANCEL_PRUNE; // cancelled pruning!\n }\n else if (request.getParameter(\"prune\") != null)\n {\n processVerifyPrune(context, request, response, subInfo,\n multipleTitles, publishedBefore, multipleFiles);\n }\n else\n // otherwise, check if pruning is necessary\n {\n // Now check to see if the changes will remove any values\n // (i.e. multiple files, titles or an issue date.)\n\n if (subInfo.getSubmissionItem() != null)\n {\n // shouldn't need to check if submission is null, but just in case!\n if (!multipleTitles)\n {\n Metadatum[] altTitles = subInfo.getSubmissionItem().getItem()\n .getDC(\"title\", \"alternative\", Item.ANY);\n\n willRemoveTitles = altTitles.length > 0;\n }\n\n if (!publishedBefore)\n {\n Metadatum[] dateIssued = subInfo.getSubmissionItem().getItem()\n .getDC(\"date\", \"issued\", Item.ANY);\n Metadatum[] citation = subInfo.getSubmissionItem().getItem()\n .getDC(\"identifier\", \"citation\", Item.ANY);\n Metadatum[] publisher = subInfo.getSubmissionItem().getItem()\n .getDC(\"publisher\", null, Item.ANY);\n\n willRemoveDate = (dateIssued.length > 0)\n || (citation.length > 0) || (publisher.length > 0);\n }\n\n if (!multipleFiles)\n {\n // see if number of bitstreams in \"ORIGINAL\" bundle > 1\n // FIXME: Assumes multiple bundles, clean up someday...\n Bundle[] bundles = subInfo.getSubmissionItem().getItem()\n .getBundles(\"ORIGINAL\");\n\n if (bundles.length > 0)\n {\n Bitstream[] bitstreams = bundles[0].getBitstreams();\n\n willRemoveFiles = bitstreams.length > 1;\n }\n }\n }\n\n // If anything is going to be removed from the item as a result\n // of changing the answer to one of the questions, we need\n // to inform the user and make sure that's OK, before saving!\n if (willRemoveTitles || willRemoveDate || willRemoveFiles)\n {\n //save what we will need to prune to request (for UI to process)\n request.setAttribute(\"will.remove.titles\", Boolean.valueOf(willRemoveTitles));\n request.setAttribute(\"will.remove.date\", Boolean.valueOf(willRemoveDate));\n request.setAttribute(\"will.remove.files\", Boolean.valueOf(willRemoveFiles));\n\n return STATUS_VERIFY_PRUNE; // we will need to do pruning!\n }\n }\n\n // If step is complete, save the changes\n subInfo.getSubmissionItem().setMultipleTitles(multipleTitles);\n subInfo.getSubmissionItem().setPublishedBefore(publishedBefore);\n\n // \"Multiple files\" irrelevant in workflow mode\n if (!subInfo.isInWorkflow())\n {\n subInfo.getSubmissionItem().setMultipleFiles(multipleFiles);\n }\n\n // If this work has not been published before & no issued date is set,\n // then the assumption is that TODAY is the issued date.\n // (This logic is necessary since the date field is hidden on DescribeStep when publishedBefore==false)\n if(!publishedBefore)\n {\n Metadatum[] dateIssued = subInfo.getSubmissionItem().getItem()\n .getDC(\"date\", \"issued\", Item.ANY);\n if(dateIssued.length==0)\n {\n //Set issued date to \"today\" (NOTE: InstallItem will determine the actual date for us)\n subInfo.getSubmissionItem().getItem().addDC(\"date\", \"issued\", null, \"today\");\n }\n }\n\n // commit all changes to DB\n subInfo.getSubmissionItem().update();\n context.commit();\n\n return STATUS_COMPLETE; // no errors!\n }", "private void discardRestrictedCards()\n\t{\n\t\tif (playerList.size() == 2)\n\t\t{\n\t\t\tfor(Card card : restrictedCard2PlayerList)\n\t\t\t{\n\t\t\t\tswitch (card.getType())\n\t\t\t\t{\n\t\t\t\t\tcase GreenPlayerCard:\n\t\t\t\t\tcase BrownPlayerCard:\n\t\t\t\t\t\tCard playerCardMatch = board.getPlayerCardDeck().pickCardByID(card.getId());\n\t\t\t\t\t\tif (playerCardMatch != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboard.getDiscardDeck().addCard(playerCardMatch);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CityAreaCard:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PersonalityCard:\n\t\t\t\t\t\tCard personalityCardMatch = board.getPersonalityCardDeck().pickCardByID(card.getId());\n\t\t\t\t\t\tif (personalityCardMatch != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboard.getDiscardDeck().addCard(personalityCardMatch);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase RandomEventCard:\n\t\t\t\t\t\tCard randomEventCardMatch = board.getRandomEventCardDeck().pickCardByID(card.getId());\n\t\t\t\t\t\tif (randomEventCardMatch != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboard.getDiscardDeck().addCard(randomEventCardMatch);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void actions() {\n\t\t\tProvider p = array_provider[theTask.int_list_providers_that_tried_task.get(0)];\n\t\t\t\n\t\t\t//there is a percentage of probability that the user will fail to complete the task\n\t\t\tif(random.draw((double)PERCENTAGE_TASK_FAILURE/100)){ // SUCCESS\n\n\t\t\t\ttot_success_tasks++;\n\t \tthrough_time += time() - theTask.entryTime;\n\t\t\t\ttheTask.out();\n\t\t\t\t\n\t\t\t\tif(FIXED_EARNING_FOR_TASK) earning_McSense = earning_McSense + FIXED_EARNING_VALUE;\n\t\t\t\telse {\n\n\t\t\t\t\t//Provider p = (Provider) theTask.providers_that_tried_task.first();\n\t\t\t\t\tearning_McSense = earning_McSense + (p.min_price*PERCENTAGE_EARNING)/100;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\telse { // FAILURE\n\t\t\t\t//we should check again and if the check fails insert the task in rescheduled_waiting\n\t\t\t\ttheTask.into(taskrescheduled);\n\t\t\t\ttot_failed_tasks++;\n\t\t\t\t//new StartTaskExecution(theTask).schedule(time());\n\n\t\t\t}\n\t\t\t// the provider frees one slot\n\t\t\tp.number_of_task_executing--;\n\t\t\ttot_scheduled_completed_in_good_or_bad_tasks++;\n\n \t}", "@Override\n public void bankrupt() {\n this.mortgaged = false;\n }", "public void transformedSkills()\r\n\t{\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false);\r\n\t\t// Cancel Gatekeeper Transformation\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(8248, 1), false);\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5656, 1), false);//Update by rocknow\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5657, 1), false);//Update by rocknow\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5658, 1), false);//Update by rocknow\r\n\t\tgetPlayer().addSkill(SkillTable.getInstance().getInfo(5659, 1), false);//Update by rocknow\r\n\r\n\t\tgetPlayer().setTransformAllowedSkills(SKILLS);\r\n\t}", "public void comportement() {\n\t\tif (compteurPas > 0) {\n seDeplacer(deplacementEnCours);\n compteurPas--;\n\n // sinon charge le prochain deplacement\n\t\t} else {\n\t\t // recalcul le chemin si la cible a bouge\n boolean cibleBouger = calculPosCible();\n if (cibleBouger)\n calculerChemin();\n\n if (suiteDeDeplacement.size() > 0) {\n deplacementEnCours = suiteDeDeplacement.pollFirst();\n compteurPas = Case.TAILLE / vitesse;\n // pour le sprite\n if (deplacementEnCours == 'E')\n direction = true;\n else if (deplacementEnCours == 'O')\n direction = false;\n }\n }\n\t\tattaque = attaquer();\n\t}", "public void checkAchievements(PD pd, Account doc) {\n for(Rank r : ranks.special.values()) {\n pd.removeRank(r);\n pd.setSpecialRank(null);\n }\n\n new Thread(()->{\n for(Rank rank : ranks.special.values()){\n if(rank.condition(doc,pd)){\n if (pd.getSpacialRank() == null || pd.getSpacialRank().value < rank.value) {\n pd.setSpecialRank(rank);\n }\n }\n }\n synchronized (pd){\n pd.updateName();\n }\n }).start();\n }", "public void cancelOperation() {\n\n System.out.println(\"Sorry, a problem occurred, deposit money operation is unsuccessful\");\n System.out.println(\"Current information : \");\n while (!storage.isEmpty()) {\n Command command = storage.pop();\n command.undo();\n }\n }", "public void cancelFlight(){\n \n Flight flightObject = FlightRepository.getFlight(this.number);\n if (flightObject == null){\n System.out.println(\"Please select a valid flight number\");\n }\n flightObject.removePassengerSeat(this.PassengerID);\n }", "public abstract void distributeTeamsPointsRedoubleGame(Announce normalAnnounce);", "public static void reactivateSplitPR(JSONObject resultEncum, EscmProposalMgmt proposal,\n Boolean isCancel, EscmProposalmgmtLine proposalmgmtline) {\n List<EfinBudgetManencumlines> manenculine = new ArrayList<EfinBudgetManencumlines>();\n EfinBudgetManencum encumbrance = null;\n EfinBudgetManencumlines srcEncumLines = null;\n List<EfinBudManencumRev> revList = null;\n try {\n if (proposal != null)\n encumbrance = proposal.getEfinEncumbrance();\n else\n encumbrance = proposalmgmtline.getEscmProposalmgmt().getEfinEncumbrance();\n\n // From PR\n if (proposal != null) {\n\n Map<EfinBudgetManencumlines, Double> proposalLineMap = proposal\n .getEscmProposalmgmtLineList().stream().filter(b -> b.getEfinBudgmanencumline() != null)\n .collect(Collectors.groupingBy(EscmProposalmgmtLine::getEfinBudgmanencumline,\n Collectors.summingDouble(a -> a.getLineTotal().doubleValue())));\n\n for (Map.Entry<EfinBudgetManencumlines, Double> entry : proposalLineMap.entrySet()) {\n\n BigDecimal requisitionLineAmt = BigDecimal.ZERO;\n\n for (EscmProposalmgmtLine proposalLine : proposal.getEscmProposalmgmtLineList()) {\n\n if (proposalLine.getEfinBudgmanencumline() != null\n && proposalLine.getEfinBudgmanencumline().getId().equals(entry.getKey().getId())) {\n for (EscmProposalsourceRef sourceRef : proposalLine.getEscmProposalsourceRefList()) {\n RequisitionLine reqline = sourceRef.getRequisitionLine();\n requisitionLineAmt = requisitionLineAmt\n .add(sourceRef.getReservedQuantity().multiply(reqline.getUnitPrice()));\n }\n }\n }\n\n BigDecimal revAmtSum = BigDecimal.ZERO;\n\n EfinBudgetManencumlines newEncumlines = entry.getKey();\n\n OBQuery<EfinBudManencumRev> revAmtQuery = OBDal.getInstance().createQuery(\n EfinBudManencumRev.class, \" as e where e.sRCManencumline.id = :proposalEncumLineID\");\n revAmtQuery.setNamedParameter(\"proposalEncumLineID\", newEncumlines.getId());\n\n if (revAmtQuery != null) {\n List<EfinBudManencumRev> revAmtList = revAmtQuery.list();\n if (revAmtList.size() > 0) {\n\n Map<EfinBudgetManencumlines, Double> encumLineRevAmtMap = revAmtList.stream()\n .filter(b -> b.getManualEncumbranceLines() != null)\n .collect(Collectors.groupingBy(EfinBudManencumRev::getManualEncumbranceLines,\n Collectors.summingDouble(a -> (a.getRevamount().negate()).doubleValue())));\n\n for (Map.Entry<EfinBudgetManencumlines, Double> revision : encumLineRevAmtMap\n .entrySet()) {\n\n EfinBudgetManencumlines oldEncumLines = revision.getKey();\n\n revAmtSum = BigDecimal.valueOf(revision.getValue());\n\n if (resultEncum.has(\"type\") && resultEncum.getString(\"type\").equals(\"SPLIT\")) {\n if (revAmtSum.compareTo(requisitionLineAmt) > 0) {\n oldEncumLines.setAPPAmt(oldEncumLines.getAPPAmt().add(requisitionLineAmt));\n oldEncumLines.setRemainingAmount(oldEncumLines.getRemainingAmount()\n .add(revAmtSum.subtract(requisitionLineAmt)));\n OBDal.getInstance().save(oldEncumLines);\n\n } else {\n oldEncumLines.setAPPAmt(oldEncumLines.getAPPAmt().add(revAmtSum));\n OBDal.getInstance().save(oldEncumLines);\n }\n }\n if (resultEncum.has(\"type\") && resultEncum.getString(\"type\").equals(\"MERGE\")) {\n oldEncumLines.setAPPAmt(oldEncumLines.getAPPAmt().add(revAmtSum));\n OBDal.getInstance().save(oldEncumLines);\n }\n }\n\n }\n }\n }\n }\n\n if (!isCancel) {\n // update encumbrance line is null\n if (proposal != null) {\n for (EscmProposalmgmtLine ln : proposal.getEscmProposalmgmtLineList()) {\n ln.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(ln);\n }\n // update the bid management header status as \"In Active\"\n proposal.setEfinEncumbrance(null);\n proposal.setEfinIsbudgetcntlapp(false);\n encumbrance.setBusinessPartner(null);\n OBDal.getInstance().save(proposal);\n } else {\n proposalmgmtline.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(proposalmgmtline);\n // update the bid management header status as \"In Active\"\n proposalmgmtline.getEscmProposalmgmt().setEfinEncumbrance(null);\n proposalmgmtline.getEscmProposalmgmt().setEfinIsbudgetcntlapp(false);\n encumbrance.setBusinessPartner(null);\n OBDal.getInstance().save(proposal);\n }\n }\n\n if (encumbrance != null) {\n // fetching revision record based on newly created encumbrance lines\n OBQuery<EfinBudManencumRev> revQuery = OBDal.getInstance()\n .createQuery(EfinBudManencumRev.class, \" as e where e.sRCManencumline.id in \"\n + \" ( select e.id from Efin_Budget_Manencumlines e where e.manualEncumbrance.id=:encumId)\");\n revQuery.setNamedParameter(\"encumId\", encumbrance.getId());\n revList = revQuery.list();\n if (revList.size() > 0) {\n for (EfinBudManencumRev rev : revList) {\n srcEncumLines = rev.getSRCManencumline();\n if (!isCancel) {\n rev.setSRCManencumline(null);\n OBDal.getInstance().save(rev);\n OBDal.getInstance().flush();\n }\n }\n\n // if (proposal.getEfinEncumbrance() != null)\n // encumbrance = proposal.getEfinEncumbrance();\n manenculine = encumbrance.getEfinBudgetManencumlinesList();\n if (!isCancel) {\n encumbrance.setDocumentStatus(\"DR\");\n OBDal.getInstance().save(encumbrance);\n }\n if (manenculine.size() > 0) {\n for (EfinBudgetManencumlines line : manenculine) {\n if (!isCancel)\n OBDal.getInstance().remove(line);\n else {\n line.setAPPAmt(line.getAPPAmt().add(line.getRevamount().negate()));\n BidManagementDAO.insertEncumbranceModification(line, line.getRevamount().negate(),\n null, \"PRO\", null, null);\n }\n }\n if (!isCancel)\n OBDal.getInstance().remove(encumbrance);\n }\n for (EfinBudManencumRev rev : revList) {\n EfinBudgetManencumlines lines = rev.getManualEncumbranceLines();\n log.debug(\"getAccountingCombination:\" + lines.getAccountingCombination());\n // lines.setAPPAmt(lines.getAPPAmt().add(rev.getRevamount().negate()));\n\n if (!isCancel) {\n lines.getEfinBudManencumRevList().remove(rev);\n } else {\n BidManagementDAO.insertEncumbranceModification(lines, rev.getRevamount().negate(),\n srcEncumLines, \"PRO\", null, null);\n }\n }\n }\n }\n } catch (Exception e) {\n log.error(\"Exception in reactivateSplitPR \" + e.getMessage());\n }\n }", "private void actionChangedEstimatorSettingsAuto ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(false);\r\n\t}", "public void ventaBilleteMaquina2()\n {\n maquina2.insertMoney(600);\n maquina1.printTicket();\n }", "public static void updateAutoEncumbrancechanges(EscmProposalMgmt proposalmgmt, boolean isCancel) {\n try {\n OBContext.setAdminMode();\n BigDecimal amt = BigDecimal.ZERO, amtTemp = BigDecimal.ZERO;\n List<EscmProposalmgmtLine> prolineList = proposalmgmt.getEscmProposalmgmtLineList();\n EscmProposalMgmt baseProposalObj = proposalmgmt.getEscmBaseproposal();\n List<EscmProposalmgmtLine> baseProlineList;\n BigDecimal diff = BigDecimal.ZERO;\n\n // checking with propsal line\n for (EscmProposalmgmtLine proposalline : prolineList) {\n if (!proposalline.isSummary()\n && (proposalline.getStatus() == null || !proposalline.getStatus().equals(\"CL\"))) {\n EfinBudgetManencumlines encline = proposalline.getEfinBudgmanencumline();\n if (isCancel) {\n\n if (encline.getManualEncumbrance().getAppliedAmount().compareTo(BigDecimal.ZERO) == 1) {\n\n if (proposalmgmt.getEscmBaseproposal() == null) {\n\n amt = encline.getAPPAmt().subtract(proposalline.getLineTotal());\n encline.setAPPAmt(amt);\n amtTemp = amtTemp.add(proposalline.getLineTotal());\n if (encline.getManualEncumbrance().getAppliedAmount().subtract(amtTemp)\n .compareTo(BigDecimal.ZERO) == 0 && baseProposalObj == null)\n encline.getManualEncumbrance().setDocumentStatus(\"CA\");\n }\n if (proposalmgmt.getEscmBaseproposal() == null)\n BidManagementDAO.insertEncumbranceModification(encline,\n proposalline.getLineTotal().negate(), null, \"PRO\", null, null);\n } else {\n // This else is for the particular case (proposal->po, po cancel and proposal\n // cancel)\n encline.getManualEncumbrance().setDocumentStatus(\"CA\");\n break;\n }\n\n } else {\n\n if (baseProposalObj == null) {\n if (encline != null) {\n encline.getManualEncumbrance().setDocumentStatus(\"DR\");\n // remove associated proposal line refernce\n if (encline.getEscmProposalmgmtLineEMEfinBudgmanencumlineIDList().size() > 0) {\n for (EscmProposalmgmtLine proLineList : encline\n .getEscmProposalmgmtLineEMEfinBudgmanencumlineIDList()) {\n proLineList.setEfinBudgmanencumline(null);\n OBDal.getInstance().save(proLineList);\n }\n }\n\n OBDal.getInstance().remove(encline);\n }\n }\n }\n /*\n * Trigger changes EfinEncumbarnceRevision.updateBudgetInquiry(encline,\n * encline.getManualEncumbrance(), proposalline.getLineTotal().negate());\n */\n }\n }\n\n // for cancel case if there exist a previous version, then update the encumbrance based on\n // the previous version values (Adding new records in the modification tab based on the new\n // and old proposal)\n if (isCancel) {\n if (baseProposalObj != null) {\n for (EscmProposalmgmtLine newproposalline : prolineList) {\n if (!newproposalline.isSummary()) {\n if (newproposalline.getStatus() == null) {\n EfinBudgetManencumlines encline = newproposalline.getEfinBudgmanencumline();\n diff = newproposalline.getLineTotal()\n .subtract(newproposalline.getEscmOldProposalline() != null\n ? newproposalline.getEscmOldProposalline().getLineTotal()\n : BigDecimal.ZERO);\n if (diff.compareTo(BigDecimal.ZERO) != 0) {\n ProposalManagementActionMethod.insertEncumbranceModification(encline,\n diff.negate(), null, false);\n encline.setAPPAmt(encline.getAPPAmt().add(diff.negate()));\n OBDal.getInstance().save(encline);\n }\n } else if (newproposalline.getStatus() != null\n && newproposalline.getEscmOldProposalline() != null\n && newproposalline.getEscmOldProposalline().getStatus() == null) {\n EfinBudgetManencumlines encline = newproposalline.getEfinBudgmanencumline();\n diff = newproposalline.getEscmOldProposalline() != null\n ? newproposalline.getEscmOldProposalline().getLineTotal()\n : BigDecimal.ZERO;\n if (diff.compareTo(BigDecimal.ZERO) != 0) {\n ProposalManagementActionMethod.insertEncumbranceModification(encline, diff, null,\n false);\n encline.setAPPAmt(encline.getAPPAmt().add(diff));\n OBDal.getInstance().save(encline);\n }\n }\n }\n }\n }\n }\n OBDal.getInstance().flush();\n } catch (final Exception e) {\n log.error(\"Exception in updateManualEncumAppAmt after Reject : \", e);\n } finally {\n OBContext.restorePreviousMode();\n }\n }", "public boolean display(Display disp)\r\n\t{\r\n\t\tEditTradeoff ar = new EditTradeoff(disp, this, false);\r\n\t\tString msg = \"Edited tradeoff \" + this.getName() + \" \" + ar.getCanceled();\r\n\t\tDataLog d = DataLog.getHandle();\r\n\t\td.writeData(msg);\r\n\t\treturn ar.getCanceled(); //can I do this?\r\n\t\t\r\n\t}", "@Test\n\tpublic void testCheckSufficientCredits_OverdraftFacility() {\n\n\t\tint creditsRequired = 11;\n\n\t\tSmsMessage msg = new SmsMessage();\n\t\tSmsTask smsTask = new SmsTask();\n\t\tsmsTask.setSakaiSiteId(SmsConstants.SMS_DEV_DEFAULT_SAKAI_SITE_ID);\n\t\tsmsTask.setSmsAccountId(account.getId());\n\t\tsmsTask.setDateCreated(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setDateToSend(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setStatusCode(SmsConst_DeliveryStatus.STATUS_PENDING);\n\t\tsmsTask.setAttemptCount(2);\n\t\tsmsTask.setMessageBody(SmsConstants.SMS_DEV_DEFAULT_SMS_MESSAGE_BODY);\n\t\tsmsTask.setSenderUserName(\"senderUserName\");\n\t\tsmsTask.setMaxTimeToLive(1);\n\t\tsmsTask.getSmsMessages().add(msg);\n\t\tsmsTask.setCreditEstimate(creditsRequired);\n\t\tmsg.setSmsTask(smsTask);\n\n\t\tboolean sufficientCredits = smsBillingImpl.checkSufficientCredits(\n\t\t\t\taccount.getId(), creditsRequired);\n\t\tAssert.assertFalse(\"Expected insufficient credit\", sufficientCredits);\n\t\thibernateLogicLocator.getSmsAccountLogic().persistSmsAccount(account);\n\t\tsufficientCredits = smsBillingImpl.checkSufficientCredits(account\n\t\t\t\t.getId(), creditsRequired);\n\t\tAssert.assertTrue(\"Expected insufficient credit\", !sufficientCredits);\n\t}", "private void modifyExec(){\r\n\t\ttry {\r\n\t\t\tList<HashMap<String,String>> selectedDatas=ViewUtil.getSelectedData(jTable1);\r\n\t\t\tif(selectedDatas.size()!=1){\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please select 1 item to Modify\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tMap<String,String>selectedMap=NameConverter.convertViewMap2PhysicMap(selectedDatas.get(0), \"Discount\");\r\n\t\t\tDiscountBean selectedDiscountBean=new DiscountBean();\r\n\t\t\tBeanUtil.transMap2Bean(selectedMap, selectedDiscountBean);\r\n\t\t\tViewManager.goToSubFunctionScreen(new AddDiscountPanel(selectedDiscountBean,AddDiscountPanel.MODIFY_DISCOUNT));\r\n\t\t} catch (ServiceNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void onPowerSaveUnwhitelisted(AppStateTracker sender) {\n updateAllJobs();\n unblockAllUnrestrictedAlarms();\n }", "void disableEdit() {\n\t\tnameField.setEditable(false);\n\t\tssnField.setEditable(false);\n\t\ttakenDateField.setEditable(false);\n\t\ttotalScoreField.setEditable(false);\n\t\tadvisorField.setEditable(false);\n\t\t\n\t}", "private void supprAffichage() {\n switch (afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.deleteContents();\n break;\n case AFFICHE_USER :\n ecranUser.deleteContents();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.deleteContents();\n break;\n default: break;\n }\n afficheChoix = AFFICHE_RIEN;\n }", "protected static void deletePassenger(Passenger[][] waitingRoom, PassengerQueue trainQueue) {\n // Setting scanner for console inputs.\n Scanner sc = new Scanner(System.in);\n\n // Taking user input for how to delete passenger.\n System.out.print(\"Press S to delete passenger using the seat number\\n\" +\n \"Press N to delete a passenger using passenger name\\n\" +\n \"\\t: \");\n String text = formattingWhitespace(sc.nextLine());\n\n // Validating User Input for How to delete passenger.\n if (text.equalsIgnoreCase(\"s\") || text.equalsIgnoreCase(\"n\")) {\n\n // Taking User Input for train to delete customer from.\n System.out.println(\"Select the Train : \");\n for (int train = 0; train < GUI.trains.length; train++) {\n System.out.println(\"\\t \" + train + \" : \" + GUI.trains[train]);\n }\n System.out.print(\"Enter Train Number : \");\n try {\n int train = sc.nextInt();\n sc.nextLine(); // Consuming the newline, so the next sc.nextLine does not react to it.\n\n // Validating User Input for train to delete customer from.\n if (train == 0 || train == 1) {\n\n // If customer select to delete customer using seat number.\n if (text.equalsIgnoreCase(\"S\")) {\n\n // Taking seat number to delete customer from.\n System.out.print(\"Enter Seat Number : \");\n String seatNumberText = formattingWhitespace(convert(sc.nextLine()));\n\n // Validating User Input for seat to delete customer from.\n int seatNumber = seatNumberConverter(seatNumberText);\n if (seatNumber < 42 && seatNumber > -1) {\n // Checking a passenger array for the seat to delete passenger..\n boolean isRemoved = false;\n for (int seat = 0; seat < trainQueue.getQueueLength(train); seat++) {\n // When the seat found.\n if (trainQueue.getQueueArray(train)[seat].getSeatNumber().equalsIgnoreCase(seatNumberText)) {\n waitingRoom[train][seatNumber] = trainQueue.getQueueArray(train)[seat];\n trainQueue.remove(trainQueue.getQueueArray(train)[seat], train);\n isRemoved = true;\n System.out.println(\"Passenger Deleted from seat : \" + seatNumber);\n break;\n }\n }\n // When the loop didn't find the seat in the TrainQueue.\n if (!isRemoved) {\n System.out.println(\"Seat : \" + seatNumberText + \" is not in the Train Queue.\");\n }\n }\n // If the user input for the seat number is invalid.\n else {\n System.out.println(\"Invalid Seat Number.\");\n }\n }\n // If customer select to delete passenger using passenger name.\n else if (text.equalsIgnoreCase(\"N\")) {\n // Taking user input of the passenger name to delete.\n System.out.print(\"Enter Passenger Name : \");\n String passengerName = formattingWhitespace(convert(sc.nextLine()));\n\n // Checking a passenger array for the passenger name to delete passenger..\n boolean isRemoved = false;\n for (int seat = 0; seat < trainQueue.getQueueLength(train); seat++) {\n // Deleting the every passenger with that name.\n if (trainQueue.getQueueArray(train)[seat].getPassengerName().equalsIgnoreCase(passengerName)) {\n String seatNumber = trainQueue.getQueueArray(train)[seat].getSeatNumber();\n waitingRoom[train][seatNumberConverter(seatNumber)] = trainQueue.getQueueArray(train)[seat];\n trainQueue.remove(trainQueue.getQueueArray(train)[seat], train);\n isRemoved = true;\n System.out.println(\"Passenger deleted : \" + passengerName + \" form seat : \" + seatNumber);\n }\n }\n // If there was no passenger with the user given passenger.\n if (!isRemoved) {\n System.out.println(\"Invalid Passenger Name.\");\n }\n }\n }\n // When the user given Train is invalid.\n else {\n System.out.println(\"Invalid Train Number.\");\n }\n }\n // When the user enter a letter for a train instead of a number.\n catch (InputMismatchException e) {\n System.out.println(\"Invalid Input.\");\n }\n }\n // When the user given delete Method is Invalid.\n else {\n System.out.println(\"Invalid Input.\");\n }\n }", "private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}", "public void decreaseScore(int p_96646_1_) {\n/* 51 */ if (this.theScoreObjective.getCriteria().isReadOnly())\n/* */ {\n/* 53 */ throw new IllegalStateException(\"Cannot modify read-only score\");\n/* */ }\n/* */ \n/* */ \n/* 57 */ setScorePoints(getScorePoints() - p_96646_1_);\n/* */ }", "public boolean request() {\n\t\tif (inAnySession()) {\n\t\t\tplayer.exchangeSession.reset();\n\t\t\treturn false;\n\t\t}\n\t\t\n if (!PlayerRight.isDeveloper(player) && !PlayerRight.isDeveloper(other)) {\n if (player.playTime < 3000) {\n player.message(\"You cannot trade until you have 30 minutes of playtime. \" + Utility.getTime(3000 - player.playTime) + \" minutes remaining.\");\n return false;\n }\n if (other.playTime < 3000) {\n player.message(other.getName() + \" cannot trade until they have 30 minutes of playtime.\");\n return false;\n }\n }\n\t\t \n\t\tif (getSession(other).isPresent() && getSession(other).get().inAnySession()) {\n\t\t\tplayer.message(\"This player is currently is a \" + type.name + \" with another player.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (Objects.equals(player, other)) {\n\t\t\tplayer.message(\"You cannot \" + type.name + \" with yourself.\");\n\t\t\treturn false;\n\t\t}\n if (PlayerRight.isIronman(player) && !PlayerRight.isDeveloper(other)) {\n player.message(\"You can not \" + type.name + \" as you are an iron man.\");\n return false;\n }\n if (PlayerRight.isIronman(other) && !PlayerRight.isDeveloper(player)) {\n player.message(other.getName() + \" can not be \" + type.name + \"d as they are an iron man.\");\n return false;\n }\n\t\tif (player.exchangeSession.requested_players.contains(other)) {\n\t\t\tplayer.message(\"You have already sent a request to this player.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.locking.locked()) {\n\t\t\tplayer.message(\"You cannot send a \" + type.name + \" request right now.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.locking.locked()) {\n\t\t\tplayer.message(other.getName() + \" is currently busy.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.playerAssistant.busy()) {\n\t\t\tplayer.message(\"Please finish what you are doing before you do that.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.playerAssistant.busy()) {\n\t\t\tplayer.message(other.getName() + \" is currently busy.\");\n\t\t\treturn false;\n\t\t}\n\t\tif (player.inActivity(ActivityType.DUEL_ARENA)) {\n\t\t\tplayer.message(\"You can not do that whilst in a duel!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (other.inActivity(ActivityType.DUEL_ARENA)) {\n\t\t\tother.message(\"You can not do that whilst in a duel!\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!onRequest()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn SESSIONS.add(this);\n\t}", "public void retireLead()\r\n\t{\r\n\t\tisleader = false;\r\n\t}", "public void aceChanger() {\n\t\t// Two aces in hand before move has been made\n\t\tif (hand.numOfCards() == 2 && isBusted()) {\n\t\t\thandIterator = new HandIterator(hand.getCards());\n\t\t\tCard c = hand.getCards().get(0);\n\t\t\tCard newAce = new Card(1, \"A\", c.getCardSuit());\n\t\t\thand.addCard(newAce);\n\t\t\thand.remove(c);\n\t\t// Ace in hand and set to 11, and hand has busted\n\t\t} else if (checkForAce() && isBusted() && hand.numOfCards() > 2) {\n\t\t\thandIterator = new HandIterator(hand.getCards());\n\t\t\twhile (handIterator.hasNext()) {\n\t\t\t\tCard c = (Card) handIterator.next();\n\t\t\t\tif (c.getCardValue() == 11) {\n\t\t\t\t\thand.addCard(new Card(1, \"A\", c.getCardSuit()));\n\t\t\t\t\thand.remove(c);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t// Ace in hand and total hand value is < 21\n//\t\t} else if (checkForAce() && !isBusted()) {\n//\t\t\tprintHand();\n//\t\t\tif (hand.numOfAces() == 1) {\n//\t\t\t\thandIterator = new HandIterator(hand.getCards());\n//\t\t\t\tSystem.out.println(\"You have an Ace card in your hand. Do you \"\n//\t\t\t\t\t\t+ \"want to set the value to 1 or 11?\");\n//\t\t\t\tint ans = scan.nextInt();\n//\t\t\t\twhile (handIterator.hasNext()) {\n//\t\t\t\t\tCard c = (Card) handIterator.next();\n//\t\t\t\t\tif (c.getCardName().equals(\"A\")) {\n//\t\t\t\t\t\twhile (ans != 1 && ans != 11) {\n//\t\t\t\t\t\t\tSystem.out.println(\"Invalid input. Try again.\");\n//\t\t\t\t\t\t\tans = scan.nextInt();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\thand.addCard(new Card(ans, \"A\", c.getCardSuit()));\n//\t\t\t\t\t\thand.remove(c);\n//\t\t\t\t\t\treturn;\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t} else {\n//\t\t\t\thandIterator = new HandIterator(hand.getCards());\n//\t\t\t\tSystem.out.println(\"You have multiple Ace cards in your hand.\"\n//\t\t\t\t\t\t+ \" Which card do you want to set the value for?\"\n//\t\t\t\t\t\t+ \" (Select by appropriate card suit.) Type exit to\"\n//\t\t\t\t\t\t+ \" make no changes.\");\n//\t\t\t\tString suit = scan.next();\n//\t\t\t\tif (suit.equalsIgnoreCase(\"exit\")) {\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t\twhile (handIterator.hasNext()) {\n//\t\t\t\t\tCard c = (Card) handIterator.next();\n//\t\t\t\t\tif (c.getCardName().equals(\"A\") && \n//\t\t\t\t\t\t\tc.getCardSuit().equalsIgnoreCase(suit)) {\n//\t\t\t\t\t\tSystem.out.println(\"Do you want to set the value to 1\"\n//\t\t\t\t\t\t\t\t+ \" or 11?\");\n//\t\t\t\t\t\tint ans = scan.nextInt();\n//\t\t\t\t\t\thand.addCard(new Card(ans, \"A\", c.getCardSuit()));\n//\t\t\t\t\t\thand.remove(c);\n//\t\t\t\t\t\treturn;\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n\t\t}\n\t}", "public void declineTransaction(CommandOfService c) throws Exception {\n // We give back the points to the user\n Service s = c.getService();\n User u = c.getOwner();\n if(s.getTypeService() == 0){\n userDAO.addPoints(s.getCost(),u);\n }\n DAO.declineTransaction(c);\n FacadeNotification facadeNotification = FacadeNotification.getInstance();\n String title = \"Transaction declined!\";\n String desc = \"Your command for: \"+s.getTitle()+\" has been declined.\\n\";\n try {\n facadeNotification.createNotification(u.getIdUser(),title,desc);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void cancelBooking() {\n // Set up controllers.\n IController<Bookings> bic = new Controller<>();\n IController<Staff> sic = new Controller<>();\n IController<Modules> mic = new Controller<>();\n\n Scanner sc = new Scanner(System.in);\n Staff staffMember;\n Modules module;\n\n // Get staff ID to delete from.\n staffMember = sic.readById(Staff.class, getStaff().getStaffID(), true);\n\n // Read module IDs, get a list of all modules which this staff member can delete from.\n Set<String> moduleSet = new HashSet<>();\n System.out.println(\"Module options\");\n for (Modules m : staffMember.getModules()) {\n System.out.println(\" \" + m.getModuleID() + \": \" + m.getName());\n moduleSet.add(m.getModuleID());\n }\n String moduleKey = sc.next();\n while (!moduleSet.contains(moduleKey)) {\n System.out.println(\"That is not a correct ID for a module. Look at the list above.)\");\n moduleKey = sc.next();\n }\n sc.nextLine();\n\n module = mic.readById(Modules.class, moduleKey, true);\n\n // Get the booking to delete.\n Set<String> bookingSet = new HashSet<>();\n System.out.println(\"Bookings for this module you can delete.\");\n for (Bookings b : module.getBookings()) {\n System.out.println(\" \" + b.getBookingID() + \": \" + b.getTime().format(DateTimeFormatter.ofPattern(\"dd/MM/yyyy HH:mm\")) + \" in the room \" + b.getRooms().getRoomID());\n bookingSet.add(b.getBookingID());\n }\n String bookingKey = sc.next();\n while (!bookingSet.contains(bookingKey)) {\n System.out.println(\"That is not a correct ID for a module. Look at the list above.)\");\n bookingKey = sc.next();\n }\n sc.nextLine();\n\n try {\n bic.delete(Bookings.class, bookingKey);\n System.out.println(\"Successfully cancelled the booking with the ID \" + bookingKey);\n } catch (Exception e) {\n System.out.println(\"Unable to cancel the booking with the id: \" + bookingKey);\n }\n }", "private void butTools_Click(Object sender, System.EventArgs e) throws Exception {\n FormFeeSchedTools FormF = new FormFeeSchedTools(FeeSchedC.getListShort()[listFeeSched.SelectedIndex].FeeSchedNum);\n FormF.ShowDialog();\n if (FormF.DialogResult == DialogResult.Cancel)\n {\n return ;\n }\n \n Fees.refreshCache();\n ProcedureCodes.refreshCache();\n changed = true;\n if (Programs.isEnabled(ProgramName.eClinicalWorks))\n {\n fillFeeSchedules();\n }\n \n //To show possible added fee schedule.\n fillGrid();\n SecurityLogs.MakeLogEntry(Permissions.Setup, 0, \"Fee Schedule Tools\");\n }", "public boolean dropCourse(Scanner sc) {\r\n\t\tboolean success = false;\r\n\t\tboolean validInput = false;\r\n\t\tint choice, confirmation = 0;\r\n\t\tStudent s1 = new Student();\r\n\t\ts1 = s1.retrieveStudentObject(this.getStudentID());\r\n\t\tStudent s2 = new Student();\r\n\t\tCourse c1 = new Course();\r\n\t\tIndexGroup g1 = new IndexGroup();\r\n\t\tWaitlist wl1 = new Waitlist();\r\n\r\n\t\ttry {\r\n\t\t\tif (s1 != null) {\r\n\t\t\t\ts1.printCoursesRegistered();\r\n\r\n\t\t\t\tif (s1.getCourseList().size() != 0 || s1.getWaitListIDList().size() != 0) {\r\n\t\t\t\t\tdo {\r\n\t\t\t\t\t\tSystem.out.print(\"Select the Course you want to drop: \");\r\n\t\t\t\t\t\tchoice = sc.nextInt();\r\n\r\n\t\t\t\t\t\tif (choice >= 1 && choice <= this.waitListIDList.size() && this.waitListIDList.size() != 0) {\r\n\t\t\t\t\t\t\tInteger tempWaitListID = this.waitListIDList.get(choice - 1);\r\n\t\t\t\t\t\t\tc1 = c1.retrieveCourseObjectByWaitList(tempWaitListID);\r\n\t\t\t\t\t\t\tg1 = g1.retrieveIndexGroupObjectByWaitList(tempWaitListID);\r\n\r\n\t\t\t\t\t\t\tSystem.out.println(\"Course: \" + c1.getCourseID());\r\n\t\t\t\t\t\t\tg1.printGroupDetailsConfirmation();\r\n\t\t\t\t\t\t\tSystem.out.print(\"Confirm to remove from the waitlist? 1 = Yes, Any other number = No: \");\r\n\t\t\t\t\t\t\tdo {\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tconfirmation = sc.nextInt();\r\n\t\t\t\t\t\t\t\t\tif (confirmation >= 0) {\r\n\t\t\t\t\t\t\t\t\t\tvalidInput = true;\r\n\t\t\t\t\t\t\t\t\t\tsc.nextLine();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} catch (InputMismatchException e) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Enter a valid integer!\");\r\n\t\t\t\t\t\t\t\t\tsc.nextLine();\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t} while (!validInput);\r\n\t\t\t\t\t\t\tvalidInput = false;\r\n\r\n\t\t\t\t\t\t\tif (confirmation == 1) {\r\n\t\t\t\t\t\t\t\twl1 = wl1.retrieveWaitListObject(tempWaitListID);\r\n\t\t\t\t\t\t\t\twl1.dequeueFromWaitList(s1.getStudentID());\r\n\t\t\t\t\t\t\t\ts1.getWaitListIDList().remove(tempWaitListID);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"You have been removed from the waitlist.\");\r\n\t\t\t\t\t\t\t\twl1.updateWaitListObject(wl1);\r\n\t\t\t\t\t\t\t\ts1.updateStudentObject(s1);\r\n\t\t\t\t\t\t\t\tsuccess = true;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Student was not removed from the waitlist.\");\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (choice > this.waitListIDList.size()\r\n\t\t\t\t\t\t\t\t&& choice <= (this.waitListIDList.size() + this.getIndexGroupList().size())) {\r\n\t\t\t\t\t\t\tInteger tempGroupID = this.getIndexGroupList().get(choice - this.waitListIDList.size() - 1);\r\n\t\t\t\t\t\t\tc1 = c1.retrieveCourseObjectByIndexGroup(tempGroupID);\r\n\t\t\t\t\t\t\tg1 = g1.retrieveIndexGroupObject(tempGroupID);\r\n\r\n\t\t\t\t\t\t\tSystem.out.println(\"Course: \" + c1.getCourseID());\r\n\t\t\t\t\t\t\tg1.printGroupDetailsConfirmation();\r\n\t\t\t\t\t\t\tSystem.out.print(\"Confirm to drop the course? 1 = Yes, Any other number = No: \");\r\n\t\t\t\t\t\t\tdo {\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tconfirmation = sc.nextInt();\r\n\t\t\t\t\t\t\t\t\tif (confirmation >= 0) {\r\n\t\t\t\t\t\t\t\t\t\tvalidInput = true;\r\n\t\t\t\t\t\t\t\t\t\tsc.nextLine();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} catch (InputMismatchException e) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Enter a valid integer!\");\r\n\t\t\t\t\t\t\t\t\tsc.nextLine();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} while (!validInput);\r\n\t\t\t\t\t\t\tvalidInput = false;\r\n\r\n\t\t\t\t\t\t\tif (confirmation == 1) {\r\n\t\t\t\t\t\t\t\ts1.getCourseList().remove(c1.getCourseID());\r\n\t\t\t\t\t\t\t\ts1.getIndexGroupList().remove(tempGroupID);\r\n\t\t\t\t\t\t\t\tg1.updateVacancies('+');\r\n\t\t\t\t\t\t\t\twl1 = wl1.retrieveWaitListObjectByIndexGroup(tempGroupID);\r\n\t\t\t\t\t\t\t\tString tempStudentID = wl1.getStudentQueueList().peek();\r\n\t\t\t\t\t\t\t\tif (tempStudentID != null) {\r\n\t\t\t\t\t\t\t\t\ts2 = s2.retrieveStudentObject(tempStudentID);\r\n\t\t\t\t\t\t\t\t\twl1.dequeueFromWaitList(tempStudentID);\r\n\t\t\t\t\t\t\t\t\ts2.getCourseList().add(c1.getCourseID());\r\n\t\t\t\t\t\t\t\t\ts2.getIndexGroupList().add(tempGroupID);\r\n\t\t\t\t\t\t\t\t\ts2.getSchedule().AddSchedule(tempGroupID);\r\n\r\n\t\t\t\t\t\t\t\t\tfor (int i = 0; i < s2.getWaitListIDList().size(); i++) {\r\n\t\t\t\t\t\t\t\t\t\tif (s2.getWaitListIDList().get(i).equals(wl1.getWaitListID())) {\r\n\t\t\t\t\t\t\t\t\t\t\ts2.getWaitListIDList().remove(i);\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\tg1.updateVacancies('-');\r\n\r\n\t\t\t\t\t\t\t\t\twl1.updateWaitListObject(wl1);\r\n\t\t\t\t\t\t\t\t\ts2.updateStudentObject(s2);\r\n\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"System message:\");\r\n\t\t\t\t\t\t\t\t\tif (s2.getNotifMode().toLowerCase().equals(\"sms\")) {\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(s2.getName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ \" has been removed from waitlist and added to the index group \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ tempGroupID);\r\n\t\t\t\t\t\t\t\t\t\tNotificationController.sendSMS(s2.getMobileNum());\r\n\t\t\t\t\t\t\t\t\t} else if (s2.getNotifMode().toLowerCase().equals(\"email\")) {\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(s2.getName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ \" has been removed from waitlist and added to the index group \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ tempGroupID);\r\n\t\t\t\t\t\t\t\t\t\tNotificationController.sendEmail(s2.getEmail(), c1.getCourseID());\r\n\t\t\t\t\t\t\t\t\t} else if (s2.getNotifMode().toLowerCase().equals(\"both\")) {\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(s2.getName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ \" has been removed from waitlist and added to the index group \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ tempGroupID);\r\n\t\t\t\t\t\t\t\t\t\tNotificationController.sendSMS(s2.getMobileNum());\r\n\t\t\t\t\t\t\t\t\t\tNotificationController.sendEmail(s2.getEmail(), c1.getCourseID());\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\ts1.getSchedule().RemoveSchedule(tempGroupID);\r\n\r\n\t\t\t\t\t\t\t\tg1.updateIndexGroupObject(g1);\r\n\t\t\t\t\t\t\t\ts1.updateStudentObject(s1);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Course has been dropped successfully.\");\r\n\t\t\t\t\t\t\t\tsuccess = true;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Course has not been dropped.\");\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tSystem.out.print(\"Invalid choice.\\n\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} while (choice < 0 || choice > (this.waitListIDList.size() + this.getIndexGroupList().size()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn success;\r\n\t}", "private void liberateAroom() {\n\t\tif(this.adminLogin() == 1) {\n\t\t\tSystem.out.println(\"\\n------------------\\n| Bonjour Ibobai |\\n------------------\");\n\t\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\t\tif(chambre.equals(this.chambresNonVides().get(this.chambresNonVides().size()-1))) {\n\t\t\t\t\tchambre.setReserve(false);\n\t\t\t\t\tSystem.err.println(\"--------------------------------------------------\\nVous avez bien libérée cette chambre:\\n--------------------------------------------------\\n\");\n\t\t\t\t\tSystem.out.println(chambre.toString());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.err.println(\"----------------------------\\nVous n'êtes pas un admin! |\\n----------------------------\");\n\t\t}\n\t\t\n\t}", "public void supprimerImproductifs(){\n grammaireCleaner.nettoyNonProdGramm();\n setChanged();\n notifyObservers(\"2\");\n }", "private void raceActionPerform() {\n\t\tagePanel.remove(ageInput);\n\t\tagePanel.remove(ageLabel);\n\t\tagePanel.remove(ageRoll);\n\t\tagePanel.remove(intuitive);\n\t\tagePanel.remove(selfTaught);\n\t\tagePanel.remove(trained);\n\t\tagePanel.add(ageRollSelection);\n\t\tagePanel.add(ageInputSelection);\n\t\tagePanel.setPreferredSize(new Dimension(2400, 120));\n\t\theightPanel.remove(heightRoll);\n\t\theightPanel.remove(heightInput);\n\t\theightPanel.remove(heightLabel);\n\t\theightPanel.add(heightRollSelection);\n\t\theightPanel.add(heightInputSelection);\n\t\tweightPanel.remove(weightRoll);\n\t\tweightPanel.remove(weightInput);\n\t\tweightPanel.remove(weightLabel);\n\t\tweightPanel.add(weightRollSelection);\n\t\tweightPanel.add(weightInputSelection);\n\t\tsetRacialAbilityScores(isRolling, isInputting);\n\t\treference.validate();\n\t\treference.repaint();\n\n\t}", "private void release() {\n int index = claimClientNameCombobox.getSelectionModel().getSelectedIndex();\n String lastNameInput = clientName.get(index).getName();\n setSelectedJobID(clientName.get(index).getJobID());\n\n// Regular expression that splits the name into last name and first name by removing the punctuation.\n// Documentation reference: https://docs.oracle.com/javase/8/docs/api/\n String[] lastName = lastNameInput.split(\"[\\\\p{P}{1}]\");\n Double amountPaidBefore = 0.0, amountPaidCurrent = 0.0;\n\n try {\n amountPaidCurrent = Double.parseDouble(amountPaidTextfield.getText());\n\n } catch (NumberFormatException e) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setHeaderText(\"Invalid Input\");\n alert.setContentText(\"Please settle your balance first before releasing your order\");\n alert.showAndWait();\n return;\n }\n\n StringBuilder stringBuilder = new StringBuilder();\n Formatter formatter = new Formatter(stringBuilder);\n\n// use trim method to remove leading whitespace from the split method earlier\n formatter.format(\"SELECT transaction_records.amountPaid FROM transaction_records JOIN customer_records ON transaction_records.customerID = customer_records.customerID WHERE customer_records.lastname='%s' AND customer_records.firstname='%s' AND transaction_records.status='for claiming' AND transaction_records.jobID=%d\", lastName[0].trim(), lastName[1].trim(), getSelectedJobID());\n\n try {\n rs = conn.select(stringBuilder.toString());\n\n while (rs.next()) {\n amountPaidBefore = rs.getDouble(\"amountPaid\");\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n Double totalAmountPaid = amountPaidBefore + amountPaidCurrent;\n\n stringBuilder = new StringBuilder();\n formatter = new Formatter(stringBuilder);\n formatter.format(\"UPDATE transaction_records JOIN customer_records ON transaction_records.customerID=customer_records.customerID SET transaction_records.status='claimed', transaction_records.amountPaid=%f, transaction_records.balance = 0 WHERE customer_records.lastname='%s' AND customer_records.firstname='%s' AND transaction_records.status='for claiming' AND transaction_records.jobID=%d\", totalAmountPaid, lastName[0].trim(), lastName[1].trim(), getSelectedJobID());\n\n\n try {\n conn.update(stringBuilder.toString());\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n homeController.fillObservableList();\n\n orderInformationArea.setText(\"Job successfully released...\");\n orderInformationArea.appendText(\"\\nTransaction saved...\");\n remainingBalance = 0;\n }", "@Override\n public void receiveMessage(AgentID sender, Action action)\n {\n super.receiveMessage(sender, action);\n\n // update the value of Care_Value、Reluctance、Agreement_Value every ten rounds\n if (getTimeLine() instanceof DiscreteTimeline) {\n DiscreteTimeline discreteTimeline = (DiscreteTimeline)getTimeLine();\n int cRound = discreteTimeline.getRound();\n if (cRound % 10 == 0) {\n\n // care_value increase 4% every ten rounds\n Care_Value = Care_Value * (1 + 0.04);\n if (Care_Value > 0.72) {\n Care_Value = 0.72;\n }\n\n // reluctance decrease 4% every ten rounds\n Reluctance = Reluctance * (1 - 0.06);\n if (timeline.getTime() < 7 && Reluctance < 0.9) {\n Reluctance = 0.9;\n }\n\n List<BidDetails> allBids = new ArrayList<>(feasibleBids);\n // find a common set for all opponent\n Set<BidDetails> commonBids = opponentModelInterface.queryCommonBestBidsSet(allBids, Number_of_Bids);\n List<BidDetails> commonBidsList = new ArrayList<>(commonBids);\n // sort the common set\n Collections.sort(commonBidsList);\n // AV = Utility(BidBest) * Reluctance\n Agreement_Value = (commonBidsList.get(commonBidsList.size() - 1).getMyUndiscountedUtil()) * Reluctance;\n if (Agreement_Value > 0.85) {\n Agreement_Value = 0.85;\n }\n\n if (Agreement_Value < Minimum_Offer_Threshold * (3 - Math.pow(2, timeline.getTime()))) {\n Agreement_Value = Minimum_Offer_Threshold * (3 - Math.pow(2, timeline.getTime()));\n }\n }\n }\n\n if (action instanceof Inform) {\n // receive message first time, update the number of opponent\n opponentModelInterface = new OpponentModelManager(getNumberOfParties());\n }else if (action instanceof Offer) {\n // save the last offer\n lastOffer = ((Offer) action).getBid();\n // update opponent model by new bid from opponent\n opponentModelInterface.handleBidFromSender(sender.toString(), lastOffer, getDomain());\n }\n }", "@Inject(\n at = @At(\"HEAD\"),\n method = \"tick\",\n cancellable = true)\n\n private void removeStunnedIfPCEnchant(CallbackInfo ci) {\n if ((Object) this instanceof PlayerEntity) {\n PlayerEntity entity = (PlayerEntity) (Object) this;\n ItemStack mainHand = getMainHandStack();\n\n if (EnchantmentHelper.getLevel(EnchantsRegistry.STUNNING, mainHand) >= 1\n || mainHand.getItem() == ItemRegistry.getItem(\"axe_highland\").asItem()) {\n this.removeStatusEffect(StatusEffects.NAUSEA);\n this.removeStatusEffect(StatusEffects.SLOWNESS);\n }\n }\n }", "public void processRemoveStation() {\n AppYesNoDialogSingleton dialog = AppYesNoDialogSingleton.getSingleton();\n \n // POP UP THE DIALOG\n dialog.show(\"Remove Station\", \"Are you sure you want to remove this station?\");\n \n // DO REMOVE LINE \n dataManager.removeStation(); \n }", "public void removeClockFromStock(Clock removedClock);", "@RequiresLock(\"SeaLock\")\r\n protected void dependentInvalidAction() {\r\n // by default do nothing\r\n }", "public void enleverTousLesObs() {\n\n\t\tobstaclesList.removeAll(obstaclesList);\n\t}", "@Override\n public void llenardeposito(){\n this.setCombustible(getTankfuel());\n }", "public void endRound() {\n if (!myTurn()) {\n return;\n }\n if (this.board.getWinners().size() > 0 && this.playerId == board.getPlayers().get(board.getPlayers().size() - 1).playerId) {\n this.board.setRunning(false);\n }\n // currentPlayerNumber = (currentPlayerNumber + 1) % players.size();\n // current = players.get(currentPlayerNumber);\n this.removableBlockades = new ArrayList<>();\n coins = (float) 0;\n bought = false;\n specialAction.setDraw(0);\n specialAction.setRemove(0);\n specialAction.setSteal(0);\n history = new ArrayList<>();\n //for (int i = tmpDiscardPile.size(); i > 0; i--){\n // discardPile.add(tmpDiscardPile.remove(0));\n //}\n discardPile.addAll(tmpDiscardPile);\n tmpDiscardPile = new ArrayList<Card>();\n draw();\n board.endRound();\n }", "@Override\n\tpublic boolean approveIt() {\n\t\treturn false;\n\t}" ]
[ "0.54095787", "0.5384556", "0.53549767", "0.5335878", "0.53224665", "0.5320045", "0.53017867", "0.52994543", "0.528312", "0.5237709", "0.5223508", "0.51906097", "0.51902926", "0.5186942", "0.5179565", "0.51370144", "0.5126772", "0.5126556", "0.51067144", "0.5104529", "0.51044166", "0.5103772", "0.5101248", "0.51009214", "0.50963724", "0.5093158", "0.5083882", "0.5069745", "0.5065016", "0.5054939", "0.50532806", "0.5047743", "0.5030908", "0.5021324", "0.50176764", "0.50160265", "0.50117546", "0.50097215", "0.49951372", "0.49944878", "0.4989227", "0.49777147", "0.4977411", "0.49755302", "0.49741036", "0.4971092", "0.49646848", "0.49639878", "0.49635053", "0.49632087", "0.49620146", "0.49577898", "0.49576697", "0.49497414", "0.49476114", "0.49454075", "0.49451795", "0.4941725", "0.4940955", "0.49330217", "0.4931857", "0.49286398", "0.492332", "0.49216804", "0.4917615", "0.49149132", "0.49118406", "0.4908581", "0.4902317", "0.48997176", "0.48962697", "0.4893889", "0.48895088", "0.4884942", "0.4883296", "0.4880365", "0.4877", "0.4876417", "0.48747686", "0.48738077", "0.48705956", "0.48687252", "0.48639318", "0.48593566", "0.4857397", "0.4854878", "0.48539692", "0.48537248", "0.4852598", "0.4849255", "0.4847988", "0.48479086", "0.48475555", "0.4847467", "0.48452437", "0.48446038", "0.48405966", "0.48390672", "0.48386222", "0.4835686" ]
0.5885162
0
Only available to the commissioner edit this week's scores, for all managers to see.
public static void editScores(League theLeague, Scanner keyboard) { System.out.println(""); System.out.println("---Edit Scores---"); for (int x = 0; x < theLeague.getNumTeams(); x++) { System.out.println(""); theLeague.getTeam(x).teamManNameToString(); System.out.println("Current score: " + theLeague.getTeam(x).getScore()); System.out.println(""); System.out.println("Enter a score for " + theLeague.getTeam(x).getTeamName() + ": (max 512)"); System.out.println("0 - Return to Team Menu"); int newScore = Input.validInt(0, 512, keyboard); if (newScore == 0) { return; } theLeague.getTeam(x).setScore(newScore); } System.out.println(""); System.out.println("***Scores Updated***"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static private void calculateMissionScore() {\n\n HashMap<String, Boolean> missionStatus = allMissions.missionStatus;\n\n for (String i : missionStatus.keySet()) {\n\n if (missionStatus.get(i) == true) {\n score.addToPoints(250);\n }\n }\n }", "public static void commissionerTools(League theLeague, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Commissioner Tools---\");\r\n\t\tSystem.out.println(\"1 - Edit Scores\");\r\n\t\tSystem.out.println(\"2 - Edit Standings\");\r\n\t\tSystem.out.println(\"3 - Review Accepted Trade\");\r\n\t\tSystem.out.println(\"0 - Return to Team Menu\");\r\n\r\n\t\tswitch (Input.validInt(0, 3, keyboard)) {\r\n\t\tcase 1:\r\n\t\t\teditScores(theLeague, keyboard);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\teditStandings(theLeague, keyboard);\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tif (theLeague.getPendingTrade().isEmpty()) {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(\"--There are no accepted trades pending--\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treviewAcceptedTrade(theLeague, keyboard);\r\n\t\t\tbreak;\r\n\t\tcase 0:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void reviewOfPastYear(ExemptTeamMember exemptTeamMember) {\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic int getJobWattingForModeratorByUser(String userId) throws Exception {\n\t\treturn 0;\n\t}", "public void func_96648_a() {\n/* 63 */ if (this.theScoreObjective.getCriteria().isReadOnly())\n/* */ {\n/* 65 */ throw new IllegalStateException(\"Cannot modify read-only score\");\n/* */ }\n/* */ \n/* */ \n/* 69 */ increseScore(1);\n/* */ }", "public CommissionApplicable() {\n this.setEmcLabel(\"Commission Applicable\");\n }", "public boolean isEditableByUser() {\r\n if ((this.currentStatusChange == null) ||\r\n (this.currentStatusChange.equals(PoStatusCode.PROPOSED)))\r\n return true;\r\n return false;\r\n }", "@Override\n public void updateScore(Module module, Difficulty difficulty, int lastScore) {\n if (lastScore > 7) {\n hardButton.setDisable(false);\n hardLabel.setDisable(false);\n }\n }", "private static String calculateScore(Workspace workspace, EventManager eventManager,\n EventTotalManager eventTotalManager, Event event, MarketType marketType, Period period, Market market)\n throws SessionException, NotAuthorizedException {\n String score = null;\n if (event.getType() == CacheableItemType.GAMEEVENT) {\n List<EventTotal> eventTotals = null;\n if (marketType.getEventTotalsTypeId() == Constants.NULL_ID) {\n // Just add the game score\n GameResult result = eventManager.findResultByEventIdAndPeriod(workspace, event.getId(), period);\n if (result != null && result.getValueA() != null && result.getValueB() != null\n && result.getValueA() != -1 && result.getValueB() != -1) {\n String val = result.getValueA() + SEPARATOR + result.getValueB();\n score = val;\n }\n } else {\n // Add the result entered for this market\n Integer homeScore = -1;\n Integer awayScore = -1;\n eventTotals =\n eventTotalManager.findEventTotalsByType(workspace, event.getId(),\n marketType.getEventTotalsTypeId(), period);\n for (EventTotal eventTotal : eventTotals) {\n // heizerf: the scoreType restriction was removed to allow resulting of any scoreType markets\n if (market.getOpponentId() != Constants.NULL_ID) {\n if (eventTotal.getOpponentId() == market.getOpponentId()) {\n // A market total for an opponent will have the form n-0\n homeScore = eventTotal.getTotal();\n awayScore = 0;\n break;\n }\n } else {\n // I am changing this because up till now homeScore could've been the total from EventTotals\n // and not the Team A total, depending on which order the EventTotals were loaded.\n // I discussed this with Eric and Adam Avery, as far as we were able to determine, this is\n // the right way to implement the scores.\n // If you find any problems, feel free to ask me.\n // baloght - ABP-34215 @ 20/05/2014\n if (eventTotal.getOpponentId() == event.getOpponentA().getId()) {\n homeScore = eventTotal.getTotal();\n } else if (eventTotal.getOpponentId() == event.getOpponentB().getId()) {\n awayScore = eventTotal.getTotal();\n }\n }\n }\n\n // This will probably be the ugliest hack I ever did so far, so:\n // Forgive me father, for I have sinned.\n // My only excuse is that I am replacing a hack at least this ugly, plus, it was not even working.\n // My previous fix a few lines above fixed ABP-34215 problem, but ruined something else, as there is\n // a\n // fourth case of score return. Before my first fix, the first and fourth type was mixed up, after\n // my fix the fourth was ignored. Neither of them is good.\n // So, we have scores where:\n // 1st type: Team A eventotal - Team B eventtotal (W/D/W)\n // 2nd type: Team A eventotal - 0 (Total Corners Opponent A O/U)\n // 3rd type: Team B eventotal - 0 (Total Corners Opponent B O/U)\n // 4th type: Total of eventtotal - 0 (Total 3 Points Baskets O/U)\n // Now, the hack is, if we are at this point, and the homeScore and awayScore are both -1, we have\n // to\n // have the 4th type, I found no better way to identify it. Here comes the hack:\n if (homeScore == -1 && awayScore == -1) {\n for (EventTotal eventTotal : eventTotals) {\n if (eventTotal.getOpponentId() == Constants.NULL_ID) {\n homeScore = eventTotal.getTotal();\n awayScore = 0;\n }\n }\n }\n // I swear if there will be one more bug in this piece of code, I will remove the whole thing, and\n // come up with a proper solution, because the original one was a hack itself.\n // baloght - ABP-35188 @ 01/07/2014\n\n // to indicate that there is a problem here\n if (homeScore == null) {\n homeScore = -1;\n }\n if (awayScore == null) {\n awayScore = -1;\n }\n\n if (homeScore > -1 && (awayScore == -1)) {\n awayScore = 0;\n }\n String val = homeScore + SEPARATOR + awayScore;\n score = val;\n }\n\n }\n return score;\n }", "@Override\n public boolean hasWriteAccess() {\n if (this.employmentDate.isAfter(LocalDate.now().minusMonths(6))) {\n return false;\n } else {\n return true;\n }\n }", "private boolean askForSuperviser(Person p) throws Exception {\n\n\t\treturn p.isResearcher() && (p.getInstitutionalRoleId() > 1);\n\t}", "protected abstract void calcScores();", "@Override\n\tpublic void checkScore() {\n\t\t\n\t}", "@Override\n public void onClick(View view) {\n String[] scores = new String[4];\n scores[0] = hintArray[0].getText().toString();\n scores[1] = hintArray[1].getText().toString();\n scores[2] = hintArray[2].getText().toString();\n scores[3] = hintArray[3].getText().toString();\n // Total scores for validation section\n int totalScore = 0;\n for (String score : scores){\n if (ScoreKeeper.isValidInteger(score)){\n totalScore += Integer.valueOf(score);\n }\n }\n\n // Validation section\n String validation = ScoreKeeper.editEntries(scores);\n if (validation == \"neg\"){\n Toast.makeText(getApplicationContext(),\"Negative scores not allowed\",\n Toast.LENGTH_LONG).show();\n } else if (validation == \"empty\") {\n Toast.makeText(getApplicationContext(), \"Enter all scores to continue\",\n Toast.LENGTH_LONG).show();\n } else if (validation == \"overage\") {\n Toast.makeText(getApplicationContext(), \"One score is larger than expected\",\n Toast.LENGTH_LONG).show();\n } else if (totalScore < Integer.valueOf(ScoreKeeper.getRound()[0])){\n Toast.makeText(getApplicationContext(), \"Total score is smaller than allowed\",\n Toast.LENGTH_LONG).show();\n } else if (totalScore > Integer.valueOf(ScoreKeeper.getRound()[0])){\n Toast.makeText(getApplicationContext(), \"Total score is larger than allowed\",\n Toast.LENGTH_LONG).show();\n } else {\n ScoreKeeper.putData(\"Scores\",scores);\n ScoreKeeper.scoresTaken();\n ScoreKeeper.incrementRound();\n ScoreKeeper.rotatePlayers();\n finish();\n }\n }", "private void reviewDeptPolicies() {\n if(metWithHr && metDeptStaff) {\n reviewedDeptPolicies = true;\n } else {\n System.out.println(\"Sorry, you cannot review \"\n + \" department policies until you have first met with HR \"\n + \"and then with department staff.\");\n }\n }", "public Boolean isPSMSetScore() {\n return false;\n }", "public abstract void distributeTeamsPointsRedoubleGame(Announce normalAnnounce);", "@Override\n\tpublic List<Score> checkPaper(Score s) {\n\t\treturn userDao.checkPaper(s);\n\t}", "public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }", "public void topScore() {\n\t\tif (playern.getExp() >= 100) {\n\t\t\tSystem.out.println(\"You become a Warrior and win the game\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void checkAchievements(PD pd, Account doc) {\n for(Rank r : ranks.special.values()) {\n pd.removeRank(r);\n pd.setSpecialRank(null);\n }\n\n new Thread(()->{\n for(Rank rank : ranks.special.values()){\n if(rank.condition(doc,pd)){\n if (pd.getSpacialRank() == null || pd.getSpacialRank().value < rank.value) {\n pd.setSpecialRank(rank);\n }\n }\n }\n synchronized (pd){\n pd.updateName();\n }\n }).start();\n }", "public boolean checkScore() {\r\n return !(this.scoreTable.getRank(this.score.getValue()) > this.scoreTable.size());\r\n }", "private boolean modifiable() {\n // Only allow un-answered tests/surveys to be modified\n return this.completed.size() == 0;\n }", "protected int getTotalEnrolledMorning() {\n return getMorningRoster().size();\n }", "public boolean approveCheckIn(SoftwareEngineer e) {\n for(SoftwareEngineer se : this.directReports) {\n if(se.getEmployeeID() == e.getEmployeeID() && e.codeAccess) {\n // found!\n return true;\n }\n }\n return false;\n }", "public abstract void onContribution(int amount, Player player);", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString firstName = (String) employeeTable.getValueAt(employeeTable.getSelectedRow(), 0);\n\t\t\t\tLong employeeID = (Long) employeeTable.getValueAt(employeeTable.getSelectedRow(), 6);\n\t\t\t\tif ( !firstName.equals(\"Superadmin\") ) {\n\t\t\t\t\temployeeUpdateDialog.setEmployeeID(employeeID);\n\t\t\t\t\temployeeUpdateDialog.setVisible(true);\n\t\t\t\t} else {\n\t\t\t\t\tMainFrame.popupWindow(\"Superadmin darf nicht geändert werden\", 400, 100, Color.RED);\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic boolean checkEnrolment(Users userid, Course courseid) {\n\t\treturn false;\n\t}", "public void bonusForTeamA(View v) {\n\n if (questionNumber <= 19) {\n\n scoreTeamA = scoreTeamA + 5;\n displayForTeamA(scoreTeamA);\n }\n\n\n if (questionNumber == 20) {\n endOfRound = \"true\";\n }\n }", "public void bonusForTeamB(View v) {\n\n if (questionNumber <= 19) {\n\n scoreTeamB = scoreTeamB + 5;\n displayForTeamB(scoreTeamB);\n }\n\n\n }", "public void onUpdate()\r\n {\n \tString unitID = this.getUnitID();\r\n \t// hashmap for all assignments from tuple-old/new by seqNo\r\n \tHashMap<Integer, UITeamUsers.Assignments.Assignment> allAssignments = new HashMap<Integer, UITeamUsers.Assignments.Assignment>();\r\n \t// assigned setting for each assignment by seqNo\r\n \tHashMap<Integer, Boolean> assigned = new HashMap<Integer, Boolean>();\r\n \t// map of users plus list of user related assignments\r\n \tHashMap<String, ArrayList<Integer>> userAssignment = new HashMap<String, ArrayList<Integer>>();\r\n \t// collect data from tuple-old\r\n \tUITeamUsers origTeamUsers = (UITeamUsers)this.getOriginalObject();\r\n \tBusObjectIterator<UITeamUsers.Assignments.Assignment> origAssignments = origTeamUsers.getAssignmentsObject().getAssignmentObjects();\r\n \twhile (origAssignments.hasMoreElements())\r\n \t{\r\n \t\tUITeamUsers.Assignments.Assignment origAssignment = (UITeamUsers.Assignments.Assignment)origAssignments.nextElement();\r\n \t\tint seqNo = origAssignment.getSeqNo();\r\n \t\tString orgUserDN = origAssignment.getOrgUserDN();\r\n \t\tallAssignments.put(seqNo, origAssignment);\r\n \t\t// initially, put assigned to false - from the tuple-new, we will determine if it should be put to true\r\n \t\tassigned.put(seqNo, false);\r\n \t\t// add assignment to user list\r\n \t\tArrayList<Integer> userAssignments = null;\r\n \t\tif (userAssignment.containsKey(orgUserDN))\r\n \t\t{\r\n \t\t\tuserAssignments = userAssignment.get(orgUserDN);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tuserAssignments = new ArrayList<Integer>();\r\n \t\t\tuserAssignment.put(orgUserDN, userAssignments);\r\n \t\t}\r\n \t\tuserAssignments.add(seqNo);\r\n \t}\r\n \t// collect data from tuple-new\r\n \tBusObjectIterator<UITeamUsers.Assignments.Assignment> newAssignments = this.getAssignmentsObject().getAssignmentObjects();\r\n \twhile (newAssignments.hasMoreElements())\r\n \t{ \t\r\n \t\tUITeamUsers.Assignments.Assignment newAssignment = (UITeamUsers.Assignments.Assignment)newAssignments.nextElement();\r\n \t\tint seqNo = newAssignment.getSeqNo();\r\n \t\tString orgUserDN = newAssignment.getOrgUserDN();\r\n \t\tif (!allAssignments.containsKey(seqNo))\r\n \t\t{\r\n \t\tallAssignments.put(seqNo, newAssignment);\r\n \t\t// add assignment to user list\r\n \t\tArrayList<Integer> userAssignments = null;\r\n \t\tif (userAssignment.containsKey(orgUserDN))\r\n \t\t{\r\n \t\t\tuserAssignments = userAssignment.get(orgUserDN);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tuserAssignments = new ArrayList<Integer>();\r\n \t\t\tuserAssignment.put(orgUserDN, userAssignments);\r\n \t\t}\r\n \t\tuserAssignments.add(seqNo);\r\n \t\t}\r\n \t\t// determine assigned\r\n \t\tassigned.put(seqNo, newAssignment.getAssigned());\r\n \t}\r\n \t// as we have all the data now, and also by user, we can see by user if\r\n \t// any teams to be assigned or unassigned\r\n \tfor (String orgUserDN : userAssignment.keySet())\r\n \t{\r\n \t\tTeams assignTeams = new Teams();\r\n \t\tTeams unassignTeams = new Teams();\r\n \t\tArrayList<Integer> userAssignments = userAssignment.get(orgUserDN);\r\n \t\tfor (int seqNo : userAssignments)\r\n \t\t{\r\n\t \t\tUITeamUsers.Assignments.Assignment assignment = allAssignments.get(seqNo);\r\n\t \t\tString assignmentID = assignment.getAssignmentID();\r\n\t \t\tif (Util.isSet(assignmentID) && !assigned.get(seqNo))\r\n\t \t\t{\r\n\t \t\t\t// existing assignment but not assigned anymore, so for removal\r\n\t \t\t\tTeam team = new Team();\r\n\t \t\t\tteam.setUnitID(unitID);\r\n\t \t\t\tRole role = new Role();\r\n\t \t\t\trole.setDN(assignment.getRoleDN());\r\n\t \t\t\tteam.setRoleObject(role);\r\n\t \t\t\tunassignTeams.addTeamObject(team);\r\n\t \t\t}\r\n\t \t\telse if (!Util.isSet(assignmentID) && assigned.get(seqNo))\r\n\t \t\t{\r\n\t \t\t\t// not existing yet; newly assigned\r\n\t \t\t\tTeam team = new Team();\r\n\t \t\t\tteam.setUnitID(unitID);\r\n\t \t\t\tRole role = new Role();\r\n\t \t\t\trole.setDN(assignment.getRoleDN());\r\n\t \t\t\tteam.setRoleObject(role);\r\n\t \t\t\tassignTeams.addTeamObject(team);\r\n\t \t\t}\r\n \t\t}\r\n \t\t// delegate\r\n \t\tTeams.maintainTeams(orgUserDN, assignTeams, unassignTeams);\r\n \t}\r\n // read back \r\n \t\tUITeamUsers actualTeamUsers = UITeamUsers.getUITeamUsers(unitID);\r\n if (actualTeamUsers != null)\r\n {\r\n \tUITeamUsers.Assignments actualAssignments = actualTeamUsers.getAssignmentsObject();\r\n \tUITeamUsers.Assignments uiAssignments = new UITeamUsers.Assignments(new BusObjectConfig(actualAssignments, BusObjectConfig.TRANSIENT_OBJECT));\r\n \tthis.setAssignmentsObject(uiAssignments);\r\n } \r\n }", "@SuppressWarnings(\"unused\") // Used by scheduler\n @Secured({ \"GROUP_AGENT\" })\n void recalculateBatchInfo();", "public boolean approveCheckIn(SoftwareEngineer e){\n int i;\n\n for(i=0;i<this.curHeadCount;i++){\n if(employee[i].equals(e)) break;\n }\n\n return (i<this.curHeadCount && e.access);\n }", "@Override\n public double earnings() {\n return getCommissionRate() * getGrossSales();\n }", "private void meetDepartmentStaff() {\n if(metWithHr) {\n metDeptStaff = true;\n } else {\n System.out.println(\"Sorry, you cannot meet with \"\n + \"department staff until you have met with HR.\");\n }\n }", "public void effacerScore() {\r\n\t\tthis.meilleursScores = new MeilleursScores();\r\n\t\tthis.notifyObservateur();\r\n\t}", "public static void checkForScoreReset() {\n\t\tif (mActivityScoreDate != null) {\n\t\t\tTime now = new Time();\n\t\t\tnow.setToNow();\n\n\t\t\t// this is the easiest way to check for a day being different, there\n\t\t\t// is a downfall\n\t\t\t// in that when a new year starts, the previous week's data will be\n\t\t\t// cleared.\n\t\t\tif (now.yearDay != mActivityScoreDate.yearDay) {\n\t\t\t\tshiftScores(now.yearDay - mActivityScoreDate.yearDay);\n\t\t\t}\n\t\t} else {\n\t\t\tmActivityScoreDate = new Time();\n\t\t}\n\t\tmActivityScoreDate.setToNow();\n\t\tsaveScore();\n\n\t}", "public void calculateCommission(){\r\n commission = (sales) * 0.15;\r\n //A sales Person makes 15% commission on sales\r\n }", "private void addPointsToPlayer(Player player, int marbleNum) {\n Long score = player.getScore();\n score += marbleNum;\n\n // add the score for the marble 7 places before\n Long value = (Long) placement.get(getMarbel7());\n score += value;\n\n player.setScore(score);\n }", "public void setScoreboard(final Player player) {\n ConfigurationSection scoreboardSettings = ConfigurationManager.getInstance().getMainConfiguration().getConfigurationSection(Strings.CONFIG_SCOREBOARD_SECTION);\n\n ScoreboardManager scoreboardManager = CustomGUIShop.getInstance().getServer().getScoreboardManager();\n final Scoreboard scoreboard = scoreboardManager.getNewScoreboard();\n addPlayerToGroup(scoreboard, player);\n final Objective objective = scoreboard.registerNewObjective(\"sb\", \"dummy\");\n objective.setDisplaySlot(DisplaySlot.SIDEBAR);\n\n final Objective objective2 = scoreboard.registerNewObjective(\"sb2\", \"dummy\");\n objective2.setDisplaySlot(DisplaySlot.PLAYER_LIST);\n\n // SERVER\n objective.getScore(ChatColor.translateAlternateColorCodes('&', scoreboardSettings.getString(Strings.CONFIG_SCOREBOARD_REPUTATION_TITLE))).setScore(15);\n final Team reputation = scoreboard.registerNewTeam(\"reputation\");\n reputation.addPlayer(Bukkit.getOfflinePlayer(\" \"));\n objective.getScore(\" \").setScore(14);\n objective.getScore(\" \").setScore(13);\n\n // COINS\n objective.getScore(ChatColor.translateAlternateColorCodes('&', scoreboardSettings.getString(Strings.CONFIG_SCOREBOARD_LEVEL_TITLE))).setScore(12);\n final Team level = scoreboard.registerNewTeam(\"level\");\n level.addPlayer(Bukkit.getOfflinePlayer(\" \"));\n objective.getScore(\" \").setScore(11);\n objective.getScore(\" \").setScore(10);\n\n // PIXELITES\n objective.getScore(ChatColor.translateAlternateColorCodes('&', scoreboardSettings.getString(Strings.CONFIG_SCOREBOARD_NEXTLEVEL_TITLE))).setScore(9);\n final Team nextLevel = scoreboard.registerNewTeam(\"nextLevel\");\n nextLevel.addPlayer(Bukkit.getOfflinePlayer(\" \"));\n objective.getScore(\" \").setScore(8);\n objective.getScore(\" \").setScore(7);\n\n // RANK\n objective.getScore(ChatColor.translateAlternateColorCodes('&', scoreboardSettings.getString(Strings.CONFIG_SCOREBOARD_BALANCE_TITLE))).setScore(6);\n final Team balance = scoreboard.registerNewTeam(\"balance\");\n balance.addPlayer(Bukkit.getOfflinePlayer(\" \"));\n objective.getScore(\" \").setScore(5);\n objective.getScore(\" \").setScore(4);\n\n final String title = ChatColor.translateAlternateColorCodes('&', scoreboardSettings.getString(Strings.CONFIG_SCOREBOARD_DISPLAY_NAME));\n\n new BukkitRunnable() {\n public void run() {\n try {\n objective.setDisplayName(title);\n reputation.setPrefix(String.valueOf(ReputationManager.getReputation(player)));\n level.setPrefix(String.valueOf(ReputationManager.getReputationLevel(player)));\n nextLevel.setPrefix(String.valueOf(ReputationManager.getReputation(player)) + \"/\" + String.valueOf(ReputationManager.getReputation(player) + ReputationManager.getNextLevel(player)));\n balance.setPrefix(String.valueOf(CustomGUIShop.getInstance().getEconomy().getBalance(player)));\n objective2.getScore(player).setScore(ReputationManager.getReputationLevel(player));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }.runTaskTimer(CustomGUIShop.getInstance(), 0, 5);\n player.setScoreboard(scoreboard);\n }", "int getRequiredDevelopers();", "private void checkMyScore() {\n\n int[] scores = ar.checkMyScore();\n System.out.println(\" My score: \");\n int level = 1;\n for (int i : scores) {\n System.out.println(\" level \" + level + \" \" + i);\n if (i > 0)\n solved[level - 1] = 1;\n level++;\n }\n }", "void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }", "@Override\n\tpublic void ModifyEmployee() {\n\t\t\n\t}", "@Test\n\tvoid grantScholarshipRejected() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(168);\n\t\tassertEquals(null,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "public void CheckScore(){\n \tif(killed > highScore) {\n \t\tname = JOptionPane.showInputDialog(\"You set a HighScore!\\n What is your Name?\");\n \t\thighScore = killed;\n \t}\n }", "private boolean checkHoursRestrictions(List<Long> daysworked) {\n boolean isOk = true;\n if (daysworked.size() >= 225) {\n //this worker has\n Toast.makeText(getApplicationContext(), mUserName + \" has more than 225 work shifts\", Toast.LENGTH_SHORT).show();\n Toast.makeText(getApplicationContext(), mUserName + \" has more than 225 work shifts\", Toast.LENGTH_SHORT).show();\n isOk = false;\n }\n Collections.sort(daysworked);\n int shiftsInTheSameWeek = 0;\n int pivotWeek = -1;\n int weekNumber = -1;\n for (Long day : daysworked) {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(day);\n weekNumber = cal.get(Calendar.WEEK_OF_YEAR);\n shiftsInTheSameWeek++;\n if (pivotWeek == weekNumber) {\n if (shiftsInTheSameWeek > 5) {\n Toast.makeText(getApplicationContext(), mUserName + \" has more than 40 hours in week\" + weekNumber, Toast.LENGTH_SHORT).show();\n isOk = false;\n break;//\n }\n pivotWeek = weekNumber;\n } else {\n shiftsInTheSameWeek = 1;\n pivotWeek = weekNumber;\n }\n }\n return isOk;\n }", "public void setCommission(int commission) {\n\tthis.commission = commission;\n}", "private void assignIntoGrade() {\n }", "private void CustomerPaidCheck() {\n\t\tfloat CompanyDemand = Float.parseFloat(label_7.getText());\n\t\tif (CompanyDemand > 0) {\n\n\t\t\ttry {\n\t\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t\t.prepareStatement(\"update customer_list set `Check` = 0 where Name = '\"\n\t\t\t\t\t\t\t\t+ name + \"'And Last_Name = '\" + lastName + \"' \");\n\t\t\t\tstatement.execute();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t\t.prepareStatement(\"update customer_list set `Check` = 1 where Name = '\"\n\t\t\t\t\t\t\t\t+ name + \"'And Last_Name = '\" + lastName + \"' \");\n\t\t\t\tstatement.execute();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic boolean addExamManager(IUser user) {\n\t\treturn false;\r\n\t}", "@PermitAll\n public void cmdShowSchedule(User teller) {\n command.sendQuietly(\"qtell {0} {1}\", teller, \"Current Schedule:\\\\n\");\n Collection<Game> games = tournamentService.findAllGames();\n for (Game game : games) {\n int boardNum = game.boardNumber;\n String whiteStatus = (game.whitePlayer.isOnline()) ? \"\" : \" ?\";\n String whitePlayer = game.whitePlayer.getHandle();\n String blackStatus = (game.blackPlayer.isOnline()) ? \"\" : \" ?\";\n String blackPlayer = game.blackPlayer.getHandle();\n String gameStatus = game.getStatusString();\n String msg = String.format(\"Board %2d: %18s%2s %18s%2s %s\", boardNum, whitePlayer, whiteStatus, blackPlayer, blackStatus, gameStatus);\n command.sendQuietly(\"qtell {0} {1}\", teller, msg);\n }\n command.sendQuietly(\"qtell {0}\", teller);\n }", "static void economy() throws GameActionException {\n\n\t\tcheckLumberjack();\n\n\t\tif (rc.canBuildRobot(RobotType.SCOUT, robotDirection)\n\t\t\t\t&& rc.readBroadcast(Channels.COUNT_SCOUT) < Constants.MAX_COUNT_SCOUT) {\n\t\t\trc.buildRobot(RobotType.SCOUT, robotDirection);\n\t\t\tCommunication.countMe(RobotType.SCOUT);\n\t\t\treturn;\n\t\t} else if (rc.canBuildRobot(RobotType.SOLDIER, robotDirection)\n\t\t\t\t&& rc.readBroadcast(Channels.COUNT_SOLDIER) < rc.readBroadcast(Channels.COUNT_GARDENER) ) {\n\t\t\trc.buildRobot(RobotType.SOLDIER, robotDirection);\n\t\t\tCommunication.countMe(RobotType.SOLDIER);\n\t\t\treturn;\n\t\t}\n\n\t}", "private void checkin() {\r\n\t\tif (admittedinterns < 20) {\r\n\t\t\tDoctorManage();\r\n\t\t\taddinterns(1);\r\n\t\t\tScreentocharge();\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Por el dia no se admiten mas pacientes\");\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean isApproved() {\n\t\treturn _scienceApp.isApproved();\n\t}", "public void aSafety(View view) {\n scoreTeamA = scoreTeamA + 2;\n displayForTeamA(scoreTeamA);\n }", "protected abstract boolean gradeable();", "private void meetWithHrForBenefitAndSalryInfo() {\n metWithHr = true;\n }", "protected abstract boolean canGenerateScore();", "private void setPlayerScore(Player player, int newScore) {\n\t\tplayer.score = Math.max(newScore, 0);\n\t\tfor (ScoreMarker scoreMarker : playerScoreMarkers) {\n\t\t\tif (scoreMarker.getOwner() == player) {\n\t\t\t\tscoreMarker.value = String.valueOf(player.score);\n\t\t\t}\n\t\t}\n\t}", "public void addScore(double _score, User _user, int _app, double _weight, String date_n_time)\r\n\t{\r\n\t\tUserProgressEstimator upe = user_knowledge_levels.findById(\r\n\t\t\t_user.getId() );\r\n\t\tif(upe==null) // add new UserProgressEstimator\r\n\t\t{\r\n\t\t\tint estimator_type = 0;\r\n\t\t\tswitch (domain.getId())\r\n\t\t\t{\r\n\t\t\t\t// concepts\r\n\t\t\t\tcase 1:\r\n\t\t\t\tcase 8:\r\n\t\t\t\tcase 9:\r\n\t\t\t\tcase 11:\r\n\t\t\t\tcase 12:\r\n\t\t\t\tcase 15:\r\n\t\t\t\tcase 16:\r\n\t\t\t\t\testimator_type = iProgressEstimator.ESTIMATOR_ASSYMPTOTIC;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase 0:\r\n\t\t\t\tbreak;\r\n\t\t\t\t// topics\r\n\t\t\t\tcase 2: \r\n\t\t\t\tcase 6: \r\n\t\t\t\tcase 7: \r\n\t\t\t\tcase 10: \r\n\t\t\t\t\testimator_type = iProgressEstimator.ESTIMATOR_MEAN;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//t \r\n\t\t\t//c \r\n\t\t\t\r\n\t\t\t\r\n\t\t\tupe = new UserProgressEstimator(_user.getId(),\r\n\t\t\t\t_user.getTitle(), _user, 0, estimator_type);\r\n\t\t\tuser_knowledge_levels.add(upe);\r\n\t\t}\r\n\t\t\r\n\t\tint level_idx = ResourceMap.mapToBloomLevelIndex(_app, _score);\r\n//\t\tif((level_idx==0) && _score<0)\r\n//\t\t\t_score = Math.abs(_score);\r\n//if(this.getId()==14)\t\t\t\r\n//{\r\n//System.out.println(\"### [CBUM] Concept.addScore C.Id=\" + this.getId() +\" _score=\" + _score + \" _weight= \" + _weight + \" outcome_w_sum=\" + outcome_w_sum); /// DEBUG\r\n//}\r\n\r\n//if(this.getId()==190)\r\n//{\r\n//System.out.println(\"### [CBUM] Concept.addScore User=\"+_user.getTitle()+\" score=\"+_score + \" weight=\" + _weight); /// DEBUG\r\n//System.out.println(\"### [CBUM] Concept.addScore \\tcog_level_name=\" + iProgressEstimator.BLOOM_NAMES[level_idx] ); /// DEBUG\r\n//System.out.println(\"### [CBUM] Concept.addScore \\tcog_level_OLD=\" + upe.getKnowledgeLevels()[level_idx].getProgress() ); /// DEBUG\r\n//}\r\n//System.out.println(this.getTitle() + \" _app = \" + _app + \" level_idx = \" + level_idx);\r\n\t\tif(level_idx != -1)\r\n\t\t\tupe.getKnowledgeLevels()[level_idx].addProgress(_score, _weight,\r\n\t\t\t\toutcome_w_sum, date_n_time);\r\n//if(this.getId()==190)\r\n//{\r\n//System.out.println(\"### [CBUM] Concept.addScore \\tcog_level_NEW=\" + upe.getKnowledgeLevels()[level_idx].getProgress() ); /// DEBUG\r\n//System.out.println(\"### [CBUM] Concept.addScore \\t domain=\" + this.getDomain().getId() + \" \" + this.getDomain().getTitle()); /// DEBUG\r\n//}\t\t\t\r\n\t\t\r\n\t}", "public void updateDisabledButtons() {\n\t\t//at least 3 credits should be there for perform add max action\n\t\tif (obj.getCredit() < 3)\n\t\t\taddMax.setEnabled(false);\n\t\t//at least a credit should be there for perform add max action\n\t\tif (obj.getCredit() == 0)\n\t\t\taddOne.setEnabled(false);\n\t\tif (obj.getCredit() >= 3)\n\t\t\taddMax.setEnabled(true);\n\t\tif (obj.getCredit() > 0)\n\t\t\taddOne.setEnabled(true);\n\t}", "public boolean assignManuscript(Manuscript theManuscript){\r\n\t\tboolean wasAssigned = true;\r\n\t\t\r\n\t\t//Condition 1: check if Reviewer is a coauthor on this manuscript \r\n\t\t//Condition 2: check if Reviewer is over review limit\r\n\t\t\r\n\t\t//separate these tests and throw exceptions\r\n\t\t//also need to add a check for if this reviewer is already assigned to this manuscript.\r\n\t\tif ((isReviewerAnAuthor(theManuscript) != true) || (isOverReviewLimit(theManuscript.getConferenceID()) == true)) {\r\n\t\t\twasAssigned = false;\t\t\t\r\n\t\t} else {\r\n\t\t\tif(isReviewerAssignedToConference(theManuscript.getConferenceID()) == false) {\r\n\t\t\t\tHashSet<UUID> currentManuList = this.myConferencesAndAssignedManuscriptsList.get(theManuscript.getConferenceID());\r\n\t\t\t\t// TODO: check if manuscript already exists within list\r\n\t\t\t\tcurrentManuList.add(theManuscript.getMyID());\r\n\t\t\t\t// save manuscript to DB\r\n\t\t\t\tnew ManuscriptDatabase().saveManuscriptToDatabase(theManuscript);\r\n\t\t\t\t// add manuscript to associated conference of manuscript and save to DB, save account to DB as well\r\n\t\t\t\tthis.myConferencesAndAssignedManuscriptsList.put(theManuscript.getConferenceID(), currentManuList);\r\n\t\t\t\tAccount updatedAcct = new AccountDatabase().getAccountByReviewer(this);\r\n\t\t\t\tupdatedAcct.setReviewer(this);\r\n\t\t\t\twasAssigned = true;\r\n\r\n\t\t\t} else {\r\n\t\t\t\tHashSet<UUID> newManuList = new HashSet<UUID>();\r\n\t\t\t\tnewManuList.add(theManuscript.getMyID());\r\n\t\t\t\t// save manuscript to DB\r\n\t\t\t\tnew ManuscriptDatabase().saveManuscriptToDatabase(theManuscript);\r\n\t\t\t\t// add manuscript to associated conference of manuscript and save to DB, save account to DB as well\r\n\t\t\t\tthis.myConferencesAndAssignedManuscriptsList.put(theManuscript.getConferenceID(), newManuList);\r\n\t\t\t\tAccount updatedAcct = new AccountDatabase().getAccountByReviewer(this);\r\n\t\t\t\tupdatedAcct.setReviewer(this);\r\n\t\t\t\twasAssigned = true;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn wasAssigned;\r\n\t}", "@Override\n public Boolean isGradeManger(UserDTO user) {\n return user.getRoles().contains(RoleTypeEnum.GRADE);\n }", "void addPersonalScoreButtonListener() {\n Button leadButton = findViewById(R.id.personalLeader);\n leadButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n switchToActivity(PersonalScoreBoardActivity.class);\n }\n });\n }", "@Test\n\tvoid grantScholarshipApproved() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(166);\n\t\tassertEquals(scholarship,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "@Override\n public JSONObject viewSalesManagerTaskByAdmin() {\n\n return in_salesmanagerdao.viewSalesManagerTaskAdmin();\n }", "private void scoreboard() {\n Intent intent = new Intent(this, AlienPainterScoreboardActivity.class);\n intent.putExtra(SCOREBOARD_STATUS, presenter.getIsVictorious());\n intent.putExtra(POINTS, presenter.getPoints());\n intent.putExtra(NUM_MOVES, presenter.getNumMoves());\n intent.putExtra(TIME_LEFT, presenter.getTimeLeft());\n intent.putExtra(LANGUAGE, isEnglish);\n intent.putExtra(PASS_USER, currUser);\n startActivity(intent);\n finish();\n }", "public void payAllEmployeers() {\n\t\t\n\t\tSystem.out.println(\"PAYING ALL THE EMPLOYEES:\\n\");\n\t\t\n\t\tfor(AbsStaffMember staffMember: repository.getAllMembers())\n\t\t{\n\t\t\tstaffMember.pay();\n\t\t\tSystem.out.println(\"\\t- \" + staffMember.getName() + \" has been paid a total of \" + staffMember.getTotalPaid());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n\");\n\t}", "public void determineWeeklyPay(){\r\n weeklyPay = commission*sales;\r\n }", "public void setExamGrade()\n {\n examGrade = gradeCalculator();\n }", "private void notEligibleForRealMin() {\n eligibleForRealMin = false;\n }", "public void action(Player myPlayer)\n {\n if (getNbUtilisation() == 0) {\n System.out.println(\"Not possible\");\n } else {\n int nHealthy = getPointsHealthy();\n myPlayer.addLifePoints(nHealthy);\n\n }\n }", "private void checkPoints() {\n if (mPointsManager.getScore() < 20 && !SharedDataManager.isHuntReady(this)) {\n /* Before the 30 points 'reward', player must have no locked target in history */\n if (SharedDataManager.isLockedTargetInHistory(MainActivity.this)) {\n return;\n }\n mPointsManager.setScore(30);\n updateInfo();\n try {\n if (!requestingPoints) {\n requestingPoints = true;\n /* Update the value in the server database if possible */\n mPointsManager.updateInDatabase(MainActivity.this, new ResponseTask.OnResponseTaskCompleted() {\n @Override\n public void onResponseTaskCompleted(Request request, Response response, OHException ohex, Object data) {\n /* It's ok if the request was not successful, the update will be done later */\n requestingPoints = false;\n }\n });\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "private void refreshGoalData () {\n DateTime now = DateTime.now();\n if((now.getWeekOfWeekyear() > userGoals.getWeekOfYear()) || now.getWeekOfWeekyear() == 0 ) {\n userGoals.setWeekOfYear(now.getWeekOfWeekyear());\n userGoals.setRunsPerWeekActual(0);\n userGoals.setMilesPerWeekActual(0.0);\n }\n\n //Calculates weekly mileage and runs per week\n double mileage = 0.0;\n int numOfRuns = 0;\n if(runMap != null && !(runMap.isEmpty())) {\n //Get current year and current week of the year\n int year = now.getYear();\n int currWeek = now.getWeekOfWeekyear();\n Calendar c = Calendar.getInstance();\n c.clear();\n //Set calendar to beginning of week\n c.set(Calendar.YEAR, year);\n c.set(Calendar.WEEK_OF_YEAR, currWeek);\n Date beginningOfWeek = c.getTime();\n\n SimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\n for (String key : runMap.keySet()) {\n Run run = runMap.get(key);\n //Date stored as MM/dd/yyyy\n try {\n Date dateOfRun = formatter.parse(run.getDate());\n if (dateOfRun.compareTo(beginningOfWeek) >= 0) {\n mileage += run.getMileage();\n numOfRuns++;\n }\n }catch (ParseException p) {\n //idfk\n }\n\n }\n\n if(userShoes != null && !userShoes.isEmpty()) {\n //While we're here, we're going to update the mileage for each shoe\n for (String shoeKey : userShoes.keySet()) {\n Shoe currShoe = userShoes.get(shoeKey);\n currShoe.setMileage(0.0);\n for (String runKey : runMap.keySet()) {\n if (currShoe.getName().equals(runMap.get(runKey).getShoe())) {\n currShoe.addMileage(runMap.get(runKey).getMileage());\n }\n }\n }\n }\n\n }\n userGoals.setRunsPerWeekActual(numOfRuns);\n userGoals.setMilesPerWeekActual(mileage);\n\n\n goalRef.setValue(userGoals);\n shoeRef.setValue(userShoes);\n\n check = 1;\n }", "public boolean isSaveScore(){\n\t\treturn manager.isFailed();\n\t}", "protected void staffIsLegend(){\r\n System.out.println(\"you must show some respect to staff \");\r\n }", "public void setAllScore(String cCode, int attScore, int quiScore, int proScore,int miScore, int fiScore) {\n\t\t//CODE HERE\n\t\tfor (RegCourse course:registeredCourses){\n\t\t\t//System.out.println(course.getCourseCode().equals(cCode));\n\t\t\tif(course.getCourseCode().equals(cCode)){\n\t\t\t\t\n\t\t\t\t/*coure.setAllScore((attScore/coure.getFull_score_attendance())*coure.getAttendancePercent()/100,\n\t\t\t\t\t\t\t\t (quiScore/coure.getFull_score_quiz())*coure.getQuizPercent()/100,\n\t\t\t\t\t\t\t\t (proScore/coure.getFull_score_projects())*coure.getProjPercent()/100,\n\t\t\t\t\t\t\t\t (miScore/coure.getFull_score_midScore())*coure.getFull_score_midScore()/100,\n\t\t\t\t\t\t\t\t (fiScore/coure.getFull_score_finalScore())*coure.getFull_score_finalScore()/100);*/\n\t\t\t\t\n\t\t\t\tcourse.setAllScore(attScore, quiScore, proScore, miScore, fiScore);\n\t\t\t\tcourse.setAccumScore(this.findAccum(course));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void handleEvent(Player affectedPlayer, Player[] players, Board board) {\n // Current fixed implementation for salary 200, can change for a constant read from map\n if (targetSpace.getIndex() < affectedPlayer.getCurrentSpace().getIndex() && canCollectSalary) {\n affectedPlayer.setMoney(affectedPlayer.getMoney() + 200 + affectedPlayer.getToken().getSalaryChange());\n }\n affectedPlayer.setJailed(true);\n affectedPlayer.setCurrentSpace(targetSpace);\n }", "public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}", "public void modifyScore(int modAmount)\r\n\t{\r\n\t\tscore += modAmount;\r\n\t}", "private boolean isCurrentDataWasChanedByAnotherUser(final Monthly_report_revision monthlyReport) {\n Monthly_report_revision currentMonthlyReport = this.monthly_reportRepository.findAndRefresh(monthlyReport);\n return !StringUtils.equalsIgnoreCase(monthlyReport.getShounin_joutai(),\n currentMonthlyReport.getShounin_joutai());\n }", "public boolean checkBonus() {\r\n\t\tif (bonus) {\r\n\t\t\tbonus = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n protected String isSpecificMissionValid() {\n if (!Ants.getWorld().getEnemyHills().contains(hill))\n return \"Enemy hill \" + hill + \" is no longer there\";\n return partialMission.isValid();\n }", "public void scheduleGamesInLeagues(String leagueName) {\n // Click this button after you have all the teams in league, Automatic scheduling\n // League league = get from DB by leagueName\n // league.scheduledGames();\n }", "@Override\n public ArrayList<QuestionBean> ObtainUsersExam(int course_id) {\n return null;\n }", "private boolean checkBudgetAvailability(Company company, double bonusForDevelopers) {\n\n double requiredBudget = 0;\n\n for (Employee employee : company.getEmployees()) {\n\n double employeeSalary = 0;\n\n if (employee instanceof Developer) {\n employeeSalary = ((Developer) employee).getSalary(bonusForDevelopers);\n } else {\n employeeSalary = employee.getSalary();\n }\n requiredBudget += employeeSalary;\n }\n\n return requiredBudget >= company.getBudget();\n }", "public void setModifiyUserId(Integer modifiyUserId) {\n this.modifiyUserId = modifiyUserId;\n }", "public List<Reimbursements> viewMyEmployeesReqs(int id, List<Reimbursements> resolved){\r\n\t\tEmployee e = getEmployeebyId(id);// gets manager\r\n\t\tSystem.out.println(\"Manager in charge of set staff members: \"+e);\r\n\t\tList<Employee> henchmen = myHenchmen(e.getId());// print all peeps that report to current manager\r\n\t\tfor(Employee h: henchmen) {\r\n\t\t\t//traverses through each henchmen\r\n\t\t\tReimbursements r = rs.getReimByEID(h.getId());//gets their reimbursements\r\n\t\t\tresolved.add(r);// adds all their reimbursemments\r\n\t\t\tresolved = rs.getReimbsbyStatus(\"approved\");//shows only reimbursements that are approved\r\n\t\t}\r\n\t\treturn resolved;\r\n\t}", "protected List<Score> getScoresToDisplay(){\n boolean allUsers = btnUser.getText() == btnUser.getTextOff();\n Integer selectedOption = gameOptions.get(spinGameOptions.getSelectedItem().toString());\n String fileName = Board.getHighScoreFile(Game.SLIDING_TILES, selectedOption);\n return allUsers?\n GameScoreboard.getScores(this, fileName, Board.getComparator()) :\n GameScoreboard.getScoresByUser(this, fileName, user, Board.getComparator());\n }", "@External\n\tpublic BigInteger record_excess() {\n\t\tAddress sender = Context.getCaller();\n\t\t\n\t\tif (!sender.equals( this.roulette_score.get()) ) {\n\t\t\tContext.revert(\"This method can only be called by Roulette score\");\n\t\t}\n\t\tBigInteger positive_excess = BigInteger.ZERO;\n\t\tBigInteger game_developers_amount = BigInteger.ZERO;\n\t\tBigInteger day = BigInteger.ZERO;\n\t\t\n\t\tBigInteger now = BigInteger.valueOf(Context.getBlockTimestamp());\t\t\n\t\tday = day.add(now.divide(U_SECONDS_DAY));\n\t\t\n\t\tfor (int i= 0; i< this.get_approved_games().size(); i++ ) {\n\t\t\tAddress game = this.get_approved_games().get(i);\n\t\t\tBigInteger game_excess = this.todays_games_excess.get(game);\n\t\t\tthis.games_excess_history.at(day.subtract(BigInteger.ONE)).set(game, game_excess);\n\t\t\tif (game_excess!= null &&\n\t\t\t\t\tgame_excess.compareTo(BigInteger.ZERO)>= 0) {\n\t\t\t\tpositive_excess = positive_excess.add(game_excess);\n\t\t\t\tthis.todays_games_excess.set(game, BigInteger.ZERO);\n\t\t\t}\n\t\t}\n\t\tgame_developers_amount = this.game_developers_share.get().multiply(positive_excess);\n\t\tgame_developers_amount = game_developers_amount.divide(BigInteger.valueOf(100L));\n\n\t\treturn game_developers_amount;\n\t}", "protected abstract void gatherTeam();", "public void setOfficeHoursScore(double officeHoursScore) {\r\n if (officeHoursScore <= 1 && officeHoursScore >= 0) {\r\n this.officeHoursScore = officeHoursScore;\r\n }\r\n }", "@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\tif (fromUser) {\n\t\t\t\t\tswitch (seekBar.getId()) {\n\t\t\t\t\t\tcase R.id.farmersSeekBar:\n\t\t\t\t\t\t\tif (colonyManager.workersEnabled && colonyManager.scientistsEnabled) {\n\t\t\t\t\t\t\t\tdouble k;\n\t\t\t\t\t\t\t\tif (colonyManager.workersPercentage + colonyManager.scientistsPercentage != 0) {\n\t\t\t\t\t\t\t\t\tk = colonyManager.workersPercentage / (colonyManager.workersPercentage + colonyManager.scientistsPercentage);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tk = 0.5;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdouble newFarmersPercentage = progress / 100.0;\n\t\t\t\t\t\t\t\tdouble sumPercentageLeft = 1 - newFarmersPercentage;\n\t\t\t\t\t\t\t\tdouble newWorkersPercentage = k * sumPercentageLeft;\n\t\t\t\t\t\t\t\tdouble newScientistPercentage = sumPercentageLeft - newWorkersPercentage;\n\t\t\t\t\t\t\t\tcolonyManager.setPercentage(newFarmersPercentage, newWorkersPercentage, newScientistPercentage);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tif (colonyManager.workersEnabled) {\n\t\t\t\t\t\t\t\t\tdouble maxPercentage = colonyManager.farmersPercentage + colonyManager.workersPercentage;\n\t\t\t\t\t\t\t\t\tint maxProgress = (int) Math.round(maxPercentage * 100);\n\t\t\t\t\t\t\t\t\tif (progress >= maxProgress) {\n\t\t\t\t\t\t\t\t\t\tcolonyManager.setPercentage(maxPercentage, 0, colonyManager.scientistsPercentage);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tdouble newFarmersPercentage = progress / 100.0;\n\t\t\t\t\t\t\t\t\t\tdouble newWorkersPercentage = maxPercentage - newFarmersPercentage;\n\t\t\t\t\t\t\t\t\t\tcolonyManager.setPercentage(newFarmersPercentage, newWorkersPercentage, colonyManager.scientistsPercentage);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n /*=> colonyManager.scientistsEnabled == true, otherwise user would be unable to impact farmersSeekBar*/\n\t\t\t\t\t\t\t\t\tdouble maxPercentage = colonyManager.farmersPercentage + colonyManager.scientistsPercentage;\n\t\t\t\t\t\t\t\t\tint maxProgress = (int) Math.round(maxPercentage * 100);\n\t\t\t\t\t\t\t\t\tif (progress >= maxProgress) {\n\t\t\t\t\t\t\t\t\t\tcolonyManager.setPercentage(maxPercentage, colonyManager.workersPercentage, 0);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tdouble newFarmersPercentage = progress / 100.0;\n\t\t\t\t\t\t\t\t\t\tdouble newScientistsPercentage = maxPercentage - newFarmersPercentage;\n\t\t\t\t\t\t\t\t\t\tcolonyManager.setPercentage(newFarmersPercentage, colonyManager.workersPercentage, newScientistsPercentage);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tinvalidatePercentages();\n\t\t\t\t\t\t\tinvalidateDeltaMorale();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase R.id.workersSeekBar:\n\t\t\t\t\t\t\tif (colonyManager.farmersEnabled && colonyManager.scientistsEnabled) {\n\t\t\t\t\t\t\t\tdouble k;\n\t\t\t\t\t\t\t\tif (colonyManager.farmersPercentage + colonyManager.scientistsPercentage != 0) {\n\t\t\t\t\t\t\t\t\tk = colonyManager.farmersPercentage / (colonyManager.farmersPercentage + colonyManager.scientistsPercentage);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tk = 0.5;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdouble newWorkersPercentage = progress / 100.0;\n\t\t\t\t\t\t\t\tdouble sumPercentageLeft = 1 - newWorkersPercentage;\n\t\t\t\t\t\t\t\tdouble newFarmersPercentage = k * sumPercentageLeft;\n\t\t\t\t\t\t\t\tdouble newScientistsPercentage = sumPercentageLeft - newFarmersPercentage;\n\t\t\t\t\t\t\t\tcolonyManager.setPercentage(newFarmersPercentage, newWorkersPercentage, newScientistsPercentage);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tif (colonyManager.farmersEnabled) {\n\t\t\t\t\t\t\t\t\tdouble maxPercentage = colonyManager.farmersPercentage + colonyManager.workersPercentage;\n\t\t\t\t\t\t\t\t\tint maxProgress = (int) Math.round(maxPercentage * 100);\n\t\t\t\t\t\t\t\t\tif (progress >= maxProgress) {\n\t\t\t\t\t\t\t\t\t\tcolonyManager.setPercentage(0, maxPercentage, colonyManager.scientistsPercentage);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tdouble newWorkersPercentage = progress / 100.0;\n\t\t\t\t\t\t\t\t\t\tdouble newFarmersPercentage = maxPercentage - newWorkersPercentage;\n\t\t\t\t\t\t\t\t\t\tcolonyManager.setPercentage(newFarmersPercentage, newWorkersPercentage, colonyManager.scientistsPercentage);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n //=> colonyManager.scientistsEnabled == true, otherwise user would be unable to impact workersSeekBar\n\t\t\t\t\t\t\t\t\tdouble maxPercentage = colonyManager.workersPercentage + colonyManager.scientistsPercentage;\n\t\t\t\t\t\t\t\t\tint maxProgress = (int) Math.round(maxPercentage * 100);\n\t\t\t\t\t\t\t\t\tif (progress >= maxProgress) {\n\t\t\t\t\t\t\t\t\t\tcolonyManager.setPercentage(colonyManager.farmersPercentage, maxPercentage, 0);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tdouble newWorkersPercentage = progress / 100.0;\n\t\t\t\t\t\t\t\t\t\tdouble newScientistsPercentage = maxPercentage - newWorkersPercentage;\n\t\t\t\t\t\t\t\t\t\tcolonyManager.setPercentage(colonyManager.farmersPercentage, newWorkersPercentage, newScientistsPercentage);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tinvalidatePercentages();\n\t\t\t\t\t\t\tinvalidateDeltaMorale();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase R.id.scientistsSeekBar:\n\t\t\t\t\t\t\tif (colonyManager.farmersEnabled && colonyManager.workersEnabled) {\n\t\t\t\t\t\t\t\tdouble k;\n\t\t\t\t\t\t\t\tif (colonyManager.farmersPercentage + colonyManager.workersPercentage != 0) {\n\t\t\t\t\t\t\t\t\tk = colonyManager.farmersPercentage / (colonyManager.farmersPercentage + colonyManager.workersPercentage);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tk = 0.5;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdouble newScientistsPercentage = progress / 100.0;\n\t\t\t\t\t\t\t\tdouble sumPercentageLeft = 1 - newScientistsPercentage;\n\t\t\t\t\t\t\t\tdouble newFarmersPercentage = k * sumPercentageLeft;\n\t\t\t\t\t\t\t\tdouble newWorkersPercentage = sumPercentageLeft - newFarmersPercentage;\n\t\t\t\t\t\t\t\tcolonyManager.setPercentage(newFarmersPercentage, newWorkersPercentage, newScientistsPercentage);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tif (colonyManager.farmersEnabled) {\n\t\t\t\t\t\t\t\t\tdouble maxPercentage = colonyManager.farmersPercentage + colonyManager.scientistsPercentage;\n\t\t\t\t\t\t\t\t\tint maxProgress = (int) Math.round(maxPercentage * 100);\n\t\t\t\t\t\t\t\t\tif (progress >= maxProgress) {\n\t\t\t\t\t\t\t\t\t\tcolonyManager.setPercentage(0, colonyManager.workersPercentage, maxPercentage);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tdouble newScientistsPercentage = progress / 100.0;\n\t\t\t\t\t\t\t\t\t\tdouble newFarmersPercentage = maxPercentage - newScientistsPercentage;\n\t\t\t\t\t\t\t\t\t\tcolonyManager.setPercentage(newFarmersPercentage, colonyManager.workersPercentage, newScientistsPercentage);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n /*=> colonyManager.workersEnabled == true, otherwise user would be unable to impact scientistsSeekBar*/\n\t\t\t\t\t\t\t\t\tdouble maxPercentage = colonyManager.workersPercentage + colonyManager.scientistsPercentage;\n\t\t\t\t\t\t\t\t\tint maxProgress = (int) Math.round(maxPercentage * 100);\n\t\t\t\t\t\t\t\t\tif (progress >= maxProgress) {\n\t\t\t\t\t\t\t\t\t\tcolonyManager.setPercentage(colonyManager.farmersPercentage, 0, maxPercentage);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tdouble newScientistsPercentage = progress / 100.0;\n\t\t\t\t\t\t\t\t\t\tdouble newWorkersPercentage = maxPercentage - newScientistsPercentage;\n\t\t\t\t\t\t\t\t\t\tcolonyManager.setPercentage(colonyManager.farmersPercentage, newWorkersPercentage, newScientistsPercentage);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tinvalidatePercentages();\n\t\t\t\t\t\t\tinvalidateDeltaMorale();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tToast.makeText(MainActivity.context, \"Error: unknown seekBar.\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n protected boolean calculateEnabled() {\n if (!super.calculateEnabled())\n return false;\n // allows only the editing of non-readonly parts\n return EditPartUtil.isEditable(getSelectedObjects().get(0));\n }", "private boolean shouldBecomeCombatEngineer() {\r\n\t\tdouble machineUnitsCount = this.getNumberOfMachineUnits();\r\n\t\tdouble combatEngineers = this.informationStorage.getWorkerConfig().getTotalCombatEngineerCount();\r\n\r\n\t\treturn combatEngineers / machineUnitsCount <= this.combatEngineerTriggerPercentageEnroll;\r\n\t}", "static int SetScore(int p){\n\t\tif (p==1) {\n\t\t\tp1Score=p1Score+4;\n\t\t\tlblp1Score.setText(Integer.toString(p1Score));\n\t\t\t\n\t\t\t//check whether the score reaches to destination score or not..........\n\t\t\t\n\t\t\tif(p1Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p1Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse if(p==2){\n\t\t\tp2Score=p2Score+4;\n\t\t\tlblp2Score.setText(Integer.toString(p2Score));\n\t\t\t\n\t\t\tif(p2Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p2Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse if(p==3){\n\t\t\tp3Score=p3Score+4;\n\t\t\tlblp3Score.setText(Integer.toString(p3Score));\n\t\t\t\n\t\t\tif(p3Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p3Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tp4Score=p4Score+4;\n\t\t\tlblp4Score.setText(Integer.toString(p4Score));\n\t\t\t\n\t\t\tif(p4Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p4Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "public static void setScoreBoard(Player p) {\n\t\n}", "private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }", "public void changeChecker()\n {\n\tif (pennies < 0 || nickels < 0 || dimes < 0 || quarters < 0)\n\t throw new IllegalArgumentException();\t// no negative amounts\n }" ]
[ "0.54664934", "0.53647953", "0.5267019", "0.5263257", "0.5140898", "0.5093612", "0.5081493", "0.50227416", "0.5011235", "0.4991093", "0.49336582", "0.49315292", "0.49196076", "0.48964", "0.48797166", "0.48763612", "0.48654824", "0.48553005", "0.4852152", "0.48445067", "0.48427626", "0.4826827", "0.4826277", "0.48176473", "0.48164952", "0.48161176", "0.48141012", "0.48091868", "0.48085395", "0.48076844", "0.48071012", "0.48057145", "0.48040596", "0.4802109", "0.47857723", "0.47836098", "0.4777955", "0.47721726", "0.47600865", "0.47487456", "0.47476777", "0.4742865", "0.47379732", "0.47373444", "0.47356", "0.47337592", "0.4723435", "0.47228307", "0.47172928", "0.47127116", "0.47077948", "0.47019833", "0.4688524", "0.46855745", "0.46853438", "0.46781096", "0.46743655", "0.46718898", "0.46684024", "0.4664539", "0.46629307", "0.46628243", "0.4652852", "0.46466604", "0.46450883", "0.46418303", "0.46411365", "0.4638286", "0.4631182", "0.46310762", "0.46306545", "0.4623459", "0.46226346", "0.4617493", "0.46150568", "0.46123207", "0.4611042", "0.46087578", "0.46059474", "0.46056232", "0.46005738", "0.45998013", "0.45995444", "0.4598378", "0.45956388", "0.45868266", "0.45848346", "0.45816675", "0.45775294", "0.45728183", "0.4570642", "0.45695162", "0.45682088", "0.45657754", "0.45597094", "0.45594075", "0.45537865", "0.45504597", "0.45501703", "0.45494184" ]
0.4772508
37
Only available to the commissioner edit the seasonlong record for each team.
public static void editStandings(League theLeague, Scanner keyboard) { System.out.println(""); System.out.println("---Edit Standings---"); for (int x = 0; x < theLeague.getNumTeams(); x++) { System.out.println(""); theLeague.getTeam(x).teamManNameToString(); System.out.println("Current record: " + theLeague.getTeam(x).getRecord()); System.out.println(""); System.out.println("Enter a new record: (max 32 characters)"); System.out.println("0 - Return to Team Menu"); String newRecord = Input.validString(32, keyboard); if (newRecord.equals("0")) { return; } theLeague.getTeam(x).setRecord(newRecord); } System.out.println(""); System.out.println("***Standings Updated***"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSeasonId() {\n return seasonId;\n }", "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "public List<Team> getAllTeamsBySeason(Season s) { \r\n\t\t\tif(teamsBySeason==null)\t{\r\n\t\t\t\tteamsBySeason=dao.listTeamsforSeason(s); //LIST\t\t\r\n\t\t\tfor(Team atemp:teamsBySeason){ this.mapTeamBySeason.put(atemp.getTeam(), atemp);}\r\n\t\t\t}\r\n\t\t\treturn teamsBySeason;\r\n\t\t}", "@Override\n\tpublic void setTeam(int i) {\n\t\t\n\t}", "public int getSeasonStatusId() {\n return seasonStatusId;\n }", "static public void set_team_data(String league){\n\n\t\tEdit_row_window.attrs = new String[]{\"team name:\", \"rating:\", \"release year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct p.id, p.name, p.links_to_player, p.birth_year \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_\"+league+\"_players p, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_\"+league+\"_player_team pt \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where pt.player_id=p.id and pt.team_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by links_to_player desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct p.id, p.name, p.links_to_player, p.birth_year \" +\n\t\t\t\t\" from curr_\"+league+\"_players p \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"player name\", \"rating\", \"birth year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. birth year:\";\n\t\tEdit_row_window.linked_category_name = \"PLAYERS\";\n\t}", "protected abstract void gatherTeam();", "public void setTeamId(int value) {\n this.teamId = value;\n }", "void getSearchSeasonData();", "public int getTeamId() {\n return teamId;\n }", "public void setSeasonStatusId(int value) {\n this.seasonStatusId = value;\n }", "public static void setsemesterId(int semesterId) {\n ListOfSubjects.semesterId =semesterId;\n\n }", "private boolean multipleTeams(SettingsClass s){\r\n int a =s.getPlayerColor(0);\r\n for(int i=0;i<s.getNumPlayers();i++){\r\n if(a!=s.getPlayerColor(i)){\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public void updateAirForceTeam(Collection<Unit> airunits) {\n\t\t\n\t\t// remove airunit of invalid team \n\t\tList<Integer> invalidUnitIds = new ArrayList<>();\n\t\t\n\t\tfor (Integer airunitId : airForceTeamMap.keySet()) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tif (!UnitUtils.isCompleteValidUnit(airunit)) {\n\t\t\t\tinvalidUnitIds.add(airunitId);\n\t\t\t} else if (airForceTeamMap.get(airunitId).leaderUnit == null) {\n\t\t\t\tinvalidUnitIds.add(airunitId);\n\t\t\t}\n\t\t}\n\t\tfor (Integer invalidUnitId : invalidUnitIds) {\n\t\t\tairForceTeamMap.remove(invalidUnitId);\n\t\t}\n\t\t\n\t\t// new team\n\t\tfor (Unit airunit : airunits) {\n\t\t\tAirForceTeam teamOfAirunit = airForceTeamMap.get(airunit.getID());\n\t\t\tif (teamOfAirunit == null) {\n\t\t\t\tairForceTeamMap.put(airunit.getID(), new AirForceTeam(airunit));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 리더의 위치를 비교하여 합칠 그룹인지 체크한다.\n\t\t// - 클로킹모드 상태가 다른 그룹은 합치지 않는다.\n\t\t// - 수리 상태의 그룹은 합치지 않는다.\n\t\tList<AirForceTeam> airForceTeamList = new ArrayList<>(new HashSet<>(airForceTeamMap.values()));\n\t\tMap<Integer, Integer> airForceTeamMergeMap = new HashMap<>(); // key:merge될 그룹 leaderID, value:merge할 그룹 leaderID\n\t\t\n\t\tint mergeDistance = AIR_FORCE_TEAM_MERGE_DISTANCE;\n\t\tif (InfoUtils.enemyRace() == Race.Terran) {\n\t\t\tmergeDistance += 120;\n\t\t}\n\t\tfor (int i = 0; i < airForceTeamList.size(); i++) {\n\t\t\tAirForceTeam airForceTeam = airForceTeamList.get(i);\n\t\t\tif (airForceTeam.repairCenter != null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tboolean cloakingMode = airForceTeam.cloakingMode;\n\t\t\tfor (int j = i + 1; j < airForceTeamList.size(); j++) {\n\t\t\t\tAirForceTeam compareForceUnit = airForceTeamList.get(j);\n\t\t\t\tif (compareForceUnit.repairCenter != null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (cloakingMode != compareForceUnit.cloakingMode) { // 클로킹상태가 다른 레이쓰부대는 합쳐질 수 없다.\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tUnit airForceLeader = airForceTeam.leaderUnit;\n\t\t\t\tUnit compareForceLeader = compareForceUnit.leaderUnit;\n\t\t\t\tif (airForceLeader.getID() == compareForceLeader.getID()) {\n//\t\t\t\t\tSystem.out.println(\"no sense. the same id = \" + airForceLeader.getID());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (airForceLeader.getDistance(compareForceLeader) <= mergeDistance) {\n\t\t\t\t\tairForceTeamMergeMap.put(compareForceLeader.getID(), airForceLeader.getID());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// 합쳐지는 에어포스팀의 airForceTeamMap을 재설정한다.\n\t\tfor (Unit airunit : airunits) {\n\t\t\tInteger fromForceUnitLeaderId = airForceTeamMap.get(airunit.getID()).leaderUnit.getID();\n\t\t\tInteger toForceUnitLeaderId = airForceTeamMergeMap.get(fromForceUnitLeaderId);\n\t\t\tif (toForceUnitLeaderId != null) {\n\t\t\t\tairForceTeamMap.put(airunit.getID(), airForceTeamMap.get(toForceUnitLeaderId));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// team 멤버 세팅\n\t\tSet<AirForceTeam> airForceTeamSet = new HashSet<>(airForceTeamMap.values());\n\t\tfor (AirForceTeam airForceTeam : airForceTeamSet) {\n\t\t\tairForceTeam.memberList.clear();\n\t\t}\n\t\t\n\t\tList<Integer> needRepairAirunitList = new ArrayList<>(); // 치료가 필요한 유닛\n\t\tMap<Integer, Unit> airunitRepairCenterMap = new HashMap<>(); // 치료받을 커맨드센터\n\t\tList<Integer> uncloakedAirunitList = new ArrayList<>(); // 언클락 유닛\n\t\t\n\t\tfor (Integer airunitId : airForceTeamMap.keySet()) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tif (airunit.getHitPoints() <= 50) { // repair hit points\n\t\t\t\tAirForceTeam repairTeam = airForceTeamMap.get(airunitId);\n\t\t\t\tif (repairTeam == null || repairTeam.repairCenter == null) {\n\t\t\t\t\tUnit repairCenter = UnitUtils.getClosestActivatedCommandCenter(airunit.getPosition());\n\t\t\t\t\tif (repairCenter != null) {\n\t\t\t\t\t\tneedRepairAirunitList.add(airunitId);\n\t\t\t\t\t\tairunitRepairCenterMap.put(airunitId, repairCenter);\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\t\n\t\t\tAirForceTeam airForceTeam = airForceTeamMap.get(airunit.getID());\n\t\t\tif (airForceTeam.cloakingMode && (airunit.getType() != UnitType.Terran_Wraith || airunit.getEnergy() < 15)) {\n\t\t\t\tuncloakedAirunitList.add(airunitId);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tairForceTeam.memberList.add(airunit);\n\t\t}\n\t\t\n\t\t// create separated team for no energy airunit\n\t\tfor (Integer airunitId : uncloakedAirunitList) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tAirForceTeam uncloackedForceTeam = new AirForceTeam(airunit);\n\t\t\tuncloackedForceTeam.memberList.add(airunit);\n\t\t\t\n\t\t\tairForceTeamMap.put(airunitId, uncloackedForceTeam);\n\t\t}\n\t\t\n\t\t// create repair airforce team\n\t\tfor (Integer airunitId : needRepairAirunitList) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tAirForceTeam needRepairTeam = new AirForceTeam(airunit);\n\t\t\tneedRepairTeam.memberList.add(airunit);\n\t\t\tneedRepairTeam.repairCenter = airunitRepairCenterMap.get(airunit.getID());\n\t\t\t\n\t\t\tairForceTeamMap.put(airunitId, needRepairTeam);\n\t\t}\n\t\t\n\t\t// etc (changing leader, finishing repair, achievement) \n\t\tSet<AirForceTeam> reorganizedSet = new HashSet<>(airForceTeamMap.values());\n\t\tachievementEffectiveFrame = 0;\n\t\tfor (AirForceTeam airForceTeam : reorganizedSet) {\n\t\t\t// leader 교체\n\t\t\tUnit newLeader = UnitUtils.getClosestUnitToPosition(airForceTeam.memberList, airForceTeam.getTargetPosition());\n\t\t\tairForceTeam.leaderUnit = newLeader;\n\t\t\t\n\t\t\t// repair 완료처리\n\t\t\tif (airForceTeam.repairCenter != null) {\n\t\t\t\tif (!UnitUtils.isValidUnit(airForceTeam.repairCenter) || WorkerManager.Instance().getWorkerData().getNumAssignedWorkers(airForceTeam.repairCenter) < 3) {\n\t\t\t\t\tUnit repairCenter = UnitUtils.getClosestActivatedCommandCenter(airForceTeam.leaderUnit.getPosition());\n\t\t\t\t\tif (repairCenter != null) {\n\t\t\t\t\t\tairForceTeam.repairCenter = repairCenter;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tboolean repairComplete = true;\n\t\t\t\tfor (Unit airunit : airForceTeam.memberList) {\n\t\t\t\t\tif (airunit.getHitPoints() < airunit.getType().maxHitPoints() * 0.95) { // repair complete hit points\n\t\t\t\t\t\trepairComplete = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (repairComplete) {\n\t\t\t\t\tairForceTeam.repairCenter = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// achievement\n\t\t\tint achievement = airForceTeam.achievement();\n\t\t\taccumulatedAchievement += achievement;\n\t\t\tachievementEffectiveFrame = achievementEffectiveFrame + airForceTeam.killedEffectiveFrame * 100 - airForceTeam.damagedEffectiveFrame;\n\t\t}\n\t}", "public void unAssignFromAllSeasons() {\n for (Season season : getSeasons()) {\n season.unAssignReferee(this);\n }\n //EntityManager.getInstance().unAssignRefereeFromAllSeasons(this); //Check:Should be covered with CASCADE\n this.seasons = new ArrayList<>();\n }", "public Season getSeason() {\n return season;\n }", "public void SetAllTeamFieldsEditable(boolean editable) {\n blueTeamNumber1.setEditable(editable);\n blueTeamNumber2.setEditable(editable);\n blueTeamNumber3.setEditable(editable);\n redTeamNumber1.setEditable(editable);\n redTeamNumber2.setEditable(editable);\n redTeamNumber3.setEditable(editable);\n }", "public static boolean getLeagueForEdit(LeagueBean l) {\r\n\t\tboolean status = false;\t\t\t\t\t// Status of createNewUser\r\n\t\tConnection conn = null;\t\t\t\t\t// DB Connection\r\n\t\tPreparedStatement getLeague = null;\t\t// SQL query\r\n\t\tResultSet rs = null;\t\t\t\t\t// returned query result set\r\n\r\n\t\t// Connect to Database \r\n\t\ttry {\r\n\t\t\tconn = ConnectionManager.getConnection();\r\n\t\t\tgetLeague = conn.prepareStatement(\"SELECT leagueName, leaguePlayoffs, leaguePlayoffTeams, leagueStatus from league WHERE leagueId=?\");\r\n\t\t\tgetLeague.setString(1, l.getLeagueId());\r\n\t\t\trs = getLeague.executeQuery();\r\n\r\n\t\t\tif(rs.next()) {\r\n\t\t\t\tl.setLeagueName(rs.getString(1));\r\n\t\t\t\tl.setLeaguePlayoffs(rs.getString(2));\r\n\t\t\t\tl.setLeaguePlayoffTeams(rs.getString(3));\r\n\t\t\t\tl.setStatus(rs.getString(4));\r\n\t\t\t\tstatus = true;\r\n\t\t\t}\r\n\r\n\t\t// Catch all possible Exceptions\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (getLeague != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tgetLeague.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t \r\n\t\treturn status;\r\n\t}", "@PermitAll\n public void cmdShowSchedule(User teller) {\n command.sendQuietly(\"qtell {0} {1}\", teller, \"Current Schedule:\\\\n\");\n Collection<Game> games = tournamentService.findAllGames();\n for (Game game : games) {\n int boardNum = game.boardNumber;\n String whiteStatus = (game.whitePlayer.isOnline()) ? \"\" : \" ?\";\n String whitePlayer = game.whitePlayer.getHandle();\n String blackStatus = (game.blackPlayer.isOnline()) ? \"\" : \" ?\";\n String blackPlayer = game.blackPlayer.getHandle();\n String gameStatus = game.getStatusString();\n String msg = String.format(\"Board %2d: %18s%2s %18s%2s %s\", boardNum, whitePlayer, whiteStatus, blackPlayer, blackStatus, gameStatus);\n command.sendQuietly(\"qtell {0} {1}\", teller, msg);\n }\n command.sendQuietly(\"qtell {0}\", teller);\n }", "public void assignToSeason(Season chosenSeason) {\n if (chosenSeason != null) {\n\n //TOOD: This will not work\n getSeasons().add(chosenSeason);\n }\n }", "@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 setTeamNo(int teamNo) {\r\n\t\tthis.teamNo = teamNo;\r\n\t}", "public boolean hasTeam(User std) {\r\n\t\tboolean hasTeam = false;\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.students WHERE id = \" + std.getID() + \" ;\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint teamId \t= Integer.parseInt(array.get(3));\r\n\t\t\t\r\n\t\t\tif(teamId != 0){\r\n\t\t\t\thasTeam = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn hasTeam;\r\n\t}", "private static void updateRecords() {\n for (Team t: Main.getTeams()){\n //If the team already exists\n if (SqlUtil.doesTeamRecordExist(c,TABLE_NAME,t.getIntValue(Team.NUMBER_KEY))){\n //Update team record\n updateTeamRecord(t);\n } else {\n //Create a new row in database\n addNewTeam(t);\n\n }\n }\n\n }", "public void unAssignFromAllGames() {\n for (Game game : getGames()) {\n game.unAssignReferee(this);\n }\n //EntityManager.getInstance().unAssignRefereeFromAllGames(this); //Check:Should be covered with CASCADE\n this.seasons = new ArrayList<>();\n }", "@Override\n public String getTeam(){\n return this.team;\n }", "static public void set_player_data(String league){\n\t\t\n\t\tEdit_row_window.attrs = new String[]{\"player name:\", \"rating:\", \"birth year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct t.id, t.name, t.links_to_team, t.creation_year \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_\"+league+\"_teams t, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_\"+league+\"_player_team pt\" +\n\t\t\t\t\t\t\t\t\t\t\t\" where pt.team_id=t.id and pt.player_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by links_to_team desc \";\n\t\t\n\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct t.id, t.name, t.links_to_team, t.creation_year \" +\n\t\t\t\t\" from curr_\"+league+\"_teams t \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"team name\", \"rating\", \"creation year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. creation year:\";\n\t\tEdit_row_window.linked_category_name = \"TEAMS\";\n\t}", "public int getTeam() {\n return team;\n }", "int getTeam();", "@Override\n\tpublic void updateTeam(String name, SuperHuman superHuman) {\n\n\t}", "boolean hasTeam();", "public String getSeason() {\n return season;\n }", "public void setTeams(Collection<Team> teams) {\r\n this.teams = teams;\r\n }", "public List<Season> getSeasons() {\n if (this.seasons.isEmpty()) {\n this.seasons = EntityManager.getInstance().getRefereeSeasons(this);\n }\n return this.seasons;\n //TODO:Pull From DB\n }", "@Override\n public void getAllConnectathonParticipants() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"getAllConnectathonParticipants\");\n }\n\n renderAddPanel = false;\n setRenderImportContactPanel(false);\n setRenderImportUserPanel(false);\n\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager()) {\n\n EntityManager em = EntityManagerService.provideEntityManager();\n choosenInstitutionForAdmin = (Institution) Component.getInstance(CHOOSEN_INSTITUTION_FOR_ADMIN);\n\n Query query;\n if (choosenInstitutionForAdmin != null) {\n query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession AND cp.institution = \" +\n \":inInstitution\");\n query.setParameter(IN_INSTITUTION, choosenInstitutionForAdmin);\n query.setParameter(IN_TESTING_SESSION, TestingSession.getSelectedTestingSession());\n\n } else {\n query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession\");\n query.setParameter(IN_TESTING_SESSION, TestingSession.getSelectedTestingSession());\n\n }\n connectathonParticipants = query.getResultList();\n\n } else {\n selectedInstitution = Institution.getLoggedInInstitution();\n EntityManager em = EntityManagerService.provideEntityManager();\n Query query = em\n .createQuery(\"SELECT cp FROM ConnectathonParticipant cp WHERE cp.testingSession = :inTestingSession AND cp.institution = \" +\n \":inInstitution\");\n query.setParameter(IN_TESTING_SESSION, TestingSession.getSelectedTestingSession());\n query.setParameter(IN_INSTITUTION, selectedInstitution);\n connectathonParticipants = query.getResultList();\n\n }\n\n for (ConnectathonParticipant cp : connectathonParticipants) {\n if (cp.getInstitution() == null) {\n if (cp.getInstitutionOld() != null) {\n cp.setInstitution(cp.getInstitutionOld());\n entityManager.merge(cp);\n entityManager.flush();\n LOG.warn(\"Institution patched successfully !\");\n }\n }\n }\n\n }", "@SkipValidation\r\n\tpublic String editMR() throws Exception{\r\n\t\t\r\n\t\tSystem.out.println(\"In Edit Action Class---->>>> In editMR Method------>emp_id = \"+addMRPojo.getEmp_id());\r\n\t\tterritoryListValueRemoved = dao_impl.fetchTerritory(); \r\n\t\t\r\n\t\t\r\n\t\tmrEditList = dao_impl.editMR(addMRPojo);\t\r\n\t\tbloodGrpList = dao_impl.fetchBloodGroup();\r\n\t\t stateList = dao_impl.fetchState();\r\n\t\t cityList = dao_impl.fetchCity();\r\n\t\t dsgnList = dao_impl.fetchDesignation();\r\n\t\t\r\n//Set date from database to string type and set the selected list of territory for edit and view page\r\n\t\t\r\n\t\tIterator<AddMRActionPojo> dsd= mrEditList.iterator();\r\n\t\twhile(dsd.hasNext()){\r\n\t\t\tAddMRActionPojo actionPojo=\t(AddMRActionPojo) dsd.next();\r\n\t\t\t//System.out.println(\"check\"+actionPojo.getDoj_db());\r\n/*\r\n * Set the date to string type \r\n */\r\n\t\t\t\r\n\t\t\tif(actionPojo.getDoj_db() != null )\r\n\t\t\t{\r\n\t\t\t\tactionPojo.setDoj(new SimpleDateFormat(\"dd/MM/yyyy\").format(actionPojo.getDoj_db()));\r\n\t\t\t\t//addMRPojo.setDoj(actionPojo.getDoj());\r\n\t\t\t}\r\n\t\t\tif(actionPojo.getDob_db() != null )\r\n\t\t\t{\r\n\t\t\t\tactionPojo.setDob(new SimpleDateFormat(\"dd/MM/yyyy\").format(actionPojo.getDob_db()));\r\n\t\t\t\t//addMRPojo.setDob(actionPojo.getDob());\r\n\t\t\t}\r\n\t\t\t\r\n/*\r\n * Populate the terrValues from the List which contains DB info of MR\r\n\t */\r\n\t\t\ttry{\r\n\t\t\t\tString tempTer_id = actionPojo.getTer_id();\r\n\t\t\t\tString delimiter = \",\"; \t\t\t\t\t\t//To classify string from the DB\r\n\t\t\t\t\r\n\t\t\t\tif(tempTer_id != null)\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp = tempTer_id.split(delimiter);\t\t\t\t//split method is used to split the string value with a string regex (here it is delimiter) coming from DB as in DB if multiple select value is stored then In DB it is stored as one string separated by a comma(,).\r\n\t\t\t\t\tfor(int i =0 ; i < temp.length ; i++){\t\t\t//for loop to check only\r\n\t\t\t\t\t\tSystem.out.println(\"temp[\"+i+\"] ---> \"+temp[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tterrValues = Arrays.asList(temp);\t\t\t\t//Convert string array to list\r\n\t\t\t\t\tSystem.out.println(\" --> After converting String Array to List <--\");\r\n\t\t\t\t\tfor (String e : terrValues) \t\t\t\t\t//forEach loop to check only\r\n\t\t\t\t { \r\n\t\t\t\t System.out.println(\"terrValues : \"+e); \r\n\t\t\t\t } \r\n\t\t\t\t\t\r\n\t\t\t\t\t territoryListValueInEdit = dao_impl.searchValueOfTerr(terrValues);\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*for (AddTerritoryActionPojo a : territoryListValueInEdit) \t\t\t\t\t//forEach loop to check only\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tSystem.out.println(\"territoryListValueInEdit : \"+a.getTer_id()+\" --> \"+a.getTerritory()); \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}*/\r\n\t\t\t\t\t \r\n\t\t\t\t\t \r\n /*\r\n * Logic to remove item from one list to another\r\n */\r\n\t\t for(Iterator<AddTerritoryActionPojo> itr = territoryListValueRemoved.iterator();itr.hasNext();) \r\n\t\t { \r\n\t\t AddTerritoryActionPojo element = itr.next(); \r\n\t\t \r\n\t\t for(Iterator<AddTerritoryActionPojo> itrWhichHasToBeRemoved = territoryListValueInEdit.iterator();itrWhichHasToBeRemoved.hasNext();) \r\n\t\t\t { \r\n\t\t\t AddTerritoryActionPojo elementToRemove = itrWhichHasToBeRemoved.next(); \r\n\t\t\t if(element.getTer_id().trim().equals(elementToRemove.getTer_id().trim())) \r\n\t\t\t { \r\n\t\t\t itr.remove();\r\n\t\t\t System.out.println(\"element --> \"+element.getTer_id());\r\n\t\t\t System.out.println(\"elementToRemove --> \"+elementToRemove.getTer_id());\r\n\t\t\t } \r\n\t\t\t }\r\n\t\t } \r\n\t\t /* for (AddTerritoryActionPojo b : territoryListValueRemoved) \t\t\t\t\t//forEach loop to check only\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tSystem.out.println(\"territoryListValueRemoved : \"+b.getTer_id()+\" --> \"+b.getTerritory()); \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}*/ \r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tSystem.out.println(\"Exception While converting multiple territory to single territory\"+e);\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\t\r\n\t\treturn \"SUCCESS\";\r\n\t}", "@Override\n\tpublic void updateTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}", "public int getObservingSeason() {\n return observingSeason;\n }", "Team getMyTeam();", "@Override\n\tpublic boolean isIsTeamMatch() {\n\t\treturn _esfTournament.isIsTeamMatch();\n\t}", "public List<LabourTimeVo> viewWorkerTimeDetailsForEditing(WorkerDetailsVo detailsVo);", "@OnLongClick(R.id.awayTeamBannerLayout)\n @Override\n public boolean AwayTeamButtonLongClicked(View view) {\n mArgs.putInt(TEAM, 2);\n teamSelectionDialogFragment.setArguments(mArgs);\n teamSelectionDialogFragment.setTargetFragment(this, REQUEST_CODE_AWAY_TEAM);\n teamSelectionDialogFragment.show(getFragmentManager(), TAG);\n if (isHapticFeedbackEnabled)\n hapticFeedback(view);\n return true;\n }", "public void setSeason(String season) {\n this.season = season == null ? null : season.trim();\n }", "@Override\n public void onClick(View v) {\n getActivityDetails(view);\n\n String editDialogDistance = null;\n String editDialogAlt = null;\n String editDialogAvgHR = null;\n String editDialogMaxHR = null;\n\n long editDialogId = Long.parseLong(editId.getText().toString());\n String editDialogTime = editTime.getText().toString();\n String editDialogTotalTime = editTotalTime.getText().toString();\n String editDialogInfo = editInfo.getText().toString();\n String editDialogSport = editSport.getText().toString();\n try {\n editDialogDistance = editDistance.getText().toString();\n editDialogAlt = editAltitude.getText().toString();\n editDialogAvgHR = editAvgHR.getText().toString();\n editDialogMaxHR = editMaxHR.getText().toString();\n } catch (NullPointerException e) {\n\n }\n\n showEditDialog(editDialogId, editDialogTime, editDialogTotalTime, editDialogDistance,\n editDialogInfo, editDialogSport, editDialogAlt, editDialogAvgHR, editDialogMaxHR, _day, _month, _year);\n }", "@Override\n public void onClick(View v) {\n getActivityDetails(view);\n\n String editDialogDistance = null;\n String editDialogAlt = null;\n String editDialogAvgHR = null;\n String editDialogMaxHR = null;\n\n long editDialogId = Long.parseLong(editId.getText().toString());\n String editDialogTime = editTime.getText().toString();\n String editDialogTotalTime = editTotalTime.getText().toString();\n String editDialogInfo = editInfo.getText().toString();\n String editDialogSport = editSport.getText().toString();\n try {\n editDialogDistance = editDistance.getText().toString();\n editDialogAlt = editAltitude.getText().toString();\n editDialogAvgHR = editAvgHR.getText().toString();\n editDialogMaxHR = editMaxHR.getText().toString();\n } catch (NullPointerException e) {\n\n }\n\n showEditDialog(editDialogId, editDialogTime, editDialogTotalTime, editDialogDistance,\n editDialogInfo, editDialogSport, editDialogAlt, editDialogAvgHR, editDialogMaxHR, _day, _month, _year);\n }", "public void setLeagueId(int value) {\n this.leagueId = value;\n }", "public ArrayList<Team> getTeamList(){\n\t\treturn this.teamList;\n\t}", "public String getSeasonName() {\n return seasonName;\n }", "public short getTeam() {\n\n return m_team;\n }", "private void viewSavedSchedules() {\n if (yesNoQuestion(\"Would you like to filter through the saved schedules?\")) {\n showAllSchedulesFiltered(scheduleList.getScheduleList());\n } else {\n showAllSchedules(scheduleList.getScheduleList());\n }\n }", "public String getSeasonCode() {\n return seasonCode;\n }", "SysTeam selectByPrimaryKey(Integer teamId);", "@Override\r\n\tpublic List<String> getAllTeam() {\n\t\treturn dao.getAllTeam();\r\n\t}", "private static boolean isSeasonPresent(List<Seasons> liSea, String season) {\r\n\r\n\t\tboolean flag = false;\r\n\r\n\t\tfor (Seasons s : liSea) {\r\n\r\n\t\t\tif (s.toString().equals(season)) {\r\n\t\t\t\tSystem.out.println(\"Season exist\");\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public void setSprint(boolean s){\n this.sprint = s;\n }", "int updateByPrimaryKeySelective(SysTeam record);", "public void updateTeamTables() {\n ArrayList<Player> tempTeam = new ArrayList<>();\n ArrayList<Player> tempTaxi = new ArrayList<>();\n teamTable.getItems().clear();\n for (Team tt : dataManager.getDraft().getFantasyTeams()) {\n if (tt.getTeamName().equals(selectTeam.getSelectionModel().getSelectedItem())) {\n tempTeam = tt.getTeamList();\n tempTaxi = tt.getTaxiList();\n }\n }\n teamTable = resetTeamTable(tempTeam);\n teamTaxiTable = resetTaxiTable(tempTaxi);\n \n teamTable.getSortOrder().add(posCol);\n posCol.setComparator(positionCompare);\n posCol.setSortType(SortType.ASCENDING);\n posCol.setSortable(true);\n posCol.setSortable(false);\n }", "public String getAwayTeam();", "protected abstract void assignTeam(boolean playerR, boolean playerB);", "public void setSeasons(final Set<Season> value)\r\n\t{\r\n\t\tsetSeasons( getSession().getSessionContext(), value );\r\n\t}", "@Override\n\tpublic int getTeam() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic List findTeamList(AssetRptLccUsDeptCommonDTO assetRptLccUsDeptCommonDTO, User loginUser) {\n\t\treturn null;\r\n\t}", "public void editTeam(ActionEvent actionEvent) throws IOException, SQLException {\n teamNameEditField.setText(teamCombobox.getValue().getTeamName());\n abbrevationEditField.setText(teamCombobox.getValue().getAbbrevation());\n\n chooseAgeGroup.getSelectionModel().select(teamCombobox.getValue().getAgeGroup());\n chooseCityBox.getSelectionModel().select(teamCombobox.getValue().getCity());\n\n if (teamCombobox.getValue().getTeamLogo() != null) {\n logoChangeImage.setImage(teamCombobox.getValue().getTeamLogo().getImage());\n uploadTeamLogoButton.setText(\"Change Photo\");\n }\n\n editTeamPane.setDisable(false);\n editTeamPane.setVisible(true);\n darkPane.setDisable(false);\n darkPane.setVisible(true);\n\n chooseLeagueTeamBox.getItems().clear();\n chooseLeagueBox.getItems().clear();\n\n ObservableList<String> leagueList = DatabaseManager.getLeagues(user, chooseCityBox.getValue().toString(), chooseAgeGroup.getValue());\n chooseLeagueBox.getSelectionModel().clearSelection();\n chooseLeagueBox .setButtonCell(new ListCell<String>() {\n @Override\n protected void updateItem(String item, boolean empty) {\n super.updateItem(item, empty) ;\n if (empty || item == null) {\n setText(\"Choose League\");\n } else {\n setText(item);\n }\n }\n });\n if(leagueList.size() != 0){\n chooseLeagueBox.getItems().addAll(leagueList);\n }\n\n chooseLeagueBox.getSelectionModel().select(teamCombobox.getValue().getLeagueName());\n\n ObservableList<String> teamList = DatabaseManager.getLeagueTeams(user, chooseCityBox.getValue().toString(), chooseAgeGroup.getValue(), chooseLeagueBox.getValue().toString());\n chooseLeagueTeamBox.getSelectionModel().clearSelection();\n chooseLeagueTeamBox.setButtonCell(new ListCell<String>() {\n @Override\n protected void updateItem(String item, boolean empty) {\n super.updateItem(item, empty) ;\n if (empty || item == null) {\n setText(\"Choose Team\");\n } else {\n setText(item);\n }\n }\n });\n if(teamList.size() != 0){\n chooseLeagueTeamBox.getItems().addAll(teamList);\n }\n //chooseLeagueTeamBox.getSelectionModel().select();\n // TODO\n }", "@Override\r\n\tpublic String getTeam() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void setVisitTeam() {\n\t\t\n\t}", "public int getTeam() {\n return team_;\n }", "public void scheduleGamesInLeagues(String leagueName) {\n // Click this button after you have all the teams in league, Automatic scheduling\n // League league = get from DB by leagueName\n // league.scheduledGames();\n }", "public int getTeamId() {\n\t\treturn teamId;\n\t}", "public Team getTeam() {\n return team;\n }", "@Transactional\n public DevStudio setGames(DevStudio devStudio, Iterable<Long> games) {\n List<Game> items = getGameService().findAll(games);\n Set<Game> currents = devStudio.getGames();\n Set<Game> toRemove = new HashSet<Game>();\n for (Iterator<Game> iterator = currents.iterator(); iterator.hasNext(); ) {\n Game nextGame = iterator.next();\n if (items.contains(nextGame)) {\n items.remove(nextGame);\n } else {\n toRemove.add(nextGame);\n }\n }\n devStudio.removeFromGames(toRemove);\n devStudio.addToGames(items);\n // Force the version update of the parent side to know that the parent has changed\n // because it has new books assigned\n devStudio.setVersion(devStudio.getVersion() + 1);\n return getDevStudioRepository().save(devStudio);\n }", "Team findById(Long id);", "private void getTeams() {\n if(progressDialog!=null && progressDialog.isShowing()){\n progressDialog.dismiss();\n }\n progressDialog = new ProgressDialog(getContext());\n progressDialog.setCancelable(true);\n if(getArguments()!=null) {\n progressDialog.setMessage(\"Fetching Match Schedules\");\n }\n else {\n progressDialog.setMessage(\"Processing\");\n }\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progressDialog.setProgress(0);\n progressDialog.show();\n db.collection(\"teams\").get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if (task.isSuccessful()) {\n for (QueryDocumentSnapshot document : task.getResult()) {\n JSONObject object = new JSONObject(document.getData());\n try {\n teamsObject.put(document.getId(), object);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n if(getArguments()!=null) {\n if (dataBundle.getString(\"from\").equals(\"league Features\")) {\n getSchedules();\n }\n else if(dataBundle.getString(\"from\").equals(\"TM-matches\")){\n getTeamSchedules();\n }\n }\n else {\n getSchedules();\n }\n } else {\n Toast.makeText(context, task.getException().getLocalizedMessage(), Toast.LENGTH_LONG).show();\n }\n }\n });\n }", "public TeamObject() {\n\t\t//build the firstRaceLockButton variable\n\t\tfirstRaceLockButton.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//get the mouse cursor out of the time input field so that it works properly\n\t\t\t\tif(firstRaceLockButton.getText() == \"Lock\") {\n\t\t\t\t\tKeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner();\t\t//remove focus from the text box\n\t\t\t\t\t\n\t\t\t\t\t//first commit the new text to get the corect value from the text field\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttimeFirstRaceInputField.commitEdit();\n\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfirstRaceTime = Integer.parseInt((String)timeFirstRaceInputField.getValue());\t//set the firstRaceTime variable\n\t\t\t\t\ttimeFirstRaceInputField.setEditable(false);\n\t\t\t\t\tfirstRaceLockButton.setText(\"Unlock\");\n\t\t\t\t\t\n\t\t\t\t\t//if the time changes set the flag\n\t\t\t\t\tif(firstRaceTimeTracker != firstRaceTime) {\n\t\t\t\t\t\tflagFirstRaceTime.setText(\"*\");\t\t//set the time change flag\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfirstRaceTimeTracker = Integer.parseInt((String)timeFirstRaceInputField.getValue());\t//set the varible to keep track if the time changed\n\t\t\t\t\t\n\t\t\t\t\t//check if the button was clicked enough times to change the time change flag\n//\t\t\t\t\tif(firstLockButtonPressCount > 1) {\n//\t\t\t\t\t\tflagFirstRaceTime.setText(\"*\");\t\t//set the time change flag\n//\t\t\t\t\t}\n//\t\t\t\t\tfirstLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t\t\n\t\t\t\t\t//loop through all the teams array and check if all their first race and second race times are not -1 to open the semi final race radio button\n\t\t\t\t\tfor(int i = 0; i < FestivalObject.teamsArray.size(); i++) {\n\t\t\t\t\t\t//check the teams first race time\n\t\t\t\t\t\tif(FestivalObject.teamsArray.get(i).getFirstRaceTime() == -1) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//check the teams second race time\n\t\t\t\t\t\telse if(FestivalObject.teamsArray.get(i).getSecondRaceTime() == -1) {\n\t\t\t\t\t\t\tbreak;\t//not all times are set so dont open the semi finals radio button\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//if the last index is equal to the teamsArray size +1 and the time != -1\n\t\t\t\t\t\telse if(i + 1 == FestivalObject.teamsArray.size() && FestivalObject.teamsArray.get(i).getSecondRaceTime() != -1) {\n\t\t\t\t\t\t\tSchedule.semiFinalsRadioButton.setEnabled(true);\n\t\t\t\t\t\t\tSemiFinalRaceGeneration.generateSemiFinalRaces(Schedule.panel2);\t//auto generate the semi finals when all is locked\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(firstRaceLockButton.getText() == \"Unlock\") {\n\t\t\t\t\ttimeFirstRaceInputField.setEditable(true);\n\t\t\t\t\tfirstRaceLockButton.setText(\"Lock\");\n\t\t\t\t\t\n//\t\t\t\t\tfirstLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//loop through the teams that raced in the race and set the place\n\t\t\t\t//TODO - this changing the label stuff - or just add a text box that is set instead?\n//\t\t\t\tfor(int i = 0; i < FestivalObject.racesArray.size(); i++) {\n//\t\t\t\t\tfor(int j = 0; j < FestivalObject.racesArray.get(i).getTeamsRacing().size(); j++) {\n//\t\t\t\t\t\tFestivalObject.racesArray.get(i).getTeamsRacing().get(j).setPlaceLabel(1, 9);\n//\t\t\t\t\t}\n//\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tfirstRaceLockButton.setFont(FestivalObject.getFont());\n\t\tfirstRaceLockButton.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tfirstRaceLockButton.setBounds(0, 0, 100, 20);\n\t\tfirstRaceLockButton.setFocusable(false);\n\t\t\n\t\t//build the secondRaceLockButton variable\n\t\tsecondRaceLockButton.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//for the second race lock button click\n\t\t\t\tif(secondRaceLockButton.getText() == \"Lock\") {\n\t\t\t\t\tKeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner();\t\t//remove focus from the text box\n\t\t\t\t\t\n\t\t\t\t\t//first commit the new text to get the corect value from the text field\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttimeSecondRaceInputField.commitEdit();\n\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsecondRaceTime = Integer.parseInt((String)timeSecondRaceInputField.getValue());\t//set the secondRaceTime variable\n\t\t\t\t\ttimeSecondRaceInputField.setEditable(false);\n\t\t\t\t\tsecondRaceLockButton.setText(\"Unlock\");\n\t\t\t\t\t\n\t\t\t\t\t//check if the button was clicked enough times to change the time change flag\n//\t\t\t\t\tif(secondLockButtonPressCount > 1) {\n//\t\t\t\t\t\tflagSecondRaceTime.setText(\"*\");\t\t//set the time change flag\n//\t\t\t\t\t}\n//\t\t\t\t\tsecondLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t\t\n\t\t\t\t\t//loop through all the teams array and check if all their first race and second race times are not -1 to open the semi final race radio button\n\t\t\t\t\tfor(int i = 0; i < FestivalObject.teamsArray.size(); i++) {\n\t\t\t\t\t\t//check the teams first race time\n\t\t\t\t\t\tif(FestivalObject.teamsArray.get(i).getFirstRaceTime() == -1) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//check the teams second race time\n\t\t\t\t\t\telse if(FestivalObject.teamsArray.get(i).getSecondRaceTime() == -1) {\n\t\t\t\t\t\t\tbreak;\t//not all times are set so dont open the semi finals radio button\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//if the last index is equal to the teamsArray size +1 and the time != -1\n\t\t\t\t\t\telse if(i + 1 == FestivalObject.teamsArray.size() && FestivalObject.teamsArray.get(i).getSecondRaceTime() != -1) {\n\t\t\t\t\t\t\tSchedule.semiFinalsRadioButton.setEnabled(true);\n\t\t\t\t\t\t\tSemiFinalRaceGeneration.generateSemiFinalRaces(Schedule.panel2);\t//auto generate the semi finals when all is locked\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(secondRaceLockButton.getText() == \"Unlock\") {\n\t\t\t\t\ttimeSecondRaceInputField.setEditable(true);\n\t\t\t\t\tsecondRaceLockButton.setText(\"Lock\");\n\t\t\t\t\t\n//\t\t\t\t\tsecondLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tsecondRaceLockButton.setFont(FestivalObject.getFont());\n\t\tsecondRaceLockButton.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tsecondRaceLockButton.setBounds(0, 0, 100, 20);\n\t\tsecondRaceLockButton.setFocusable(false);\n\t\t\n\t\t//build the semiFinalRaceLockButton variable\n\t\tsemiFinalRaceLockButton.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//for the semi final race button click\n\t\t\t\tif(semiFinalRaceLockButton.getText() == \"Lock\") {\n\t\t\t\t\tKeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner();\t\t//remove focus from the text box\n\t\t\t\t\t\n\t\t\t\t\t//first commit the new text to get the corect value from the text field\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttimeSemiFinalRaceInputField.commitEdit();\n\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tsemiFinalRaceTime = Integer.parseInt((String)timeSemiFinalRaceInputField.getValue());\t//set the semiFinalRaceTime variable\n\t\t\t\t\ttimeSemiFinalRaceInputField.setEditable(false);\n\t\t\t\t\tsemiFinalRaceLockButton.setText(\"Unlock\");\n\t\t\t\t\t\n\t\t\t\t\t//check if the button was clicked enough times to change the time change flag\n//\t\t\t\t\tif(semiFinalLockButtonPressCount > 1) {\n//\t\t\t\t\t\tflagSemiFinalRaceTime.setText(\"*\");\t\t//set the time change flag\n//\t\t\t\t\t}\n//\t\t\t\t\tsemiFinalLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t\t\n\t\t\t\t\t//loop through all the teams array and check if all their semi final race times are not -1 to open the finals race radio button\n\t\t\t\t\tfor(int i = 0; i < FestivalObject.teamsArray.size(); i++) {\n\t\t\t\t\t\tif(FestivalObject.teamsArray.get(i).getSemiFinalRaceTime() == -1) {\n\t\t\t\t\t\t\tbreak;\t//not all times are set so dont open the finals radio button\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//if the last index is equal to the teamsArray size +1 and the time != -1\n\t\t\t\t\t\telse if(i + 1 == FestivalObject.teamsArray.size() && FestivalObject.teamsArray.get(i).getSemiFinalRaceTime() != -1) {\n\t\t\t\t\t\t\tSchedule.finalsRadioButton.setEnabled(true);\n\t\t\t\t\t\t\tFinalRaceGeneration.generateFinalRaces(Schedule.panel3);\t//generate the final races when all the semi finals are locked\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(semiFinalRaceLockButton.getText() == \"Unlock\") {\n\t\t\t\t\ttimeSemiFinalRaceInputField.setEditable(true);\n\t\t\t\t\tsemiFinalRaceLockButton.setText(\"Lock\");\n\t\t\t\t\tflagSemiFinalRaceTime.setText(\"*\");\n\t\t\t\t\t\n//\t\t\t\t\tsemiFinalLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tsemiFinalRaceLockButton.setFont(FestivalObject.getFont());\n\t\tsemiFinalRaceLockButton.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tsemiFinalRaceLockButton.setBounds(0, 0, 100, 20);\n\t\tsemiFinalRaceLockButton.setFocusable(false);\n\t\t\n\t\t//build the finalRaceLockButton variable\n\t\tfinalRaceLockButton.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//for the final race button click\n\t\t\t\tif(finalRaceLockButton.getText() == \"Lock\") {\n\t\t\t\t\tKeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner();\t\t//remove focus from the text box\n\t\t\t\t\t\n\t\t\t\t\t//first commit the new text to get the corect value from the text field\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttimeFinalRaceInputField.commitEdit();\n\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfinalRaceTime = Integer.parseInt((String)timeFinalRaceInputField.getValue());\t//set the finalRaceTime variable\n\t\t\t\t\ttimeFinalRaceInputField.setEditable(false);\n\t\t\t\t\tfinalRaceLockButton.setText(\"Unlock\");\n\t\t\t\t\t\n\t\t\t\t\t//check if the button was clicked enough times to change the time change flag\n//\t\t\t\t\tif(finalLockButtonPressCount > 1) {\n//\t\t\t\t\t\tflagFinalRaceTime.setText(\"*\");\t\t//set the time change flag\n//\t\t\t\t\t}\n//\t\t\t\t\tfinalLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t\t\n\t\t\t\t\t//loop through all the teams array and check if all their semi final race times are not -1 to open the finals race radio button\n\t\t\t\t\tfor(int i = 0; i < FestivalObject.teamsArray.size(); i++) {\n\t\t\t\t\t\tif(FestivalObject.teamsArray.get(i).getFinalRaceTime() == -1) {\n\t\t\t\t\t\t\tbreak;\t//not all times are set so dont open the finals radio button\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//if the last index is equal to the teamsArray size +1 and the time != -1\n\t\t\t\t\t\telse if(i + 1 == FestivalObject.teamsArray.size() && FestivalObject.teamsArray.get(i).getFinalRaceTime() != -1) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tArrayList<TeamObject> tm = new ArrayList<TeamObject>(FestivalObject.teamsArray);\t\t//duplicate teamsArray\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//calculate the place each team is in\n\t\t\t\t\t\t\t//sort the duplicated tm ArrayList based on the averagedRaceTime in ascending order before separating by category\n\t\t\t\t\t\t\t//this makes them stay sorted before separation\n\t\t\t\t\t\t\tCollections.sort(tm, new Comparator<TeamObject>() {\n\t\t\t\t\t\t\t\tpublic int compare(TeamObject o1, TeamObject o2) {\n\t\t\t\t\t\t\t\t\treturn String.format(\"%06d\", o1.getAveragedRaceTime()).compareTo(String.format(\"%06d\", o2.getAveragedRaceTime()));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//loop to set the place that the team is in\n\t\t\t\t\t\t\t//teams are sorted in order by best time right above this already\n\t\t\t\t\t\t\tfor(int j = 0; i< FestivalObject.teamsArray.size(); j++) {\n\t\t\t\t\t\t\t\tFestivalObject.teamsArray.get(j).setPlace(j + 1);\t\t//set the teams place\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\telse if(finalRaceLockButton.getText() == \"Unlock\") {\n\t\t\t\t\ttimeFinalRaceInputField.setEditable(true);\n\t\t\t\t\tfinalRaceLockButton.setText(\"Lock\");\n\t\t\t\t\t\n//\t\t\t\t\tfinalLockButtonPressCount++;\t//add one to the button click count\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tfinalRaceLockButton.setFont(FestivalObject.getFont());\n\t\tfinalRaceLockButton.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tfinalRaceLockButton.setBounds(0, 0, 100, 20);\n\t\tfinalRaceLockButton.setFocusable(false);\n\t\t\n\t\t//build the time change flag labels\n\t\tflagFirstRaceTime.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tflagFirstRaceTime.setFont(FestivalObject.getFont());\n\t\t\n\t\tflagSecondRaceTime.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tflagSecondRaceTime.setFont(FestivalObject.getFont());\n\t\t\n\t\tflagSemiFinalRaceTime.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tflagSemiFinalRaceTime.setFont(FestivalObject.getFont());\n\t\t\n\t\tflagFinalRaceTime.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tflagFinalRaceTime.setFont(FestivalObject.getFont());\n\t\t\n\t\t//set up the place labels\n\t\tfirstRacePlaceLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tfirstRacePlaceLabel.setFont(FestivalObject.getFont());\n\t\t\n\t\tsecondRacePlaceLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tsecondRacePlaceLabel.setFont(FestivalObject.getFont());\n\t\t\n\t\tsemiFinalRacePlaceLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tsemiFinalRacePlaceLabel.setFont(FestivalObject.getFont());\n\t\t\n\t\tfinalRacePlaceLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tfinalRacePlaceLabel.setFont(FestivalObject.getFont());\n\t}", "public ArrayList<CollegeFootballTeam> getTeamList();", "private LCSRevisableEntity getSAPMaterialMasterForSeason()\n\t\t\tthrows WTException {\n\t\t\n\t\tLCSLog.debug(CLASSNAME+\"getSAPMaterialMasterForSeason, calling\");\n\t\tLCSRevisableEntity master = null;\n\t\t// get the flextype for sap master\n\t\tFlexType sapmastertype = FlexTypeCache\n\t\t\t\t.getFlexTypeFromPath(LFIBTConstants.ibtMasterPath);\n\t\tString flextypeIdmaster = sapmastertype.getTypeIdPath();\n\t\t// get season key from sap master\n\t\tFlexTypeAttribute sapmasterseasonAtt = sapmastertype\n\t\t\t\t.getAttribute(LFIBTConstants.IBT_MASTER_SEASON_KEY);\n\t\t// get att value for season\n\t\tString seasonVarName = sapmasterseasonAtt.getVariableName();\n\t\t// initialize pps\n\t\tPreparedQueryStatement preparedquerystatement = new PreparedQueryStatement();\n\t\t// add table name criteria\n\t\tpreparedquerystatement.appendFromTable(revisableEntityTable);\n\t\t// select the column for the which the query has to be formulated.\n\t\t// Branch Id in this case.\n\t\tpreparedquerystatement.appendSelectColumn(revisableEntityTable,\n\t\t\t\t\"BRANCHIDITERATIONINFO\");\n\t\tpreparedquerystatement.appendAndIfNeeded();\n\t\t// add the latest iteration criteria\n\t\tpreparedquerystatement.appendCriteria(new Criteria(\n\t\t\t\trevisableEntityTable, \"LATESTITERATIONINFO\", \"1\", \"=\"));\n\t\t// add the criteria for flextypeidpath\n\t\tpreparedquerystatement.appendAndIfNeeded();\n\t\t// add the criteria for selection. we want the objects for which\n\t\t// flextypeidpath matches\n\t\t// with that of the flextypeIdmaster\n\t\tpreparedquerystatement.appendCriteria(new Criteria(\n\t\t\t\trevisableEntityTable, \"FLEXTYPEIDPATH\", flextypeIdmaster,\n\t\t\t\tCriteria.EQUALS));\n\t\tpreparedquerystatement.appendAndIfNeeded();\n\t\t// add the criteria for selection. we want the objects for which the\n\t\t// season version ID\n\t\t// matches with the current season version id\n\t\tpreparedquerystatement.appendCriteria(new Criteria(\n\t\t\t\trevisableEntityTable, seasonVarName, seasonVersionId,\n\t\t\t\tCriteria.EQUALS));\n\t\tCollection<FlexObject> results = LCSQuery.runDirectQuery(\n\t\t\t\tpreparedquerystatement).getResults();\n\n\t\tLCSLog.debug(\" Query results: -- \" + results);\n\n\t\tFlexObject revMaster = null;\n\t\tif (results.size() == 1) {\n\t\t\tIterator<FlexObject> iter = results.iterator();\n\t\t\trevMaster = iter.next();\n\t\t\tmaster = (LCSRevisableEntity) LCSQuery\n\t\t\t\t\t.findObjectById(\"VR:com.lcs.wc.foundation.LCSRevisableEntity:\"\n\t\t\t\t\t\t\t+ revMaster\n\t\t\t\t\t\t\t\t\t.getString(\"LCSREVISABLEENTITY.BRANCHIDITERATIONINFO\"));\n\n\t\t}\n\t\telse if (results.size() > 1) {\n\n\t\t\tthrow new WTException(\n\t\t\t\t\t\"ERROR OCCURRED!!!More than one revisable entities containing same season reference is not allowed\");\n\t\t}\n\n\t\treturn master;\n\n\t}", "public void setTeam(Team team) {\r\n\t\tthis.team = team;\r\n\t}", "@Override\r\n\tpublic void reviewOfPastYear(ExemptTeamMember exemptTeamMember) {\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void updateProjectTeam(ProjectTeamBean bean) {\n\t\t\n\t}", "@RequestMapping(value = \"/list\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<SeasonVO>> getSeasons() {\n\t\treturn new ResponseEntity<List<SeasonVO>>(seasonDAO.list(), HttpStatus.OK);\n\t\t//return seasonDAO.list();\n\t}", "public interface TeamBLS {\n\n /**\n * 获取TeamListActivity显示内容\n *\n * @param context\n * @return\n */\n public List<TeamConferenceVo> getTeamConference(Context context);\n\n /**\n * 获取TeamActivity的顶层显示内容\n *\n * @param context\n * @param abbr\n * @return\n */\n public TeamInfoVo getTeamInfo(Context context,String abbr);\n\n public List<TeamSeasonInfoVo> getTeamSeasonTotal(Context context,String abbr);\n}", "public void setTeam(String team) {\r\n\t\tTeam = team;\r\n\t}", "@Override\n\tpublic boolean getIsTeamMatch() {\n\t\treturn _esfTournament.getIsTeamMatch();\n\t}", "private void save() {\n Saver.saveTeam(team);\n }", "public static void commissionerTools(League theLeague, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Commissioner Tools---\");\r\n\t\tSystem.out.println(\"1 - Edit Scores\");\r\n\t\tSystem.out.println(\"2 - Edit Standings\");\r\n\t\tSystem.out.println(\"3 - Review Accepted Trade\");\r\n\t\tSystem.out.println(\"0 - Return to Team Menu\");\r\n\r\n\t\tswitch (Input.validInt(0, 3, keyboard)) {\r\n\t\tcase 1:\r\n\t\t\teditScores(theLeague, keyboard);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\teditStandings(theLeague, keyboard);\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tif (theLeague.getPendingTrade().isEmpty()) {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(\"--There are no accepted trades pending--\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treviewAcceptedTrade(theLeague, keyboard);\r\n\t\t\tbreak;\r\n\t\tcase 0:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "private void editTimetable(ArrayList<Subject> timetable, Intent result) {\n\t\tSubject.sortTimetable(timetable, getIntent().getStringExtra(\"semester\"));\n\t\tArrayList<String> ch = new ArrayList<>();\n\t\tch.add(\"\");\n\t\tfor (Subject s : timetable) s.setItems(ch);\n\t\tArrayList<Subject> subjects;\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tsubjects = new ArrayList<>();\n\t\t\tfor (Subject s : timetable) {\n\t\t\t\tif (s.getDay() == i) {\n\t\t\t\t\tsubjects.add(s);\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult.putExtra(\"subjects\" + i, subjects);\n\t\t}\n\t}", "@Test\n public void test_access_to_modify_team_success() {\n try {\n Assert.assertTrue(authBO.hasAccessToModifyTeam(1, 1));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "@Override\n\tpublic void setHomeTeam() {\n\t\t\n\t}", "public int getTeam() {\n return team_;\n }", "@Override\n\tpublic void setEsfTournamentId(long esfTournamentId) {\n\t\t_esfTournament.setEsfTournamentId(esfTournamentId);\n\t}", "public boolean canUpdateCalendarDayOff(CalendarDayOff calendarDayOff) {\nreturn true;\n}", "public boolean hasRefSeason() {\n return refSeason_ != null;\n }", "@Override\r\n\tpublic boolean updateReviewOfPastYearDetails(ExemptTeamMember exemptTeamMember, int year) {\n\t\treturn exemptTeamMemberDAO.updateReviewOfPastYearDetails(exemptTeamMember,year);\r\n\t}", "public String updateTimesheetRow() {\n\t\tboolean hasPlaceholder = false;\n\t\tTimesheetRow tempTsr = null;\n\t\tfor (TimesheetRow ts : timesheetRowList) {\n\t\t\tif (!(ts.getCompPrimaryKey().getProjectId()==0)) {\n\t\t\t\tif(service.merge(ts) == false) {\n\t\t\t\t\ttempTsr = ts;\n\t\t\t\t};\n\t\t\t}else {\n\t\t\t\thasPlaceholder = true;\n\t\t\t}\n\t\t}\n\t\tif(tempTsr != null) {\n\t\t\t//timesheetRowList.remove(tempTsr);\n\t\t}\n\t\tif (!hasPlaceholder) {\n\t\t\ttimesheetRowList.add(new TimesheetRow(currentTimesheet.getTimesheetId())); //this breaks the program somehow\n\t\t}\n\t\t//return \"CurrentTimesheetView\"; //after add/update, redirect to view page\n\t\treturn \"\";\n\t}", "public String getTeam() {\n return team;\n }", "public String getTeamId() {\n\t\treturn teamId;\n\t}", "public String getTeamId() {\n\t\treturn teamId;\n\t}", "public static void set2v2Teams(int gameModeSelected, int numPlayers){\n\t\tint randomPlayer1;\n\t\tint randomPlayer2;\n\t\t\n\t\tif(gameModeSelected==2) {\n\t\t\tRandom playerGen =new Random();\n\t\t\trandomPlayer1=playerGen.nextInt(numPlayers)+1;\n\t\t\tRandom playerGen2 =new Random();\n\t\t\trandomPlayer2=playerGen2.nextInt(numPlayers)+1;\n\t\t\tif(randomPlayer1!=randomPlayer2) {\n\t\t\t\tif(randomPlayer1==1) {\n\t\t\t\t\tteam1[0]=\"Player 1\";\n\t\t\t\t\tif(randomPlayer2==2) {\n\t\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(randomPlayer2==3) {\n\t\t\t\t\t\tteam1[1]=\"Player 3\";\n\t\t\t\t\t\tteam2[0]=\"Player 2\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\tteam1[1]=\"Player 4\";\n\t\t\t\t\tteam2[0]=\"Player 2\";\n\t\t\t\t\tteam2[1]=\"Player 3\";\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(randomPlayer1==2){\n\t\t\t\t\tteam1[0]=\"Player 2\";\n\t\t\t\t\tif(randomPlayer2==1) {\n\t\t\t\t\t\tteam1[1]=\"Player 1\";\n\t\t\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(randomPlayer2==3) {\n\t\t\t\t\t\tteam1[1]=\"Player 3\";\n\t\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\tteam1[1]=\"Player 4\";\n\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\tteam2[1]=\"Player 3\";\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\telse if(randomPlayer1==3){\n\t\t\t\t\tteam1[0]=\"Player 3\";\n\t\t\t\t\tif(randomPlayer2==1) {\n\t\t\t\t\t\tteam1[1]=\"Player 1\";\n\t\t\t\t\t\tteam2[0]=\"Player 2\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(randomPlayer2==2) {\n\t\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\tteam1[1]=\"Player 4\";\n\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\tteam2[1]=\"Player 2\";\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tteam1[0]=\"Player 4\";\n\t\t\t\t\tif(randomPlayer2==1) {\n\t\t\t\t\t\tteam1[1]=\"Player 1\";\n\t\t\t\t\t\tteam2[0]=\"Player 2\";\n\t\t\t\t\t\tteam2[1]=\"Player 3\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(randomPlayer2==2) {\n\t\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\t\tteam2[1]=\"Player 3\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\tteam1[1]=\"Player 3\";\n\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\tteam2[1]=\"Player 2\";\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}//end of if generated nums aren't equal\n\t\t\t\n\t\t\telse{ \n\t\t\t\tif(randomPlayer1==1) {\n\t\t\t\tteam1[0]=\"Player 1\";\n\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t}\n\t\t\t\telse if(randomPlayer1==2) {\n\t\t\t\t\tteam1[0]=\"Player 2\";\n\t\t\t\t\tteam1[1]=\"Player 1\";\n\t\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\telse if(randomPlayer1==3) {\n\t\t\t\t\tteam1[0]=\"Player 3\";\n\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\tteam2[0]=\"Player 1\";\n\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tteam1[0]=\"Player 4\";\n\t\t\t\t\tteam1[1]=\"Player 2\";\n\t\t\t\t\tteam2[0]=\"Player 3\";\n\t\t\t\t\tteam2[1]=\"Player 4\";\n\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Team 1 is \" + team1[0] + \" and \" + team1[1]);\n\t\t\tSystem.out.println(\"Team 2 is \" + team2[0] + \" and \" + team2[1]);\n\t\t}//end of if right gameMode\n\t}", "public int getsetsWonAwayTeam() \n {\n return setsWonAT;\n }", "public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }", "public void setStage(){\n if(id < 3)\n stage = 1;\n if(id >= 3 && id < 6)\n stage = 2;\n if(id >= 6 && id < 9)\n stage = 3;\n if(id >= 9)\n stage = 4;\n }" ]
[ "0.55795103", "0.5524678", "0.53286463", "0.52891016", "0.51674867", "0.51602495", "0.51425004", "0.5141974", "0.5083585", "0.5074465", "0.49852914", "0.49434686", "0.49419254", "0.494105", "0.4933726", "0.49332783", "0.49226385", "0.49218953", "0.48824418", "0.48714834", "0.48679268", "0.48679075", "0.4862623", "0.48592675", "0.48521525", "0.48513484", "0.48489583", "0.48421773", "0.48417863", "0.4835453", "0.48305297", "0.48234445", "0.4814507", "0.48125175", "0.48052204", "0.47793868", "0.477694", "0.47743958", "0.4770165", "0.47620198", "0.47128695", "0.47117528", "0.47050062", "0.4704986", "0.4704986", "0.47015208", "0.46804473", "0.46795496", "0.46772438", "0.46730494", "0.46673858", "0.46673438", "0.4662906", "0.4655615", "0.4653492", "0.46492472", "0.46465403", "0.4644667", "0.46384454", "0.46378344", "0.46357155", "0.46354946", "0.46351802", "0.46314594", "0.4630329", "0.4614069", "0.46127012", "0.46077177", "0.4607357", "0.46023256", "0.46012658", "0.45938098", "0.45908722", "0.4589983", "0.45868835", "0.45855647", "0.45848542", "0.45800182", "0.45699427", "0.45625132", "0.4558361", "0.45523742", "0.45522422", "0.4550191", "0.455019", "0.45468143", "0.45437", "0.45402694", "0.45395756", "0.45382315", "0.45361835", "0.45330766", "0.45318884", "0.45300472", "0.4526784", "0.4526784", "0.45231715", "0.4519766", "0.45122665", "0.45102522" ]
0.55428934
1
Only available to the commissioner once the accepted trade has been processed, the message alerting the league to the trade can be removed.
public static void reviewAcceptedTrade(League theLeague, Scanner keyboard) { System.out.println(""); System.out.println("---Accepted Trade---"); System.out.println(""); System.out.println(theLeague.getPendingTrade()); System.out.println(""); System.out.println("-Has this trade been processed?-"); System.out.println("1 - Yes"); System.out.println("2 - No"); if (Input.validInt(1, 2, keyboard) == 1) { theLeague.setPendingTrade(""); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void clientCompanyLeve(Messages.MarketClientCompanyQuit msg) {\n isLeaving = true;\n }", "@Override\r\n public void cancelMsg() {\n System.out.println(\"Transaction has been cancelled for gas pump #1..\");\r\n }", "public void youWinByAbandonment() {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEndedByAbandonment(\"YOU WON BECAUSE YOUR OPPONENTS HAVE ABANDONED!!\");\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending ended by abandonment error\");\n }\n }", "private static void checkArrivedOrderRemainder_RemoveArrivedOrder(\n StockDataBase dataBase, Order arrivedOrder) {\n if (arrivedOrder.getOrderDirection() == OrderDirection.BUY) {\n if (dataBase.getAwaitingBuyOrders().getCollection()\n .remove(arrivedOrder)) {\n MessagePrint.println(MessagePrint.Stream.OUT,\n Message.Out.StockDataBase\n .printOrderPerformedInItsEntirety());\n // FxDialogs.showInformation(\"INFO\", Message.Out.StockDataBase\n // .printOrderPerformedInItsEntirety());\n } else {\n MessagePrint.println(MessagePrint.Stream.ERR,\n new BuildError().getMessage() +\n Message.Err.Order.removeFail());\n FxDialogs.showError(\"ERROR\", new BuildError().getMessage() +\n Message.Err.Order.removeFail());\n }\n } else if (arrivedOrder.getOrderDirection() == OrderDirection.SELL) {\n\n if (dataBase.getAwaitingSellOrders().getCollection()\n .remove(arrivedOrder)) {\n MessagePrint.println(MessagePrint.Stream.OUT,\n Message.Out.StockDataBase\n .printOrderPerformedInItsEntirety());\n // FxDialogs.showInformation(\"INFO\", Message.Out.StockDataBase\n // .printOrderPerformedInItsEntirety());\n } else {\n MessagePrint.println(MessagePrint.Stream.ERR,\n new BuildError().getMessage() +\n Message.Err.Order.removeFail());\n FxDialogs.showError(\"ERROR\", new BuildError().getMessage() +\n Message.Err.Order.removeFail());\n }\n }\n }", "public void cancelTradeOffer()\n\t{\n\t\tm_trade.cancelOffer(this);\n\t}", "@Override\r\n\t\tpublic void action() {\n MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.ACCEPT_PROPOSAL);\r\n MessageTemplate mt2 = MessageTemplate.MatchPerformative(ACLMessage.PROPOSE);\r\n ACLMessage msg = myAgent.receive(mt);\r\n //If it is a ACCEPT_PROPOSAL, the seller sell the book to the buyer (execpt if the book if not here anymore)\r\n if (msg != null) {\r\n // ACCEPT_PROPOSAL Message received. Process it\r\n title = msg.getContent();\r\n ACLMessage reply = msg.createReply();\r\n\r\n Integer price = (Integer) catalogue.remove(title);\r\n if (price != null) {\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(String.valueOf(price));\r\n System.out.println(title+\" sold to agent \"+msg.getSender().getName());\r\n }\r\n else {\r\n // The requested book has been sold to another buyer in the meanwhile .\r\n reply.setPerformative(ACLMessage.FAILURE);\r\n reply.setContent(\"not-available\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n //If it is a new PROPOSE, the buyer is trying to negociate.\r\n else {\r\n ACLMessage msg2 = myAgent.receive(mt2);\r\n if(msg2 != null){\r\n ACLMessage reply = msg2.createReply();\r\n //If the price of the buyer is OK for the seller according to his tolerance, the transaction is made\r\n if(((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) <= tolerance){\r\n System.out.println(myAgent.getLocalName() + \" say : OK, let's make a deal\");\r\n updateCatalogue(title, Integer.parseInt(msg2.getContent()));\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(msg2.getContent());\r\n }\r\n //Else, the seller accept to negociate, he up his tolerance and ask the buyer to up his real price\r\n else{\r\n //Send a REQUEST Message to negociate with the buyer\r\n reply.setPerformative(ACLMessage.REQUEST);\r\n //Up the tolerance by *change*\r\n tolerance += change;\r\n reply.setContent(String.valueOf(change));\r\n System.out.println(myAgent.getLocalName() + \" say : Let's up your real price while I up my tolerance (\" + ((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) + \" < \" + tolerance + \")\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n else{\r\n block();\r\n }\r\n }\r\n\t\t}", "public void declineInvite(String player) {\r\n connection.declineInvite(player);\r\n }", "void rejectNewOrders();", "public void cmdCancelGame(User teller, Player player) {\n Game game = tournamentService.cancelGame(player);\n tournamentService.flush();\n if (game == null) {\n command.tell(teller, \"Sorry, player \\\"{0}\\\" was not associated wtih any boards.\", player);\n } else {\n command.tell(teller, \"Okay, game \\\"{0} - {1} {2}\\\" is no longer scheduled.\", game.boardNumber, game.whitePlayer, game.blackPlayer);\n command.sendCommand(\"-notify {0}\", game.whitePlayer);\n command.sendCommand(\"-notify {0}\", game.blackPlayer);\n command.spoof(monitorRole, \"-notify {0}\", game.whitePlayer);\n command.spoof(monitorRole, \"-notify {0}\", game.blackPlayer);\n }\n }", "public Object dismissTrade() {\n return client.sendRpcAndWait(SERVICE, \"dismissTrade\");\n }", "@Override\n public void contractCompletedMethod(Messages.CompletedContract msg) {\n runningContracts.remove(msg.contID);\n if (isLeaving && runningContracts.size() == 0) {\n stop();\n }\n }", "@Override\n public void run() {\n try {\n pendingConfirms.remove(target.getName(),sender.getName());\n } catch (Exception ignored) {/*player has already confirmed*/}\n }", "public void declineTransaction(CommandOfService c) throws Exception {\n // We give back the points to the user\n Service s = c.getService();\n User u = c.getOwner();\n if(s.getTypeService() == 0){\n userDAO.addPoints(s.getCost(),u);\n }\n DAO.declineTransaction(c);\n FacadeNotification facadeNotification = FacadeNotification.getInstance();\n String title = \"Transaction declined!\";\n String desc = \"Your command for: \"+s.getTitle()+\" has been declined.\\n\";\n try {\n facadeNotification.createNotification(u.getIdUser(),title,desc);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void cancelInvitionUser() {\n\n }", "public void announceElimination(String loserName){\n currentMessage = loserName;\n gameState = GameState.ELIMINATION;\n notifyObservers();\n currentMessage = \"\";\n }", "public void lance() {\n\t\tthis.laRequete.ecrireMessage(\"202\",\" Commande Non implementee\"); //502 ou 202?\n\t\tthis.laRequete.ecrireLog(\"Commande Non implementee\");\n\t}", "@Override\r\n\tpublic void excluir(Telefone vo) throws Exception {\n\t\t\r\n\t}", "void sendCancelMessage();", "void notifyReject(final TradeInstruction instruction);", "public void removePlayer(String name) {\n\t\tUser user = users.get(userTurn);\n\t\tFootballPlayer player = market.findPlayer(name);\n\t\tdouble marketValue = player.getMarketValue();\n\t\t\n\t\tif (tmpTeam.size() > 0) {\n\t\t\tuser.updateBudget(marketValue, \"+\");\n\t\t\ttmpTeam.removePlayer(name);\n\t\t}\n\t\tSystem.out.println(\"budget after sell\" + user.getBudget());\n\t}", "@Override\n\tpublic void disinvite(Party party) throws CTPException {\n\t\t\n\t}", "void rejectOrder(String orderId);", "void confirmRealWorldTrade(IUserAccount user, ITransaction trans);", "default void onCancel(MessageCreateEvent event, Message message) {\n message.delete();\n event.getMessage().delete();\n }", "public void processRemoveStation() {\n AppYesNoDialogSingleton dialog = AppYesNoDialogSingleton.getSingleton();\n \n // POP UP THE DIALOG\n dialog.show(\"Remove Station\", \"Are you sure you want to remove this station?\");\n \n // DO REMOVE LINE \n dataManager.removeStation(); \n }", "protected boolean processPlayerDeclined(int gameNum, String playerName, String offer){\n return false;\n }", "@Override public void clientDeclineIncomingGame(Rental rental)\r\n throws RemoteException, SQLException {\r\n gameListClientModel.clientDeclineIncomingGame(rental);\r\n }", "private void removePlayerFromLobby() {\n\n //Added Firebase functionality assuming var player is the player who wants to leave the game.\n }", "private LoanProtocol ProcessTransferAnswer(LoanProtocol protocol)\n\t{\n\t\t// if result in the protocol indicates transfer is accepted by target\n\t\t// bank, then remove loan from the current bank\n\t\tif (protocol.getResult())\n\t\t{\n\t\t\tif (m_server.removeLoan(protocol.getLoanInfo()))\n\t\t\t{\n\t\t\t\tm_lock.countDown();\n\t\t\t\tm_lock = null;\n\t\t\t\tprotocol.setType(messageType.Commit);\n\t\t\t}\n\t\t\t// if something wrong happened during remove loan... then we send\n\t\t\t// roll back message to the other server\n\t\t\telse\n\t\t\t{\n\t\t\t\tprotocol.setType(messageType.RollBack);\n\t\t\t}\n\t\t}\n\n\t\treturn protocol;\n\t}", "public void onRemoveParticipant() {\n Participant participant = outputParticipants.getSelectionModel().getSelectedItem();\n\n if (participant == null) {\n AlertHelper.showError(LanguageKey.ERROR_PARTICIPANT_NULL, null);\n return;\n }\n\n if (controller.removeParticipant(participant)) {\n return;\n }\n\n AlertHelper.showError(LanguageKey.ERROR_PARTICIPANT_REMOVE, null);\n }", "public void removeReceived() {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeReceived()\" );\n Via via=(Via)sipHeader;\n via.removeParameter(Via.RECEIVED);\n }", "public void notifyCancel() {\n Player senderPlayer = this.getToTeleport().getPlayerReference(Player.class),\n targetPlayer = this.getTarget().getPlayerReference(Player.class);\n\n if (senderPlayer == null || targetPlayer == null) {\n return;\n }\n\n MainData.getIns().getMessageManager().getMessage(\"TPA_CANCELLED\").sendTo(senderPlayer);\n MainData.getIns().getMessageManager().getMessage(\"TPA_SELF_CANCELLED\").sendTo(targetPlayer);\n\n }", "private void popCancellationNotification(Passenger p) {\n Seat s = p.getSeat();\n int row = s.getRow();\n int col = s.getCol();\n System.out.printf(\"Successfully canceled seat %d%s for %s.\\n\",\n row, convertSeatColToString(col),p.getName());\n }", "void unsetIssued();", "public String cancel() {\n endConversation();\n return CANCEL_OUTCOME_ID;\n }", "public DiscardLeaderCardMessage(LeaderCard choice) {\n this.choice = choice;\n }", "public void cancelCard() {}", "public void requestcanceled() {\n\n requestcancelcheck = true;\n\n String diatitle = \"Request cancelled.\";\n String msg = \"Request cancelled by Rider.\";\n\n marker.setEnabled(false);\n // mGoogleMap.clear();\n fullbutton.setVisibility(View.GONE);\n usercheck = false;\n touch.setVisibility(View.GONE);\n marker.setVisibility(View.INVISIBLE);\n checkonclick = false;\n timercheck = true;\n whilecheck = true;\n accheck = true;\n receivecheck = true;\n\n acc1 = acc;\n\n registerReceiver(mHandleMessageReceiver, new IntentFilter(Config.DISPLAY_MESSAGE_ACTION));\n dialogshow(diatitle, msg);\n\n }", "public void remove()\n {\n domain.removeParticipant(participant);\n }", "void disconnectedPlayerMessage(String name);", "private CancelMessage() {\n initFields();\n }", "@Override\n public void handleMessage(Message message) {\n switch (message.what) {\n case Flinnt.SUCCESS:\n stopProgressDialog();\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"SUCCESS_RESPONSE : \" + message.obj.toString());\n mAdapter.remove(courseID);\n // Delete Item from offline database\n Helper.showToast(context.getString(R.string.successfully_deleted), Toast.LENGTH_SHORT);\n break;\n\n case Flinnt.FAILURE:\n stopProgressDialog();\n if (LogWriter.isValidLevel(Log.INFO))\n LogWriter.write(\"FAILURE_RESPONSE : \" + message.obj.toString());\n if (((WishResponse) message.obj).errorResponse != null) {\n Helper.showAlertMessage(WishlistActivity.this, \"Error\", ((WishResponse) message.obj).errorResponse.getMessage(), \"CLOSE\");\n }\n\n break;\n default:\n super.handleMessage(message);\n }\n }", "@Override\n public void onClick(View v) {\n\n Message msg = new Message();\n msg.what = DeliveryActivity.SHOW_ERROR_MESSAGE_CANCEL;\n Map<String, Object> map = new HashMap<String, Object>();\n map.put(\"errorMsg\", \"请在取消订单之前,与用户进行沟通,避免不必要的纠纷\");\n map.put(\"odi\", odi);\n map.put(\"refund_status\", 2);\n msg.obj = map;\n handler.sendMessage(msg);\n\n }", "public void leave() {\n FacesContext fc = FacesContext.getCurrentInstance();\n try {\n UbikeUser current = (UbikeUser) BaseBean.getSessionAttribute(\"user\");\n ExternalContext exctx = fc.getExternalContext();\n HttpServletRequest request = (HttpServletRequest) exctx.getRequest();\n long groupId = Long.parseLong(request.getParameter(\"groupId\"));\n long userId = current.getId();\n MemberShip memberShip = memberShipService.getMemberShip(userId, groupId);\n\n if (memberShip == null) {\n fc.addMessage(\"join:join_status\", new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"You are not member of this group yet\",\n \"You are not member of this group yet\"));\n return;\n }\n\n memberShipService.remove(memberShip.getId());\n fc.addMessage(\"join:join_status\", new FacesMessage(FacesMessage.SEVERITY_INFO,\n \"You leaved the group successfully!\",\n \"You leaved the group successfully!\"));\n\n List<MemberShip> members = (List<MemberShip>) BaseBean.getSessionAttribute(\"tmp_members\");\n members.remove(memberShip);\n\n } catch (Exception exp) {\n logger.log(Level.SEVERE, \"An error occurs while leaving group\", exp);\n fc.addMessage(\"join:join_status\", new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"An error occurs while processing your request\",\n \"An error occurs while processing your request\"));\n }\n }", "Trade removeTrade(String tradeId) throws OrderBookTradeException;", "public void fundClosed(int time, int yourRevenue, int partnerRevenue) {\n /* Do nothing */\n }", "@Override\n public void unInvoke() {\n final Environmental item = affected;\n if (item == null)\n return;\n final Room room = CMLib.map().roomLocation(item);\n if ((canBeUninvoked()) && (room != null))\n room.showHappens(CMMsg.MSG_OK_VISUAL, item, L(\"<S-YOUPOSS> flaming sword is consumed!\"));\n super.unInvoke();\n if ((canBeUninvoked()) && (room != null)) {\n room.recoverRoomStats();\n item.destroy();\n }\n }", "protected void onDiscard() {\r\n this.setActive(false);\r\n }", "private void botTrading(){\n if(game.isCardPositive(game.getHighestSharePriceStock())){\n int numShares = player.getFunds()/(game.getHighestSharePriceStock().getSharePrice()+3);\n player.getShares().set(game.getIndex(game.getHighestSharePriceStock()), player.getShares().get(game.getIndex(game.getHighestSharePriceStock())) + numShares);\n player.setFunds(-numShares*(game.getHighestSharePriceStock().getSharePrice()+3));\n }\n }", "void acceptTrade(boolean accept);", "@Override\r\n\tpublic void acceptTrade(boolean willAccept) {\n\t\t\r\n\t}", "public void reject() {\n rejectBus.add(applicantQueue.dequeue());\n }", "static void confirmUnSubscribe_C(Messenger messenger, Response_e response)\n {\n sendToClient( messenger, Request_e.Request_UnSubscribe_Event_C_en.valueOf(), response, null );\n }", "void cancelProduction();", "private void removePlayerFromTheGame(){\n ServerConnection toRemove = currClient;\n\n currClient.send(\"You have been removed from the match!\");\n updateCurrClient();\n server.removePlayerFromMatch(gameID, toRemove);\n\n if ( toRemove == client1 ){\n this.client1 = null;\n }\n else if ( toRemove == client2 ){\n this.client2 = null;\n }\n else {\n client3 = null;\n }\n gameMessage.notify(gameMessage);\n\n if ( (client1 == null && client2 == null) || (client2 == null && client3 == null) || (client1 == null && client3 == null) ){\n gameMessage.notify(gameMessage);\n }\n if ( liteGame.isWinner() ) endOfTheGame = true;\n playerRemoved = true;\n }", "@SagaEventHandler(associationProperty = \"transferId\")\n public void on(MoneyTransferCancelledEvent event) {\n end();\n }", "FlowRemoveReason reason();", "public void cancelFlight(){\n \n Flight flightObject = FlightRepository.getFlight(this.number);\n if (flightObject == null){\n System.out.println(\"Please select a valid flight number\");\n }\n flightObject.removePassengerSeat(this.PassengerID);\n }", "@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }", "@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }", "@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }", "public void markUnsold(){\n\n myMaxRejectCountCount--;\n }", "public void decreaseVolume() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.DECREASE_VOLUME));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.DECREASE_VOLUME) {\n isDecreasingVolume = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n };\n }", "protected void processPlayerDeparted(String name) {\n Player player = tournamentService.findPlayer(name);\n if (player == null) {\n alertManagers(\"Departing player {0} is on my notify list, but I don''t have him in the tournament roster.\", name);\n return;\n }\n player.setState(PlayerState.OFFLINE);\n Game game = tournamentService.findPlayerGame(player);\n if (!game.status.isFinished()) {\n tellManagers(\"{0} departed\", name);\n }\n }", "public void mo37873b() {\n if (C13262e.this.f34200n.onRequest(this.f34217f, this.f34218g)) {\n try {\n C13262e.this.f34208v.mo38156a(this.f34217f, C13256a.CANCEL);\n synchronized (C13262e.this) {\n C13262e.this.f34210x.remove(Integer.valueOf(this.f34217f));\n }\n } catch (IOException unused) {\n }\n }\n }", "void removeInvitedTrans(ITransaction transaction, String userId);", "public void rejectInvite(UserBean possibleOpponent)\n\t{\n\t\tSocket controlSocket;\n\t\ttry {\n\t\t\tcontrolSocket = new Socket(possibleOpponent.getIpAddress(), Model.controlDataSocketNumber);\n\t\t\tObjectOutputStream toPeer = new ObjectOutputStream(controlSocket.getOutputStream());\n\t\t\tClientMessage c = new ClientMessage();\n\t\t\tc.setCommand(\"REJECT\");\n\t\t\tc.setUser(new UserBean(this.hostName, this.userName, this.ipAddress));\n\t\t\tSystem.out.println(\"Rejecting invite\");\n\t\t\t\n\t\t\ttoPeer.writeObject(c);\n\t\t\n\t\t\tcontrolSocket.close();\n\t\t\t\n\t\t} catch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "void cancelOrder(String orderKey);", "public void close()\r\n {\r\n OrderManager manager = myOrderManagerRegistry.getOrderManager(ourKey);\r\n manager.deactivateParticipant(ourKey);\r\n }", "java.lang.String getBrokerCommission();", "@Override\n public void receiveMessage(AgentID sender, Action action)\n {\n super.receiveMessage(sender, action);\n\n // update the value of Care_Value、Reluctance、Agreement_Value every ten rounds\n if (getTimeLine() instanceof DiscreteTimeline) {\n DiscreteTimeline discreteTimeline = (DiscreteTimeline)getTimeLine();\n int cRound = discreteTimeline.getRound();\n if (cRound % 10 == 0) {\n\n // care_value increase 4% every ten rounds\n Care_Value = Care_Value * (1 + 0.04);\n if (Care_Value > 0.72) {\n Care_Value = 0.72;\n }\n\n // reluctance decrease 4% every ten rounds\n Reluctance = Reluctance * (1 - 0.06);\n if (timeline.getTime() < 7 && Reluctance < 0.9) {\n Reluctance = 0.9;\n }\n\n List<BidDetails> allBids = new ArrayList<>(feasibleBids);\n // find a common set for all opponent\n Set<BidDetails> commonBids = opponentModelInterface.queryCommonBestBidsSet(allBids, Number_of_Bids);\n List<BidDetails> commonBidsList = new ArrayList<>(commonBids);\n // sort the common set\n Collections.sort(commonBidsList);\n // AV = Utility(BidBest) * Reluctance\n Agreement_Value = (commonBidsList.get(commonBidsList.size() - 1).getMyUndiscountedUtil()) * Reluctance;\n if (Agreement_Value > 0.85) {\n Agreement_Value = 0.85;\n }\n\n if (Agreement_Value < Minimum_Offer_Threshold * (3 - Math.pow(2, timeline.getTime()))) {\n Agreement_Value = Minimum_Offer_Threshold * (3 - Math.pow(2, timeline.getTime()));\n }\n }\n }\n\n if (action instanceof Inform) {\n // receive message first time, update the number of opponent\n opponentModelInterface = new OpponentModelManager(getNumberOfParties());\n }else if (action instanceof Offer) {\n // save the last offer\n lastOffer = ((Offer) action).getBid();\n // update opponent model by new bid from opponent\n opponentModelInterface.handleBidFromSender(sender.toString(), lastOffer, getDomain());\n }\n }", "@Override\n\tpublic void handle(ACLMessage message) {\n\t\tif(message != null) {\n\t\t\ttry {\n\t\t\t\tLogger.log(LogLevel.DEBUG, \"%s ArePartsAvailableInTimeResponse%n\", agent.getLocalName());\n\t\t\t\t\n\t\t\t\tBlackboardClient productStepBBClient = agent.getProductStepBBClient();\n\t\t\t\tObjectId productStepId = agent.getProductStepIdForConvId(message.getConversationId());\n\t\t\t\tProductStep productStep = new ProductStep((BasicDBObject) productStepBBClient.findDocumentById(productStepId));\n\t\t\t\tif(message.getPerformative() == ACLMessage.CONFIRM) {\n\t\t\t\t\tACLMessage sendMsg = message.createReply();\n\t\t\t\t\tsendMsg.setOntology(\"GetPartsInfo\");\n\t\t\t\t\tsendMsg.setPerformative(ACLMessage.QUERY_IF);\n\t\t\t\t\tsendMsg.setContentObject(productStep.getInputParts());\n\t\t\t\t\tagent.send(sendMsg);\n\t\t\t\t} else {\n\t\t\t\t\tagent.getProductStepBBClient().updateDocuments(\n\t\t\t\t\t\t\tnew BasicDBObject(\"_id\", productStep.getId()),\n\t\t\t\t\t\t\tnew BasicDBObject(\"$set\", new BasicDBObject(\"status\", StepStatusCode.ABORTED.name())\n\t\t\t\t\t\t\t\t\t.append(\"statusData\", new BasicDBObject(\"reason\",\n\t\t\t\t\t\t\t\t\t\t\t\"productStep cannot be delivered on time\"))));\n\t\t\t\t}\n\t\t\t} catch(IOException | InvalidDBNamespaceException | GeneralMongoException e) {\n\t\t\t\tLogger.log(LogLevel.ERROR, e);\n\t\t\t\tagent.doDelete();\n\t\t\t}\n\t\t} else {\n\t\t\tLogger.log(LogLevel.WARNING, agent.getName() + \" - ArePartsAvailableInTimeReponse timeout!\");\n\t\t\tagent.doDelete();\n\t\t}\n\t}", "public void removeShipment(){\n String message = \"Choose one of the shipment to remove\";\n if (printData.checkAndPrintShipment(message,data.getBranchEmployee(ID).getBranchID())){\n subChoice = GetChoiceFromUser.getSubChoice(data.numberOfShipment());\n if (subChoice!=0){\n data.getBranch(data.getShipment(subChoice-1).getBranchID()).removeShipment(data.getShipment(subChoice-1));\n data.removeShipment(data.getShipment(subChoice-1),data.getShipment(subChoice-1).getReceiver());\n System.out.println(\"Your Shipment has removed Successfully!\");\n }\n }\n }", "void deleteTransmission(Transmission transmission, SiteUser siteUser);", "public void deleteTradeRequest(TradeRequest request){\n tradeRequests.remove(request);\n }", "public void sell() {\n for (Company x : _market.getCompanies()) {\n if (x.getRisk() > _confidence || x.numLeft() < 3 || x.getRisk() < _confidence - 15){\n if (_stocks.get(x) == 1) {\n _stocks.remove(x);\n } else {\n _stocks.put(x, _stocks.get(x) - 1);\n }\n _money += x.getPrice();\n x.gain();\n break;\n } else {\n _happy = true;\n }\n }\n }", "public void denyTrade(Trade trade) {\n Player owner = trade.getOwner();\n Player targetPlayer = trade.getTarget();\n owner.removeTrade(trade);\n targetPlayer.removeTrade(trade);\n }", "public CalendarActionResults decline(boolean sendResponse)\n\tthrows Exception {\n\t\tDeclineMeetingInvitationMessage decline = this.createDeclineMessage();\n\n\t\tif (sendResponse) {\n\t\t\treturn decline.calendarSendAndSaveCopy();\n\t\t} else {\n\t\t\treturn decline.calendarSave();\n\t\t}\n\t}", "private SpeechletResponse handleTransferMoneyExecute(Session session) {\n\t\treturn null;\n\t}", "public void cmdRemovePlayer(User teller, Player player) {\n boolean removed = tournamentService.removePlayer(player);\n tournamentService.flush();\n if (!removed) {\n command.tell(teller, \"I''m not able to find {0} in the tournament.\", player);\n } else {\n command.tell(teller, \"Done. Player {0} is no longer in the tournament.\", player);\n }\n }", "void doNegativeEffect(Skill castSkill, double power, Creature performer, Item target) {\n/* 200 */ performer.getCommunicator().sendNormalServerMessage(\"The \" + target\n/* 201 */ .getName() + \" emits a deep worrying sound of resonance, but stays intact.\", (byte)3);\n/* */ }", "public void cancelOperation() {\n\n System.out.println(\"Sorry, a problem occurred, deposit money operation is unsuccessful\");\n System.out.println(\"Current information : \");\n while (!storage.isEmpty()) {\n Command command = storage.pop();\n command.undo();\n }\n }", "protected boolean processAbortOffered(boolean toUser, int offerIndex, String oppName){\n return false;\n }", "private void doExcluir() {\n ClearMsgsEvent.fire(this);\n if (Window.confirm(\"Tem certeza que deseja excluir o contato \" + contato.getNome() + \"?\")) {\n dispatcher\n .execute(new ExcluirContatoAction(contato), new AsyncCallback<ExcluirContatoResult>() {\n @Override\n public void onFailure(Throwable caught) {\n ShowMsgEvent\n .fire(CadastroContatoPresenter.this, \"Erro: \" + caught.getLocalizedMessage(),\n AlertType.ERROR);\n }\n\n @Override\n public void onSuccess(ExcluirContatoResult result) {\n if (result.isOk()) {\n doNovo();\n AtualizarListaDeContatosEvent.fire(CadastroContatoPresenter.this);\n }\n for (String msg : result.getMensagens()) {\n ShowMsgEvent.fire(CadastroContatoPresenter.this, msg,\n result.isOk() ? AlertType.SUCCESS : AlertType.ERROR);\n }\n }\n });\n }\n }", "public void stampMessageAsDLCAndRemoveFromTacking(long messageID) throws AndesException {\n //remove actual object from memory\n if(log.isDebugEnabled()) {\n log.debug(\"Removing all tracking of message id = \" + messageID);\n }\n MsgData trackingData = msgId2MsgData.remove(messageID);\n UUID channelID = trackingData.channelId;\n String queueName = trackingData.queue;\n Slot slot = trackingData.slot;\n releaseMessageDeliveryFromTracking(channelID, messageID);\n releaseMessageBufferingFromTracking(slot, messageID);\n\n decrementMessageCountInSlotAndCheckToResend(slot, queueName);\n }", "@Override\n public void clickPositive() {\n meetingManager.undoConfirm(chosenTrade, chosenTrader);\n Toast.makeText(this, \"Successfully undo confirm\", Toast.LENGTH_SHORT).show();\n viewList();\n\n }", "protected void handleBuy(Message m) {\n return;\n }", "private boolean checkIfReadyToRemoveFromTracking(long messageID) {\n MsgData messageTrackingData = getTrackingData(messageID);\n return messageTrackingData.messageStatus.isOKToRemove();\n }", "public void endPhase(){\n if(this.actionPhase) {\n this.buyPhase = true;\n this.actionPhase = false;\n }else{\n endTurn();\n }\n }", "void declineNotification(NotificationDTO selectedNotification);", "public void retireLead()\r\n\t{\r\n\t\tisleader = false;\r\n\t}", "@Override\n public void onClick(View view) {\n CharSequence options[] =new CharSequence[] {\n \"Cancel Chat Request\"\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setTitle(name + \" Already Sent Request\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n //i = position of CharSequence\n if (i == 0) { // if the user click on cancel btn\n\n //i want to remove that request from the requests fragment//\n //first, we need to remove for sender\n RequestsRef.child(currentUserID).child(userID)\n .removeValue()\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n //then for receiver\n if (task.isSuccessful()){\n RequestsRef.child(userID).child(currentUserID)\n .removeValue()\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Toast.makeText(getContext(), \"You have cancelled the chat request.\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n });\n }\n\n }\n });\n builder.show();\n }", "private void m16569e() {\n this.f14723f.removeMessages(this.f14724g);\n }", "@FXML\n private void ConfirmLeaveLobby(ActionEvent actionEvent) throws InterruptedException, ExecutionException, LobbyException {\n PlayerController playerController = (PlayerController) ControllerRegistry.get(PlayerController.class);\n FireStoreController fireStoreController = (FireStoreController) ControllerRegistry.get(FireStoreController.class);\n\n fireStoreController.removePlayer(token, playerController.getPlayerByPlayersEnum(playerController.getClientPlayersEnum())\n .orElseThrow(() -> new LobbyException(\"PLAYERS NOT HERE HELP\", null)));\n returnToMainMenu(actionEvent);\n }", "@Test\n public void testRemoveRequest() throws Exception {\n System.out.println(\"removeRequest\");\n Sendable s = sendAMessage();\n\n String a = s.getMessageId();\n String comment = \"\";\n instance.removeRequest(a, comment);\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t\ttoastMessage(\"Bill Out Cancelled\");\n\t\t\t}", "@Override\n public void onCancel(AmbilWarnaDialog dialog){\n }", "protected void dropMessage(Client client, Object request, Object message) {\n\t}", "public void removeClockFromStock(Clock removedClock);", "public void eliminarMensaje(InfoMensaje m) throws Exception;" ]
[ "0.6181393", "0.59807223", "0.5922549", "0.5896026", "0.58858955", "0.57802194", "0.5756216", "0.5729689", "0.572515", "0.5722859", "0.5648517", "0.56380254", "0.5637907", "0.563744", "0.5588254", "0.55873066", "0.54962283", "0.54945326", "0.5493819", "0.5493647", "0.547292", "0.5450782", "0.54314154", "0.53967214", "0.5387648", "0.5386122", "0.53690827", "0.5354928", "0.53538114", "0.5334887", "0.5325496", "0.53196985", "0.5316773", "0.53095067", "0.52984864", "0.5280645", "0.52714294", "0.5271372", "0.5250323", "0.52451956", "0.52398056", "0.5237895", "0.5236424", "0.5235586", "0.52343506", "0.523333", "0.52328616", "0.5230379", "0.52254313", "0.5214923", "0.5213937", "0.5211259", "0.52111256", "0.521071", "0.5210517", "0.5192854", "0.5191359", "0.51904017", "0.5184989", "0.51832384", "0.51832384", "0.51796085", "0.5177912", "0.5168057", "0.51660264", "0.516062", "0.51555926", "0.5153197", "0.5147998", "0.51388776", "0.5135157", "0.51204455", "0.5114117", "0.5108392", "0.5101567", "0.50930285", "0.5091832", "0.5091167", "0.50831974", "0.50816405", "0.50779516", "0.5069761", "0.5066922", "0.5062272", "0.5061813", "0.50611013", "0.5049825", "0.504532", "0.5044494", "0.50388426", "0.5037541", "0.5037356", "0.5027623", "0.50271106", "0.5018161", "0.50153196", "0.5014872", "0.501078", "0.50099885", "0.5009687" ]
0.51852167
58
MENENTUKAN BERAT BADAN IDEAL/TIDAK membuat variabel dan Scanner
public static void main(String[] args) { int beratbadan; String nama; Scanner scan = new Scanner(System.in); // mengambil input System.out.print("Nama: "); nama = scan.nextLine(); System.out.print("Berat Badan: "); beratbadan = scan.nextInt(); // cek apakah dia ideal atau tidak if( beratbadan <= 50 ) { System.out.println("Selamat " + nama + ", berat badan anda ideal!"); } else { System.out.println("Maaf " + nama + ", berat badan anda overdose"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void scan() {\n\t\tt = la;\n\t\tla = Scanner.next();\n\t\tla.toString();\n\t\tsym = la.kind;\n\t}", "@Override\n public void input() {\n super.input();\n Scanner sc = new Scanner(System.in);\n System.out.printf(\"Nhập số trang sách giáo khoa: \");\n amountPage = Integer.valueOf(sc.nextLine());\n System.out.printf(\"Nhập tình trạng sách giáo khoa: \");\n status = sc.nextLine();\n System.out.printf(\"Nhập số lượng mượn: \");\n amountBorrow= Integer.valueOf(sc.nextLine());\n }", "public Ch12Ex1to9()\n {\n scan = new Scanner( System.in );\n }", "public static void main(String [] args){\n String dato;// no se tiene que importar la clase String del paquete java.lang\n //porque este paquete es por defecto\n Scanner miObjeto;\n }", "public static void main(String[] args) {\n\t\t Scanner scan = new Scanner (System.in);\n\t\t \n\t\t System.out.println(\"tam isminizi giriniz\");\n\t String tamisim = scan.nextLine();\n\t \n \n System.out.println(\"Yasinizi giriniz\");\n int yas = scan.nextInt();\n System.out.println(yas);\n \n System.out.println(\"Isminizın ilk harfini girin\");\n char ilkHarf = scan.next().charAt(0);\n System.out.println(ilkHarf);\n\t\t\n\t\t\n\t}", "public void intro(){Scanner teclado = new Scanner(System.in);\nSystem.out.println(\"Introduzca la unidad de medida a la que transformar \"\n + \"pies, cm o yardas\");\nSystem.out.println(\"o escriba salir si quiere volver al primer menu\");\nopcion=teclado.nextLine();}", "public static void edit() {\n int dump;\n String dumps;\n System.out.println(\"Silahkan Pilih Index data ke-\");\n System.out.print(\"Index Ke = \");\n dump = input.nextInt();\n try {\n System.out.print(\"\");\n dumps = input.nextLine();\n if (dumps.isBlank() && dumps.isEmpty()){\n System.out.print(\"Input Tugas : \");\n }\n dumps = input.nextLine();\n todolist.set(dump, dumps);\n kembali(\"Data Berhasil Dirubah\");\n\n }catch (IndexOutOfBoundsException e){\n kembali(\"Index Yang Anda Input Salah\");\n }\n }", "public void readData(Scanner strScanner) \n {\n super.readData(strScanner);\n \n bodyType = strScanner.next();\n \n noOfDoors = strScanner.nextInt();\n noOfSeats = strScanner.nextInt();\n }", "public static void main(String[] args) {\n\n Scanner skaityvtuvas = new Scanner(System.in);\n while (true) {\n System.out.println(\"Turime is viso 9 uzduotis\");\n System.out.println(\"Iveskite uzduoties numeri, kad ja vykdyti.\");\n System.out.println(\"Ivedus 0, programa bus baigta.\");\n int pasirinkimas = skaityvtuvas.nextInt();\n\n switch (pasirinkimas) {\n case CHOISE_0:\n return;\n case CHOISE_1:\n Uzduotis01 pirmoji = new Uzduotis01(); // Vykdo konstruktoriu.\n break;\n case CHOISE_2:\n Uzduotis02 antroji = new Uzduotis02();\n break;\n case CHOISE_3:\n Uzduotis03 trecioji = new Uzduotis03();\n break;\n case CHOISE_4:\n Uzduotis04 ketvirta = new Uzduotis04();\n break;\n case CHOISE_5:\n Uzduotis05 penkta = new Uzduotis05();\n break;\n case CHOISE_6:\n Uzduotis06 sesta = new Uzduotis06();\n break;\n case CHOISE_7:\n Uzduotis07 septinta = new Uzduotis07();\n break;\n case CHOISE_8:\n Uzduotis08 astunta = new Uzduotis08();\n case CHOISE_9:\n Uzduotis09 devinta = new Uzduotis09();\n }\n }\n\n\n }", "public static void main(String[] args){\n //deklarasi variabel\n String nama, alamat, hobi;\n int usia, nilai;\n \n //membuat scanner baru\n Scanner keyboard = new Scanner(System.in);\n \n //tampilkan output ke user\n System.out.println(\"## Pendaftaran Mahasiswa Baru Universitas Mercu Buana Bekasi\");\n System.out.print(\"Nama Mahasiswa: \");\n //menggunakan Scanner dan menyimpan apa yang diketik divariabel nama\n nama = keyboard.nextLine();\n //Tampilkan output lagi\n System.out.print(\"Alamat: \");\n //menggunakan scanner lagi\n alamat = keyboard.nextLine();\n \n System.out.print(\"Hobi: \");\n hobi = keyboard.nextLine();\n \n System.out.print(\"Usia: \");\n usia = keyboard.nextInt();\n \n System.out.print(\"Nilai: \");\n nilai = keyboard.nextInt();\n \n //menampilkan apa yang sudah disimpan di variabel\n System.out.println(\"-----------------------------\");\n System.out.println(\"Nama Mahasiswa: \" + nama);\n System.out.println(\"Alamat: \" + alamat);\n System.out.println(\"Usia: \" + usia);\n System.out.println(\"Nilai: \" + nilai);\n }", "private void inicializar()\n\t{\n\t\tif( this.getIn() != null )\n\t\t\tthrow new ConsolaTecladoSoloPuedeHaberUnaInstanciaException();\n\t\t\t\n\t\tthis.setIn( new Scanner( System.in ) );\n\t}", "void scanner() {\r\n\t\tSystem.out.println(\"---------- Scanner\" + ++exampleNumber\r\n\t\t\t\t+ \"----------\");\r\n\r\n\t\tString source = \"asdqw easd casa\";\r\n\t\tScanner s1 = new Scanner(source);\r\n\t\t// hasNext() - testuje wartosc kolejnego tokena, ale go nie pobiera\r\n\t\t// next() - pobiera kolejny token\r\n\t\t// domyslnie bialy znak jest delimiterem\r\n\t\twhile (s1.hasNext()) {\r\n\t\t\tSystem.out.println(s1.next());\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"---------- Scanner\" + ++exampleNumber\r\n\t\t\t\t+ \"----------\");\r\n\r\n\t\t// hasNextXxx() - dla wszystkich primitives oprocz chara\r\n\t\t// nextXxx() - pobiera kolejny prymitywny token\r\n\t\tScanner s2 = new Scanner(\"1 true 34 hi\");\r\n\t\tboolean b;\r\n\t\twhile (b = s2.hasNext()) {\r\n\t\t\tif (s2.hasNextInt()) {\r\n\t\t\t\tint i = s2.nextInt();\r\n\t\t\t\tSystem.out.println(\"integer token: \" + i);\r\n\t\t\t} else if (s2.hasNextBoolean()) {\r\n\t\t\t\tboolean b2 = s2.nextBoolean();\r\n\t\t\t\tSystem.out.println(\"boolean token: \" + b2);\r\n\t\t\t} else {\r\n\t\t\t\tString str = s2.next();\r\n\t\t\t\tSystem.out.println(\"String token: \" + str);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"---------- Scanner\" + ++exampleNumber\r\n\t\t\t\t+ \"----------\");\r\n\r\n\t\t// useDelimiter(delimiter) - ustawienie delimitera (wyrazenia regularnego) wg ktorego bedzie przetwarzany strumien\r\n\t\t// domyslnym delimiterem jest spacja, tabulator, ogolnie bialy znak lub znaki\r\n\t\tScanner s3 = new Scanner(\"Test1 true 34 hi\");\r\n\t\ts3.useDelimiter(\"\\\\d\"); // delimiterem jest cyfra\r\n\t\twhile (s3.hasNext()) {\r\n\t\t\tSystem.out.println(s3.next());\r\n\t\t}\r\n\t}", "private void nuskaitymas() {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Iveskite zodi\");\n zodis = sc.nextLine();\n patikrinimas(zodis);\n }", "static void take_memory_values() throws IOException{\n\t\tSystem.out.print(\"ENTER THE ADDRESS : \");\n\t\tString input = scan.readLine();\n\t\tif(input.equals(\"N\"))\n\t\t\treturn;\n\t\taddress = hexa_to_deci(input);\n\t\tprint_the_address(address);\n\t\tinput = scan.readLine();\n\t\tif(input.length()==2)\n\t\t\tmemory.put(address,input);\n\t\telse{\n\t\t\tmemory.put(address,input.substring(2));\n\t\t\tmemory.put(address+1,input.substring(0,2));\n\t\t}\n\t\t//System.out.println(address+\" \"+memory.get(address));\n\t\ttake_memory_values();\n\t}", "@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 }", "public static void init() {\n\t\tscanner = new Scanner(System.in);\n\t\treturn;\n\t}", "public void BacaIsi(int masalah){\r\n\t\t// KAMUS LOKAL\r\n\t\tint metode;\r\n\t\tint nbBrs;\r\n\t\tint nbKol;\r\n\r\n\t\tMatriks tempM;\r\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t// ALGORITMA\r\n\t\tSystem.out.printf(\"Pilih metode pembacaan matriks \\n1. Input Keyboard \\n2. File \\n\");\r\n\r\n\t\tmetode = sc.nextInt();\r\n\r\n\t\tif (metode == 1) {\r\n\r\n\t\t\t// Menerima Masukan dari keyboard untuk SPL\r\n\t\t\tif (masalah == 1) {\r\n\r\n\t\t\t\tSystem.out.printf(\"Panjang baris:\");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\tSystem.out.printf(\"Panjang kolom:\");\r\n\t\t\t\tnbKol = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol);\r\n\r\n\t\t\t\tSystem.out.println(\"Matriks:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tfor (int j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n<<<<<<< HEAD\r\n\t\t\t\t\r\n=======\r\n>>>>>>> 3fd955cf024845ce6a62834b1327d604a20de6d4\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t}\r\n\r\n\t\t\t// Menerima Masukan untuk Interpolasi Linier dari Keyboard\r\n\t\t\telse if (masalah == 2) {\r\n\t\t\t\tString titik;\r\n\t\t\t\tScanner scanner = new Scanner(System.in).useDelimiter(\"line.separator\");\r\n\t\t\t\tScanner s;\r\n\r\n\t\t\t\tSystem.out.printf(\"Input N: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,2);\r\n\r\n\t\t\t\tSystem.out.println(\"Titik:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs+1; i++) {\r\n\t\t\t\t\ttitik = scanner.nextLine();\r\n\t\t\t\t\ttitik = titik.substring(1, titik.length()-1);\r\n\r\n\t\t\t\t\ts = new Scanner(titik).useDelimiter(\", \");\r\n\r\n\t\t\t\t\ttempM.Elmt[i][0] = s.nextDouble();\r\n\t\t\t\t\ttempM.Elmt[i][1] = s.nextDouble();\r\n\r\n\t\t\t\t\ts.close();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tscanner.close();\r\n<<<<<<< HEAD\r\n\t\t\t\t\r\n=======\r\n>>>>>>> 3fd955cf024845ce6a62834b1327d604a20de6d4\r\n\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t}\r\n\r\n\t\t\t//Menerima Masukan untuk Regresi Linier berganda\r\n\t\t\telse if (masalah == 3) {\r\n\t\t\t\tSystem.out.printf(\"Jumlah data: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\tSystem.out.printf(\"Jumlah peubah: \");\r\n\t\t\t\tnbKol = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol+1);\r\n\r\n\t\t\t\tSystem.out.println(\"Matriks:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tfor (int j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t\t\r\n\t\t\t} \r\n\t\t\t// Menerima Masukan input untuk persoalan matriks inverse dan determinan\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Ukuran Matriks: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\t\t\t\ttempM = new Matriks(nbBrs, nbBrs);\r\n\t\t\t\tSystem.out.println(\"Elemen Matriks: \");\r\n\r\n\t\t\t\tfor(int i=0; i<nbBrs; i++){\r\n\t\t\t\t\tfor(int j=0; j<nbBrs; j++){\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Menerima masukan dari file eksternal\r\n\t\telse if (metode == 2) {\r\n\t\t\tint i = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tdouble tempI;\r\n\r\n\t\t\tString b;\r\n\t\t\tString[] baris;\r\n\r\n\t\t\tSystem.out.printf(\"Masukkan alamat file: \");\r\n\t\t\tString alamat = sc.next();\r\n\r\n\t\t\tFile file = new File(alamat);\r\n\r\n\t\t\ttry {\r\n\t\t\t\tScanner s = new Scanner(file);\r\n\r\n\t\t\t\twhile (s.hasNextLine()) {\r\n\t\t\t\t\tb = s.nextLine();\r\n\t\t\t\t\ti = i + 1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\ts.close();\r\n\r\n\t\t\t\tbaris = new String[i];\r\n\t\t\t\ts = new Scanner(file);\r\n\t\t\t\tnbBrs = i;\r\n\t\t\t\ti = 0;\r\n\r\n\t\t\t\twhile (s.hasNextLine()) {\r\n\t\t\t\t\tbaris[i] = s.nextLine();\r\n\t\t\t\t\ti = i + 1;\r\n\t\t\t\t}\r\n\t\t\t\ts.close();\r\n\r\n\t\t\t\ts = new Scanner(baris[0]);\r\n\r\n\t\t\t\twhile (s.hasNextDouble()) {\r\n\t\t\t\t\ttempI = s.nextDouble();\r\n\t\t\t\t\tj = j + 1;\r\n\t\t\t\t}\r\n\t\t\t\ts.close();\r\n\t\t\t\tnbKol = j;\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol);\r\n\r\n\t\t\t\tfor (i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tsc = new Scanner(baris[i]);\r\n\r\n\t\t\t\t\tfor (j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\tsc.close();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t} catch(FileNotFoundException e) {\r\n\t\t\t\tSystem.out.println(\"An error occured.\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private int geefNaamIn() {\r\n Scanner scan = new Scanner(System.in);\r\n int keuze=0;\r\n try {\r\n System.out.printf(\"%n%s\",r.getString(\"keuzeInTeLadenSpel\"));\r\n keuze = scan.nextInt();\r\n \r\n } catch (InputMismatchException i) {\r\n System.err.print(r.getString(\"foutGeheelGetal\"));\r\n scan.nextLine();\r\n }\r\n return keuze;\r\n }", "static void take_the_input() throws IOException{\n\t\tSystem.out.print(\"ENTER THE ADDRESS : \");\n\n\t\taddress = hexa_to_deci(scan.readLine());\n\t\tSystem.out.println();\n\n\t\twhile(true){\n\t\t\tprint_the_address(address);\n\t\t\tString instruction = scan.readLine();\n\t\t\tint label_size = check_for_label(instruction);\n\t\t\tinstruction = instruction.substring(label_size);\n\t\t\tmemory.put(address, instruction);\n\t\t\tif(stop_instruction(instruction))\n\t\t\t\tbreak;\n\t\t\taddress+=size_of_code(instruction);\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"DO YOU WANT TO ENTER ANY FURTHUR CODE (Y/N) : \");\n\t\tString choice = scan.readLine();\n\t\tSystem.out.println();\n\t\tif(choice.equals(\"Y\"))\n\t\t\ttake_the_input();\n\t}", "public void Scanner(){\n char Caracter=' ';\n int Estado=0;\n int Fila=0;\n int Columna=1;\n String Lexema=\"\";\n String Cadena_Archivo=jTextPane1.getText();\n for(int i=0;i<Cadena_Archivo.length();i++){\n Caracter=Cadena_Archivo.charAt(i);\n \n switch(Estado){\n case 0:\n \n if(Caracter == (char) 33){\n L_Tokens.add(new Lista_Tokens(6,Character.toString(Caracter),\"Signo de Admiracion\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 34){\n L_Tokens.add(new Lista_Tokens(7,Character.toString(Caracter),\"Comillas Dobles\",Fila,Columna));\n Estado = 7;\n Columna++;\n }else if(Caracter == (char) 35){\n L_Tokens.add(new Lista_Tokens(8,Character.toString(Caracter),\"Numeral\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 36){\n L_Tokens.add(new Lista_Tokens(9,Character.toString(Caracter),\"Simbolo Peso\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 37){\n L_Tokens.add(new Lista_Tokens(10,Character.toString(Caracter),\"Porcentaje\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 38){\n L_Tokens.add(new Lista_Tokens(11,Character.toString(Caracter),\"Ampersand\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 39){\n L_Tokens.add(new Lista_Tokens(12,Character.toString(Caracter),\"Comilla Simple\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 40){\n L_Tokens.add(new Lista_Tokens(13,Character.toString(Caracter),\"Parentesis Izquierdo\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 41){\n L_Tokens.add(new Lista_Tokens(14,Character.toString(Caracter),\"Parentesis Derecho\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 42){\n L_Tokens.add(new Lista_Tokens(15,Character.toString(Caracter),\"Asterisco\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 43){\n L_Tokens.add(new Lista_Tokens(16,Character.toString(Caracter),\"Signo Mas\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 44){\n L_Tokens.add(new Lista_Tokens(17,Character.toString(Caracter),\"Coma\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 45){\n L_Tokens.add(new Lista_Tokens(18,Character.toString(Caracter),\"Signo Menos\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 46){\n L_Tokens.add(new Lista_Tokens(19,Character.toString(Caracter),\"Punto\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 47){\n L_Tokens.add(new Lista_Tokens(20,Character.toString(Caracter),\"Barra Inclinada\",Fila,Columna));\n Estado = 3;\n Columna++;\n }else if(Caracter == (char) 58){\n L_Tokens.add(new Lista_Tokens(21,Character.toString(Caracter),\"Dos Puntos\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 59){\n L_Tokens.add(new Lista_Tokens(22,Character.toString(Caracter),\"Punto y Coma\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 60){\n L_Tokens.add(new Lista_Tokens(23,Character.toString(Caracter),\"Menor Que\",Fila,Columna));\n Estado = 5;\n Columna++;\n }else if(Caracter == (char) 61){\n L_Tokens.add(new Lista_Tokens(24,Character.toString(Caracter),\"Igual Que\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 62){\n L_Tokens.add(new Lista_Tokens(25,Character.toString(Caracter),\"Mayor Que\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 63){\n L_Tokens.add(new Lista_Tokens(26,Character.toString(Caracter),\"Interrogacion\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 64){\n L_Tokens.add(new Lista_Tokens(27,Character.toString(Caracter),\"Arroba\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 91){\n L_Tokens.add(new Lista_Tokens(28,Character.toString(Caracter),\"Corchete Izquierdo\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 92){\n L_Tokens.add(new Lista_Tokens(29,Character.toString(Caracter),\"Barra Invertida\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 93){\n L_Tokens.add(new Lista_Tokens(30,Character.toString(Caracter),\"Corchete Derecho\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 94){\n L_Tokens.add(new Lista_Tokens(31,Character.toString(Caracter),\"Acento Circunflejo\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 95){\n L_Tokens.add(new Lista_Tokens(32,Character.toString(Caracter),\"Barra Baja\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 96){\n L_Tokens.add(new Lista_Tokens(33,Character.toString(Caracter),\"Acento Grave\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 123){\n L_Tokens.add(new Lista_Tokens(34,Character.toString(Caracter),\"Llave Izquierda\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 124){\n L_Tokens.add(new Lista_Tokens(35,Character.toString(Caracter),\"Barra Vetical\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 125){\n L_Tokens.add(new Lista_Tokens(36,Character.toString(Caracter),\"Corchete Derecho\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 126){\n L_Tokens.add(new Lista_Tokens(37,Character.toString(Caracter),\"Tilde\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Character.isLetter(Caracter)){\n //Verifica si es Letra\n Lexema+=Caracter;\n Estado = 1;\n }else if(Character.isDigit(Caracter)){\n //Verifica si es Digito\n Lexema+=Caracter;\n Estado = 2;\n }else if (Caracter == '\\n') {\n //salto de linea\n Columna = 1;\n Fila++;\n Estado = 0;\n } \n else if (Caracter == ' ' | Caracter == '\\t' | Caracter == '\\b' | Caracter == '\\r' | Caracter == '\\f') {\n //Espacios en blanco\n } else {\n //Errores Lexicos\n L_Tokens_Error.add(new Lista_Tokens(0,Character.toString(Caracter),\"Error Lexico\",Fila,Columna));\n Lexema = \"\";\n Estado = 0;\n }\n \n \n break;\n case 1:\n //Verificar si es Letra\n if (Character.isLetter(Caracter)) {\n Lexema+=Caracter;\n Estado = 1;\n }else if(Character.isDigit(Caracter)){\n //Verifica si es Digito\n Lexema += Caracter;\n Estado = 1;\n }else if(Caracter == (char) 95){\n Lexema += Caracter;\n Estado = 1;\n }else{\n \n if(Lexema.equals(\"CONJ\")){\n L_Tokens.add(new Lista_Tokens(3,Lexema,\"Palabra Reservada\",Fila,Columna));\n }else{\n L_Tokens.add(new Lista_Tokens(5,Lexema,\"Identificador\",Fila,Columna));\n }\n Columna++;\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n \n break;\n case 2:\n //Verifica si es Digito\n if (Character.isDigit(Caracter)) {\n Lexema += Caracter;\n Estado = 2;\n }else{\n L_Tokens.add(new Lista_Tokens(38,Lexema,\"Digito\",Fila,Columna));\n Columna++;\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 3:\n //Verifica si es Comentario de una linea\n if(Caracter == (char) 47){\n L_Tokens.add(new Lista_Tokens(20,Character.toString(Caracter),\"Barra Inclinada\",Fila,Columna));\n Estado = 4;\n Columna++;\n }else{\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 4:\n //Verifica si es Comentario de una linea acepta lo que sea hasta salto de linea\n if(Caracter != '\\n'){\n Lexema+=Caracter;\n Estado = 4;\n }else{\n L_Tokens.add(new Lista_Tokens(1,Lexema,\"Comentario de Linea\",Fila,Columna));\n Columna++;\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 5:\n //Comentario Multilinea\n if(Caracter == (char) 33){\n L_Tokens.add(new Lista_Tokens(6,Character.toString(Caracter),\"Signo de Admiracion\",Fila,Columna));\n Estado = 6;\n Columna++;\n }else{\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 6:\n //Comentario Multilinea acepta hasta el signo de admiracion\n if(Caracter != (char) 33){\n Lexema+=Caracter;\n Estado = 6;\n }else{\n L_Tokens.add(new Lista_Tokens(2,Lexema,\"Comentario Multilinea\",Fila,Columna));\n Columna++;\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 7:\n //Comentario Multilinea acepta hasta comilla dobles\n if(Caracter != (char) 34){\n Lexema+=Caracter;\n Estado = 7;\n }else{\n L_Tokens.add(new Lista_Tokens(4,Lexema,\"Lexema de Entrada\",Fila,Columna));\n Columna++;\n Lexema = \"\";\n Estado = 0;\n //aceptamos las comillas\n L_Tokens.add(new Lista_Tokens(7,Character.toString(Caracter),\"Comillas Dobles\",Fila,Columna));\n Columna++;\n }\n break;\n \n }\n \n }//fin for\n }", "private static int buscarEntero(Scanner s) {\n\t\tint Temp = -1;\n\n\t\tif (!s.hasNextLine() || !s.hasNextInt()) {\n\t\t\treturn -1;\n\t\t}\n\n\t\tString ValorLeido = s.nextLine();\n\t\tif (ValorLeido.length() != 0) {\n\t\t\tScanner Aux = new Scanner(ValorLeido);\n\t\t\twhile (Aux.hasNextInt()) {\n\t\t\t\tTemp = Aux.nextInt();\n\t\t\t}//fin while\n\t\t\tAux.close();\n\t\t}\n\t\treturn Temp;\n\t}", "static void soustraire() throws IOException {\n\t\tScanner clavier = new Scanner(System.in);\n\t\tint nb1, nb2, resultat;\n\t\tnb1 = lireNombreEntier();\n\t\tnb2 = lireNombreEntier();\n\t\tresultat = nb1 - nb2;\n\t\tSystem.out.println(\"\\n\\t\" + nb1 + \" - \" + nb2 + \" = \" + resultat);\n\t}", "private static void input(String[] args) {\n try (BufferedReader scanner = new BufferedReader(\n new InputStreamReader(args.length > 0 ? new FileInputStream(args[0]) : System.in))) {\n\n String linija;\n\n // regularne definicije\n while ((linija = scanner.readLine()) != null && linija.startsWith(\"{\")) {\n String tmp[] = linija.split(\" \");\n\n tmp[0] = tmp[0].substring(1, tmp[0].length() - 1);\n String naziv = tmp[0];\n String izraz = expandRegularDefinition(tmp[1]);\n\n regularneDefinicije.put(naziv, izraz);\n\n // System.out.println(naziv + \", \" + izraz);\n }\n\n // stanja\n while (!linija.startsWith(\"%X\")) {\n linija = scanner.readLine().trim();\n }\n\n skipSplitAdd(linija, stanjaLA);\n\n // leksicke jedinke\n while (!linija.startsWith(\"%L\")) {\n linija = scanner.readLine().trim();\n }\n\n skipSplitAdd(linija, leksickeJedinke);\n\n // pravila leksickog analizatora\n\n while ((linija = scanner.readLine()) != null) {\n while (!linija.startsWith(\"<\")) {\n linija = scanner.readLine();\n }\n\n String tmp[] = linija.split(\">\", 2);\n\n String stateName = tmp[0].substring(1, tmp[0].length());\n String regDef = tmp[1];\n\n regDef = expandRegularDefinition(regDef);\n\n // System.out.println(stateName + \"<> \" + regDef);\n LexerRule lexerRule = new LexerRule(regDef, stateName, 1, \"<\" + stateName + \">\" + regDef);\n lexerRules.add(lexerRule);\n\n scanner.readLine(); // preskoci {\n\n linija = scanner.readLine().trim();\n while (linija != null && scanner.ready() && !linija.equals(\"}\")) {\n // radi nesto s naredbom\n lexerRule.addAction(linija);\n linija = scanner.readLine().trim();\n }\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.println(\"lutfen hangi harfin anlamini istediginizi giriniz\");\n\t\tchar harf=scan.next().charAt(0);//girilen kelimenin ilk harfini alir sikayet etmez\n\t\t\n\t\tswitch (harf) {\n\t\tcase 'V':\n\t\tcase 'v':\n\t\t\tSystem.out.println(\"very\");\n\t\t\tbreak;\n\t\tcase 'I':\n\t\tcase 'i':\n\t\t\tSystem.out.println(\"important\");\n\t\t\tbreak;\n\t\tcase 'P':\n\t\tcase 'p':\n\t\t\tSystem.out.println(\"person\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t\tSystem.out.println(\"gecerli harf giriniz\");\n\t\t}\n\t\t\n\t\t//kullanicinin birden fazla harf girmesini sorun olarak kabul ediyorsaniz\n\t\t//ve bunu hata olarak kullaniciya geri bildirmek istiyorsaniz\n\t\t\n\t\t\n\t\tSystem.out.println(\"lutfen hangi harfin anlamini istediginizi giriniz\");\n\t\tString str=scan.next();\n\t\t\n\t\tswitch (str) {\n\t\tcase \"V\":\n\t\tcase \"v\":\n\t\t\tSystem.out.println(\"very\");\n\t\t\tbreak;\n\t\tcase \"I\":\n\t\tcase \"i\":\n\t\t\tSystem.out.println(\"important\");\n\t\t\tbreak;\n\t\tcase \"P\":\n\t\tcase \"p\":\n\t\t\tSystem.out.println(\"person\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t\tSystem.out.println(\"gecerli harf giriniz\");\n\t\t}\n\t\t\nscan.close();\n\t}", "private void scan() {\n token = nextToken;\n nextToken = scanner.next();\n }", "public static void main(String[] args) {\n Scanner christoper = new Scanner(System.in);\r\n String paragraf=\"\",simpan,hapus,paragrafbaru=\"\",word;\r\n int pilih,i,count;\r\n try{\r\n do{\r\n menu();\r\n pilih = christoper.nextInt();\r\n christoper.nextLine();\r\n switch(pilih){\r\n case 1:{\r\n if(paragraf.compareTo(\"\")!=0)\r\n {\r\n System.out.println(\"Anda sudah memasukkan paragraf\");\r\n do{\r\n System.out.print(\"Apakah Anda akan menghapusnya [Y/T]? \");\r\n hapus = christoper.next();\r\n }while(hapus.compareTo(\"Y\")!=0 && hapus.compareTo(\"y\")!=0 && hapus.compareTo(\"T\")!=0 && hapus.compareTo(\"t\")!=0);\r\n if(hapus.compareTo(\"Y\")==0 || hapus.compareTo(\"y\")==0)\r\n {\r\n paragraf = \"\";\r\n System.out.println(\"Paragraf sebelumnya berhasil dihapus.\");\r\n }\r\n else\r\n {\r\n System.out.println(\"Paragraf tidak dihapus.\"); \r\n }\r\n pressenter();\r\n }\r\n else\r\n {\r\n System.out.println(\"Silahkan masukkan paragraf Anda : \\n\");\r\n paragraf = christoper.nextLine();\r\n do{\r\n System.out.print(\"Apakah Anda akan menyimpan [Y/T]? \");\r\n simpan = christoper.next();\r\n }while(simpan.compareTo(\"Y\")!=0 && simpan.compareTo(\"y\")!=0 && simpan.compareTo(\"T\")!=0 && simpan.compareTo(\"t\")!=0);\r\n if(simpan.compareTo(\"Y\")==0 || simpan.compareTo(\"y\")==0)\r\n {\r\n System.out.println(\"Paragraf berhasil disimpan!!\");\r\n }\r\n else\r\n {\r\n paragraf = \"\";\r\n System.out.println(\"Paragraf tidak disimpan!!\");\r\n }\r\n pressenter();\r\n }\r\n break;\r\n }\r\n case 2:{\r\n if(paragraf.compareTo(\"\")==0)\r\n {\r\n System.out.println(\"Anda belum memasukkan paragraf apapun\");\r\n }\r\n else\r\n {\r\n System.out.println(\"Paragraf yang sudah anda input: \");\r\n System.out.println(paragraf + \"\\n\");\r\n System.out.println(\"Silahkan masukan paragraph baru : \\n\");\r\n paragrafbaru = christoper.nextLine();\r\n paragraf = paragraf.concat(\" \" + paragrafbaru);\r\n System.out.println(\"Paragraf berhasil ditambah\");\r\n }\r\n pressenter();\r\n break;\r\n }\r\n case 3:{\r\n if(paragraf.compareTo(\"\")==0)\r\n {\r\n System.out.println(\"Anda belum memasukkan paragraf apapun\");\r\n }\r\n else\r\n {\r\n System.out.println(paragraf);\r\n }\r\n pressenter();\r\n break;\r\n }\r\n case 4:{\r\n if(paragraf.compareTo(\"\")==0)\r\n {\r\n System.out.println(\"Anda belum memasukkan paragraf apapun\");\r\n }\r\n else\r\n {\r\n count = 0;\r\n String paragraf1 = paragraf.replaceAll(\"[^a-zA-Z- ]\",\"\");\r\n String kata[] = paragraf1.split(\" \");\r\n do{\r\n System.out.print(\"Masukkan kata yang akan dicari (hanya satu kata | penulisan huruf kecil dan huruf besar berpengaruh) : \");\r\n word = christoper.nextLine();\r\n }while(word.compareTo(\"\")==0 || word.contains(\" \"));\r\n if(paragraf.contains(word))\r\n {\r\n for(i=0;i<kata.length;i++)\r\n {\r\n if(word.compareTo(kata[i])==0)\r\n {\r\n count++;\r\n }\r\n }\r\n System.out.println(\"Hasil : \");\r\n System.out.println(word + \" sebanyak \" + count + \" kali\");\r\n count=0;\r\n for(i=0;i<kata.length;i++)\r\n {\r\n if(word.compareTo(kata[i])==0)\r\n {\r\n count++;\r\n System.out.println(word + \" \" + count + \" \");\r\n if(i-1==-1)\r\n {\r\n System.out.println(\"Tidak memiliki kata sebelum\");\r\n System.out.println(\"Kata sesudah : \" + kata[i+1] + \"\\n\");\r\n }\r\n else if(i+1==kata.length)\r\n {\r\n System.out.println(\"Kata sebelum : \" + kata[i-1]);\r\n System.out.println(\"Tidak memiliki kata sesudah\" + \"\\n\");\r\n }\r\n else\r\n {\r\n System.out.println(\"Kata sebelum : \" + kata[i-1]);\r\n System.out.println(\"Kata sesudah : \" + kata[i+1] + \"\\n\");\r\n } \r\n }\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"Tidak ada kata yang ditemukan\");\r\n }\r\n }\r\n pressenter();\r\n break;\r\n }\r\n }\r\n }while(pilih!=5);\r\n }\r\n catch(Exception WrongInput)\r\n {\r\n System.out.println(\"Terjadi kesalahan!! Input harus berupa bilangan bulat. Program berhenti!!\");\r\n }\r\n finally{\r\n System.out.println(\"Terima kasih sudah menggunakan program ini. Sampai jumpa!!\");\r\n }\r\n }", "public void input()\n\t{\n\t\t// this facilitates the output\n\t\tScanner sc = new Scanner(System.in) ; \n\t\tSystem.out.print(\"The Bike Number:- \") ;\n\t \tthis.bno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The Biker Name:- \") ; \n\t \tthis.name = new Scanner(System.in).nextLine() ; \t\n\t\tSystem.out.print(\"The Phone number:- \") ; \n\t \tthis.phno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The number of days:- \") ; \n\t \tthis.days = sc.nextInt() ; \t\n\t}", "public void novoUtente()\r\n {\r\n Scanner input=new Scanner(System.in);\r\n System.out.print(\"nome:-\");\r\n setNome(input.nextLine());\r\n try\r\n {\r\n System.out.print(\"idade:-\");\r\n setIdade(input.nextInt());\r\n }\r\n catch(InputMismatchException ae)\r\n {\r\n System.out.println(\"o valor inserido nao foi um inteiro!\");\r\n System.out.println(\"volte a efetuar o registo\");\r\n }\r\n numUnico = geraNumeroUnico();\r\n }", "private void consultadadosUtilizador(String username){\n Scanner s = new Scanner(System.in); int opcao = 0;\n try{\n do{\n System.out.println(\"Informações de Conta \");\n System.out.println(b_dados.getUtilizadores().get(username).toString());\n System.out.println(\"1-Mudar localizacao\");\n System.out.println(\"0 - Retroceder\");\n\n opcao = s.nextInt();\n System.out.print(\"\\n\");\n\n switch(opcao){\n case 1:\n mudarLocalizacaoUtilizador(username);\n break;\n default:\n System.out.print(\"Opção inválida\\n\\n\");\n break;\n\n }\n }while(opcao != 0);\n }\n catch(InputMismatchException e){\n System.out.println(\"Entrada inválida\");\n menuCliente(username);\n\n }\n }", "public WrongInputDataInScanner() {\n\tsuper();\n\t\n}", "@Override\r\n public void solicitarDatos(){\r\n Scanner lector = new Scanner(System.in);\r\n super.solicitarDatos(); //llamo al metodo solicitar datos de la clase padre\r\n this.setEstado(true);\r\n this.setNumeroLicencia(licencias);\r\n licencias++;\r\n System.out.println(\"Introduce el numero de taxistas que conducen este\"\r\n + \"taxi\");\r\n this.setNumeroTaxistas(lector.nextInt());\r\n \r\n }", "void readInput() {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString line = input.readLine();\n\t\t\tString [] numbers = line.split(\" \");\n\n\t\t\tlenA = Integer.parseInt(numbers[0]);\n\t\t\tlenB = Integer.parseInt(numbers[1]); \n\n\t\t\twordA = input.readLine().toLowerCase(); \n\t\t\twordB = input.readLine().toLowerCase();\n\n\t\t\tg = Integer.parseInt(input.readLine());\n\n\t\t\tString key; \n\t\t\tString [] chars;\n\t\t\tpenaltyMap = new HashMap<String, Integer>();\n\n\t\t\tfor(int i=0;i<676;i++) {\n\t\t\t\tline = input.readLine();\n\t\t\t\tchars = line.split(\" \");\n\t\t\t\tkey = chars[0] + \" \" + chars[1];\n\t\t\t\tpenaltyMap.put(key, Integer.parseInt(chars[2]));\n\n\t\t\t}\n\n\t\t\tinput.close();\n\n\t\t} catch (IOException io) {\n\t\t\tio.printStackTrace();\n\t\t}\n\t}", "public Ui() {\n this.scanner = new Scanner(System.in);\n }", "public Ui() {\n this.scanner = new Scanner(System.in);\n }", "public int sjekkOmTall() {\r\n Scanner scan2 = new Scanner(System.in);\r\n int valg;\r\n while(true) {\r\n if(scan.hasNextInt()) {\r\n return valg = Integer.parseInt(scan.nextLine());\r\n }\r\n else {\r\n System.out.println(\"Du skrev ikke inn et tall\");\r\n scan.nextLine();\r\n }\r\n }\r\n }", "public void inputScanner(){\n\t\t Scanner sc=new Scanner(System.in); \n\t \n\t\t System.out.println(\"Enter your rollno\"); \n\t\t int rollno=sc.nextInt(); \n\t\t System.out.println(\"Enter your name\"); \n\t\t String name=sc.next(); \n\t\t System.out.println(\"Enter your fee\"); \n\t\t double fee=sc.nextDouble(); \n\t\t System.out.println(\"Rollno:\"+rollno+\" name:\"+name+\" fee:\"+fee); \n\t\t sc.close(); \n\t}", "private static void generalDetails()\r\n\t{\r\n\t\tSystem.out.println(\"Enter the name of waiter:\");\r\n\t\tname = scan.nextLine();\r\n\t\tSystem.out.println(\"Enter table number:\");\r\n\t\tboolean check = false;\r\n\t\t//while check is false, keep trying to get a valid table number\r\n\t\twhile(check==false)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\ttableNo = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tcheck = true;\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Please enter a valid table number!\");\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "public Ch12Ex1to9( String str )\n {\n scan = new Scanner( str );\n }", "public void readInstanceData(Scanner scan) {\r\n name = scan.next();\r\n address = scan.next();\r\n phone = scan.next();\r\n }", "public static void tambahTengah() {\n Scanner masukan = new Scanner(System.in);\n System.out.println(\"\\nTentukan Lokasi Penambahan Data\");\n int LOKASI = masukan.nextInt();\n masukan.nextLine();\n\n int jumlahSimpulYangAda = hitungJumlahSimpul();\n if (LOKASI == 1) {\n System.out.println(\"Lakukan penambahan di depan\");\n } else if (LOKASI > jumlahSimpulYangAda) {\n System.out.println(\"Lakukan penambahan di belakang\");\n } else {\n\n //------------bagian entri data dari keyboard--------------\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH TENGAH : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n //-- -- -- -- -- --bagian menemukan posisi yang dikehendaki-----------\n simpul bantu;\n bantu = awal;\n int i = 1;\n while ((i < LOKASI)\n && (bantu != akhir)) {\n bantu = bantu.kanan;\n i++;\n }\n\n // -- -- -- -- -- --bagian menciptakan & mengisi simpul baru-----------\n simpul baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //-- -- --bagian mencangkokkan simpul baru ke dalam linkedlist lama------\n baru.kiri = bantu.kiri;\n baru.kiri.kanan = baru;\n baru.kanan = bantu;\n bantu.kiri = baru;\n }\n }", "public void nhapMonHoc() {\n\t\ttry {\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\tSystem.out.println(\"Ten mon hoc: \");\n\t\t\ttenMonHoc= scanner.nextLine();\n\t\t\tSystem.out.println(\"So tin chi\");\n\t\t\ttinChi= Integer.parseInt(scanner.nextLine());\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"Nhap sai du lieu!\");\n\t\t}\n\t}", "public static void main(String[] args) {\n System.out.println(\"***************************\");\n System.out.println(\"****** Jeux du Pendu ******\");\n System.out.println(\"***************************\");\n System.out.println(\"***** Moins de points *****\");\n System.out.println(\"******** tu auras *********\");\n System.out.println(\"****** Mieux ce sera ******\");\n System.out.println(\"***************************\");\n System.out.println(\"***************************\");\n\n //init tableau de mots\n String[] listeDeMots = { \"css\", \"html\", \"diagramme\", \"linux\", \"windows\" };\n\n boolean victory = false;\n int nbErreur = 0;\n //choix random dans la liste de mots\n String motCache = listeDeMots[(int) (Math.random() * listeDeMots.length)];\n\n //transformation des caractères du mot en underscore\n char[] tabMotCache = new char[motCache.length()];\n for (int i = 0; i < motCache.length(); i++) {\n tabMotCache[i] = '_';\n }\n System.out.println(\n \"Le mot caché contient \" + motCache.length() + \" lettres.\"\n );\n System.out.println(tabMotCache);\n\n Scanner lettre = new Scanner(System.in);\n while ((victory == false) || (nbErreur <= 7)) {\n String lettreChoisie = lettre.next();\n\n System.out.println(\"Veuillez saisir une lettre !\");\n // prend la première lettre saisi par l'user\n if (lettreChoisie.length() > 1) {\n lettreChoisie = lettreChoisie.substring(0, 1);\n }\n // si la lettre tapée est dans le mot remplace l'underscore par la lettre\n // et répète l'occurence pour plusieurs fois la même lettre dans le mot\n if (motCache.contains(lettreChoisie)) {\n int index = motCache.indexOf(lettreChoisie);\n\n while (index >= 0) {\n tabMotCache[index] = lettreChoisie.charAt(0);\n index = motCache.indexOf(lettreChoisie, index + 1);\n System.out.println(tabMotCache);\n }\n } else {\n nbErreur++;\n System.out.println(\"Tu as commis \" + nbErreur + \" erreurs..\");\n System.out.println(\"Il te reste \" + (7 - nbErreur) + \" essais !\");\n System.out.println(tabMotCache);\n }\n\n // on récupère le tableau de caractère en string pour vérifier l'égalité\n // avec le mot caché et déclarer la victoire\n String motDeviner = new String(tabMotCache);\n if (motDeviner.equals(motCache)) {\n victory = true;\n System.out.println(\"You win !\");\n System.out.println(\"Tu as commis \" + nbErreur + \" erreur !\");\n System.out.println(\"Tu as obtenu \" + (nbErreur * 5) + \" points !\");\n break;\n }\n if (nbErreur == 7) {\n System.out.println(\n \"You looose ! Le mot à deviner était : \" + motCache + \" !\"\n );\n System.out.println(\"Tu as obtenu \" + (nbErreur * 5) + \" points !\");\n break;\n }\n }\n lettre.close();\n }", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\t\tSystem.out.print(\"Masukkan nilai k : \");\n int k = scan.nextInt();\n System.out.print(\"Masukkan nilai l : \"); //jml\n int l = scan.nextInt();\n System.out.print(\"Masukkan nilai m : \"); //nxn\n int m = scan.nextInt();\n \n Soal07 data = new Soal07();\n data.buatSegitiga(k,l,m);\n data.cetak();\n\n\t}", "static void gatherInfo() {\n Scanner keyboard = new Scanner(System.in);\n System.out.print(\"Enter the type of measurement (inches, feet, etc.). >> \");\n measurementType = keyboard.nextLine();\n System.out.print(\"Enter the rectangle width. >> \");\n height = keyboard.nextDouble();\n System.out.print(\"Enter the rectangle height. >> \");\n width = keyboard.nextDouble();\n }", "void read(Scanner sc) {\n\t\t\tK = sc.nextInt();\r\n\t\t\tN = sc.nextInt();\r\n\t\t\tkey = new int[201];\r\n\t\t\tfor (int i = 0; i < K; i++) {\r\n\t\t\t\tint x = sc.nextInt();\r\n\t\t\t\tkey[x]++;\r\n\t\t\t}\r\n\t\t\tt = new int[N];\r\n\t\t\tchest = new int[N][201];\r\n\t\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\t\tt[i] = sc.nextInt();\r\n\t\t\t\tint kk = sc.nextInt();\r\n\t\t\t\twhile (kk-->0) {\r\n\t\t\t\t\tchest[i][sc.nextInt()]++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}", "public static void tambahDepan() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH DEPAN : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n // -- -- -- -- -- --bagian menciptakan & mengisi simpul baru--------------\n simpul baru;\n baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //-- -- -- --bagian mencangkokkan simpul baru ke dalam simpul lama--- ----- --\n if (awal == null) // jika senarai masih kosong\n {\n awal = baru;\n akhir = baru;\n baru.kiri = null;\n baru.kanan = null;\n } else // jika senarai tidak kosong\n {\n baru.kanan = awal;\n awal.kiri = baru;\n awal = baru;\n awal.kiri = null;\n }\n }", "public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.println(\"Lütfen adinizi giriniz\");\n\t\tString isim=scan.next();\n\t\t\n\t\tSystem.out.println(\"Lütfen soyadinizi giriniz\");\n\t\tString soyisim=scan.next();\n\t\t\n\t\tSystem.out.println(\"Lütfen kart numaranizi giriniz\");\n\t\tString kart=scan.next();\n\t\t\n\t\tchar isimIlkHarf=isim.toUpperCase().charAt(0);\n\t\tString isimGeriKalan=isim.substring(1).replaceAll(\"\\\\w\", \"*\");\n\t\tString soyisimIlkHarf=soyisim.toUpperCase().substring(0, 1);\n\t\tString soyisimGeriyeKalan=soyisim.substring(1).replaceAll(\"\\\\w\", \"*\");\n\t\tString kartIlk=\"**** **** **** \";\n\t\tString kartSon=kart.substring(kart.length()-4);\n\t\t\n\t\tSystem.out.println(\"Adiniz ve Soyadiniz: \"+isimIlkHarf+isimGeriKalan+\" \"+soyisimIlkHarf+soyisimGeriyeKalan);\n\t\tSystem.out.println(\"Kart Numarasi: \"+kartIlk+kartSon);\n\t\t\n\t\t\n\t\tscan.close();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n\n\n\n }", "public void modifierpointV(String nomAgence,Scanner sc) {\n\t\t\tint i=this.existPointV(nomAgence);\n\t\t\tnotExist:{\n\t\t\t\tif (i==-1) {System.out.println(\"cette agence n'exsite pas ! \\n\\n\"); break notExist;}\n\t\t\t\t\n\t\t\t\tint rep;\n\t\t\t\tString numTele;\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"1-Modifier l'adresse de l'agence \");\n\t\t\t\tSystem.out.println(\"2-Modifier le numéro de téléphone de l'agence \");\n\t\t\t\tSystem.out.println(\"3-Changer le type de l'agence \");\n\t\t\t\trep=sc.nextInt();\n\t\t\t\t\n\t\t\t\tEnumWilaya w;\n\t\t\t\tswitch(rep) \n\t\t\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\tSystem.out.println(\"Donner la nouvelle adresse :\");\n\t\t\t\t\tSystem.out.print(\"Numéro de rue : \");\n\t\t\t\t\tthis.pointV.get(i).getAdresse().setNumRue(sc.nextInt());\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.print(\"Nom de rue : \");\n\t\t\t\t\tthis.pointV.get(i).getAdresse().setNomRue(sc.nextLine());\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.print(\"Numéro de wilaya : \");\n\t\t\t\t\t\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\trep=sc.nextInt();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tw=Adresse.saisieWilaya(rep);\n\t\t\t\t\tif (w!=null) break;\n\t\t\t\t\tSystem.out.print(\"numéro wilaya incorrect ! reéssayer : \");\n\t\t\t\t\t}while(true);\n\t\t\t\t\t\n\t\t\t\t\tthis.pointV.get(i).getAdresse().setWilaya(w);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.print(\"Donner le nouveau numéro de téléphone : \");\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tnumTele = sc.nextLine();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tif (numTele.charAt(0)=='0' & numTele.length()==10) break;\n\t\t\t\t\tSystem.out.print(\"numéro inccorect ! veillez resaisir : \");\n\t\t\t\t\t}while(true);\n\t\t\t\t\tthis.pointV.get(i).setNumTele(numTele);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.println(\"Selectioner le type de l'agence : \");\n\t\t\t\t\t\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"1-Principale\");\n\t\t\t\t\tSystem.out.println(\"2-Secondaire\");\n\t\t\t\t\tSystem.out.print(\"Votre choix : \");\n\t\t\t\t\trep=sc.nextInt();\n\t\t\t\t\tif (rep==1 || rep==2) break;\n\t\t\t\t\tSystem.out.println(\"choix invalide ! reéssayez : \");\n\t\t\t\t\t}while(true);\n\t\t\t\t\t\n\t\t\t\t\tthis.pointV.get(i).setType(rep);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tdefault :\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "public void readInSupercar() {\r\n\t\tScanner kbInput = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Car's make and model? \");\r\n\t\tthis.setMakeAndModel(kbInput.nextLine());\r\n\t\tSystem.out.print(\"Country of origin? \");\r\n\t\tthis.setCountry(kbInput.nextLine());\r\n\t\tSystem.out.print(\"0 to 60 time (in seconds)? \");\r\n\t\tthis.setZeroTo60(kbInput.nextDouble());\r\n\t\tSystem.out.print(\"Total cost? $\");\r\n\t\tthis.setTotalCost(kbInput.nextInt());\r\n\t\t}", "private void getInput() {\n\t\tSystem.out.println(\"****Welcome to TNEB online Payment*****\");\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter your current unit\");\r\n\t\tunit = scan.nextInt();\r\n\t}", "public void pedirPalabra() {\r\n\r\n Scanner entradaEscaner = new Scanner(System.in);\r\n palabra = entradaEscaner.nextLine();\r\n }", "public static String dato(){\n String dato=null;\n \n try {\n Scanner leer=new Scanner(System.in);\n dato=leer.next();\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n return dato;\n }", "public parserCapas(java_cup.runtime.Scanner s) {super(s);}", "public void read(Scanner scan) {\n System.out.println(\"Please input a character: \");\n int value = scan.nextLine().charAt(0);\n // this.registers.set(this.registerPointer, value);\n this.registers[this.registerPointer] = value;\n }", "public static void main(String[] args){\n try {\n Scanner scanner = new Scanner(System.in);\n String var;\n System.out.println(\"Тест работы 'String_'\");\n System.out.println(\"Введите список товаров следующем образом.\");\n System.out.println(\"Товар Цена;Товар Цена;Товар Цена; ... \");\n\n var = scanner.nextLine();\n String_ string_ = new String_(var);\n string_.output_list();\n System.out.println(\"\\n Задание №1\\n\");\n System.out.println(\"Сумма всех покупок : \" + string_.summ() + \" рублей.\");\n System.out.println(\"\\n Задание №2\\n\");\n System.out.println(\"Название товара прописными буквами\");\n string_.convert_to_lower();\n System.out.println(\"\\n Задание №3\\n\");\n System.out.println(\"Вывод количества повторений товаров в списке\");\n System.out.println(string_.rating());\n System.out.println(\"\\n Задание №4\\n\");\n System.out.print(\"Ведите индекс массива что бы вывести этот эллемент : \");\n string_.output_elem(scanner.nextInt());\n\n System.out.println(\"Тест работы 'StringBuilder_'\");\n System.out.println(\"Введите список товаров следующем образом.\");\n System.out.println(\"Товар Цена;Товар Цена;Товар Цена; ... \");\n\n var = scanner.nextLine();\n StringBuilder_ stringBuilder_ = new StringBuilder_(new StringBuilder(var));\n System.out.println(\"\\nЗадание №1\\n\");\n System.out.println(\"Удаляем все записи, где цена равна 0(нулю)\");\n stringBuilder_.delete_zeros();\n stringBuilder_.output();\n System.out.println(\"\\n Задание №2\\n\");\n System.out.println(\"Заменить информацию товара имеющую \" +\n \"самую маленькую длинну информации на наиюольшую\");\n stringBuilder_.max_len_goods();\n System.out.println(\"\\n Задание №3\\n\");\n System.out.println(\"Введите новые данные\");\n stringBuilder_.input_data(scanner.nextLine());\n stringBuilder_.output();\n\n\n System.out.println(\"Введите дату в Англиском или руском формате\");\n System.out.println(\"Русский формат : ДД.ММ.ГГГГ\");\n System.out.println(\"Английский формат : МЕСЯЦ ДД, ГГГГ\");\n\n var = scanner.nextLine();\n RegEx regEx = new RegEx(var);\n System.out.println(regEx.Eng_or_Russ());\n\n System.out.println(\"Введите строку где есть Английский формат записи даты для изменения его на Русский формат\");\n\n var = scanner.nextLine();\n regEx = new RegEx(var);\n regEx.change_date();\n }catch (Exception e) {\n System.out.println(e.toString());\n }\n\n }", "public Sintactico(java_cup.runtime.Scanner s) {super(s);}", "void scanner_hsb(String ko){\n System.out.println(ko);\n // scan_hsb.close();\n }", "Spill(){\n\n\t\tin = new Scanner(System.in); \n\t\tspiller = new Spiller(in.nextLine()); \n\t\tdatamaskin = new Spiller(\"Datamaskin\"); // oppretter en datamaskin-spiller\n\t\tspillSteinSaksPapir();\n\t}", "public static void VerificarPar(){\n\t\tint numero;\n\t\tint resultado;\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\tresultado=(numero%2);\n\t\tif(resultado==0){\n\t\t\tSystem.out.println(\"Numero Par: \"+(numero*2));\n\t\t}else{\n\t\t\tSystem.out.println(\"Numero Impar: \"+(numero*3));\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 static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Birimi giriniz\");\n String birim = scan.nextLine().toLowerCase();\n System.out.println(\"Miktari giriniz\");\n double miktar = scan.nextDouble();\n\n donusturucu(birim, miktar);\n\n scan.close();\n }", "public void automovil(){\r\n System.out.println(\"Ingrese placa: \");\r\n placa = leer.next();\r\n System.out.println(\"Ingrese marca: \");\r\n marca = leer.next();\r\n \r\n Automovil auto = new Automovil(placa, marca, 10000);\r\n controlador.llenarVehiculo(auto);\r\n {\r\n }\r\n }", "private int getNumber() {\n while (!scanner.hasNextInt()) {\n scanner.nextLine();\n System.out.print(\"Please, Enter a munber : \");\n }\n return scanner.nextInt();\n }", "public static void main(String[] args) {\n\r\n\t\tScanner unos = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Unesite cijeli broj od 0 do 6 za danasnji broj u sedmici (ponedjeljak=0 ): \");\r\n\t\t\r\n\t\tboolean nesto=true;\r\n\t\tboolean nes=true;\r\n\t\t\r\n\t\tint dan=0;\r\n\t\t\r\n\t\t//unos dana uz provjeru o tacnosti unosa (tip podataka)\r\n\t\twhile(nesto==true){\r\n\t\t\ttry {\r\n\t\t\t\tdan=unos.nextInt();\r\n\t\t\t\tnesto=false;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tSystem.err.println(\"Greska pri unosu, pokusajte ponovo sa cijelim brojem!!!\");\r\n\t\t\t\tunos.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//provjera unosa u vidu granica unesenih brojeva\r\n\t\twhile(isGood(dan)==false){\r\n\t\t\tSystem.out.println(\"Unesite broj od 0 do 6\");\r\n\t\t\tdan=unos.nextInt();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite broj dana nakon današnjeg dana: \");\r\n\t\t\r\n\t\tint dan2=0;\r\n\t\t//unos dana uz provjeru o tacnosti unosa (tip podataka)\r\n\t\twhile(nes==true){\r\n\t\t\ttry {\r\n\t\t\t\tdan2=unos.nextInt();\r\n\t\t\t\tnes=false;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tSystem.err.println(\"Greska pri unosu, pokusajte sa cijelim brojem!!!\");\r\n\t\t\t\tunos.nextLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//ispis rezultata\r\n\t\tSystem.out.println(\"Današnji dan je \"+ danU7(dan)+\".\");\r\n\t\tSystem.out.println(\"Dan u budućnosti koji zelite znati je \"+ danU7((dan +dan2)%7)+\".\" );\r\n\t\r\n\t\tunos.close();\r\n\t}", "public void readQuestion()\n\t{\n\t\tnumLines = (int)numScan.nextDouble();\n\t\tquestion = stringScan.nextLine();\n\t}", "public static void main(String args[]) throws IOException{\n\t\tscan = new BufferedReader(new InputStreamReader(System.in));\n\t\tregisters = new HashMap<Character,String>();\n\t\tmemory = new HashMap<Integer , String>();//Memory location 0 will remain unused\n\t\tlabels = new HashMap<String , Integer>();\n\t\thexa = \"0123456789ABCDEF\".toCharArray();\n\t\tpossible_codes = \"HLT RST MOV MVI LXI LDA STA LHLD SHLD LDAX STAX XCHG ADD ADC ADI ACI DAD SUB SBB SUI INR DCR INX DCX ANA ANI ORA ORI XRA XRI CMA CMC STC CMP CPI RLC RRC RAL RAR JMP JZ JNZ JC JNC JP JM JPE JPO CALL CZ CNZ CC CNC CP CM CPE CPO RET RZ RNZ RC RNC RP RM RPE RPO PCHL IN OUT PUSH POP XTHL SPHL\".split(\" \");\n\t\tgeneral_registers = new HashSet<Character>();\n\t\tAC=CS=Z=P=S=false;\n\t\tSP = 65536;\n\t\tPC = 0;\n\t\tmodified = false;\n\t\tadd_the_general_registers();\n\n\t\tSystem.out.println(\"SIMULATOR FOR 8085 MICROPROCESSOR\\n\");\n\t\t//Take the input of code\n\t\tSystem.out.println(\"ENTER THE CODE :-\\n\");\n\t\ttake_the_input();\n\t\t//Take the input of memory values\n\t\tSystem.out.println(\"ENTER THE MEMORY VALUES :-\");\n\t\tSystem.out.println(\"IF NO VALUE HAS TO BE ENTERED PRESS N ELSE WRITE THE ADDRESS.\\n\");\n\t\ttake_memory_values();\n\t\t//Execution starts\n\t\tSystem.out.println(\"\\nNOW EXECUTION WILL BEGIN...\");\n\t\texecute();\n\t\t//Providing the output to the user\n\t\tSystem.out.println(\"\\nENTER THE MEMORY LOCATIONS AND REGISTER VALUES YOU WANT TO CHECK : \");\n\t\tSystem.out.println(\"(WHEN YOU ARE DONE CHECKING TYPE N)\\n\");\n\t\toutput_process();\n\t}", "@Override\n\tpublic void input() {\n\t\t// TODO Auto-generated method stub\n\t\tSystem.out.println(\"=================\");\n\t\tSystem.out.println(\"매입 매출 등록\");\n\t\tSystem.out.println(\"-----------------\");\n\t\tString pname = null;\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"상품명(QUIET:입력중단)>>\");\n\t\t\tpname = scan.nextLine();\n\t\t\tif (pname.equals(\"QUIET\")) {\n\t\t\t\treturn;\n\t\t\t} else if (pname.equals(\"\")) {\n\t\t\t\tSystem.out.println(\"상품명은 반드시 입력해야합니다\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\tSystem.out.print(\"거래일자(yyyy-mm-dd)\");\n\t\tString date = scan.next();\n\n\t\tSystem.out.print(\"거래처 명 >>\");\n\t\tString dname = scan.next();\n\n\t\tSystem.out.print(\"매입매출구분>>\");\n\t\tString iout = scan.next();\n\n\t\tSystem.out.print(\"수량>>\");\n\t\tInteger qty = scan.nextInt();\n\t\tInteger iprice = this.inputPrice(\"매입\");\n\t\tif (iprice == null) {\n\t\t\treturn;\n\t\t}\n\t\tInteger oprice = this.inputPrice(\"매출\");\n\t\tif (oprice == null) {\n\t\t\treturn;\n\t\t}\n\t\tIolistVO VO = new IolistVO();\n\t\tVO.setPname(pname);\n\t\tVO.setDate(date);\n\t\tVO.setDname(dname);\n\t\tVO.setInout(iout);\n\t\tVO.setIprice(iprice);\n\t\tVO.setOprice(oprice);\n\t\tVO.setQty(qty);\n\t\tiolist.add(VO);\n\t}", "public static Integer nhapSoNguye(Scanner scan) {\n\t\tint n = 0;\n\t\tSystem.out.println(\"Nhap 1 so nguyen n\");\n\t\tn = Integer.parseInt(scan.nextLine());\n\t\ttinhTongLuyThua(n);\n\t\treturn n;\n\t}", "private String getBarcode()\n {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"\");\n System.out.print(\"Indtast stregkode: \");\n return scanner.nextLine();\n }", "public void nhapPS(Scanner sc){\n int a;\n int b;\n do {\n System.out.print(\"\\tNhap vao tu so: \");\n a = sc.nextInt();\n System.out.print(\"\\tNhap vao mau so: \");\n b = sc.nextInt();\n // kiem tra\n if (b==0){\n System.out.println(\"Mau so khong duoc bang 0! Hay nhap lai!\");\n }else {\n tuSo = a;\n mauSo = b;\n }\n }while (b==0);\n }", "public static void main(String[] args) {\n \n Scanner scan = new Scanner(System.in);\n \n System.out.println(\"Bir tamsayi giriniz\");\n int num = scan.nextInt();\n \n if(num>=0) {\n \n if(num>9) {\n System.out.println(\"Sayi\");\n }else if(num<=9 && num>=0) {\n System.out.println(\"Rakam\");\n }\n \n }else if(num<0) {\n System.out.println(\"Sayi\");\n }\n \n scan.close();//Scanner class'ini kullandiktan sonra en altta main method'un icinde Scanner class'ini kapatiniz.\n //Scanner class'ini kapatmak icin scan.close(); yazmak yeterlidir.\n }", "private void bearbeitenAuswahlAuswaerten(Freund foundFriend) throws Exception {\n Scanner input = new Scanner(System.in);\n int auswahl = 0;\n if (input.hasNextInt()) {\n auswahl = input.nextInt(); // was wenn String\n } else {\n System.out.println(\"Please use a number between 1 and 6. You used: \" + input.next());\n bearbeitenAuswahlAuswaerten(foundFriend);\n }\n input.nextLine();\n\n switch (auswahl) {\n case 1: {\n\n System.out.println(\"Bitte den neuen VORNAMEN eingeben und mit RETURN bestaetigen\");\n\n Scanner newInput = new Scanner(System.in);\n String eingabe = foundFriend.getVorname();\n if (newInput.hasNextLine()) {\n eingabe = newInput.nextLine();\n }\n foundFriend.setVorname(eingabe);\n karteiAktualisieren(foundFriend);\n System.out.println(\"Vorname geaendert zu : \" + foundFriend.getVorname());\n break;\n }\n case 2: {\n\n System.out.println(\"Bitte den neuen NACHNAMEN eingeben und mit RETURN bestaetigen\");\n\n Scanner newInput = new Scanner(System.in);\n String eingabe = foundFriend.getNachname();\n if (newInput.hasNextLine()) {\n eingabe = newInput.nextLine();\n }\n foundFriend.setNachname(eingabe);\n karteiAktualisieren(foundFriend);\n System.out.println(\"Nachname geaendert zu : \" + foundFriend.getNachname());\n break;\n }\n case 3: {\n\n System.out.println(\"Bitte den neuen HANDY eingeben und mit RETURN bestaetigen\");\n\n Scanner newInput = new Scanner(System.in);\n String eingabe = foundFriend.getHandy();\n if (newInput.hasNext()) {\n eingabe = newInput.next();\n }\n foundFriend.setHandy(eingabe);\n karteiAktualisieren(foundFriend);\n System.out.println(\"Handy geaendert zu : \" + foundFriend.getHandy());\n break;\n }\n case 4: {\n System.out.println(\"Bitte den neuen TELEFON eingeben und mit RETURN bestaetigen\");\n Scanner newInput = new Scanner(System.in);\n String eingabe = foundFriend.getTelefon();\n if (newInput.hasNext()) {\n eingabe = newInput.next();\n }\n foundFriend.setTelefon(eingabe);\n karteiAktualisieren(foundFriend);\n System.out.println(\"Telefon geaendert zu : \" + foundFriend.getTelefon());\n break;\n }\n case 5: {\n\n System.out.println(\"Bitte den neuen ADRESSE eingeben und mit RETURN bestaetigen\");\n\n Scanner newInput = new Scanner(System.in);\n String eingabe = foundFriend.getAdresse();\n if (newInput.hasNextLine()) {\n eingabe = newInput.nextLine();\n }\n foundFriend.setAdresse(eingabe);\n karteiAktualisieren(foundFriend);\n System.out.println(\"Adresse geaendert zu : \" + foundFriend.getAdresse());\n break;\n }\n }\n\n }", "static void getToken() throws IOException{\n curr_char = pbIn.read();\n getNonBlank();\n lookUp();\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t \n\t\t//Chiede di introdurre nome e cognome\n\t\tSystem.out.println(\"Introduci nome :\");\n\t\tString nome = scan.next(); //qui il programma attende l'immissione dei dati\n\t\tSystem.out.println(\"introduci cognome:\");\n\t\tString cognome= scan.next(); \n\t\t//Chiede di introdurre la cittą\n\t\tSystem.out.println(\"Introduci cittą:\");\n\t\tString citta = scan.next(); \n\t\t \n\t\tSystem.out.println(\"Nome e cognome : \" + nome+\" \"+cognome);\n\t\tSystem.out.println(\"Cittą : \" + citta);\n\t\tscan.close();\n\t\t\n\n\t}", "private void skaitymasIsFailo() {\n try {\n String eilute = _bufferis.readLine();\n while (eilute != null) {\n eilute = _bufferis.readLine();\n varduSarasas.add(eilute);\n }\n _bufferis.close();\n _in.close();\n } catch (Exception e) {\n\n }\n }", "private void remplirUtiliseData() {\n\t}", "public static void tambahBelakang() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH BELAKANG : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n //------------bagian menciptakan & mengisi simpul baru--------------\n simpul baru;\n baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //--------bagian mencangkokkan simpul baru ke dalam simpul lama---------\n if (awal == null)// jika senarai kosong\n {\n awal = baru;\n akhir = baru;\n baru.kiri = null;\n baru.kanan = null;\n } else // jika senarai tidak kosong\n {\n baru.kiri = akhir;\n akhir.kanan = baru;\n akhir = baru;\n akhir.kanan = null;\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\t\t\tScanner scan = new Scanner(System.in);\n\t\t\t\tSystem.out.println(\"Hangi islemi yapmak istersiniz 1) hesabi goruntuleme\\r\\n\" + \n\t\t\t\t\t\t\"\t\t 2)Para cekme\\r\\n\" + \n\t\t\t\t\t\t\"\t\t 3) Para yatirma\\r\\n\" + \n\t\t\t\t\t\t\"\t\t 4)Cikis\");\n\t\t\t\t\n\t\t\t\tint islem = scan.nextInt();\n\t\t\t\tdouble toplamTutar = 5000;\n\t\t\t\tswitch(islem) {\n\t\t\t\tcase 1:\n\t\t\t\t\tSystem.out.println(\"Hesabinizda \" +toplamTutar + \"tl bulunmaktadir\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.println(\"Cekmek istediginiz miktari giriniz \");\n\t\t\t\t\tint miktar = scan.nextInt();\n\t\t\t\t\tSystem.out.println(\"Para cekiminiz basariyla gerceklesti\");\n\t\t\t\t\tSystem.out.println(\"Yeni hesap bakiyeniz = \" + (toplamTutar-miktar));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.println(\"Yatirmak istediginiz miktari giriniz\");\n\t\t\t\t\tint yatirilanPara = scan.nextInt();\n\t\t\t\t\tSystem.out.println(\"Para yatirma isleminiz basariyla gerceklesti\");\n\t\t\t\t\tSystem.out.println(\"Yeni hesap bakiyeniz = \" + (toplamTutar + yatirilanPara));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.println(\"Bizleri tercih ettiginiz icin tesekkur ederiz Iyi gunler dileriz\");\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tSystem.out.println(\"Yanlis giris yaptiniz lutfen tekrar deneyin\");\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tscan.close();\n\t\t\n\t\t\t\t\n\t}", "@Override\n\tpublic void nhap() {\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\" nhap ten:\");\n\t\tString ten = reader.nextLine();\n\t\tSystem.out.println(\" nhap tuoi:\");\n\t\ttuoi = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap can nang:\");\n\t\tcanNang = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\"nhap chieu chieuCao\");\n\t\tchieuCao = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap chieu chieuDai:\");\n\t\tchieuDai = Double.parseDouble(reader.nextLine());\n\t}", "public static int inputMes(){\r\n Scanner sc = new Scanner(System.in);\r\n \r\n // creamos while-loop, si el formato del numero es incorrecto la pregunta se repute\r\n while(true){\r\n System.out.print(\"Intoduce un mes en formato numerico: \");\r\n \r\n // ponems InputMismactException si el usuario no introduce el numero entero\r\n try{\r\n mes = sc.nextInt();\r\n return mes;\r\n }\r\n \r\n catch(InputMismatchException ex){\r\n System.out.println(\"Formato incorrecto!\");\r\n sc.nextLine();\r\n } \r\n }\r\n }", "public Scanner(String program) {\n\t\tthis.program=program;\n\t\tpos=0;\n\t\ttoken=null;\n\t\tinitWhitespace(whitespace);\n\t\tinitDigits(digits);\n\t\tinitLetters(letters);\n\t\tinitLegits(legits);\n\t\tinitKeywords(keywords);\n\t\tinitOperators(operators);\n }", "public int menu(){\n System.out.println(\"Elija una opción:\");\n\t\tSystem.out.println(\"1. Registrar un nuevo carro\");//Le damos todas las opciones disponibles\n\t\tSystem.out.println(\"2. Eliminar un carro del registro\");\n\t\tSystem.out.println(\"3. Mostrar espacios disponibles\");\n System.out.println(\"4. Mostrar el registro completo\");\n System.out.println(\"5. Mostrar las estadisticas del parqueo\");\n System.out.println(\"6. Agregar mas espacios de parqueo\");\n System.out.println(\"7. Salir/n/n\");\n\n boolean paso = false;\n int option = 0;\n while (paso == false){//Aplicamos un metodo para que escriba el \n try {\n String optionString = scan.nextLine();//Recibimos el valor como String para evitar un bug con el metodo nextLine()\n option = Integer.parseInt(optionString);//Lo cambiamos a int\n paso = true;\n } catch (Exception e) {\n System.out.println(\"Ingrese un valor correcto, por favor\");\n }\n }\n return option;//regresamos el valor convertido\n }", "public void cargar(Scanner scanner) {\n posX = Integer.parseInt(scanner.nextLine());\n posY = Integer.parseInt(scanner.nextLine());\n }", "public void addToScrabbleMap(Scanner scrabble) {\n while(scrabble.hasNextLine()) {\n String s = scrabble.nextLine();\n String[] values = s.split(\" \");\n Character c = values[0].charAt(0);\n Integer i = Integer.parseInt(values[1]);\n scrabbleList.put(c, i);\n }\n }", "public static void main(String[] args) {\n \n int op = -1;\n \n while(op != 0){ \n System.out.println(\" >> Digite a opção desejada! << \");\n System.out.println(\" >> 1 << - Preencher vetor automaticamente\");\n System.out.println(\" >> 2 << - Imprimir vetor\");\n System.out.println(\" >> 3 << - Trocando os valores do vetor de posição\");\n System.out.println(\" >> 4 << - Buscar valor do vetor\");\n System.out.println(\" >> 5 << - Apagar valor do vetor\");\n System.out.println(\" >> 0 << - Sair\");\n try{\n System.out.print(\"Opção: \");\n op = scanf.nextInt();\n scanf.nextLine();\n }\n catch (Exception ex){\n System.out.println(\"Erro: \" + ex.getMessage());\n scanf.nextLine();\n }\n switch(op){\n case 1:\n Preencher_vetor();\n System.out.println(\"Vetor preenchido!\");\n System.out.println(\"\");\n break;\n case 2:\n Imprimir_vetor(vet_n); \n break;\n case 3:\n System.out.println(\"Vamos trocar os valores de posição!\");\n System.out.println(\"Valores do vetor atuais: \");\n Imprimir_vetor(vet_n);\n Invertendo_vetor();\n System.out.println(\"Valores do depois da troca: \");\n Imprimir_vetor(vet_n2); \n break;\n case 4:\n int valor_buscar;\n System.out.print(\"Informe o valor que pretende buscar: \");\n valor_buscar = scanf.nextInt();\n System.out.println(\"Valor encontrado na posição: \" + Buscar(valor_buscar));\n break;\n case 5:\n int valor_remover;\n System.out.print(\"Informe o valor que pretende remover: \");\n valor_remover = scanf.nextInt();\n System.out.println(\"Valor a ser removido = \"+ Remover(valor_remover));\n break;\n case 0:\n System.out.println(\"Até mais!!!\");\n break;\n default:\n System.out.println(\"Opção não existente, por favor informe outra opção\");\n break; \n }\n }\n }", "public NimTUI () {\n this.player1 = null;\n this.player2 = null;\n this.game = null;\n this.in = new Scanner(System.in);\n }", "public AnalizadorSintactico(java_cup.runtime.Scanner s) {super(s);}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t Scanner scan= new Scanner(System.in);\n\t System.out.println(\"Lutfen yasinizi giriniz\");\n\t \n\t int yasiniz= scan.nextInt();\n\t \n\t if (yasiniz>=65) {\n\t\tSystem.out.println(\"Emekli olabilirsiniz\");\n\t} else {\n System.out.println(\"emekli olamazsiniz\");\n\t}\n\t \n\t \n\t\t\n\t\tscan.close();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public static int solicitarSueldo(){\n int sueldo;\r\n Scanner teclado = new Scanner(System.in);\r\n System.out.println(\"Introduce sueldo\");\r\n sueldo= teclado.nextInt();\r\n return sueldo;\r\n }", "public void iniciarValores(){\r\n //Numero de campos da linha, do arquivo de saida filtrado\r\n this.NUM_CAMPOS = 106;\r\n this.ID = 0; //numero da ficha\r\n this.NUM_ARQUIVOS = 2070;\r\n\r\n this.MIN_INDICE = 1; //indice do cadastro inicial\r\n this.MAX_INDICE = 90; //indice do cadastro final\r\n this.NUM_INDICES = 90; //quantidade de cadastros lidos em cada arquivo\r\n }", "public static void MenuPilihan() {\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tboolean running = true;\r\n\t\tint kode = 6;\r\n\t\t\r\n\t\tMatriks Minput = new Matriks(1,1);\r\n\t\t\r\n\t\twhile (running) {\r\n\t\t\tSystem.out.printf(\"Menu \\n1. Sistem Persamaan Linier \\n2. Determinan \\n3. Matriks balikan \\n4. Interpolasi Polinom \\n5. Regresi linier berganda \\n6. Keluar \\n\");\r\n\t\t\tkode = sc.nextInt();\r\n\r\n\t\t\tswitch(kode){\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tSystem.out.printf(\"1. Metode eliminasi Gauss \\n2. Metode eliminasi Gauss-Jordan \\n3. Metode Matriks balikan \\n4. Kaidah Cramer \\n\");\r\n\t\t\t\t\tint kode1 = sc.nextInt();\r\n\t\t\t\t\tMinput.BacaIsi(1);\r\n\t\t\t\t\tint flag;\r\n\t\t\t\t\tdouble[] hasil;\r\n\t\t\t\t\tswitch(kode1){\r\n\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\thasil = Gauss(Minput);\r\n\t\t\t\t\t\t\tif (hasil.length == 3 + Minput.BrsEff){\r\n\t\t\t\t\t\t\t\tflag = 3;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if (hasil.length == 2 + Minput.BrsEff){\r\n\t\t\t\t\t\t\t\tflag = 2;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tflag = 1;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tMatriks.writeSPL(hasil, flag);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\thasil = Jordan(Minput);\r\n\t\t\t\t\t\t\tif (hasil.length == 3 + Minput.BrsEff){\r\n\t\t\t\t\t\t\t\tflag = 3;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if (hasil.length == 2 + Minput.BrsEff){\r\n\t\t\t\t\t\t\t\tflag = 2;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tflag = 1;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tMatriks.writeSPL(hasil, flag);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\t\tif(Minput.DetCofactor(Minput)==0){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"SPL tidak dapat diselesaikan dengan cara ini!\");\r\n\t\t\t\t\t\t\t} else{\r\n\t\t\t\t\t\t\t\tMatriks A = new Matriks(1,1);\r\n\t\t\t\t\t\t\t\tMatriks B = new Matriks(1,1);\r\n\r\n\t\t\t\t\t\t\t\tMinput.splitMatriks(A,B);\r\n\r\n\t\t\t\t\t\t\t\thasil = A.SPLInverse(A,B);\r\n\t\t\t\t\t\t\t\tMatriks.writeSPL(hasil, 1);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\t\tif(Minput.DetCofactor(Minput)==0){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"SPL tidak dapat diselesaikan dengan cara ini!\");\r\n\t\t\t\t\t\t\t} else{\r\n\t\t\t\t\t\t\t\thasil = Minput.Cramer();\r\n\t\t\t\t\t\t\t\tMatriks.writeSPL(hasil,1);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tSystem.out.printf(\"Menu \\n1.Determinan Reduksi Baris \\n2.Determinan Ekspansi Kofaktor \\n\");\r\n\t\t\t\t\tkode1 = sc.nextInt();\r\n\t\t\t\t\tMinput.BacaIsi(4);\r\n\t\t\t\t\tdouble determinan;\r\n\r\n\t\t\t\t\tswitch(kode1){\r\n\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\tdeterminan = Minput.DetReduksi();\r\n\t\t\t\t\t\t\tMatriks.writeDouble(determinan);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\tdeterminan = Minput.DetCofactor(Minput);\r\n\t\t\t\t\t\t\tMatriks.writeDouble(determinan);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tSystem.out.printf(\"Matriks Balikan\\n\");\r\n\t\t\t\t\tMinput.BacaIsi(4);\r\n\t\t\t\t\tdouble det = Minput.DetCofactor(Minput);\r\n\t\t\t\t\tif(det!=0){\r\n\t\t\t\t\t\tMatriks Moutput = Minput.Inverse(Minput);\r\n\t\t\t\t\t\tMoutput.writeMatriks(Moutput);\r\n\t\t\t\t\t} else{\r\n\t\t\t\t\t\tSystem.out.println(\"Matriks yang anda masukan tidak memiliki inverse\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tSystem.out.printf(\"Interpolasi Polinom\");\r\n\t\t\t\t\tMinput.BacaIsi(2);\r\n\t\t\t\t\tSystem.out.println(\"Masukan nilai yang akan di taksir: \");\r\n\t\t\t\t\tdouble x = sc.nextDouble();\r\n\t\t\t\t\tint n = Minput.Elmt.length-1;\r\n\r\n\t\t\t\t\tdouble[] result = Minput.Interpolasi(Minput,n,x);\r\n\t\t\t\t\tMinput.writeInterpolasi(x, result);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tSystem.out.printf(\"Regresi Linier Berganda\\n\");\r\n\t\t\t\t\tMinput.BacaIsi(3);\r\n\r\n\t\t\t\t\tdouble jawaban;\r\n\r\n\t\t\t\t\tdouble[] rslt = Minput.Regresi();\r\n\t\t\t\t\tdouble[] var = new double[rslt.length-1];\r\n\r\n\t\t\t\t\tSystem.out.println(\"Masukkan variabel-variabel X untuk nilai Y yang ingin dicari:\");\r\n\r\n\t\t\t\t\tfor (int i=0; i<var.length; i++) {\r\n\t\t\t\t\t\tvar[i] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tjawaban = HasilRegresi(rslt, var);\r\n\t\t\t\t\t\r\n\t\t\t\t\twriteDouble(jawaban);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\trunning = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tsc.close();\r\n\t}", "public static int setMaterialsAmount(Scanner sc){\n\t\t\n\t\tSystem.out.println(\"Ingrese la cantidad de materiales que va a usar:\");\n\t\tint materialsAmount = sc.nextInt();\n\t\tsc.nextLine();\n\t\treturn materialsAmount;\n\t}", "public static String setLocation(Scanner sc){\n\t\t\n\t\tSystem.out.println(\"Ingrese la ubicacion inmueble:\");\n\t\tString location = sc.nextLine();\n\t\treturn location;\n\t\t\n\t}", "@Override\n\tvoid getData() {\n\t\tSystem.out.println(\"Enter Brand\");\n\t\tbrand=a.next();\n\t\tSystem.out.println(\"Enter model\");\n\t\tmodel=a.next();\n\t\tSystem.out.println(\"Enter CC\");\n\t\tcc=a.nextDouble();\n\t}", "public void solicitarDatos() {\r\n System.out.println(\"Dime el nombre del cliente: \");\r\n this.setNombre(lector.nextLine());\r\n System.out.println(\"Dime el primer apellido: \");\r\n this.setPrimerApellido(lector.nextLine());\r\n System.out.println(\"Dime el segundo apellido: \");\r\n this.setSegundoApellido(lector.nextLine());\r\n System.out.println(\"Dime la edad: \");\r\n this.setEdad(lector.nextInt());\r\n }", "public void solicitarDatos() {\n Scanner scanner = new Scanner(System.in);\n Terreno terreno = new Terreno();\n Vivienda vivienda = new Vivienda();\n\n //preguntamos datos:\n System.out.println(\"Metros cuadrados: \");\n Integer m2 = scanner.nextInt();\n\n System.out.println(\"Precio: \");\n Double precio = scanner.nextDouble();\n\n System.out.println(\"Nombre del pueblo: \");\n String nombrePueblo = scanner.next();\n\n System.out.println(\"ID: \");\n Integer id = scanner.nextInt();\n\n //escogemos opción:\n\n System.out.println(\"Estás creando un Terreno(t) o una Vivienda(v)?: \");\n String opcion = scanner.next();\n //controlamos que la opción introducida sea válida y el precio mayor que 0 en ambos casos:\n //(si el precio es menor a 0, directamente no se crea el objeto a la hora de añadir)\n if (opcion.equals(\"t\") && precio > 0) {\n terreno.solicitarDatos(m2, precio, nombrePueblo, id);\n } else if (opcion.equals(\"v\") && precio > 0) {\n vivienda.solicitarDatos(m2, precio, nombrePueblo, id);\n } else {\n System.out.println(\"El precio es menor a 0 o no has introducido una opción correcta\");\n }\n }", "private static void inputs(Scanner fileScanner) {\n\t\tSystem.out.printf(\"You will now need to enter in the correct pathway to the files containing: \\n\\t1.) RNA table\\n\\t2.) RNA strand\\n\\t3.) Output Protien strand (this will create a new file)\\n\");\n\t\tSystem.out.println(\"Example pathway: C:/CSC142_143/DataFiles/RNATable.txt\");\n\t\tSystem.out.print(\"Please enter file pathway for the RNA Table: \");\n\t\tsetRNATablePathway(fileScanner.next());\n\t\tSystem.out.print(\"Please enter file pathway for the RNA Strand: \");\n\t\tsetRNAStrandPathway(fileScanner.next());\n\t\tSystem.out.print(\"Please enter file pathway for the decoded protien: \");\n\t\tsetRNAOutPathway(fileScanner.next());\n\t\tfileScanner.close();\n\t\t\n\t}", "void newentry() {\r\n System.out.print(\"Enter regno: \");\r\n regno = KB.nextLine();\r\n System.out.print(\"Enter Name: \");\r\n name = KB.nextLine();\r\n System.out.print(\"Enter mark1: \");\r\n m1 = KB.nextLong();\r\n System.out.print(\"Enter mark2: \");\r\n m2 = KB.nextLong();\r\n System.out.print(\"Enter mark3: \");\r\n m3 = KB.nextLong();\r\n }", "public Menu() {\n scanner = new Scanner(System.in);\n }", "public static void main(String[] args) throws IOException {\n\r\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\r\n\r\n\r\n int a;\r\n\r\n do {\r\n System.out.println(\"Escribe un valor numérico entre el 1 y el 7\");\r\n a = Integer.parseInt(br.readLine());\r\n\r\n }while (a< 1 || a > 7);\r\n\r\n switch (a){\r\n case 1:\r\n System.out.println(\" Lunes\");\r\n break;\r\n case 2:\r\n System.out.println(\" Martes\");\r\n break;\r\n case 3:\r\n System.out.println(\" Miercoles\");\r\n break;\r\n case 4:\r\n System.out.println(\" Jueves\");\r\n break;\r\n case 5:\r\n System.out.println(\" Viernes\");\r\n break;\r\n case 6:\r\n System.out.println(\" Sabado\");\r\n break;\r\n case 7:\r\n System.out.println(\" Domingo\");\r\n break;\r\n }\r\n\r\n\r\n }" ]
[ "0.67532706", "0.62940335", "0.6255553", "0.6237162", "0.6154829", "0.61069465", "0.5987098", "0.59516346", "0.59317094", "0.5929547", "0.591936", "0.58282775", "0.57805276", "0.57680535", "0.57584214", "0.57570785", "0.5755642", "0.5745553", "0.5729279", "0.5716085", "0.5710837", "0.5691636", "0.5691462", "0.5690452", "0.56871164", "0.5681847", "0.5678241", "0.56755596", "0.5660917", "0.56442934", "0.5642699", "0.5617419", "0.56149983", "0.56149983", "0.5601908", "0.5588985", "0.5588468", "0.55823034", "0.55745035", "0.5567365", "0.5566734", "0.556373", "0.55554014", "0.5554524", "0.5553502", "0.55498403", "0.5549149", "0.5547605", "0.5537422", "0.5536616", "0.55305594", "0.55262655", "0.5513306", "0.54997116", "0.5495964", "0.54936796", "0.54894096", "0.54837596", "0.5479947", "0.54787487", "0.5477679", "0.5477222", "0.54697216", "0.5451931", "0.54472196", "0.5444548", "0.5441942", "0.54399437", "0.54370993", "0.5432979", "0.5428679", "0.5418296", "0.5401529", "0.54008454", "0.5397977", "0.5397607", "0.5396197", "0.5391244", "0.5390438", "0.5383557", "0.53713024", "0.53710127", "0.53663737", "0.5365296", "0.5361774", "0.5358707", "0.5353228", "0.5352207", "0.53415054", "0.53334635", "0.5330849", "0.53306127", "0.5328004", "0.5325423", "0.53241724", "0.5319253", "0.5318435", "0.53161883", "0.5315", "0.53104246" ]
0.5451149
64
Creates new form BulbPanel
public BulbPanel(final TradfriLightBulbPacket bulb) { this.bulb = bulb; bulb.addListener(this); initComponents(); updatePanelContent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JComponent createBottomPanel() {\n\t\tJButton[] buttons = new JButton[0];\n\t/*\tbuttons[0] = new JButton(\"Save\");\n\t\tbuttons[0].setActionCommand(\"0\");\n\t\tbuttons[1] = new JButton(\"Cancel\");\n\t\tbuttons[1].setActionCommand(\"1\");*/\n\t\tActionHandler actHand = new ActionHandler();\n\t//\tfields[PRODUCT_NAME].addActionListener(actHand);\n\t\treturn new ButtonAndMessagePanel(buttons, messageLabel, actHand);\n\t}", "void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }", "private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {\n\n initPanel();\n }", "public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }", "private void butAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butAddActionPerformed\n AddBorrower ab = new AddBorrower();\n ab.setVisiblePanel(0);\n ab.setVisible(true);\n }", "private void createBottomPanel() {\n humanPaquetView = new ViewDeckVisible(false);\n this.getContentPane().add(humanPaquetView);\n }", "private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }", "private void initPanels() {\r\n\t\r\n\tpanel = new JPanel();\r\n\tpanel.setBounds(0, 0, ScreenSize.WIDTH + 25, ScreenSize.HEIGHT + 50);\r\n\tpanel.setLayout(new BorderLayout());\r\n\tpanel.addComponentListener(this);\r\n\r\n\tbord = new BordPanel();\r\n\tbord.setBounds(0 ,0 ,ScreenSize.WIDTH, ScreenSize.HEIGHT);\r\n\tbord.setOpaque(true);\r\n\r\n\tlabel = new JLabel();\r\n\tlabel.setText(\"Text\");\r\n\r\n\tpanel.add(label, BorderLayout.SOUTH);\r\n\tpanel.add(bord, BorderLayout.CENTER);\r\n\t\r\n\tframe.add(panel);\r\n }", "private void createpanel2() {\r\n\t\tpanels[1].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[0] = new JLabel(\"Accountname: \");\r\n\t\tdescription[0].setFont(smallfont);\r\n\t\tdescription[0].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tuserinfo = new JTextField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\r\n\t\t\tuserinfo.setForeground(Color.WHITE);\r\n\t\t} else {\r\n\t\t\tuserinfo.setForeground(Color.BLACK);\r\n\t\t}\r\n\t\tuserinfo.setOpaque(false);\r\n\t\tuserinfo.setFont(smallfont);\r\n\t\tpanels[1].add(description[0]);\r\n\t\tpanels[1].add(userinfo);\r\n\t\tpanels[1].setOpaque(false);\r\n\t\tallComponents.add(panels[1]);\r\n\t\tpanels[0].revalidate();\r\n\t}", "public BankPanel() {\r\n\t super();\r\n\t}", "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "protected Panel createButtonPanel() {\n Panel panel = new Panel();\n panel.setLayout(new PaletteLayout(2, new Point(2,2), false));\n return panel;\n }", "public BoutonPanel() {\n initComponents();\n type_ligne.setSelectedIndex(0);\n libre.setSelected(true);\n libre.setBorder(BorderFactory.createEmptyBorder());\n libre.setContentAreaFilled(false);\n\n ligne.setBorder(BorderFactory.createEmptyBorder());\n ligne.setContentAreaFilled(false);\n\n rectangle.setBorder(BorderFactory.createEmptyBorder());\n rectangle.setContentAreaFilled(false);\n\n cercle.setBorder(BorderFactory.createEmptyBorder());\n cercle.setContentAreaFilled(false);\n\n selection.setBorder(BorderFactory.createEmptyBorder());\n selection.setContentAreaFilled(false);\n\n remplissage.setBorder(BorderFactory.createEmptyBorder());\n remplissage.setContentAreaFilled(false);\n\n couleur.setBorder(BorderFactory.createEmptyBorder());\n couleur.setContentAreaFilled(false);\n\n b = new ButtonGroup();\n b.add(libre);\n b.add(ligne);\n b.add(rectangle);\n b.add(cercle);\n // b.add(jToggleButton5);\n if (libre.isSelected()) {\n libre.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/appdessin/images/libres.png\")));\n } else {\n libre.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/appdessin/images/libre.png\")));\n }\n\n }", "void addPanel() {\n \tPanel panel = new Panel();\r\n\r\n panel.setLayout(new GridLayout(4, 1));\r\n jSliderBrightness = makeTitledSilder(\"Helligkeit\", 0, 256, 128); // werte veraendert\r\n jSliderContrast = makeTitledSilder(\"Kontrast\", 0, 10, 5);\r\n jSliderSaturation = makeTitledSilder(\"Sättigung\", 0, 9, 4);\r\n jSliderHue = makeTitledSilder(\"Hue\", 0, 360, 0);\r\n //jSliderContrast = makeTitledSilder(\"Slider2-Wert\", 0, 100, 50);\r\n panel.add(jSliderBrightness);\r\n panel.add(jSliderContrast);\r\n panel.add(jSliderSaturation);\r\n panel.add(jSliderHue);\r\n \r\n add(panel);\r\n \r\n pack();\r\n }", "FORM createFORM();", "void createGUI(JFrame f) {\n TabbedSplitPanel centrePanel = new TabbedSplitPanel(new JPanel(),TabbedSplitPanel.RIGHT);\n centrePanel.addMenuPanel(new MenuPanel(\"Right Menu\", new JTextArea(\"Menu panel for right tabbed split panel\"),true));\n\n TabbedSplitPanel bottomPanel = new TabbedSplitPanel(centrePanel,SplitPanel.BOTTOM);\n MenuPanel mainBottomMenuPanel = new MenuPanel(\"Main bottom menu\", new JTextArea(\"Contents of bottom menu\"), true);\n bottomPanel.addMenuPanel(mainBottomMenuPanel);\n\n // A panel with a button in it\n JPanel panel = createAMenuView();\n\n TabbedSplitPanel leftPanel = new TabbedSplitPanel(bottomPanel, SplitPanel.LEFT);\n leftPanel.addMenuPanel(new MenuPanel(\"Left1\", panel, true));\n leftPanel.addMenuPanel(new MenuPanel(\"Left2\", new JTextArea(\"Left 2 text area\"),true));\n\n // A nested TabbedSplitPanel\n TabbedSplitPanel nestedPanel = new TabbedSplitPanel(new JTextArea(\"Panel Containing a Nested panel\"),SplitPanel.BOTTOM);\n nestedPanel.addMenuPanel(new MenuPanel(\"Nested bottom menu\",new JTextArea(\"Nested menu panel\"),true));\n centrePanel.addMenuPanel(new MenuPanel(\"Nested\",nestedPanel,true));\n\n f.setContentPane(leftPanel);\n\n }", "public ComandaPanel() {\n\n initComponents();\n // comanda = new Comanda();\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Combo box editabel\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //2. kreirati kontrole i pobacati kako nam kaže neki manager LayoutManager\n JComponent comboBoxPanel = new ComboBoxPanel2();\n comboBoxPanel.setOpaque(true);\n frame.setContentPane(comboBoxPanel);\n\n //3. prikazati prozor\n frame.pack();\n frame.setVisible(true);\n }", "private void addToPanel(){\n getContentPane().add(jdpFondo);\n jtpcContenedor.add(jtpPanel);\n\tjtpcContenedor.add(jtpPanel2);\n jdpFondo.add(jtpcContenedor, BorderLayout.CENTER);\n jdpFondo.add(jpnlPanelPrincilal);\n }", "public InsertUpdateBBOXOpPanel() {\r\n initComponents();\r\n }", "private static void assembleAddPanel(){\n addPanel.add(addPlayerNameLabel);\n addPanel.add(newPlayerNameTextBox);\n addPlayerButton.addStyleName(\"add-button\");\n newPlayerNameTextBox.addStyleName(\"player-name-textbox\");\n addPlayerButton.addStyleName(\"btn btn-default\");\n resetRosterButton.addStyleName(\"btn btn-default\");\n addPlayerButton.setHTML(\"<span class=\\\"glyphicon glyphicon-plus\\\" aria-hidden=\\\"true\\\"></span>Add Player\");\n resetRosterButton.setHTML(\"<span class=\\\"glyphicon glyphicon-repeat\\\" aria-hidden=\\\"true\\\"></span>Reset All\");\n }", "public ControladorPanel() { }", "public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}", "public CreateAccountPanel() {\n initComponents();\n initializeDateChooser();\n }", "private void makeButtonPanel()\n {\n \n this.buttonPanel.setLayout(new GridLayout(10, 2, 30, 10));\n \n \n this.buttonPanel.add(this.fLabel);\n this.fName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.fName);\n\n this.buttonPanel.add(this.lLabel);\n this.lName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.lName);\n\n this.buttonPanel.add(this.idLabel);\n this.iD.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.iD);\n\n this.buttonPanel.add(this.courseLabel);\n this.course.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.course);\n\n this.buttonPanel.add(this.instructorLabel);\n this.instructor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.instructor);\n\n this.buttonPanel.add(this.tutorLabel);\n this.tutor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.tutor);\n \n this.buttonPanel.add(this.commentsLable);\n this.comments.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.comments);\n //Removed for appointment tabel\n //this.buttonPanel.add(this.appointmentLable);\n //this.buttonPanel.add(this.appointment);\n this.buttonPanel.add(this.sessionLenLabel);\n this.sessionLength.setColumns(COL_WIDTH);\n this.sessionLength.setText(\"30\");\n this.buttonPanel.add(this.sessionLength);\n\n this.ADD_BUTTON.addActionListener(new AddButtonListener());\n //buttonPanel.add(ADD_BUTTON);\n \n \n this.addSessionPlaceHolder.add(this.buttonPanel);\n }", "private void createFrame(){\n JPanel jPanelID = new JPanel();\n jPanelID.setLayout(new GridBagLayout());\n JLabel labelText = new JLabel(this.dialogName);\n labelText.setHorizontalAlignment(JLabel.CENTER);\n AddComponent.add(jPanelID,labelText, 0, 0, 2, 1);\n for (int field = 0; field < labelString.length; field++) {\n labelText = new JLabel(labelString[field]);\n AddComponent.add(jPanelID, labelText, 0, field + 1, 1, 1);\n AddComponent.add(jPanelID, fieldID.get(labelString[field]), 1, field + 1, 1, 1);\n }\n int offset = labelString.length + 1;\n labelText = new JLabel(DATE_OF_BIRTH);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, jDateChooser, 1, offset, 1, 1);\n offset++;\n labelText = new JLabel(GROUP);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, group, 1, offset, 1, 1);\n dialog.add(jPanelID, BorderLayout.NORTH);\n JButton okButton = new JButton(dialogName);\n okButton.addActionListener(actionEvent -> checkAndSave());\n dialog.add(okButton, BorderLayout.SOUTH);\n }", "public form_for_bd() {\n initComponents();\n }", "@AutoGenerated\r\n\tprivate HorizontalLayout buildPnlBotonera() {\n\t\tpnlBotonera = new HorizontalLayout();\r\n\t\tpnlBotonera.setImmediate(false);\r\n\t\tpnlBotonera.setWidth(\"350px\");\r\n\t\tpnlBotonera.setHeight(\"-1px\");\r\n\t\tpnlBotonera.setMargin(false);\r\n\t\t\r\n\t\t// btnLogin\r\n\t\tbtnLogin = new Button();\r\n\t\tbtnLogin.setCaption(\"Login\");\r\n\t\tbtnLogin.setImmediate(true);\r\n\t\tbtnLogin.setWidth(\"-1px\");\r\n\t\tbtnLogin.setHeight(\"-1px\");\r\n\t\tpnlBotonera.addComponent(btnLogin);\r\n\t\tpnlBotonera.setComponentAlignment(btnLogin, new Alignment(20));\r\n\t\t\r\n\t\treturn pnlBotonera;\r\n\t}", "private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> possibleDatasetNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfDatasetsBox.setItems(possibleDatasetNumber);\n\n List<Integer> possibleReplicateNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfReplicatesBox.setItems(possibleReplicateNumber);\n\n datasetAccordion = new Accordion();\n datasetAccordion.setWidth(\"100%\");\n\n panel.setContent(wrapperLayout);\n return panel;\n }", "private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}", "private void makePanelTask() {\r\n if (panelTask == null) {\r\n panelTask = makePanel(jframe, BorderLayout.CENTER,\r\n \"Task Details\", 180, 50, 200, 25);\r\n\r\n JLabel createLabelName = makeJLabel(\"Name: \", 10, 100, 80, 25);\r\n JLabel createLabelDescription = makeJLabel(\"Description: \", 10, 130, 80, 25);\r\n JLabel createLabelDueDate = makeJLabel(\"Due Date: \", 10, 160, 80, 25);\r\n JLabel createLabelPriority = makeJLabel(\"Priority Level: \", 10, 190, 80, 25);\r\n\r\n addToTodoTaskGui(createLabelName, createLabelDescription, createLabelDueDate, createLabelPriority);\r\n\r\n JButton clickSave = makeButton(\"saveTask\", \"Save\", 80, 250, 150, 25,\r\n JComponent.BOTTOM_ALIGNMENT, \"cli.wav\");\r\n panelTask.add(clickSave);\r\n\r\n JButton clickCancel = makeButton(\"cancelTask\", \"Cancel\", 280, 250, 150, 25,\r\n JComponent.BOTTOM_ALIGNMENT, \"cli.wav\");\r\n panelTask.add(clickCancel);\r\n }\r\n }", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "private HorizontalPanel createContent() {\n\t\tfinal HorizontalPanel panel = new HorizontalPanel();\n\t\tfinal VerticalPanel form = new VerticalPanel();\n\t\tpanel.add(form);\n\t\t\n\t\tfinal Label titleLabel = new Label(CONSTANTS.actorLabel());\n\t\ttitleLabel.addStyleName(AbstractField.CSS.cbtAbstractPopupLabel());\n\t\tform.add(titleLabel);\n\t\t\n\t\tfinal Label closeButton = new Label();\n\t\tcloseButton.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tActorPopup.this.hide();\n\t\t\t}\n\t\t});\n\t\tcloseButton.addStyleName(AbstractField.CSS.cbtAbstractPopupClose());\n\t\tform.add(closeButton);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Party field\n\t\t//-----------------------------------------------\n\t\tpartyField = new SuggestField(this, null,\n\t\t\t\tnew NameIdAction(Service.PARTY),\n\t\t\t\tCONSTANTS.partynameLabel(),\n\t\t\t\t20,\n\t\t\t\ttab++);\n\t\tpartyField.setReadOption(Party.CREATED, true);\n\t\tpartyField.setDoubleclickable(true);\n\t\tpartyField.setHelpText(CONSTANTS.partynameHelp());\n\t\tform.add(partyField);\n\n\t\t//-----------------------------------------------\n\t\t// Email Address field\n\t\t//-----------------------------------------------\n\t\temailaddressField = new TextField(this, null,\n\t\t\t\tCONSTANTS.emailaddressLabel(),\n\t\t\t\ttab++);\n\t\temailaddressField.setMaxLength(100);\n\t\temailaddressField.setHelpText(CONSTANTS.emailaddressHelp());\n\t\tform.add(emailaddressField);\n\n\t\t//-----------------------------------------------\n\t\t// Password field\n\t\t//-----------------------------------------------\n\t\tpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.passwordLabel(),\n\t\t\t\ttab++);\n\t\tpasswordField.setSecure(true);\n\t\tpasswordField.setHelpText(CONSTANTS.passwordHelp());\n\t\tform.add(passwordField);\n\n\t\t//-----------------------------------------------\n\t\t// Check Password field\n\t\t//-----------------------------------------------\n\t\tcheckpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.checkpasswordLabel(),\n\t\t\t\ttab++);\n\t\tcheckpasswordField.setSecure(true);\n\t\tcheckpasswordField.setHelpText(CONSTANTS.checkpasswordHelp());\n\t\tform.add(checkpasswordField);\n\n\t\t//-----------------------------------------------\n\t\t// Date Format field\n\t\t//-----------------------------------------------\n\t\tformatdateField = new ListField(this, null,\n\t\t\t\tNameId.getList(Party.DATE_FORMATS, Party.DATE_FORMATS),\n\t\t\t\tCONSTANTS.formatdateLabel(),\n\t\t\t\tfalse,\n\t\t\t\ttab++);\n\t\tformatdateField.setDefaultValue(Party.MM_DD_YYYY);\n\t\tformatdateField.setFieldHalf();\n\t\tformatdateField.setHelpText(CONSTANTS.formatdateHelp());\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Phone Format field\n\t\t//-----------------------------------------------\n\t\tformatphoneField = new TextField(this, null,\n\t\t\t\tCONSTANTS.formatphoneLabel(),\n\t\t\t\ttab++);\n\t\tformatphoneField.setMaxLength(25);\n\t\tformatphoneField.setFieldHalf();\n\t\tformatphoneField.setHelpText(CONSTANTS.formatphoneHelp());\n\n\t\tHorizontalPanel ff = new HorizontalPanel();\n\t\tff.add(formatdateField);\n\t\tff.add(formatphoneField);\n\t\tform.add(ff);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Roles option selector\n\t\t//-----------------------------------------------\n\t\trolesField = new OptionField(this, null,\n\t\t\t\tAbstractRoot.hasPermission(AccessControl.AGENCY) ? getAgentroles() : getOrganizationroles(),\n\t\t\t\tCONSTANTS.roleLabel(),\n\t\t\t\ttab++);\n\t\trolesField.setHelpText(CONSTANTS.roleHelp());\n\t\tform.add(rolesField);\n\n\t\tform.add(createCommands());\n\t\t\n\t\tonRefresh();\n\t\tonReset(Party.CREATED);\n\t\treturn panel;\n\t}", "public AddNewJobPanel() {\n initComponents();\n\n DateTime now = new DateTime();\n initializeComboBoxes();\n }", "private void createUIComponents() {\n billboardJList = new JList<>();\n model = new DefaultListModel<>();\n\n for (Billboard billboard : billboardList) {\n model.addElement(billboard.getBillboardName());\n }\n\n billboardJList.setModel(model);\n\n previewBillboardContentsFrame = new JFrame();\n previewBillboardContentsFrame.setPreferredSize(new Dimension(500, 500));\n }", "@SuppressWarnings({ \"unused\", \"unchecked\", \"rawtypes\" })\r\n\tprivate void buildPanel() {\r\n\t\tageField = new JComboBox(ageRanges);\r\n\t\tfNameField = new JTextField(20);\r\n\t\tGhostText fNameGhost = new GhostText(fNameField, \"First Name\");\r\n\t\tlNameField = new JTextField(20);\r\n\t\tGhostText lNameGhost = new GhostText(lNameField, \"Last Name\");\r\n\t\tmInitField = new JTextField(2);\r\n\t\tGhostText mInitGhost = new GhostText(mInitField, \"M\");\r\n\t\temailField = new JTextField(20);\r\n\t\tGhostText emailGhost = new GhostText(emailField, \"Email\");\r\n\t\tphoneNumberField = new JTextField(12);\r\n\t\timage = new JLabel();\r\n\t\tGhostText phoneNoGhost = new GhostText(phoneNumberField, \"Phone Number\");\r\n\t\tJPanel namePanel = new JPanel();\r\n\t\tJPanel emailPhoneAgePanel = new JPanel();\r\n\t\tJPanel northPanel = new JPanel();\r\n\t\tJPanel centerPanel = new JPanel();\r\n\t\temailPhoneAgePanel.setLayout(new GridLayout(0, 3));\r\n\t\temailPhoneAgePanel.setSize(new Dimension(400, 25));\r\n\t\temailPhoneAgePanel.setMaximumSize(new Dimension(400, 25));\r\n\t\tregisterButton = new JButton(\"Register & Save\");\r\n\t\tregisterButton.addActionListener(new registerButtonAction());\r\n\t\tregisterButton.setEnabled(false);\r\n\t\tuploadButton = new JButton(\"Upload Photo\");\r\n\t\tuploadButton.addActionListener(new uploadListener());\r\n\t\tnamePanel.add(fNameField);\r\n\t\tnamePanel.add(lNameField);\r\n\t\tnamePanel.add(mInitField);\r\n\t\tnamePanel.setBackground(Color.BLACK);\r\n\t\tnamePanel.setLayout(new GridBagLayout());\r\n\t\temailPhoneAgePanel.add(emailField);\r\n\t\temailPhoneAgePanel.add(phoneNumberField);\r\n\t\temailPhoneAgePanel.add(ageField);\r\n\t\temailPhoneAgePanel.setBackground(Color.BLACK);\r\n\t\temailPhoneAgePanel.setLayout(new GridBagLayout());\r\n\t\tcenterPanel.add(image);\r\n\t\tJPanel buttonPanel = new JPanel();\r\n\t\tbuttonPanel.add(uploadButton);\r\n\t\tbuttonPanel.add(registerButton);\r\n\t\tnorthPanel.add(namePanel, BorderLayout.NORTH);\r\n\t\tnorthPanel.add(emailPhoneAgePanel, BorderLayout.CENTER);\r\n\t\tnorthPanel.setBackground(Color.BLACK);\r\n\t\tcenterPanel.setBackground(Color.BLACK);\r\n\t\tthis.add(northPanel, BorderLayout.NORTH);\r\n\t\tthis.add(centerPanel, BorderLayout.CENTER);\r\n\t\tthis.add(buttonPanel, BorderLayout.SOUTH);\t\r\n\t\t}", "public BType() {\n initComponents();\n }", "public void addPanelControls() {\n\t\tlist_sort = new JComboBox<>(new String[] { \"MSSV\", \"HoTen\", \"NTNS\" });\r\n\t\tbtn_sapxep = new JButton(\"Sap xep\");\r\n\t\tbtn_them = new JButton(\"Them\");\r\n\t\tbtn_xoa = new JButton(\"Xoa\");\r\n\t\tbtn_save = new JButton(\"Save\");\r\n\t\tbtn_load = new JButton(\"Load\");\r\n\r\n\t\tJPanel mControlPanel = new JPanel(new GridLayout(5, 1));\r\n\t\tmControlPanel.add(btn_them);\r\n\t\tmControlPanel.add(btn_xoa);\r\n\t\tJPanel sapxepPanel = new JPanel();\r\n\t\tsapxepPanel.add(list_sort);\r\n\t\tsapxepPanel.add(btn_sapxep);\r\n\t\tmControlPanel.add(sapxepPanel);\r\n\t\tmControlPanel.add(btn_save);\r\n\t\tmControlPanel.add(btn_load);\r\n\r\n\t\tmControlPanel.setPreferredSize(new Dimension(380, 200));\r\n\t\tmControlPanel.setBorder(new TitledBorder(\"Controls\"));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.weightx = 0.5;\r\n\t\tc.gridx = 1;\r\n\t\tc.gridy = 0;\r\n\t\tpanel.add(mControlPanel,c);\r\n\t}", "public CreateNewEventJPanel() {\n }", "private void createButtonsPanel() {\r\n Composite buttonsPanel = new Composite(this, SWT.NONE);\r\n buttonsPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));\r\n buttonsPanel.setLayout(new GridLayout(4, true));\r\n\r\n getButtonFromAction(buttonsPanel, \"New\", new NewAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Save\", new SaveAction());\r\n getButtonFromAction(buttonsPanel, \"Delete\", new DeleteAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Cancel\", new CancelAction());\r\n }", "private void butDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butDeleteActionPerformed\n AddBorrower db = new AddBorrower();\n db.setVisiblePanel(2);\n db.setVisible(true);\n }", "private void crearPanel() {\r\n\t\tJLabel lbl_Empresa = new JLabel(\"Empresa:\");\r\n\t\tlbl_Empresa.setBounds(10, 52, 72, 14);\r\n\t\tadd(lbl_Empresa);\r\n\r\n\t\ttxField_Empresa = new JTextField();\r\n\t\ttxField_Empresa.setBounds(116, 49, 204, 20);\r\n\t\tadd(txField_Empresa);\r\n\t\ttxField_Empresa.setColumns(10);\r\n\r\n\t\tlbl_Oferta = new JLabel(\" \");\r\n\t\tlbl_Oferta.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlbl_Oferta.setBounds(10, 11, 742, 20);\r\n\t\tadd(lbl_Oferta);\r\n\r\n\t\tJLabel lbl_sueldoMin = new JLabel(\"Sueldo Minimo:\");\r\n\t\tlbl_sueldoMin.setBounds(10, 83, 96, 14);\r\n\t\tadd(lbl_sueldoMin);\r\n\r\n\t\ttxField_sueldoMin = new JTextField();\r\n\t\ttxField_sueldoMin.setColumns(10);\r\n\t\ttxField_sueldoMin.setBounds(116, 80, 93, 20);\r\n\t\tadd(txField_sueldoMin);\r\n\r\n\t\tJLabel lbl_sueldoMax = new JLabel(\"Sueldo Maximo:\");\r\n\t\tlbl_sueldoMax.setBounds(10, 115, 96, 14);\r\n\t\tadd(lbl_sueldoMax);\r\n\r\n\t\ttxField_sueldoMax = new JTextField();\r\n\t\ttxField_sueldoMax.setColumns(10);\r\n\t\ttxField_sueldoMax.setBounds(116, 112, 93, 20);\r\n\t\tadd(txField_sueldoMax);\r\n\r\n\t\tJLabel lbl_experiencia = new JLabel(\"A\\u00F1os de experiencia minimos:\");\r\n\t\tlbl_experiencia.setBounds(10, 143, 185, 14);\r\n\t\tadd(lbl_experiencia);\r\n\r\n\t\ttxField_experiencia = new JTextField();\r\n\t\ttxField_experiencia.setColumns(10);\r\n\t\ttxField_experiencia.setBounds(205, 140, 93, 20);\r\n\t\tadd(txField_experiencia);\r\n\r\n\t\tJLabel lbl_aspectosValorar = new JLabel(\"Aspectos a valorar:\");\r\n\t\tlbl_aspectosValorar.setBounds(10, 178, 137, 14);\r\n\t\tadd(lbl_aspectosValorar);\r\n\r\n\t\ttxArea_aspectosValorar = new JTextArea();\r\n\t\ttxArea_aspectosValorar.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosValorar.setBounds(157, 172, 253, 41);\r\n\t\tadd(txArea_aspectosValorar);\r\n\r\n\t\tJLabel lbl_aspectosImpres = new JLabel(\"Aspectos imprescindibles:\");\r\n\t\tlbl_aspectosImpres.setBounds(10, 238, 133, 14);\r\n\t\tadd(lbl_aspectosImpres);\r\n\r\n\t\ttxArea_aspectosImpres = new JTextArea();\r\n\t\ttxArea_aspectosImpres.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosImpres.setBounds(157, 232, 253, 41);\r\n\t\tadd(txArea_aspectosImpres);\r\n\r\n\t\tJLabel lbl_descripcion = new JLabel(\"Descripcion:\");\r\n\t\tlbl_descripcion.setBounds(10, 302, 107, 14);\r\n\t\tadd(lbl_descripcion);\r\n\r\n\t\ttxArea_descripcion = new JTextArea();\r\n\t\ttxArea_descripcion.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_descripcion.setBounds(10, 328, 465, 149);\r\n\t\tadd(txArea_descripcion);\r\n\r\n\t\tJLabel lbl_conocimientos = new JLabel(\"Conocimientos requeridos:\");\r\n\t\tlbl_conocimientos.setBounds(537, 125, 169, 14);\r\n\t\tadd(lbl_conocimientos);\r\n\r\n\t\tpa_conocimientos = new PanelListaDoble(Usuario.getConocimientosTotales(), miOferta.getConocimientos());\r\n\t\tpa_conocimientos.setBounds(537, 174, 215, 180);\r\n\t\tadd(pa_conocimientos);\r\n\r\n\t\ttxField_buscarCono = new JTextField();\r\n\t\ttxField_buscarCono.setBounds(537, 140, 135, 20);\r\n\t\tadd(txField_buscarCono);\r\n\t\ttxField_buscarCono.setColumns(10);\r\n\r\n\t\tJButton btn_buscar = new JButton(\"\");\r\n\t\tbtn_buscar.setBounds(682, 138, 24, 23);\r\n\t\tadd(btn_buscar);\r\n\r\n\t\tbtn_crear = new JButton(\"\");\r\n\t\tbtn_crear.setBounds(716, 138, 24, 23);\r\n\t\tadd(btn_crear);\r\n\r\n\t\ttxField_lugar = new JTextField();\r\n\t\ttxField_lugar.setEditable(false);\r\n\t\ttxField_lugar.setColumns(10);\r\n\t\ttxField_lugar.setBounds(506, 49, 234, 20);\r\n\t\tadd(txField_lugar);\r\n\r\n\t\tJLabel lbl_lugar = new JLabel(\"Lugar de trabajo:\");\r\n\t\tlbl_lugar.setBounds(392, 52, 104, 14);\r\n\t\tadd(lbl_lugar);\r\n\r\n\t\tJLabel lbl_contrato = new JLabel(\"Tipo de contrato:\");\r\n\t\tlbl_contrato.setBounds(392, 83, 104, 14);\r\n\t\tadd(lbl_contrato);\r\n\r\n\t\tcombo_contrato = new JComboBox<Contrato>();\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORAL_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORTAL_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.setBounds(506, 83, 159, 20);\r\n\t\tadd(combo_contrato);\r\n\t\t// d\r\n\t\tinicializar(miOferta);\r\n\t\tdesHabCampos(false);\r\n\t\tif (miOferta.getEmpresa().getNumID().compareToIgnoreCase(Aplicacion.getUsuario().getNumID()) == 0) {\r\n\t\t\tbtnEliminar = new JButton(\"Eliminar\");\r\n\t\t\tbtnEliminar.setToolTipText(\"Eliminar\");\r\n\t\t\tbtnEliminar.setBounds(492, 384, 125, 41);\r\n\t\t\tadd(btnEliminar);\r\n\r\n\t\t\tbtnRetirar = new JButton(\"\\uD83D\\uDC40\");\r\n\t\t\tbtnRetirar.setToolTipText(\"Retirar Oferta\");\r\n\t\t\tbtnRetirar.setBounds(627, 384, 125, 41);\r\n\t\t\tadd(btnRetirar);\r\n\r\n\t\t\tbutton_Editar = new JButton(\"Editar\");\r\n\t\t\tbutton_Editar.setToolTipText(\"Editar\");\r\n\t\t\tbutton_Editar.setBounds(627, 436, 125, 41);\r\n\t\t\tadd(button_Editar);\r\n\r\n\t\t\tbutton_Editar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\tdesHabCampos(true);\r\n\t\t\t\t\tbutton_Editar.setVisible(false);\r\n\t\t\t\t\tbtnEliminar.setVisible(false);\r\n\t\t\t\t\tbtnRetirar.setVisible(false);\r\n\t\t\t\t\tbtn_crear.setVisible(false);\r\n\r\n\t\t\t\t\tbtn_guardar = new JButton(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setToolTipText(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setBounds(627, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_guardar);\r\n\r\n\t\t\t\t\tbtn_cancelar = new JButton(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setToolTipText(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setBounds(492, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_cancelar);\r\n\r\n\t\t\t\t\tbtn_cancelar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tbtn_guardar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.setVisible(false);\r\n\t\t\t\t\t\t\tbtn_guardar.setVisible(false);\r\n\t\t\t\t\t\t\tbtnEliminar.setVisible(true);\r\n\t\t\t\t\t\t\tbutton_Editar.setVisible(true);\r\n\t\t\t\t\t\t\tbtnRetirar.setVisible(true);\r\n\t\t\t\t\t\t\tbtn_crear.setVisible(true);\r\n\t\t\t\t\t\t\tinicializar(miOferta);\r\n\t\t\t\t\t\t\tdesHabCampos(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tbtn_guardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tEmergenteCambios.createWindow(\"┐Desea guardar los cambios?\", (TieneEmergente) padre);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "private void initComponents() {\n panel1 = new JPanel();\n jtpPflegeakte = new JTabbedPane();\n\n //======== this ========\n setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));\n\n //======== panel1 ========\n {\n panel1.setLayout(new FormLayout(\n \"default:grow\",\n \"default:grow\"));\n\n //======== jtpPflegeakte ========\n {\n jtpPflegeakte.setTabPlacement(SwingConstants.BOTTOM);\n jtpPflegeakte.addChangeListener(e -> jtpPflegeakteStateChanged(e));\n }\n panel1.add(jtpPflegeakte, CC.xy(1, 1, CC.FILL, CC.FILL));\n }\n add(panel1);\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "private void putPanels() {\n\t\tfrmUserDesign.getContentPane().add(userDesignPanel, \"userDesign\");\n\t\tfrmUserDesign.getContentPane().add(vendasClass.getVendas(), \"Vendas\");\n\t\tfrmUserDesign.getContentPane().add(maquinaClass.getMaquinas(), \"Maquinas\");\n\t\tfrmUserDesign.getContentPane().add(funcionarioClasse.getFuncionarios(), \"Funcionarios\");\n\t\tfrmUserDesign.getContentPane().add(produtoClass.getProdutos(), \"Produtos\");\n\t\tfrmUserDesign.getContentPane().add(chart.getGrafico(), \"Grafico\");\n\t\tcl.show(frmUserDesign.getContentPane(), \"userDesign\");// mostrar o main menu\n\t}", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, 120dlu:grow\", // cols //$NON-NLS-1$\n\t\t\t\t\"p, 3dlu,p,3dlu,p\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tbuilder.append(Messages.getString(\"RenameDialog.CurrentName\"), oldName); //$NON-NLS-1$\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(Messages.getString(\"RenameDialog.NewName\"), newName); //$NON-NLS-1$\n\t\treturn builder.getPanel();\n\t}", "private JPanel makeControlPanel() {\n\n final JPanel panel = new JPanel(new FlowLayout(3));\n final JButton refreshButton = new JButton(new ImageIcon(iconMaker(\"refreshREAL.png\")));\n refreshButton.setFocusPainted(false);\n refreshButton.addActionListener(this::refreshButtonClicked);\n refreshButton.setToolTipText(\"Refresh Item Price(s)\");\n //checkButton.setPreferredSize(new Dimension(25,25));\n JButton viewLink = new JButton(new ImageIcon(iconMaker(\"visitSite.png\")));\n viewLink.setToolTipText(\"Visit Item Website\");\n JButton deleteItem = new JButton(new ImageIcon(iconMaker(\"delete.png\")));\n deleteItem.setToolTipText(\"Remove Item\");\n JButton addItem = buttonMaker(\"additem.png\");\n addItem.setToolTipText(\"Add Item to Price Watcher\");\n JButton editItem = buttonMaker(\"edititem.png\");\n editItem.setToolTipText(\"Edit Item Details\");\n\n\n viewLink.setFocusPainted(false);\n deleteItem.setFocusPainted(false);\n\n viewLink.addActionListener(this::viewPageClicked);\n panel.add(refreshButton);\n panel.add(viewLink);\n panel.add(deleteItem);\n panel.add(addItem);\n panel.add(editItem);\n\n return panel;\n }", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, default\", // cols\n\t\t\t\t\"p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu\"); // rows\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tCellConstraints cc = new CellConstraints();\n\t\t\n\t\tIterator l=labels.iterator();\n\t\tIterator c=valueComponents.iterator();\n\t\twhile (l.hasNext()){\n\t\t String name=(String)l.next();\n\t\t JComponent comp=(JComponent)c.next();\n\t\t builder.append(name,comp);\n\t\t builder.nextLine(2);\n\t\t}\n\t\treturn builder.getPanel();\n\t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "public Gui() {\n initComponents();\n paneles = new ArrayList();\n btGroup.add(rbCrear);\n btGroup.add(rbConsultar);\n btGroup.add(rbModificar);\n btGroup.add(rbEliminar);\n paneles.add(panelCrearConsultarUsuario); //INDICE 0\n paneles.add(panelCRUDItem); //INDICE 1\n paneles.add(panelCRUDPedido); //INDICE 2\n paneles.add(panelCRUDFactura); //INDICE 3\n setPanelesInvisible(-1);\n }", "public PanelConBoton() {\n initComponents();\n }", "public RIAComboboxPanel()\n {\n super();\n initialize();\n }", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "public ButtonMenuPanelBuyer() {\n initComponents();\n }", "private void buildComboPanel(){\n //Create the combo panel\n comboPanel = new JPanel();\n \n //Combo box\n laneType = new JComboBox(lanes);\n \n //Allow the user to type input into combo field\n laneType.setEditable(true);\n \n comboLabel = new JLabel(\"Lane: \");\n \n //Add the components to the panel\n comboPanel.add(comboLabel);\n comboPanel.add(laneType);\n }", "public JPanelCreateClient() {\r\n\t\tsuper(new BorderLayout());\r\n\t\tthis.title = new CustomLabel(ConstantView.TITLE_CREATE_CLIENT, null, Color.decode(\"#2E5569\"));\r\n\t\tthis.okButton = new JButton(\"REGISTRAR CLIENTE\");\r\n\t\tthis.returnButton = new JButton(ConstantView.BUTTON_RETURN_SIGNIN);\r\n\t\tthis.jPanelFormClient = new JPanelFormClient();\r\n\t\tControlClient.getInstance().setjPanelCreateClient(this);\r\n\t\tthis.init();\r\n\t}", "public FinalFrame()\n {\n \tsuper (\"Multi Brush\"); \n \tdrawingPanel = new DrawingPanel (buttons,colors); // A new DrawingPanel object with two parameters.\n \tJMenuBar menuBar = createMenuBar ();\n \tsetJMenuBar (menuBar); \n // Panel layout arrangement code segments.\n \tpanel.setLayout (new BorderLayout ());\n \tpanel.add (drawingPanel,BorderLayout.CENTER);\n \tpanel.add (buttons,BorderLayout.NORTH);\n \tpanel.add (colors,BorderLayout.SOUTH); \n \tgetContentPane().add(panel);\n \taddWindowListener (new WindowCloser());\n }", "private void initCom() {\n lbNome = new JLabel(\"Nome: \");\n lbSenha = new JLabel(\"Senha: \");\n txNome = new JTextField();\n txSenha = new JTextField();\n layout = new GridBagLayout();\n panelFormulario = new JPanel(layout);\n\n }", "public CreateJPanel(ProfileInfo profileInfo) {\n initComponents();\n \n this.profileInfo = profileInfo;\n btnSave.setEnabled(false);\n \n }", "public ProcedureFormPanel() {\n initComponents();\n }", "public Frame_Ajouter_Administrateur() {\n initComponents();\n }", "private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "private void setPanel()\r\n\t{\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(5, 2));\r\n\t\t\r\n\t\tpanel.add(bubbleL);\r\n\t\tpanel.add(bubblePB);\r\n\t\t\r\n\t\tpanel.add(insertionL);\r\n\t\tpanel.add(insertionPB);\r\n\t\t\r\n\t\tpanel.add(mergeL);\r\n\t\tpanel.add(mergePB);\r\n\t\t\r\n\t\tpanel.add(quickL);\r\n\t\tpanel.add(quickPB);\r\n\t\t\r\n\t\tpanel.add(radixL);\r\n\t\tpanel.add(radixPB);\r\n\t}", "@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}", "@Override\n\tprotected JPanel renderForm(AddWindow window) {\n\n\t\tthis.panel = new JPanel(new FlowLayout(FlowLayout.LEADING));\n\n\t\tthis.nameLabel = new JLabel(\"Nom de la catégorie\");\n\t\tthis.nameInput = new TabbedTextField(null, \"name\", 19);\n\t\tthis.components.add(this.nameInput);\n\n\t\tthis.gameLabel = new JLabel(\"Jeu parent\");\n\t\tthis.gamesList = new TabbedComboBox(\"game\", this.getGamesList());\n\t\tthis.components.add(this.gamesList);\n\n\t\tTabbedButton cancel = new TabbedButton(\"Annuler\", \"cancel\");\n\t\tcancel.addActionListener(window);\n\n\t\tTabbedButton submit = new TabbedButton(\"Enregistrer\", \"submit\");\n\t\tsubmit.addActionListener(window);\n\n\t\tthis.panel.add(this.nameLabel);\n\t\tthis.panel.add(this.nameInput);\n\t\tthis.panel.add(this.gameLabel);\n\t\tthis.panel.add(this.gamesList);\n\t\tthis.panel.add(cancel);\n\t\tthis.panel.add(submit);\n\n\t\tthis.panel.validate();\n\n\t\treturn panel;\n\n\t}", "public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }", "BOp createBOp();", "private void makePanelList() {\r\n if (panelList == null) {\r\n panelList = makePanel(jframe, BorderLayout.CENTER,\r\n \"List of Tasks\", 180, 50, 200, 25);\r\n list = makeList(10, 10, 100, 470, 500);\r\n\r\n JButton clickUpdate = makeButton(\"updateTask\", \"Update\",\r\n 20, 620, 100, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton clickDelete = makeButton(\"deleteTask\", \"Delete\",\r\n 125, 620, 100, 25, JComponent.CENTER_ALIGNMENT, null);\r\n\r\n JButton clickComplete = makeButton(\"completeTask\", \"Complete\",\r\n 230, 620, 100, 25, JComponent.CENTER_ALIGNMENT, null);\r\n\r\n JButton clickIncomplete = makeButton(\"IncompleteTask\", \"UndoComplete\",\r\n 335, 620, 130, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton clickCreate = makeButton(\"newTask\", \"Create A Task\",\r\n 175, 670, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton showComplete = makeButton(\"showComplete\", \"Show Completed\",\r\n 175, 700, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n showComplete.getModel().setPressed(showCompleted);\r\n\r\n JButton clickSave = makeButton(\"saveTodo\", \"Save List\",\r\n 175, 730, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n addElementsToPanelList(list, clickUpdate, clickDelete, clickComplete, clickIncomplete, clickCreate,\r\n showComplete, clickSave);\r\n }\r\n }", "public Panel() {\n initComponents();\n\n\n }", "private JPanel createButtons()\r\n\t{\r\n\t\tJPanel buttons = new JPanel();\r\n\t\tbuttons.setLayout(new FlowLayout(FlowLayout.TRAILING));\r\n\r\n\r\n\t\tButton save = new Button(PrimeMain1.texts.getString(\"save\"));\r\n\t\tsave.addActionListener(this);\r\n\t\tsave.setActionCommand(\"save\");\r\n\r\n\t\tButton cancel = new Button(PrimeMain1.texts.getString(\"cancel\"));\r\n\t\tcancel.addActionListener(this);\r\n\t\tcancel.setActionCommand(\"cancel\");\r\n\r\n\r\n\t\tbuttons.add(save);\r\n\t\tbuttons.add(cancel);\r\n\r\n\t\treturn buttons;\r\n\t}", "private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\ttitleFieldImage = new JLabel();\r\n\t\t\ttitleFieldImage.setBounds(new Rectangle(480, 75, 280, 60));\r\n\t\t\ttitleFieldImage.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldImage.setText(\"Image\");\r\n\t\t\ttitleFieldImage.setBackground(new Color(255, 204, 204));\r\n\t\t\tpageInfoLbl = new JLabel();\r\n\t\t\tpageInfoLbl.setBounds(new java.awt.Rectangle(224,480,315,30));\r\n\t\t\tpageInfoLbl.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\tpageInfoLbl.setText(\"\");\r\n\t\t\ttitleFieldName = new JLabel();\r\n\t\t\ttitleFieldName.setBounds(new Rectangle(190, 75, 170, 60));\r\n\t\t\ttitleFieldName.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldName.setBackground(new Color(255,204,204));\r\n\t\t\ttitleFieldName.setText(\"Field name\");\r\n\t\t\ttitleFieldId = new JLabel();\r\n\t\t\ttitleFieldId.setBounds(new Rectangle(90, 75, 70, 60));\r\n\t\t\ttitleFieldId.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFieldId.setBackground(new Color(255,160,204));\r\n\t\t\ttitleFieldId.setText(\"Field ID\");\r\n\t\t\tlblPageName = new JLabel();\r\n\t\t\tlblPageName.setBounds(new Rectangle(10, 40, 120, 20));\r\n\t\t\tlblPageName.setText(\"Page Name\");\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setBounds(new java.awt.Rectangle(10,10,500,24));\r\n\t\t\tjLabel.setText(\"Select the field you want to add\");\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(null);\r\n\t\t\tjPanel.add(jLabel, null);\r\n\t\t\tjPanel.add(getJButton(), null);\r\n\t\t\tjPanel.add(getPageSheet(), null);\r\n\t\t\tjPanel.add(getPreButton(), null);\r\n\t\t\tjPanel.add(getAfterButton(), null);\r\n\t\t\tjPanel.add(lblPageName, null);\r\n\t\t\tjPanel.add(titleFieldId, null);\r\n\t\t\tjPanel.add(titleFieldName, null);\r\n\t\t\tjPanel.add(pageInfoLbl, null);\r\n\t\t\tjPanel.add(titleFieldImage, null);\r\n\t\t\t\r\n\t\t\tJLabel titleFiledType = new JLabel();\r\n\t\t\ttitleFiledType.setText(\"Field Type\");\r\n\t\t\ttitleFiledType.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleFiledType.setBounds(new Rectangle(10, 75, 90, 60));\r\n\t\t\ttitleFiledType.setBackground(new Color(255, 160, 204));\r\n\t\t\ttitleFiledType.setBounds(360, 75, 120, 60);\r\n\t\t\tjPanel.add(titleFiledType);\r\n\t\t\t\r\n\t\t\tJButton btnSelect = new JButton();\r\n\t\t\tbtnSelect.addActionListener(new ActionListener() {\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\treturnValue.clear();\r\n\t\t\t\t\tgrid.freshData();\r\n\t\t\t\t\tList<Map<String, String>> valueList = grid.getValueList();\r\n\t\t\t\t\t\r\n\t\t\t\t\tSelectBean bean = (SelectBean)pageIdSelect.getSelectedItem();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Map<String, String> map : valueList) {\r\n\t\t\t\t\t\tString strSelect = map.get(\"SELECT\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (Boolean.valueOf(strSelect)) {\r\n\t\t\t\t\t\t\tMap<String, String> temp = new HashMap<String, String>(map);\r\n\t\t\t\t\t\t\ttemp.put(\"PAGE_ID\", bean.getCode());\r\n\t\t\t\t\t\t\tString strName = bean.getName();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (strName.indexOf(\":\") > 0 && strName.length() > strName.indexOf(\":\") + 2) {\r\n\t\t\t\t\t\t\t\tstrName = strName.substring(strName.indexOf(\":\") + 2);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttemp.put(\"PAGE_NAME\", strName);\r\n\t\t\t\t\t\t\treturnValue.add(temp);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (returnValue.size() > 0) {\r\n\t\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t\t_parent.addSelectFields(PageSelectDialog.this);\r\n\t\t\t\t\t\tUtils.removeWindow(PageSelectDialog.this);\r\n\t\t\t\t\t\t_parent.setVisible(true);\r\n\t\t\t\t\t\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(PageSelectDialog.this, \"Plese select field!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\tbtnSelect.setText(\"Select\");\r\n\t\t\tbtnSelect.setSize(new Dimension(90, 30));\r\n\t\t\tbtnSelect.setLocation(new Point(10, 480));\r\n\t\t\tbtnSelect.setBounds(10, 520, 120, 30);\r\n\t\t\tjPanel.add(btnSelect);\r\n\t\t\t\r\n\t\t\ttitleSelect = new JLabel();\r\n\t\t\ttitleSelect.setText(\"Select\");\r\n\t\t\ttitleSelect.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\ttitleSelect.setBounds(new Rectangle(90, 75, 70, 60));\r\n\t\t\ttitleSelect.setBackground(new Color(255, 160, 204));\r\n\t\t\ttitleSelect.setBounds(10, 75, 80, 60);\r\n\t\t\tjPanel.add(titleSelect);\r\n\t\t\t\r\n\t\t\tpageIdSelect = new JComboBox<DefaultComboBoxModel>();\r\n\t\t\tpageIdSelect.addItemListener(new ItemListener() {\r\n\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\r\n\t\t\t\t\tsearchDetailList();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tpageIdSelect.setBounds(140, 40, 300, 20);\r\n\t\t\tjPanel.add(pageIdSelect);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}", "private JComponent buildButtons() {\n Panel panel = new Panel();\n panel.setLayout(new FlowLayout(FlowLayout.RIGHT));\n JButton button = Buttons.create(\"Create\").onClick((ev) -> {\n try {\n group.setName(name.getText());\n group.clearUsers();\n list.getSelectedValuesList().forEach((item) -> {\n group.addUser(item);\n });\n if (group.getName().isEmpty()) {\n JOptionPane.showMessageDialog(null, \"Name is required\");\n return;\n }\n if (!group.hasUsers()) {\n JOptionPane.showMessageDialog(null, \"Users are required\");\n return;\n }\n if (group.getId() == 0) {\n GroupRepository.get().save(group);\n } else {\n GroupRepository.get().update(group);\n }\n SwingUtilities.getWindowAncestor(this).dispose();\n } catch (RepositoryException ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage());\n }\n });\n button.setIcon(IconFactory.get().create(\"fa:check\"));\n panel.add(button);\n return panel;\n }", "public void createPartyPanel()\n {\n setPartyLabel(game.getPartyPane(), 0);\n //setPartyLabel(\"EMPTY\", 1);\n //setPartyLabel(\"EMPTY\", 2);\n //setPartyLabel(\"EMPTY\", 3);\n reloadPartyPanel();\n }", "private void createComponents() {\n\n add(createSetDataPanel(), BorderLayout.NORTH);\n add(createResourcesListAndButtonsPanel(), BorderLayout.CENTER);\n }", "public ADD() {\n initComponents();\n }", "private void createManualJPanel() {\r\n createJPanelWithManual();\r\n JFrame frame = new JFrame();\r\n customizeFrame(frame);\r\n }", "private void butUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butUpdateActionPerformed\n AddBorrower ub = new AddBorrower();\n ub.setVisiblePanel(1);\n ub.setVisible(true);\n }", "public Project_Create() {\n initComponents();\n }", "protected static void create(String[] userDataInput, String billboardID, String currentName) {\n JFrame frame = new RenameBillboard(\"Billboard Client\", userDataInput, billboardID, currentName);\n frame.setVisible(true);\n }", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "public PanelSobre() {\n initComponents();\n }", "public PanelSobre() {\n initComponents();\n }", "private JPanel createButtonPanel() {\n\t\tJPanel buttonPanel = new JPanel();\n\t\tbuttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.LINE_AXIS));\n\t\t\n\t\tGridBagConstraints gbc = new GridBagConstraints();\n gbc.gridwidth = GridBagConstraints.REMAINDER;\n gbc.anchor = GridBagConstraints.NORTH;\n gbc.anchor = GridBagConstraints.CENTER;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n\t\t\n\t\tJButton okBtn = new JButton(\"Close\");\n\t\t\n\t\tokBtn.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent event) {\n \tsetVisible(false);\n }\n });\n\t\t\n\t\tJPanel buttons = new JPanel(new GridBagLayout());\n buttons.add(okBtn, gbc);\n \n gbc.weighty = 1;\n\t\tbuttonPanel.add(buttons, gbc);\n\t\tbuttonPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\n\n\t\treturn buttonPanel;\n\t}", "private Panel createMessagePanel()\n {\n Panel messagePanel;\n Label product;\n Label version;\n Label copyright;\n\n product = new Label(\"File System Archiver\");\n version = new Label(\"Version \" + Constants.CLIENT_VERSION);\n copyright = new Label(\"Copyright (c) 2001\");\n\n messagePanel = new Panel();\n messagePanel.setLayout(new GridLayout(3, 0));\n\n messagePanel.add(product);\n messagePanel.add(version);\n messagePanel.add(copyright);\n\n messagePanel.setVisible(true);\n\n return messagePanel;\n }", "public FrameCadastro(String tipo[]){\r\n\t\tsuper(\"ApartManager-Cadastro\");\r\n\t\t\r\n\t\tPanelCadastro panelC = new PanelCadastro(tipo);\r\n\t\t\r\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\r\n\t\tsetSize(700, 700);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t\tsetResizable(false);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tsetContentPane(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\tpanelC.setBounds(0, 0, 700, 700);\r\n\t\tpanel.add(panelC);\r\n\t\tpanel.setVisible(true);\r\n\t}", "private void createdComponent() {\r\n\r\n\t\tloadImage();\r\n\t\tresizeImage();\r\n\t\ttry {\r\n\t\t\tif (customFont == null) {\r\n\t\t\t\tcustomFont = FontLoader.getInstance().getXenipa();\r\n\t\t\t\tif (customFont == null) {\r\n\t\t\t\t\tcustomFont = new FontLoader().importFont();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (FontFormatException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.init();\r\n\t\tthis.createpanel1();\r\n\t\tthis.createpanel2();\r\n\t\tthis.createpanel3();\r\n\t\tthis.createpanel4();\r\n\t\tthis.revalidate();\r\n\t}", "public JComponent createTopPanel() {\n\n\t//\tcontent();\n\t\tfields = new JTextField[NBR_FIELDS];\n\t\tmyTable = new PalletTable(db);\n\t\ttable = new JTable(myTable);\n\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\t\ttable.setPreferredScrollableViewportSize(new Dimension(750, 100));\n table.setFillsViewportHeight(true);\n\t\tscroll = new JScrollPane(table);\n\t//\tcontent();\n\t\tmainPanel= new JPanel();\n\t\tmainPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.gridy=0;\n\t\tmainPanel.add(scroll,c);\n\t\tc.gridy=1;\n\t\tmainPanel.add(content(),c);\n\t\t//scroll.setPreferredSize(new Dimension(300,250));\n\t\treturn mainPanel;\n\t}", "private JPanel getBpaButtons() {\n\t\tif (bpaButtons == null) {\n\t\t\tbpaButtons = new JPanel();\n\t\t\tbpaButtons.setLayout(new FlowLayout(FlowLayout.CENTER, LAYOUT_WIDTH, 0));\n\t\t\tbpaButtons.setBackground(Color.BLACK);\n\t\t\tbpaButtons.setPreferredSize(new Dimension(EDITOR_PAN_WIDTH, EDITOR_PAN_HIGHT));\n\n\n\t\t\t// save button\n\t\t\tbtnSave = new BtnEditor(guiManager);\t\t\t\n\t\t\tbtnSave.setPreferredSize(new Dimension(EDITOR_PAN_WIDTH, LABEL_WIDTH));\n\t\t\tbtnSave.addActionListener(new ActionListener() {\t\t\t\t\n\t\t\t\n\t\t\t\t/**\n\t\t\t\t * call controller to save Level\n\t\t\t\t * ... alalalallaaaaaaaa\n\t\t\t\t */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tguiManager.getGameController().saveLevel();\n\t\t\t\t}\n\t\t\t});\n\t\t\tbtnSave.setText(\"Save\");\n\n\t\t\t// load button\n\t\t\tbtnLoad = new BtnEditor(guiManager);\n\t\t\tbtnLoad.setPreferredSize(new Dimension(EDITOR_PAN_WIDTH, LABEL_WIDTH));\n\t\t\tbtnLoad.addActionListener(new ActionListener() {\t\t\n\t\t\t\t/**\n\t\t\t\t * call controller to display level choose.\n\t\t\t\t */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tguiManager.getGameController().processMenuInput(MENU_ITEM.MNU_LEVEL_CHOOSE);\n\t\t\t\t}\n\t\t\t});\n\t\t\tbtnLoad.setText(\"Load\");\n\n\n\t\t\t// reset button\n\t\t\tbtnReset = new BtnEditor(guiManager);\n\t\t\tbtnReset.setPreferredSize(new Dimension(EDITOR_PAN_WIDTH, LABEL_WIDTH));\n\t\t\tbtnReset.addActionListener(new ActionListener() {\t\t\n\t\t\t\t/**\n\t\t\t\t * reset Level.\n\t\t\t\t */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tresetLevel();\n\t\t\t\t}\n\t\t\t});\n\t\t\tbtnReset.setText(\"Reset\");\n\n\t\t\tbpaButtons.add(btnSave);\n\t\t\tbpaButtons.add(btnLoad);\n\t\t\tbpaButtons.add(btnReset);\n\t\t}\n\t\treturn bpaButtons;\n\t}", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "public FrameForm() {\n initComponents();\n }", "private void buildPanel()\n\t{\n\t\tvoterIDMessage = new JLabel(\"Please Enter Your Voter ID.\");\n\t\tbutton1 = new JButton(\"Cancel\");\n\t\tbutton1.addActionListener(new ButtonListener());\n\t\tbutton2 = new JButton(\"OK\");\n\t\tbutton2.addActionListener(new ButtonListener());\n\t\tidText = new JTextField(10);\n\t\tpanel1 = new JPanel();\n\t\tpanel2 = new JPanel();\n\t\tpanel3 = new JPanel();\n\t\tpanel1.add(voterIDMessage);\n\t\tpanel2.add(idText);\n\t\tpanel3.add(button1);\n\t\tpanel3.add(button2);\n\t}", "public static void initialisePanel(){\n\t\t\n\t\tBrewPanel = new JPanel();\n\t\tBrewPanel.setLayout(new MigLayout(\"\", \"[grow][65px:n:65px]\", \"[20px:n:20px][25px:n:25px][grow]\"));\n\t\t\n\t\t\n\t\t//Header\n\t\tBrewHeader = new JLabel(\"Brew\");\n\t\tBrewHeader.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\n\t\tBrewPanel.add(BrewHeader, \"cell 0 0,grow\");\n\t\t\n\t\t\n\t\t//Subtitle\n\t\tBrewSubtitle = new JLabel(\"Browse and edit the brew database.\");\n\t\tBrewSubtitle.setFont(new Font(\"Tahoma\", Font.ITALIC, 13));\n\t\tBrewPanel.add(BrewSubtitle, \"cell 0 1,growx,aligny top\");\n\t\t\n\t\tbtnPrintBrew = new JButton();\n\t\tbtnPrintBrew.setIcon(new ImageIcon(BrewPanel.class.getResource(\"/images/print.png\")));\n\t\tbtnPrintBrew.setToolTipText(\"Save currently selected brew data to printable .pdf\");\n\t\tBrewPanel.setVisible(true);\n \tbtnPrintBrew.setVisible(false);\n\t\tbtnPrintBrew.setEnabled(false);\n\t\tBrewPanel.add(btnPrintBrew, \"cell 1 0\");\n\t\t\n\t\t//Tabbed Pane\n\t\ttabbedBrewPane = new JTabbedPane(JTabbedPane.TOP);\n\t\tBrewPanel.add(tabbedBrewPane, \"cell 0 2 2,grow\");\n\t\t\t\t\n\t\t\n\t\t//Brew Search Tab\n\t\tBrewSearchPanel.initialisePanel();\t\t\n\t\ttabbedBrewPane.addTab(\"Search\", null, BrewSearchPanel.tabbedBrewSearchPanel, null);\n\t\t\n\t\t\n\t\t//Brew Data Tab\n\t\tBrewDataPanel.initialisePanel();\t\t\n\t\ttabbedBrewPane.addTab(\"Brew Data\", null, BrewDataPanel.tabbedBrewDataPanel, null);\n\t\t\n\t\t\n\t\t//Brew Notes Tab\n\t\tBrewNotesPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Notes\", null, BrewNotesPanel.tabbedBrewNotesPanel, null);\n\t\t\n\t\t\n\t\t//Brew Pictures Tab\n\t\tBrewPicturesPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Pictures\", null, BrewPicturesPanel.tabbedBrewPicturesPanel, null);\n\t\t\n\t\t\n\t\t//Brew Pictures Tab\n\t\tBrewCostPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Costs\", null, BrewCostPanel.tabbedBrewCostPanel, null);\n\t\t\t\t\n\t\t\n\t\t//Add New Brew Tab\n\t\tBrewAddPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Add New Brew\", new ImageIcon(BrewPanel.class.getResource(\"/images/new.png\")), BrewAddPanel.tabbedBrewAddPanel, null);\n\t\t\n\t\t\n\t\t//Set some tabs disabled initially\n\t\ttabbedBrewPane.setEnabledAt(1, false);\n\t\ttabbedBrewPane.setEnabledAt(2, false);\n\t\ttabbedBrewPane.setEnabledAt(3, false);\n\t\ttabbedBrewPane.setEnabledAt(4, false);\n\t\t\n\t \t\n\t\t//Add it all to the main window\n\t\tLegacyApp.WineBrewDBFrame.getContentPane().add(BrewPanel, \"cell 0 0,grow\");\n\t\tBrewPanel.setVisible(false);\n\n\t\t\n\t\tBrewPanelStatus = \"Initialised\";\n\t\t\n\t\t\n\t\t//Add print button listener\n\t\tbtnPrintBrew.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJFileChooser c = new JFileChooser();\n\t\t\t int rVal = c.showSaveDialog(LegacyApp.WineBrewDBFrame);\n\t\t\t if (rVal == JFileChooser.APPROVE_OPTION) {\t\t\t \t \t \n\t\t\t\t\tString pdflocation = c.getCurrentDirectory().toString() + LegacyApp.OSSlash + c.getSelectedFile().getName() + \".pdf\";\n\t\t\t\t\tBrewPDF.createPDF(pdflocation);\t \t \n\t\t\t \t \n\t\t\t }\n\t\t\t if (rVal == JFileChooser.CANCEL_OPTION) {\n\t\t\t \t \n\t\t\t }\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\ttabbedBrewPane.addChangeListener(new ChangeListener() {\n\t\t // This method is called whenever the selected tab changes\n\t\t public void stateChanged(ChangeEvent evt) {\n\t\t JTabbedPane pane = (JTabbedPane)evt.getSource();\n\n\t\t // Get current tab\n\t\t int sel = pane.getSelectedIndex();\n\t\t if(sel == 0 || sel == 5){\n\t\t \tbtnPrintBrew.setVisible(false);\n\t\t \t\tbtnPrintBrew.setEnabled(false);\n\t\t }else{\n\t\t \tbtnPrintBrew.setVisible(true);\n\t\t \t\tbtnPrintBrew.setEnabled(true);\n\t\t }\n\t\t }\n\t\t});\n\t}", "protected void createComponents() {\n sampleText = new JTextField(20);\n displayArea = new JLabel(\"\");\n displayArea.setPreferredSize(new Dimension(200, 75));\n displayArea.setMinimumSize(new Dimension(200, 75));\n }", "@Override\n\tpublic JPanel createContentPane() {\n\t\t// Fabriken holen\n\t\tGridBagConstraintsFactory gbcf = GridBagConstraintsFactory.getInstance();\n\t\tWidgetFactory wf = WidgetFactory.getInstance();\n\t\t// Widgets erzeugen\n\t\tJPanel panel = wf.getContentPane(\"MainFrame\", true);\n\t\tpanel.add(createPanelStoredServices(), gbcf.getTableConstraints(0, 1, 1, 1));\n\t\tpanel.add(createPanelEditService(), gbcf.getTableConstraints(0, 2, 1, 1));\n\t\treturn panel;\n\t}", "public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}", "private void addPanelstoBookPanel() {\r\n this.add(centerPanel, BorderLayout.CENTER);\r\n\r\n /**\r\n * Add the bookPanel to the baseScreen en revalidate and repaint\r\n */\r\n Main.getController().getBaseScreen().mainContainer.add(this, BorderLayout.CENTER);\r\n Main.getController().getBaseScreen().mainContainer.revalidate();\r\n Main.getController().getBaseScreen().mainContainer.repaint();\r\n }", "private void buildPanel()\r\n\t{\r\n\t\tgallonsLabel = new JLabel(\"Gallons: \");\r\n\t\tgallonsField = new JTextField(5);\r\n\t\t\r\n\t\tmilesLabel = new JLabel(\"Miles: \");\r\n\t\tmilesField = new JTextField(5);\r\n\t\t\r\n\t\tcalcButton = new JButton(\"Calculate MPG\");\r\n\t\tcalcButton.addActionListener(new CalcButtonListener());\r\n\t\t\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.add(gallonsLabel);\r\n\t\tpanel.add(gallonsField);\r\n\t\tpanel.add(milesLabel);\r\n\t\tpanel.add(milesField);\r\n\t\tpanel.add(calcButton);\r\n\t}", "public CreateProjectFrame(Model model, ButtonListener bL) {\r\n\r\n\t\tthis.setSize(450, 250);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setTitle(\"Create Project\");\r\n\r\n\t\tcPP = new CreateProjectPanel(model, bL);\r\n\r\n\r\n\t\tthis.add(cPP,BorderLayout.CENTER);\r\n\t\tshowIt();\r\n\t}", "public Botones() {\n initComponents();\n }", "private void createUIComponents() {\n bt1 = new JButton(\"Hola\");\n }" ]
[ "0.6881537", "0.68772125", "0.6737818", "0.6632987", "0.66253966", "0.6496407", "0.6399921", "0.6351036", "0.6349978", "0.634981", "0.63331926", "0.63331926", "0.6324923", "0.63164353", "0.6307471", "0.6295564", "0.6270902", "0.6267749", "0.62665606", "0.6244809", "0.62247145", "0.6222465", "0.6217329", "0.62050104", "0.6197624", "0.61918324", "0.6179781", "0.6178627", "0.6174437", "0.6154717", "0.61543816", "0.6151616", "0.61491036", "0.61475223", "0.6135253", "0.6131009", "0.61276275", "0.61173815", "0.610477", "0.61006236", "0.60998863", "0.60857975", "0.60807645", "0.6080709", "0.6076444", "0.6067977", "0.6058661", "0.6052035", "0.6051982", "0.60443", "0.60432935", "0.604095", "0.60376555", "0.6036463", "0.603572", "0.6028573", "0.60267913", "0.6023017", "0.60214925", "0.60176337", "0.60175955", "0.60129815", "0.6006048", "0.6002462", "0.59969735", "0.5992239", "0.5990586", "0.59828955", "0.5980711", "0.5980484", "0.5978532", "0.59745014", "0.59740865", "0.5973431", "0.5961094", "0.59600365", "0.59577006", "0.5950106", "0.59473634", "0.5941375", "0.5937556", "0.5937556", "0.59289527", "0.59256107", "0.5921575", "0.59206575", "0.5918448", "0.5917227", "0.591268", "0.59100556", "0.5909249", "0.5909172", "0.59072405", "0.5905442", "0.5903272", "0.58997416", "0.58904356", "0.5888608", "0.5888211", "0.5885699" ]
0.6098276
41
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroupTemperature = new javax.swing.ButtonGroup(); jToggleButton1 = new javax.swing.JToggleButton(); jLabel1 = new javax.swing.JLabel(); jSlider1 = new javax.swing.JSlider(); jTextFieldName = new javax.swing.JTextField(); jRadioCold = new javax.swing.JRadioButton(); jRadioNormal = new javax.swing.JRadioButton(); jRadioWarm = new javax.swing.JRadioButton(); jLabel2 = new javax.swing.JLabel(); jLabelDates = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); setMaximumSize(new java.awt.Dimension(32767, 89)); setMinimumSize(new java.awt.Dimension(0, 89)); jToggleButton1.setText("On / Off"); jToggleButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jToggleButton1ActionPerformed(evt); } }); jLabel1.setText("Intensity :"); jSlider1.setMaximum(255); jSlider1.setMinimum(1); jSlider1.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSlider1StateChanged(evt); } }); jTextFieldName.setEditable(false); jTextFieldName.setText("[Not Connected]"); buttonGroupTemperature.add(jRadioCold); jRadioCold.setText("Cold"); jRadioCold.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioColdActionPerformed(evt); } }); buttonGroupTemperature.add(jRadioNormal); jRadioNormal.setText("Normal"); jRadioNormal.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioNormalActionPerformed(evt); } }); buttonGroupTemperature.add(jRadioWarm); jRadioWarm.setText("Warm"); jRadioWarm.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioWarmActionPerformed(evt); } }); jLabel2.setText("Name :"); jLabelDates.setFont(new java.awt.Font("Dialog", 0, 10)); // NOI18N jLabelDates.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelDates.setText("Installed: Unknown - Last seen: Unknown - Firmware: Unknown"); jButton1.setFont(new java.awt.Font("Dialog", 1, 10)); // NOI18N jButton1.setText("GET"); jButton1.setMaximumSize(new java.awt.Dimension(56, 18)); jButton1.setMinimumSize(new java.awt.Dimension(56, 18)); jButton1.setPreferredSize(new java.awt.Dimension(56, 18)); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton2.setFont(new java.awt.Font("Dialog", 1, 10)); // NOI18N jButton2.setText("SET"); jButton2.setMaximumSize(new java.awt.Dimension(56, 18)); jButton2.setMinimumSize(new java.awt.Dimension(56, 18)); jButton2.setPreferredSize(new java.awt.Dimension(56, 18)); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jButton3.setText("Color"); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel1) .addComponent(jLabel2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSlider1, javax.swing.GroupLayout.DEFAULT_SIZE, 514, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addComponent(jTextFieldName) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioWarm) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioNormal) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioCold)))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelDates, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jToggleButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jToggleButton1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(11, 11, 11) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jRadioCold) .addComponent(jRadioNormal) .addComponent(jRadioWarm) .addComponent(jTextFieldName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton3))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelDates) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "0.6944929", "0.6942576", "0.69355655", "0.6931378", "0.6927896", "0.69248974", "0.6924723", "0.69116884", "0.6910487", "0.6892381", "0.68921053", "0.6890637", "0.68896896", "0.68881863", "0.68826133", "0.68815064", "0.6881078", "0.68771756", "0.6875212", "0.68744373", "0.68711984", "0.6858978", "0.68558776", "0.6855172", "0.6854685", "0.685434", "0.68525875", "0.6851834", "0.6851834", "0.684266", "0.6836586", "0.6836431", "0.6828333", "0.68276715", "0.68262815", "0.6823921", "0.682295", "0.68167603", "0.68164384", "0.6809564", "0.68086857", "0.6807804", "0.6807734", "0.68067646", "0.6802192", "0.67943805", "0.67934304", "0.6791657", "0.6789546", "0.6789006", "0.67878324", "0.67877173", "0.6781847", "0.6765398", "0.6765197", "0.6764246", "0.6756036", "0.6755023", "0.6751404", "0.67508715", "0.6743043", "0.67387456", "0.6736752", "0.67356426", "0.6732893", "0.6726715", "0.6726464", "0.67196447", "0.67157453", "0.6714399", "0.67140275", "0.6708251", "0.6707117", "0.670393", "0.6700697", "0.66995865", "0.66989213", "0.6697588", "0.66939527", "0.66908985", "0.668935" ]
0.0
-1
End of variables declaration//GENEND:variables
protected void updatePanelContent() { updating = true; jTextFieldName.setText(bulb.getName()); jTextFieldName.setToolTipText(bulb.getType()); jSlider1.setValue(bulb.getIntensity()); jToggleButton1.setSelected(bulb.isOn()); if (bulb.getColor() != null) { jRadioCold.setEnabled(true); jRadioNormal.setEnabled(true); jRadioWarm.setEnabled(true); switch(bulb.getColor()) { case TradfriConstants.COLOR_NORMAL: jRadioNormal.setSelected(true); break; case TradfriConstants.COLOR_WARM: jRadioWarm.setSelected(true); break; case TradfriConstants.COLOR_COLD: jRadioCold.setSelected(true); break; } } else { jRadioCold.setEnabled(false); jRadioNormal.setEnabled(false); jRadioWarm.setEnabled(false); } if (bulb.isOnline()) { jToggleButton1.setEnabled(true); jRadioCold.setEnabled(true); jRadioNormal.setEnabled(true); jRadioWarm.setEnabled(true); jSlider1.setEnabled(true); jLabelDates.setText("Installed: "+bulb.getDateInstalled()+" - Last seen: "+bulb.getDateLastSeen()+" - Firmware: " + bulb.getFirmware() + " [online]"); } else { jToggleButton1.setEnabled(false); jRadioCold.setEnabled(false); jRadioNormal.setEnabled(false); jRadioWarm.setEnabled(false); jSlider1.setEnabled(false); jLabelDates.setText("Installed: "+bulb.getDateInstalled()+" - Last seen: "+bulb.getDateLastSeen()+" - Firmware: " + bulb.getFirmware() + " [offline]"); } updating = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
create operation request and response objects
@Test public void testSetExpressCheckout() { SetExpressCheckoutReq setExpressCheckoutReq = new SetExpressCheckoutReq(); SetExpressCheckoutRequestType setExpressCheckoutRequest = new SetExpressCheckoutRequestType(); setExpressCheckoutReq.setSetExpressCheckoutRequest(setExpressCheckoutRequest); SetExpressCheckoutResponseType setExpressCheckoutRes = new SetExpressCheckoutResponseType(); when(paypalAPIAAInterfaceMock.setExpressCheckout(setExpressCheckoutReq, headers)).thenReturn(setExpressCheckoutRes); SetExpressCheckoutResponseType response = paypalPaymentService.setExpressCheckout(setExpressCheckoutRequest); assertNotNull("Response should not be null", response); assertEquals("Response objects must be equels", response, setExpressCheckoutRes); verify(paypalAPIAAInterfaceMock, times(1)).setExpressCheckout(setExpressCheckoutReq, headers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Request _request(String operation);", "public abstract Response create(Request request, Response response);", "Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result,\n ExceptionList exclist,\n ContextList ctxlist);", "void createRequest(EnumOperationType opType, IParameter parameter);", "Operation createOperation();", "Operation createOperation();", "Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result);", "Operations createOperations();", "public Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result) {\n throw new NO_IMPLEMENT(reason);\n }", "public Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result,\n ExceptionList exceptions,\n ContextList contexts) {\n throw new NO_IMPLEMENT(reason);\n }", "Response createResponse();", "public static OperationResponse builder() {\n\t\treturn new OperationResponse();\n\t}", "public APIOperation()\n {\n super();\n }", "public Request _request(String operation) {\n throw new NO_IMPLEMENT(reason);\n }", "com.learning.learning.grpc.ManagerOperationRequest.Operations getOperation();", "private final static HttpRequest createRequest() {\r\n\r\n HttpRequest req = new BasicHttpRequest\r\n (\"GET\", \"/\", HttpVersion.HTTP_1_1);\r\n //(\"OPTIONS\", \"*\", HttpVersion.HTTP_1_1);\r\n\r\n return req;\r\n }", "public interface IRequest {\n\t/**\n\t * This method creates request based on operationType and parameter object.\n\t * @param opType operation type of the request to be created.\n\t * @param params List of parameters to be sent along with the request.\n\t */\n\tvoid createRequest(EnumOperationType opType, IParameter parameter);\n\t\n\t/**\n\t * This method retrieves operation type of the the request.\n\t * \n\t * @return operation type\n\t */\n\tEnumOperationType getOperationType();\n\t\n\t/**\n\t * This method retrieves the parameters object configured for the request.\n\t */\n\tIParameter getParameter();\n\t\n\t/**\n\t * This method allows user to get configured request in XML.\n\t * \n\t * @return\n\t * @throws Exception \n\t */\n\tpublic String getRequestInXML() throws Exception;\n\t\n\t/**\n\t * This method parses XML and creates a request object out of it. \n\t */\n\tpublic void parseXML(String XML);\n\t\n\tpublic void setId(String id);\n\t\n\tpublic String getId();\n}", "OperationCallExp createOperationCallExp();", "com.indosat.eai.catalist.standardInputOutput.RequestType addNewRequest();", "public RequestImpl(ORB orb,\n org.omg.CORBA.Object targetObject,\n Context ctx,\n String operationName,\n NVList argumentList,\n NamedValue resultContainer,\n ExceptionList exceptionList,\n ContextList ctxList){\n // initialize the orb\n _orb=orb;\n _wrapper=ORBUtilSystemException.get(orb,\n CORBALogDomains.OA_INVOCATION);\n // initialize target, context and operation name\n _target=targetObject;\n _ctx=ctx;\n _opName=operationName;\n // initialize argument list if not passed in\n if(argumentList==null)\n _arguments=new NVListImpl(_orb);\n else\n _arguments=argumentList;\n // set result container.\n _result=resultContainer;\n // initialize exception list if not passed in\n if(exceptionList==null)\n _exceptions=new ExceptionListImpl();\n else\n _exceptions=exceptionList;\n // initialize context list if not passed in\n if(ctxList==null)\n _ctxList=new ContextListImpl(_orb);\n else\n _ctxList=ctxList;\n // initialize environment\n _env=new EnvironmentImpl();\n }", "OperationContinuation createOperationContinuation();", "private RequestExecution() {}", "OperationsClient getOperations();", "void applyResponses(ReaderContext context, Operation operation, Method method);", "ServiceResponse execute(RequestParameters request);", "protected ModelNode createOperation(String address, String operation, String... params) {\n ModelNode op = new ModelNode();\n String[] pathSegments = address.split(\"/\");\n ModelNode list = op.get(\"address\").setEmptyList();\n for (String segment : pathSegments) {\n String[] elements = segment.split(\"=\");\n list.add(elements[0], elements[1]);\n }\n op.get(\"operation\").set(operation);\n for (String param : params) {\n String[] elements = param.split(\"=\");\n op.get(elements[0]).set(elements[1]);\n }\n return op;\n }", "IOperationable create(String operationType);", "private Request() {}", "private Request() {}", "protected Response createInsertingrequest(String urlFA,JSONObject jsonObject,HttpBasicAuthFilter auth,String type){\n ClientConfig config = new ClientConfig();\n Client client = ClientBuilder.newClient(config);\n WebTarget target;\n target = client.target(getBaseURI(urlFA));\n //Response plainAnswer =null; \n target.register(auth);\n \n Invocation.Builder invocationBuilder =target.request(MediaType.APPLICATION_JSON);\n MultivaluedHashMap<String,Object> mm=new MultivaluedHashMap<String,Object>();\n mm.add(\"content-type\", MediaType.APPLICATION_JSON);\n mm.add(\"Accept\", \"application/json\");\n mm.add(\"charsets\", \"utf-8\");\n invocationBuilder.headers(mm);\n //preliminary operation of request creation ended\n Response plainAnswer=null;\n switch(type){\n case \"post\":\n {\n plainAnswer=invocationBuilder\n .post(Entity.entity(jsonObject.toString(), MediaType.APPLICATION_JSON_TYPE));\n break;\n }\n case \"put\":\n {\n plainAnswer =invocationBuilder\n .put(Entity.entity(jsonObject.toString(), MediaType.APPLICATION_JSON));\n break;\n }\n }\n return plainAnswer;\n }", "JobResponse create();", "@Override\r\n\tpublic Object request(Invocation invocation) throws Exception {\n\t\tRpcRequest req=new RpcRequest();\r\n\t\treq.setId(UUID.randomUUID().toString());\r\n\t\treq.setArgs(invocation.getAgrs());\r\n\t\treq.setMethod(invocation.getMethod().getName());\r\n\t\treq.setParameterTypes(invocation.getMethod().getParameterTypes());\r\n\t\treq.setType(invocation.getInterface());\r\n\t\treq.setAsyn(invocation.isAsyn());\r\n\t\tCompletableFuture<Object> result=new CompletableFuture<>();\r\n\t\tclientPool.borrowObject().request(req,result);\r\n\t\tif(invocation.isAsyn()){\r\n\t\t\treturn result;\r\n\t\t}else{\r\n\t\t\treturn result.get();\r\n\t\t}\r\n\r\n\r\n\t}", "public interface Requestor {\r\n \r\n /**\r\n * Marshal the given operation and its parameters into a request object, send\r\n * it to the remote component, and interpret the answer and convert it back\r\n * into the return type of generic type T\r\n * \r\n * @param <T>\r\n * generic type of the return value\r\n * @param objectId\r\n * the object that this request relates to; not that this may not\r\n * necessarily just be the object that the method is called upon\r\n * @param operationName\r\n * the operation (=method) to invoke\r\n * @param typeOfReturnValue\r\n * the java reflection type of the returned type\r\n * @param argument\r\n * the arguments to the method call\r\n * @return the return value of the type given by typeOfReturnValue\r\n */\r\n <T> T sendRequestAndAwaitReply(String objectId, String operationName, Type typeOfReturnValue, String accessToken, Object... argument);\r\n\r\n}", "public long createRequest(Request _request) throws RequestManagerException, PersistenceResourceAccessException;", "public void postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }", "public void postRequest(Request request, Response response) {\n\t\tcreateObject(request, response);\n\t}", "public Operation(){\n\t}", "private static byte[] createRequest(String name, String requestType) {\n\n // Creates the header for the request\n byte[] header = createHeader();\n\n // Creates the query for the request\n byte[] query = createQuery(name, requestType);\n\n // Final Packet.\n byte[] request = new byte[header.length + query.length];\n\n // Byte Buffers provide useful utilities.\n ByteBuffer rqBuf = ByteBuffer.wrap(request);\n\n // Combine header and query\n rqBuf.put(header);\n rqBuf.put(query);\n\n return request;\n }", "public interface Request {\n\n /**\n * This method executes the request.\n * @return a responseEntity containing the reponse (status and body).\n */\n ResponseEntity execute();\n}", "public RPCRequest()\n\t{\n\t\tsuper();\n\t}", "public interface ApiInterface {\n\n @POST(\"/request/getAll\")\n Call<List<Request>> getRequest(@Body Location location);\n\n @POST(\"/request/create\")\n Call<Request> createRequest(@Body Request request);\n\n @POST(\"/deliver/accept/\")\n Call<Request> acceptRequest(@Query(\"id\") String requestId);\n\n}", "@SuppressWarnings(\"unused\")\n protected HttpOperation(String path, HashMap<String, String> parameters,\n HttpRequest.NetworkOperationType requestType) {\n this(path, parameters, requestType, null);\n }", "ResponseDTO performServerActions();", "public Operation() {\n super();\n }", "public interface Request{\n public Response execute(Library library);\n public String getTextString();\n public String[] getParams();\n public boolean isPartial();\n}", "BOperation createBOperation();", "public interface RequestServer {\n\n @GET(\"caseplatform/mobile/system-eventapp!register.action\")\n Call<StringResult> register(@Query(\"account\") String account, @Query(\"password\") String password, @Query(\"name\") String name,\n @Query(\"mobilephone\") String mobilephone, @Query(\"identityNum\") String identityNum);\n\n @GET(\"caseplatform/mobile/login-app!login.action\")\n Call<String> login(@Query(\"name\") String username, @Query(\"password\") String password);\n\n @GET(\"caseplatform/mobile/system-eventapp!setUserPassword.action\")\n Call<StringResult> setPassword(@Query(\"account\") String account,\n @Query(\"newPassword\") String newPassword,\n @Query(\"oldPassword\") String oldPassword);\n\n @GET(\"caseplatform/mobile/system-eventapp!getEventInfo.action\")\n Call<Event> getEvents(@Query(\"account\") String account, @Query(\"eventType\") String eventType);\n\n @GET(\"caseplatform/mobile/system-eventapp!reportEventInfo.action \")\n Call<EventUpload> reportEvent(\n @Query(\"account\") String account,\n @Query(\"eventType\") String eventType,\n @Query(\"address\") String address,\n @Query(\"eventX\") String eventX,\n @Query(\"eventY\") String eventY,\n @Query(\"eventMs\") String eventMs,\n @Query(\"eventMc\") String eventMc,\n @Query(\"eventId\") String eventId,\n @Query(\"eventClyj\") String eventClyj,\n @Query(\"eventImg\") String eventImg,\n @Query(\"eventVideo\") String eventVideo,\n @Query(\"eventVoice\") String eventVoice\n );\n\n @GET(\"caseplatform/mobile/system-eventapp!getUserInfo.action\")\n Call<UserInfo> getUserInfo(@Query(\"orgNo\") String orgNo, @Query(\"account\") String account);\n\n @GET(\"caseplatform/mobile/system-eventapp!getOrgDataInfo.action\")\n Call<OrgDataInfo> getOrgData(@Query(\"orgNo\") String orgNo, @Query(\"account\") String account);\n\n @Multipart\n @POST(\"caseplatform/mobile/video-upload!uplodVideo.action\")\n Call<FileUpload> uploadVideo(@Part(\"video\") File video, @Part(\"videoFileName\") String videoFileName);\n\n @POST(\"caseplatform/mobile/video-upload!uplodVideo.action\")\n Call<FileUpload> uploadVideo(@Body RequestBody requestBody);\n\n @GET(\"caseplatform/mobile/video-upload!uplodAudio.action\")\n Call<FileUpload> uploadAudio(@Query(\"audio\") File audio, @Query(\"audioFileName\") String audioFileName);\n\n @POST(\"caseplatform/mobile/video-upload!uplodAudio.action\")\n Call<FileUpload> uploadAudio(@Body RequestBody requestBody);\n\n @GET(\"caseplatform/mobile/file-upload!uplodFile.action\")\n Call<FileUpload> uploadImage(@Query(\"img\") File img, @Query(\"imgFileName\") String imgFileName);\n\n @POST(\"caseplatform/mobile/file-upload!uplodFile.action\")\n Call<FileUpload> uploadImage(@Body RequestBody requestBody);\n\n @GET(\"caseplatform/mobile/system-eventapp!jobgps.action\")\n Call<StringResult> setCoordinate(@Query(\"account\") String account,\n @Query(\"address\") String address,\n @Query(\"x\") String x,\n @Query(\"y\") String y,\n @Query(\"coordsType\") String coordsType,\n @Query(\"device_id\") String device_id\n );\n\n @GET(\"caseplatform/mobile/system-eventapp!Mbtrajectory.action\")\n Call<Task> getTask(@Query(\"account\") String account);\n\n}", "public Object createContext(ApplicationRequest request,\n ApplicationResponse response);", "CreateResponse create(@NonNull CreateRequest request);", "public Operation() {\n /* empty */\n }", "public void create(HandlerContext context, Management request, Management response) {\n\t\t// TODO Auto-generated method stub\n\n\t}", "private <T> T executeRequest(Map<String, Object> params, AlchemyAPI operation, Class<T> returnType,\n\t\t\tString... acceptedFormats) {\n\t\t// Get the input format and check for missing parameters\n\t\tString format = getInputFormat(params, acceptedFormats);\n\t\t// Get the path that represent this operation based on the operation and format\n\t\tString path = AlchemyEndPoints.getPath(operation, format);\n\n\t\t// Return json\n\t\tparams.put(OUTPUT_MODE, \"json\");\n\n\t\t// Prevent jsonp to be returned\n\t\tparams.remove(JSONP);\n\n\t\tRequest request = Request.Post(path);\n\t\tfor (String param : params.keySet()) {\n\t\t\trequest.withForm(param, params.get(param));\n\t\t}\n\t\tHttpRequestBase requestBase = request.build();\n\t\ttry {\n\t\t\tHttpResponse response = execute(requestBase);\n\t\t\treturn ResponseUtil.getObject(response, returnType);\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "private HttpUriRequest createHttpRequest(String url, String method,\n\t\t\tList<NameValuePair> params) throws UnsupportedEncodingException {\n\t\tHttpUriRequest request;\n\t\tif (method.toUpperCase().equals(\"GET\")) {\n\t\t\trequest = new HttpGet(url);\n\t\t} else if (method.toUpperCase().equals(\"POST\")) {\n\t\t\tHttpPost post = new HttpPost(url);\n\t\t\tpost.setEntity(new UrlEncodedFormEntity(params));\n\t\t\trequest = post;\n\t\t} else if (method.toUpperCase().equals(\"PUT\")) {\n\t\t\trequest = new HttpPut(url);\n\t\t} else if (method.toUpperCase().equals(\"DELETE\")) {\n\t\t\trequest = new HttpDelete(url);\n\t\t} else {\n\t\t\trequest = new HttpGet();\n\t\t}\n\n\t\treturn request;\n\t}", "private void createGetResponse(final ClientSession session,\n\t\t\tfinal JsonObject response, final String opType) throws IpcException {\n\t\tLOG.trace(\"Starts SessionsResource#createGetResponse()\");\n\t\tfinal JsonArray sessArray = new JsonArray();\n\t\tfinal int count = session.getResponseCount();\n\t\tLOG.debug(\"Operation:\" + opType);\n\t\tfor (int i = VtnServiceJsonConsts.VAL_0; i < count; i++) {\n\t\t\tfinal IpcStruct responseStruct = (IpcStruct) session.getResponse(i);\n\t\t\tLOG.info(\"Response:\" + responseStruct.toString());\n\t\t\tJsonObject sessJson = null;\n\t\t\tsessJson = new JsonObject();\n\t\t\tfinal IpcStruct ipcResponseStructId = responseStruct\n\t\t\t\t\t.getInner(VtnServiceIpcConsts.SESS);\n\t\t\tsessJson.addProperty(\n\t\t\t\t\tVtnServiceJsonConsts.SESSIONID,\n\t\t\t\t\tIpcDataUnitWrapper.getIpcStructUint32Value(\n\t\t\t\t\t\t\tipcResponseStructId, VtnServiceIpcConsts.ID)\n\t\t\t\t\t\t\t.toString());\n\t\t\tLOG.debug(\"session_id:\"\n\t\t\t\t\t+ IpcDataUnitWrapper.getIpcStructUint32Value(\n\t\t\t\t\t\t\tipcResponseStructId, VtnServiceIpcConsts.ID));\n\n\t\t\tif (opType.equalsIgnoreCase(VtnServiceJsonConsts.DETAIL)) {\n\t\t\t\tLOG.debug(\"Case : detail\");\n\t\t\t\t// add type to response json\n\t\t\t\tif (IpcDataUnitWrapper\n\t\t\t\t\t\t.getIpcStructUint32Value(responseStruct,\n\t\t\t\t\t\t\t\tVtnServiceIpcConsts.SESS_TYPE)\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(UncSessionEnums.UsessTypeE.USESS_TYPE_WEB_API\n\t\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tsessJson.addProperty(VtnServiceJsonConsts.TYPE,\n\t\t\t\t\t\t\tVtnServiceJsonConsts.WEBAPI);\n\t\t\t\t} else if (IpcDataUnitWrapper\n\t\t\t\t\t\t.getIpcStructUint32Value(responseStruct,\n\t\t\t\t\t\t\t\tVtnServiceIpcConsts.SESS_TYPE)\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(UncSessionEnums.UsessTypeE.USESS_TYPE_WEB_UI\n\t\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tsessJson.addProperty(VtnServiceJsonConsts.TYPE,\n\t\t\t\t\t\t\tVtnServiceJsonConsts.WEBUI);\n\t\t\t\t} else {\n\t\t\t\t\tLOG.debug(\"Incorrect value for type\");\n\t\t\t\t}\n\t\t\t\tLOG.debug(\"type:\"\n\t\t\t\t\t\t+ IpcDataUnitWrapper.getIpcStructUint32Value(\n\t\t\t\t\t\t\t\tresponseStruct, VtnServiceIpcConsts.SESS_TYPE));\n\t\t\t\t// add user name to response json\n\t\t\t\tfinal String userName = IpcDataUnitWrapper\n\t\t\t\t\t\t.getIpcStructUint8ArrayValue(responseStruct,\n\t\t\t\t\t\t\t\tVtnServiceIpcConsts.SESS_UNAME);\n\t\t\t\tLOG.debug(\"user_name:\" + userName);\n\t\t\t\tif (VtnServiceIpcConsts.USESS_USER_WEB_ADMIN.equals(userName)) {\n\t\t\t\t\tsessJson.addProperty(VtnServiceJsonConsts.USERNAME,\n\t\t\t\t\t\t\tVtnServiceJsonConsts.ADMIN);\n\t\t\t\t} else if (VtnServiceIpcConsts.USESS_USER_WEB_OPER\n\t\t\t\t\t\t.equals(userName)) {\n\t\t\t\t\tsessJson.addProperty(VtnServiceJsonConsts.USERNAME,\n\t\t\t\t\t\t\tVtnServiceJsonConsts.OPER);\n\t\t\t\t} else {\n\t\t\t\t\tLOG.debug(\"Incorrect value for user_name\");\n\t\t\t\t}\n\t\t\t\t// add user type to response json\n\t\t\t\tif (IpcDataUnitWrapper\n\t\t\t\t\t\t.getIpcStructUint32Value(responseStruct,\n\t\t\t\t\t\t\t\tVtnServiceIpcConsts.USER_TYPE)\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(UncSessionEnums.UserTypeE.USER_TYPE_ADMIN\n\t\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tsessJson.addProperty(VtnServiceJsonConsts.USERTYPE,\n\t\t\t\t\t\t\tVtnServiceJsonConsts.ADMIN);\n\t\t\t\t} else if (IpcDataUnitWrapper\n\t\t\t\t\t\t.getIpcStructUint32Value(responseStruct,\n\t\t\t\t\t\t\t\tVtnServiceIpcConsts.USER_TYPE)\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(UncSessionEnums.UserTypeE.USER_TYPE_OPER\n\t\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tsessJson.addProperty(VtnServiceJsonConsts.USERTYPE,\n\t\t\t\t\t\t\tVtnServiceJsonConsts.OPER);\n\t\t\t\t} else {\n\t\t\t\t\tLOG.debug(\"Incorrect value for usertype\");\n\t\t\t\t}\n\t\t\t\tLOG.debug(\"usertype:\"\n\t\t\t\t\t\t+ IpcDataUnitWrapper.getIpcStructUint32Value(\n\t\t\t\t\t\t\t\tresponseStruct, VtnServiceIpcConsts.USER_TYPE));\n\t\t\t\t// add ipaddress to response json\n\t\t\t\tsessJson.addProperty(\n\t\t\t\t\t\tVtnServiceJsonConsts.IPADDR,\n\t\t\t\t\t\tIpcDataUnitWrapper.getIpcStructIpv4Value(\n\t\t\t\t\t\t\t\tresponseStruct, VtnServiceJsonConsts.IPADDR)\n\t\t\t\t\t\t\t\t.toString());\n\t\t\t\tLOG.debug(\"ipaddr:\"\n\t\t\t\t\t\t+ IpcDataUnitWrapper.getIpcStructIpv4Value(\n\t\t\t\t\t\t\t\tresponseStruct, VtnServiceJsonConsts.IPADDR));\n\t\t\t\t// add login name to response json\n\t\t\t\tsessJson.addProperty(\n\t\t\t\t\t\tVtnServiceJsonConsts.LOGIN_NAME,\n\t\t\t\t\t\tIpcDataUnitWrapper\n\t\t\t\t\t\t\t\t.getIpcStructUint8ArrayValue(responseStruct,\n\t\t\t\t\t\t\t\t\t\tVtnServiceJsonConsts.LOGIN_NAME)\n\t\t\t\t\t\t\t\t.toString());\n\t\t\t\tLOG.debug(\"login_name:\"\n\t\t\t\t\t\t+ IpcDataUnitWrapper\n\t\t\t\t\t\t\t\t.getIpcStructUint8ArrayValue(responseStruct,\n\t\t\t\t\t\t\t\t\t\tVtnServiceJsonConsts.LOGIN_NAME)\n\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t// add login time to response json\n\t\t\t\tfinal IpcStruct ipcResponseTimeStruct = responseStruct\n\t\t\t\t\t\t.getInner(VtnServiceIpcConsts.LOGIN_TIME);\n\t\t\t\tsessJson.addProperty(\n\t\t\t\t\t\tVtnServiceJsonConsts.LOGIN_TIME,\n\t\t\t\t\t\tIpcDataUnitWrapper.getIpcStructInt64Value(\n\t\t\t\t\t\t\t\tipcResponseTimeStruct,\n\t\t\t\t\t\t\t\tVtnServiceIpcConsts.TV_SEC).toString());\n\t\t\t\tLOG.debug(\"login_time:\"\n\t\t\t\t\t\t+ IpcDataUnitWrapper.getIpcStructInt64Value(\n\t\t\t\t\t\t\t\tipcResponseTimeStruct,\n\t\t\t\t\t\t\t\tVtnServiceIpcConsts.TV_SEC));\n\t\t\t\t// add info to response json\n\t\t\t\tsessJson.addProperty(\n\t\t\t\t\t\tVtnServiceJsonConsts.INFO,\n\t\t\t\t\t\tIpcDataUnitWrapper.getIpcStructUint8ArrayValue(\n\t\t\t\t\t\t\t\tresponseStruct, VtnServiceJsonConsts.INFO)\n\t\t\t\t\t\t\t\t.toString());\n\t\t\t\tLOG.debug(\"info:\"\n\t\t\t\t\t\t+ IpcDataUnitWrapper.getIpcStructUint8ArrayValue(\n\t\t\t\t\t\t\t\tresponseStruct, VtnServiceJsonConsts.INFO));\n\t\t\t\t// add mode to response json\n\t\t\t\tif (IpcDataUnitWrapper\n\t\t\t\t\t\t.getIpcStructUint32Value(responseStruct,\n\t\t\t\t\t\t\t\tVtnServiceIpcConsts.SESS_MODE)\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(UncSessionEnums.UsessModeE.USESS_MODE_OPER\n\t\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tsessJson.addProperty(VtnServiceJsonConsts.MODE,\n\t\t\t\t\t\t\tVtnServiceJsonConsts.OPER);\n\t\t\t\t} else if (IpcDataUnitWrapper\n\t\t\t\t\t\t.getIpcStructUint32Value(responseStruct,\n\t\t\t\t\t\t\t\tVtnServiceIpcConsts.SESS_MODE)\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(UncSessionEnums.UsessModeE.USESS_MODE_ENABLE\n\t\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tsessJson.addProperty(VtnServiceJsonConsts.MODE,\n\t\t\t\t\t\t\tVtnServiceJsonConsts.ENABLE);\n\t\t\t\t} else if (IpcDataUnitWrapper\n\t\t\t\t\t\t.getIpcStructUint32Value(responseStruct,\n\t\t\t\t\t\t\t\tVtnServiceIpcConsts.SESS_MODE)\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(UncSessionEnums.UsessModeE.USESS_MODE_DEL\n\t\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tsessJson.addProperty(VtnServiceJsonConsts.MODE,\n\t\t\t\t\t\t\tVtnServiceJsonConsts.DEL);\n\t\t\t\t} else if (IpcDataUnitWrapper\n\t\t\t\t\t\t.getIpcStructUint32Value(responseStruct,\n\t\t\t\t\t\t\t\tVtnServiceIpcConsts.SESS_MODE)\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(UncSessionEnums.UsessModeE.USESS_MODE_UNKNOWN\n\t\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tsessJson.addProperty(VtnServiceJsonConsts.MODE,\n\t\t\t\t\t\t\tVtnServiceJsonConsts.UNKNOWN);\n\t\t\t\t} else {\n\t\t\t\t\tLOG.debug(\"Incorrect value for mode\");\n\t\t\t\t}\n\t\t\t\tLOG.debug(\"mode: \"\n\t\t\t\t\t\t+ IpcDataUnitWrapper.getIpcStructUint32Value(\n\t\t\t\t\t\t\t\tresponseStruct, VtnServiceIpcConsts.SESS_MODE));\n\t\t\t\t// add configstatus to response json\n\t\t\t\tif (IpcDataUnitWrapper\n\t\t\t\t\t\t.getIpcStructUint32Value(responseStruct,\n\t\t\t\t\t\t\t\tVtnServiceIpcConsts.CONFIG_STATUS)\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(UncSessionEnums.UsessConfigModeE.CONFIG_STATUS_NONE\n\t\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tsessJson.addProperty(VtnServiceJsonConsts.CONFIGSTATUS,\n\t\t\t\t\t\t\tVtnServiceJsonConsts.DISABLE);\n\t\t\t\t} else if (IpcDataUnitWrapper\n\t\t\t\t\t\t.getIpcStructUint32Value(responseStruct,\n\t\t\t\t\t\t\t\tVtnServiceIpcConsts.CONFIG_STATUS)\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(UncSessionEnums.UsessConfigModeE.CONFIG_STATUS_TCLOCK\n\t\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tsessJson.addProperty(VtnServiceJsonConsts.CONFIGSTATUS,\n\t\t\t\t\t\t\tVtnServiceJsonConsts.ENABLE);\n\t\t\t\t} else {\n\t\t\t\t\tLOG.debug(\"Incorrect value for config_status\");\n\t\t\t\t}\n\t\t\t\tLOG.debug(\"configstatus: \"\n\t\t\t\t\t\t+ IpcDataUnitWrapper.getIpcStructUint32Value(\n\t\t\t\t\t\t\t\tresponseStruct,\n\t\t\t\t\t\t\t\tVtnServiceIpcConsts.CONFIG_STATUS));\n\t\t\t}\n\t\t\tsessArray.add(sessJson);\n\t\t}\n\t\tresponse.add(VtnServiceJsonConsts.SESSIONS, sessArray);\n\t\tLOG.trace(\"Completed SessionsResource#createGetResponse()\");\n\t}", "public static ApiRequest createRequests() {\n Retrofit retrofit = builder.client(client)\n .build();\n return retrofit.create(ApiRequest.class);\n }", "public interface RequestManager {\n \n\tpublic Request submitRequest(Request request) throws RequestCreationException;\n\t\n\tpublic void submitRequest(SuspendUserRequest suspendUserRequest) throws RequestCreationException;\n\t\n\tpublic void submitRequest(ResumeUserRequest resumeUserRequest) throws RequestCreationException;\n\t\n\tpublic SelfServiceAccessRequest submitRequest(SelfServiceAccessRequest selfServiceAccessRequest) throws RequestCreationException;\n\t\n\tpublic void submitRequest(AccountsRequest request) throws RequestCreationException;\n\t\n\tpublic CreateUserRequest submitRequest(CreateUserRequest request) throws RequestCreationException;\n\t\n\tpublic Request findRequest(Long requestId);\n\t\n\tpublic void process(Request request) throws OperationException;\n\t\n\tpublic void process(SuspendUserRequest request) throws OperationException;\n\t\n\tpublic void process(ResumeUserRequest request) throws OperationException;\n\t\n\tpublic void process(AccountsRequest request) throws OperationException;\n\t\n\tpublic void process(CreateUserRequest request) throws OperationException;\n\t\n\t\n\t\n\t\n\t\n\t\n\tpublic void finalApproveRequest(Request request, User approver) throws OperationException;\n\tpublic void finalRejectRequest(Request request, User rejecter);\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t//request scanner methods\n public void changeRequestScannerMode() throws OperationException;\n public boolean isRequestScannerActivate();\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\n\t\n\t\n\t@Deprecated\n public void mergeRequestEntity(Request request);\n \n \n /**\n Create a new request entity\n @param request A request entity to persist\n @throws RequestAttributeValidationException\n */\n\t@Deprecated\n public Request createRequestEntity(Request request) throws RequestCreationException;\n \n \n /**\n Execute a request\n @param request The request entity to execute\n */\n\t@Deprecated\n public void executeRequest(Request request) throws RequestExecutionException;\n \n \n /**\n Approve the specified request entity\n @param requrest The request entity to approve\n @throws OperationException\n */\n\t@Deprecated\n public void processRequest(Request request) throws OperationException;\n \n \n \n\t@Deprecated\n public void createTimerScanner(long initialDuration, long intervalDuration);\n \n\t@Deprecated\n public void createTimerScanner() throws OperationException;\n}", "public Operation(OperationType type) {\n this.type = type;\n }", "public Operation() {\n\t}", "private <M extends Model> GraphQLRequest<M> createRequest(Class<M> clazz, Operation operation)\n throws AmplifyException {\n return AppSyncGraphQLRequest.builder()\n .modelClass(clazz)\n .operation(operation)\n .requestOptions(new ApiGraphQLRequestOptions())\n .responseType(clazz)\n .build();\n }", "public interface OperatorService {\n\n @GET(\"/api/v0.2/driver/collectionpoint/handover\")\n Observable<BaseEntity<ResScanBean>> getCollection(@Query(\"id\") String id);\n\n @POST(\"/api/v0.2/driver/collectionpoint/handover\")\n Observable<BaseEntity<ResBill>> getCollection(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/collectionpoint/handover/verify\")\n Observable<BaseEntity<ResFinalize>> verifyCollection(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/collectionpoint/handover/finalize\")\n Observable<BaseEntity<ResFinalize>> finalizeCollection(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/signature/collectionpoint/handover\")\n Observable<BaseEntity<ResSignature>> signatureCollection(@Body RequestBody param);\n\n @GET(\"/api/v0.2/driver/collectionpoint/rto\")\n Observable<BaseEntity<ResScanBean>> getRto(@Query(\"id\") String id);\n\n @POST(\"/api/v0.2/driver/collectionpoint/rto\")\n Observable<BaseEntity<ResBill>> getRto(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/collectionpoint/rto/verify\")\n Observable<BaseEntity<ResFinalize>> verifyRto(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/collectionpoint/rto/finalize\")\n Observable<BaseEntity<ResFinalize>> finalizeRto(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/signature/collectionpoint/rto\")\n Observable<BaseEntity<ResSignature>> signatureRto(@Body RequestBody param);\n\n @GET(\"/api/v0.2/driver/client/rto\")\n Observable<BaseEntity<ResScanBean>> getWarehouse(@Query(\"id\") String id);\n\n @POST(\"/api/v0.2/driver/client/rto\")\n Observable<BaseEntity<ResBill>> getWarehouse(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/client/rto/verify\")\n Observable<BaseEntity<ResFinalize>> verifyWarehouse(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/client/rto/finalize\")\n Observable<BaseEntity<ResFinalize>> finalizeWarehouse(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/signature/client/rto\")\n Observable<BaseEntity<ResSignature>> signatureWarehouse(@Body RequestBody param);\n\n @GET(\"/api/v0.2/driver/client/pickup\")\n Observable<BaseEntity<ResScanBean>> getPickup(@Query(\"id\") String id);\n\n @POST(\"/api/v0.2/driver/client/pickup\")\n Observable<BaseEntity<ResBill>> getPickup(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/client/pickup/verify\")\n Observable<BaseEntity<ResFinalize>> verifyPickup(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/client/pickup/finalize\")\n Observable<BaseEntity<ResFinalize>> finalizePickup(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/signature/client/pickup\")\n Observable<BaseEntity<ResSignature>> signaturePickup(@Body RequestBody param);\n\n @POST(\"/training/resetAll\")\n Observable<BaseEntity<Object>> resetAllDataForTraining();\n\n @POST(\"/training/createRto\")\n Observable<BaseEntity<Object>> createRtoDataFroTraning();\n\n @POST(\"/api/v0.2/driver/internalwarehouse/handover\")\n Observable<BaseEntity<ResBill>> internalWarehouseCheckIn(@Body RequestBody param);\n\n @GET(\"/api/v0.2/driver/internalwarehouse/handover\")\n Observable<BaseEntity<ResScanBean>> internalWarehouse();\n\n @GET(\"/api/v0.2/driver/internalwarehouse/pickup\")\n Observable<BaseEntity<ResScanBean>> internalWarehousePickup();\n\n @POST(\"/api/v0.2/driver/internalwarehouse/pickup\")\n Observable<BaseEntity<ResBill>> internalWarehousePickup(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/internalwarehouse/handover/verify\")\n Observable<BaseEntity<ResFinalize>> internalWarehouseCheckInVerify(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/internalwarehouse/pickup/verify\")\n Observable<BaseEntity<ResFinalize>> internalWarehousePickupVerify(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/internalwarehouse/handover/finalize\")\n Observable<BaseEntity<ResFinalize>> internalWarehouseCheckInFinalize(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/internalwarehouse/pickup/finalize\")\n Observable<BaseEntity<ResFinalize>> internalWarehousePickupFinalize(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/internalwarehouse/pickup/signature\")\n Observable<BaseEntity<ResSignature>> internalWarehousePickupSignature(@Body RequestBody param);\n\n @POST(\"/api/v0.2/driver/internalwarehouse/handover/signature\")\n Observable<BaseEntity<ResSignature>> internalWarehouseCheckInSignature(@Body RequestBody param);\n\n @GET(\"/api/v0.2/driver/invoices\")\n Observable<BaseEntity<ResInvoice>> getInvoices();\n\n @POST(\"/api/v0.2/driver/invoices/putToBankAccount\")\n Observable<BaseEntity<Object>> putToBankAccount(@Body RequestBody param);\n\n @GET(\"/api/v0.2/driver/shipments\")\n Observable<BaseEntity<ResSearchResult>> search(@Query(\"awb\") String awb);\n}", "protected void send(O operation)\n {\n }", "public LdapMessage doOperation(int opIndex, ASN1Encodable request,\n ASN1Decodable response, Control[] controls) throws IOException {\n\n if (opIndex == LdapASN1Constant.OP_SEARCH_REQUEST) {\n return doSearchOperation(request, response, controls);\n }\n\n LdapMessage requestMsg = new LdapMessage(opIndex, request, controls);\n\n Integer messageID = Integer.valueOf(requestMsg.getMessageId());\n\n Object lock = new Object();\n requests.put(messageID, new Element(lock, new LdapMessage(response)));\n\n try {\n out.write(requestMsg.encode());\n out.flush();\n return waitResponse(messageID, lock);\n\n } finally {\n // remove request from list\n requests.remove(messageID);\n }\n\n }", "private Request() {\n initFields();\n }", "com.indosat.eai.catalist.standardInputOutput.RequestType getRequest();", "Operations operations();", "public Request<E, T> buildHttpGet ()\n\t{\n\t\treturn new HttpGetRequest<E,T>(this);\n\t}", "public interface IMailboxUsageMailboxCountsRequest extends IHttpRequest {\n\n /**\n * Gets the MailboxUsageMailboxCounts from the service\n *\n * @param callback the callback to be called after success or failure\n */\n void get(final ICallback<? super MailboxUsageMailboxCounts> callback);\n\n /**\n * Gets the MailboxUsageMailboxCounts from the service\n *\n * @return the MailboxUsageMailboxCounts from the request\n * @throws ClientException this exception occurs if the request was unable to complete for any reason\n */\n MailboxUsageMailboxCounts get() throws ClientException;\n\n /**\n * Delete this item from the service\n *\n * @param callback the callback when the deletion action has completed\n */\n void delete(final ICallback<? super MailboxUsageMailboxCounts> callback);\n\n /**\n * Delete this item from the service\n *\n * @throws ClientException if there was an exception during the delete operation\n */\n void delete() throws ClientException;\n\n /**\n * Patches this MailboxUsageMailboxCounts with a source\n *\n * @param sourceMailboxUsageMailboxCounts the source object with updates\n * @param callback the callback to be called after success or failure\n */\n void patch(final MailboxUsageMailboxCounts sourceMailboxUsageMailboxCounts, final ICallback<? super MailboxUsageMailboxCounts> callback);\n\n /**\n * Patches this MailboxUsageMailboxCounts with a source\n *\n * @param sourceMailboxUsageMailboxCounts the source object with updates\n * @return the updated MailboxUsageMailboxCounts\n * @throws ClientException this exception occurs if the request was unable to complete for any reason\n */\n MailboxUsageMailboxCounts patch(final MailboxUsageMailboxCounts sourceMailboxUsageMailboxCounts) throws ClientException;\n\n /**\n * Posts a MailboxUsageMailboxCounts with a new object\n *\n * @param newMailboxUsageMailboxCounts the new object to create\n * @param callback the callback to be called after success or failure\n */\n void post(final MailboxUsageMailboxCounts newMailboxUsageMailboxCounts, final ICallback<? super MailboxUsageMailboxCounts> callback);\n\n /**\n * Posts a MailboxUsageMailboxCounts with a new object\n *\n * @param newMailboxUsageMailboxCounts the new object to create\n * @return the created MailboxUsageMailboxCounts\n * @throws ClientException this exception occurs if the request was unable to complete for any reason\n */\n MailboxUsageMailboxCounts post(final MailboxUsageMailboxCounts newMailboxUsageMailboxCounts) throws ClientException;\n\n /**\n * Posts a MailboxUsageMailboxCounts with a new object\n *\n * @param newMailboxUsageMailboxCounts the object to create/update\n * @param callback the callback to be called after success or failure\n */\n void put(final MailboxUsageMailboxCounts newMailboxUsageMailboxCounts, final ICallback<? super MailboxUsageMailboxCounts> callback);\n\n /**\n * Posts a MailboxUsageMailboxCounts with a new object\n *\n * @param newMailboxUsageMailboxCounts the object to create/update\n * @return the created MailboxUsageMailboxCounts\n * @throws ClientException this exception occurs if the request was unable to complete for any reason\n */\n MailboxUsageMailboxCounts put(final MailboxUsageMailboxCounts newMailboxUsageMailboxCounts) throws ClientException;\n\n /**\n * Sets the select clause for the request\n *\n * @param value the select clause\n * @return the updated request\n */\n IMailboxUsageMailboxCountsRequest select(final String value);\n\n /**\n * Sets the expand clause for the request\n *\n * @param value the expand clause\n * @return the updated request\n */\n IMailboxUsageMailboxCountsRequest expand(final String value);\n\n}", "public interface WebRequests {\n\n\n\n @POST(Constants.API+Constants.SIGN_IN)\n Call<JsonObject> signin(@Body JsonObject task);\n// {\n// \"email\":\"[email protected]\",\n// \"mobile\":\"asdasd\"\n//\n// }\n\n\n @POST(Constants.API+Constants.SIGN_UP)\n Call<JsonObject> signup(@Body JsonObject task);\n// {\n// \"email\":\"[email protected]\",\n// \"mobile\":\"asdasd\"\n//\n// }\n\n @POST(Constants.API+Constants.VERIFYOTP)\n Call<JsonObject> verifyOtp(@Body JsonObject task);\n\n// {\n// \"user_mobile_ver_code\":\"1234\",\n// \"access_token\": \"57b6a4e15f9fc\"\n// }\n\n @POST(Constants.API+Constants.GET_CITY)\n Call<JsonObject> get_city(@Body JsonObject task);\n//\n// {\n// \"access_token\":\"57b569f9bb79f\",\n//\n// }\n\n @POST(Constants.API+Constants.GET_VERIFYDEVICEID)\n Call<JsonObject> get_verify_deviceId(@Body JsonObject task);\n//\n// {\n// \"access_token\":\"57b569f9bb79f\",\n//\n// }\n\n @POST(Constants.API+Constants.SAVE_CITY)\n Call<JsonObject> save_city(@Body JsonObject task);\n//\n// {\n// \"access_token\":\"57b569f9bb79f\",\n// \"user_city\":\"Bangalore\"\n// }\n\n @POST(Constants.API+Constants.GET_BRANDS)\n Call<JsonObject> getBrands(@Body JsonObject task);\n// {\n// \"city_id\":\"57b6a73f830f09cd1d591590\"\n// }\n\n\n\n @POST(Constants.API+Constants.GET_CITYMARKET)\n Call<JsonObject> getCityMarket(@Body JsonObject task);\n\n// 1.Request( for all citymarketlist):\n// {\n// \"city_id\":\"57a1c61edf3e78293ea41087\"\n// }\n\n// 2.Request(citymarket list of perticular category):\n// {\n// \"city_id\":\"57b6a735830f09cd1d59158f\",\n// \"category_id\":\"57b5ab6166724dec7409fff0\"\n// }\n\n\n @POST(Constants.API+Constants.GET_SHOPLIST)\n Call<JsonObject> getShopList(@Body JsonObject task);\n\n// {\n// \"category_id\":\"57b5aad666724dec7409ffee\",\n// \"city_id\":\"57b6a73f830f09cd1d591590\"\n// }\n\n\n @POST(Constants.API+Constants.GET_SHOPLIST_SEARCH)\n Call<JsonObject> getShopListBySearch(@Body JsonObject task);\n\n// {\n// \"category_id\":\"57b5aad666724dec7409ffee\",\n// \"city_id\":\"57b6a73f830f09cd1d591590\"\n// }\n\n @POST(Constants.API+Constants.GET_SHOPDETAILS)\n Call<JsonObject> getShopDetails(@Body JsonObject task);\n\n// {\n// \"merchant_id\":\"57b6f746fbb597ba108b4568\"\n// }\n//\n//\n @POST(Constants.API+Constants.GET_SUBCATEGORYLIST)\n Call<JsonObject> getSubCategories(@Body JsonObject task);\n//\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\"\n// }\n\n @POST(Constants.API+Constants.GET_PRODUCTLIST)\n Call<JsonObject> getProductList(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.UPDATE_SOCKETID)\n Call<JsonObject> update_socket(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.CHAT_LIST)\n Call<JsonObject> chat_list(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.CHAT_VIEW)\n Call<JsonObject> chat_view(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.DELETE_ADDRESS)\n Call<JsonObject> deleteAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.ADD_ADDRESS)\n Call<JsonObject> addAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n\n @POST(Constants.API+Constants.UPDATE_ADDRESS)\n Call<JsonObject> updateAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.GET_ADDRESS)\n Call<JsonObject> getAddress(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.GET_OFFERS)\n Call<JsonObject> getOffers(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.GET_ORDER_HISTROY)\n Call<JsonObject> getOrdersList(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.CREATE_ORDERS)\n Call<JsonObject> createOrders(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.UPDATE_PROFILE)\n Call<JsonObject> updateProfile(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.UPDATE_TRANSACTIONID)\n Call<JsonObject> updateTransactionId(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n @POST(Constants.API+Constants.CANCEL_ORDER)\n Call<JsonObject> cancelOrder(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n @POST(Constants.API+Constants.GET_ORDER_HISTROY_BY_MERCHANT)\n Call<JsonObject> getOrdersMerchantList(@Body JsonObject task);\n// {\n// \"merchant_id\":\"57b6acdcfbb597ea6f8b4567\",\n// \"subcategory_id\":\"57b6be44fbb597de088b4568\"\n// }\n\n\n}", "TypedRequest createTypedRequest();", "ResponseHandler createResponseHandler();", "public interface RequestModifier {\n\n /**\n * Set HTTP request method, only support get, post,put , delete method.\n *\n * @param method\n *\n */\n public void setMethod(HTTPMethod method);\n\n /**\n * Set HTTP Protocol.\n *\n * @param protocol\n *\n */\n public void setProtocol(String protocol);\n\n /**\n * Set HTTP version , such as HTTP1.1.\n *\n * @param version\n *\n */\n public void setVersion(String version);\n\n /**\n * Set HTTP domain.\n *\n * @param domain\n *\n */\n public void setDomain(String domain);\n\n /**\n * Set path in the url.\n *\n * @param path\n *\n */\n public void setPath(String path);\n\n /**\n * Set web server port\n *\n * @param port\n *\n */\n public void setPort(int port);\n\n /**\n * Set HTTP url\n *\n * @param url\n *\n */\n public void setUrl(URL url);\n\n /**\n * Set HTTP url string\n *\n * @param url\n *\n */\n public void setUrl(String url);\n\n /**\n * Modify the exist argument in url.\n *\n * @param urlArg\n *\n * @return boolean, if success to modfiy this argument, return true.\n * if fail to modfiy this argument, return false.\n */\n public boolean modifyURIArgContent(URLArg urlArg);\n\n /**\n * Modify the exist header in HTTP request headers.\n *\n * @param header\n *\n * @return boolean, if success to modfiy this argument, return true.\n * if fail to modfiy this argument, return false.\n */\n public boolean modifyHeaderContent(Header header);\n\n /**\n * Add the request header, if this header is exist, modfiy this value.\n *\n * @param key\n *\n * @param header\n *\n */\n public void addHeader(String key, String header);\n\n /**\n * Add the request header, if this header is exist, modfiy this value.\n *\n * @param key\n *\n * @param header\n *\n */\n public void delHeader(String key);\n\n /**\n * Add the post arg in request header, if this argument is exist, modfiy this value.\n *\n * @param key\n *\n * @param value\n *\n */\n public void addPostArg(String key, String value);\n\n /**\n * Add the url arg in request url, if this argument is exist, modfiy this value.\n *\n * @param key\n *\n * @param value\n *\n */\n public void addUrlArg(String key, String value);\n}", "<C, O> OperationCallExp<C, O> createOperationCallExp();", "private ExtendedOperations(){}", "private ObjectNode makeRequest(final String api) {\n ObjectNode req = JSON.objectNode();\n req.put(\"api\", api);\n return req;\n }", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "public ClientOperation(InputStream in, int maxSize, ClientSession p, HeaderSet header,\n boolean type) throws IOException {\n\n parent = p;\n isEndOfBodySent = false;\n socketInput = in;\n isClosed = false;\n isDone = false;\n maxPacketSize = maxSize;\n isGet = type;\n\n inputStreamOpened = false;\n outputStreamOpened = false;\n isValidateConnected = false;\n\n privateInput = null;\n privateOutput = null;\n\n replyHeaders = new HeaderSet();\n\n requestHeaders = new HeaderSet();\n\n int[] headerList = header.getHeaderList();\n\n if (headerList != null) {\n\n for (int i = 0; i < headerList.length; i++) {\n requestHeaders.setHeader(headerList[i], header.getHeader(headerList[i]));\n }\n }\n\n if ((header).authChall != null) {\n requestHeaders.authChall = new byte[(header).authChall.length];\n System.arraycopy((header).authChall, 0, requestHeaders.authChall, 0,\n (header).authChall.length);\n }\n\n if ((header).authResp != null) {\n requestHeaders.authResp = new byte[(header).authResp.length];\n System.arraycopy((header).authResp, 0, requestHeaders.authResp, 0,\n (header).authResp.length);\n\n }\n // requestHeaders = (HeaderSet)header;\n }", "OpList createOpList();", "private boolean invoke(HttpRequest request, HttpResponse response) {\n\t\t\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\t// first: empty (string starts with '/')\n\t\t// second: service name\n\t\t// third: URI rest\n\t\tString serviceName=\"\";\n\t\tString methodName=\"\";\n\t\tString restURI=\"\";\n\t\tString content=\"\";\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tserviceName=requestSplit[1];\n\t\t\tmethodName=REST_DECODER; //special method in service\n\t\t\t\n\t\t\tif(requestSplit.length>=3)\n\t\t\t{\n\t\t\t\tint varsstart=requestSplit[2].indexOf('?');\n\t\t\t\tif(varsstart>0)\n\t\t\t\t\trestURI=requestSplit[2].substring(0,varsstart);\n\t\t\t\telse\n\t\t\t\t\trestURI=requestSplit[2];\n\t\t\t}\n\t\t\t\n\t\t\tcontent=request.getContentString();\n\t\t\t\n\t\t\tint httpMethodInt=request.getMethod();\n\t\t\tString httpMethod=\"get\";\n\t\t\t\n\t\t\tswitch (httpMethodInt) \n\t\t\t{\n\t\t\t\tcase HttpRequest.METHOD_GET:\n\t\t\t\t\thttpMethod=\"get\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase HttpRequest.METHOD_HEAD:\n\t\t\t\t\thttpMethod=\"head\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase HttpRequest.METHOD_DELETE:\n\t\t\t\t\thttpMethod=\"delete\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase HttpRequest.METHOD_POST:\n\t\t\t\t\thttpMethod=\"post\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase HttpRequest.METHOD_PUT:\n\t\t\t\t\thttpMethod=\"put\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(content==null)\n\t\t\t\tcontent=\"\";\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tString[][] variables = {};//extract variables from request\n\t\t\t\n\t\t\tArrayList<String[]> variablesList=new ArrayList<String[]>();\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tEnumeration en = request.getGetVarNames();\t\t\n\t\t\tString querystr=\"\";\n\t\t\twhile(en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString param = (String) en.nextElement();\n\t\t\t\tString val= request.getGetVar(param);\n\t\t\t\t\n\t\t\t\tString[] pair={param,val};\n\t\t\t\t//connector.logMessage(param+\" \"+val);\n\t\t\t\tvariablesList.add(pair);\n\t\t\t\tquerystr+=param+\" = \"+val+\" \";\n\t\t\t}\n\t\t\tconnector.logMessage(request.getMethod()+\" \"+request.getUrl()+\" \"+querystr);\n\t\t\tvariables=variablesList.toArray(new String[variablesList.size()][2]);\n\t\t\t\n\t\t\t//connector.logMessage(content);\n\t\t\tSerializable[] parameters={httpMethod,restURI,variables,content};\n\t\t\t\n\t\t\tSerializable result;\t\n\t\t\tMediator mediator = _userSessions.get(_currentUserId).getMediator();//get registered mediator\n\t\t\tresult= mediator.invoke(serviceName,methodName, parameters, connector.preferLocalServices());// invoke service method\n\t\t\t\n\t\t\tsendInvocationSuccess ( result, response );\n\t\t\treturn true;\n\t\t\t\n\t\t} catch ( NoSuchServiceException e ) {\n\t\t\tsendNoSuchService(request, response, serviceName);\t\t\t\n\t\t} catch ( TimeoutException e ) {\n\t\t\tsendNoSuchService(request, response, serviceName);\n\t\t} catch ( NoSuchServiceMethodException e ) {\n\t\t\tsendNoSuchMethod(request, response);\n\t\t} catch ( L2pSecurityException e ) {\n\t\t\tsendSecurityProblems(request, response, e);\t\t\t\t\t\n\t\t} catch ( ServiceInvocationException e ) {\n\t\t\tif ( e.getCause() == null )\n\t\t\t\tsendResultInterpretationProblems(request, response);\n\t\t\telse\n\t\t\t\tsendInvocationException(request, response, e);\t\t\t\t\t\t\t\t\n\t\t} catch ( InterruptedException e ) {\n\t\t\tsendInvocationInterrupted(request, response);\n\t\t} catch ( InvalidCodingException e ) {\n\t\t\tsendConnectorProblems(request, response, e);\n\t\t} catch ( CodingException e ) {\n\t\t\tsendResultInterpretationProblems(request, response);\n\t\t} catch (Exception e)\n\t\t{\n\t\t\n\t\t}\n\t\treturn false;\n\t}", "Object sendRpcRequest(RpcRequest rpcRequest);", "TransactionResponseType createTransactionResponseType();", "public interface IRequest<T, O> {\r\n /**\r\n * Call back interface method for processing the Server Request\r\n *\r\n * @param requestInfo - RequestInfo Object which holds all the required Request Details\r\n */\r\n void processRequest(RequestInfo<T, O> requestInfo, Class<T> TClass, Class<O> OClass, boolean invalidateCache);\r\n\r\n void registerListener(INetworkListener networkListener);\r\n\r\n boolean cancelRequest();\r\n}", "public SingleOperationMarshallingTest() {\n }", "public interface RequestAPI {\n public void signIn(String login, String password) throws RequestException, WrongParameterException;\n\n public void signUp(String login, String password) throws RequestException, WrongParameterException;\n\n public void addFriend(String name) throws RequestException, WrongParameterException, UnauthorizedException;\n\n public void deleteFriend(String name) throws RequestException, WrongParameterException, UnauthorizedException;\n\n public void deleteFriendRequest(String name) throws RequestException, WrongParameterException, UnauthorizedException;\n\n public Account getMyAccountInfo() throws RequestException, UnauthorizedException;\n\n public String getToken();\n\n public String getHost();\n}", "ResponseType createResponseType();", "public interface ApiService {\n\n @GET(\"block/height\")\n Observable<CommonResponse<BlockHeight>> requestBlockHeight();\n\n @POST(\"transaction/send\")\n Observable<CommonResponse<TradeInfo>> transactionSend(@Body RequestBody requestBody);\n\n\n\n}", "public Request() {\n\n }", "public void process()\n {\n ClientRequest clientRequest = threadPool.remove();\n\n if (clientRequest == null)\n {\n return;\n }\n\n\n // Do the work\n // Create new Client\n ServiceLogger.LOGGER.info(\"Building client...\");\n Client client = ClientBuilder.newClient();\n client.register(JacksonFeature.class);\n\n // Get uri\n ServiceLogger.LOGGER.info(\"Getting URI...\");\n String URI = clientRequest.getURI();\n\n ServiceLogger.LOGGER.info(\"Getting endpoint...\");\n String endpointPath = clientRequest.getEndpoint();\n\n // Create WebTarget\n ServiceLogger.LOGGER.info(\"Building WebTarget...\");\n WebTarget webTarget = client.target(URI).path(endpointPath);\n\n // Send the request and save it to a Response\n ServiceLogger.LOGGER.info(\"Sending request...\");\n Response response = null;\n if (clientRequest.getHttpMethodType() == Constants.getRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n String pathParam = clientRequest.getPathParam();\n\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a GET request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .get();\n }\n else if (clientRequest.getHttpMethodType() == Constants.postRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n ServiceLogger.LOGGER.info(\"Got a POST request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .post(Entity.entity(clientRequest.getRequest(), MediaType.APPLICATION_JSON));\n }\n else if (clientRequest.getHttpMethodType() == Constants.deleteRequest)\n {\n String pathParam = clientRequest.getPathParam();\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a DELETE request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .delete();\n }\n else\n {\n ServiceLogger.LOGGER.warning(ANSI_YELLOW + \"Request was not sent successfully\");\n }\n ServiceLogger.LOGGER.info(ANSI_GREEN + \"Sent!\" + ANSI_RESET);\n\n // Check status code of request\n String jsonText = \"\";\n int httpstatus = response.getStatus();\n\n jsonText = response.readEntity(String.class);\n\n // Add response to database\n String email = clientRequest.getEmail();\n String sessionID = clientRequest.getSessionID();\n ResponseDatabase.insertResponseIntoDB(clientRequest.getTransactionID(), jsonText, email, sessionID, httpstatus);\n\n }", "Request(Request otherRequest) {\n this.reqNum = otherRequest.reqNum;\n this.reqText = otherRequest.reqText;\n this.reqExampleDocs = new ArrayList<ExampleDocument>(otherRequest.reqExampleDocs);\n }", "public interface HttpRequestService {\n\n String get(String url,HashMap<String,String> params) throws IOException;\n\n String get(String url) throws IOException;\n\n String post(String url,HashMap<String,String> params) throws Exception;\n\n}", "OperationDTO createOperation(ItemType sourceType, long sourceId, long targetId, String userVcnId) throws LockFailedException;", "public interface ApiManager {\n @POST\n Call<ResponseBody> upload(@Url() String url);\n\n //上传文件\n @POST\n Call<ResponseBody> uploadFile(@Url() String url, @Body RequestBody body);\n\n //修改手机号\n @POST\n Call<ResponseBody> changePhone(@Url() String url);\n\n //订单详情\n @POST\n Observable<PayDetails> orderDetatls(@Url() String url);\n\n //通知已读\n @POST\n Call<ResponseBody> notityReader(@Url() String url);\n}", "interface WriteRequest {\n\n /**\n * Sets the atomicity mode of this write request. Default value is\n * {@link Atomicity#CONTINUE_ON_ERROR}.\n *\n * @param atomicity atomicity mode\n * @return this\n */\n WriteRequest withAtomicity(Atomicity atomicity);\n\n /**\n * Requests to insert one PI entity.\n *\n * @param entity PI entity\n * @return this\n */\n WriteRequest insert(PiEntity entity);\n\n /**\n * Requests to insert multiple PI entities.\n *\n * @param entities iterable of PI entities\n * @return this\n */\n WriteRequest insert(Iterable<? extends PiEntity> entities);\n\n /**\n * Requests to modify one PI entity.\n *\n * @param entity PI entity\n * @return this\n */\n WriteRequest modify(PiEntity entity);\n\n /**\n * Requests to modify multiple PI entities.\n *\n * @param entities iterable of PI entities\n * @return this\n */\n WriteRequest modify(Iterable<? extends PiEntity> entities);\n\n /**\n * Requests to delete one PI entity identified by the given handle.\n *\n * @param handle PI handle\n * @return this\n */\n WriteRequest delete(PiHandle handle);\n\n /**\n * Requests to delete multiple PI entities identified by the given\n * handles.\n *\n * @param handles iterable of handles\n * @return this\n */\n WriteRequest delete(Iterable<? extends PiHandle> handles);\n\n /**\n * Requests to write the given PI entity with the given update type. If\n * {@code updateType} is {@link UpdateType#DELETE}, then only the handle\n * will be considered by the request.\n *\n * @param entity PI entity\n * @param updateType update type\n * @return this\n */\n WriteRequest entity(PiEntity entity, UpdateType updateType);\n\n /**\n * Requests to write the given PI entities with the given update type.\n * If {@code updateType} is {@link UpdateType#DELETE}, then only the\n * handles will be considered by the request.\n *\n * @param entities iterable of PI entity\n * @param updateType update type\n * @return this\n */\n WriteRequest entities(Iterable<? extends PiEntity> entities, UpdateType updateType);\n\n /**\n * Submits this write request to the server and returns a completable\n * future holding the response. The future is completed only after the\n * server signals that all entities are written.\n *\n * @return completable future of the write response\n */\n CompletableFuture<WriteResponse> submit();\n\n /**\n * Similar to {@link #submit()}, but blocks until the operation is\n * completed, after which, it returns a read response.\n *\n * @return read response\n */\n P4RuntimeWriteClient.WriteResponse submitSync();\n\n /**\n * Returns all entity update requests for which we are expecting a\n * responce from the device, in the same order they were added to this\n * batch.\n *\n * @return entity update requests\n */\n Collection<EntityUpdateRequest> pendingUpdates();\n }", "ResourceAPI createResourceAPI();", "public OutputStream _request(String operation,\n boolean responseExpected) {\n throw new NO_IMPLEMENT(reason);\n }", "public interface OMCAPI {\n String AUTH_HEADER = \"Authorization\";\n\n @FormUrlEncoded\n @POST(OMCConst.API_TOKEN_AUTH)\n Call<Token> getToken(@Field(\"username\") String username, @Field(\"password\") String password);\n\n @POST(OMCConst.API_POST_COMMAND)\n Call<Command> postCommand(@Header(AUTH_HEADER) String header, @Body Command command);\n\n @DELETE(OMCConst.API_DELETE_COMMAND)\n Call<ResponseBody> deleteCommand(@Header(AUTH_HEADER) String header, @Path(\"pk\") long pk);\n\n @GET(OMCConst.API_GET_COMMANDS)\n Call<List<Command>> getCommands(@Header(AUTH_HEADER) String header);\n\n @GET(OMCConst.API_GET_COMMAND)\n Call<Command> getCommand(@Header(AUTH_HEADER) String header, @Path(\"pk\") String pk);\n\n @FormUrlEncoded\n @POST(OMCConst.API_POST_NEW_USER)\n Call<Token> postNewUser(@Field(\"username\") String username, @Field(\"email\") String email, @Field(\"password\") String password);\n}", "protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.setCharacterEncoding(\"utf-8\");\n\t\tString method = req.getParameter(\"method\");\n//\t\tSystem.out.println(\"PPPPPPPPPPPPPPP\");\n\t\tif (\"Time_qunee\".equals(method)) {\n\t\t\ttry {\n\t\t\t\tTime_qunee(req, resp);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse if (\"Time_qunee_pre\".equals(method)) {\n\t\t\ttry {\n\t\t\t\tTime_qunee_pre(req, resp);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse if (\"Time_qunee_fold\".equals(method)) {\n\t\t\ttry {\n\t\t\t\tTime_qunee_fold(req, resp);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse if(\"Create_root_json\".equals(method)) {\n\t\t\tresp.setCharacterEncoding(\"utf-8\");\n\t\t\tresp.getWriter().write(DataServlet.createRootInfoJson());\n\t\t}\n\t\telse if(\"Create_montior_json\".equals(method)) {\n\t\t\tresp.setCharacterEncoding(\"utf-8\");\n\t\t\tresp.getWriter().write(DataServlet.createMontiorInfoJson());\n\t\t}\n\t}", "@Override\n\tpublic void initRequest() {\n\n\t}", "public int createMultipleRequests(Set _requests) throws RequestManagerException, PersistenceResourceAccessException;", "public CompletableFuture<CreateResponse> create(CreateRequest request) throws IOException {\n\t\treturn this.transport.performRequestAsync(request, CreateRequest.ENDPOINT, this.requestOptions);\n\t}", "Service_Resource createService_Resource();", "public UBERequest() {\r\n }" ]
[ "0.7150394", "0.67850214", "0.66917545", "0.66629815", "0.6661073", "0.6661073", "0.664371", "0.65489906", "0.64119714", "0.64087063", "0.6327559", "0.6325269", "0.6079734", "0.59886605", "0.5900638", "0.5884295", "0.58734035", "0.58254", "0.58018017", "0.5798786", "0.57549", "0.56824565", "0.5676769", "0.5620625", "0.56139755", "0.56068486", "0.5604318", "0.55971676", "0.55971676", "0.5583673", "0.5567716", "0.55612844", "0.5539469", "0.5538301", "0.55373484", "0.5516525", "0.5508908", "0.5500146", "0.5497036", "0.54724383", "0.5461215", "0.54440314", "0.54391915", "0.54324603", "0.54206836", "0.54188067", "0.5400876", "0.53789884", "0.5372799", "0.5362549", "0.5357372", "0.53531915", "0.5352404", "0.5351482", "0.5347202", "0.5346149", "0.53456205", "0.5344847", "0.5340673", "0.533355", "0.53263706", "0.5324041", "0.532391", "0.53223354", "0.5320549", "0.5314734", "0.530908", "0.53043836", "0.52900994", "0.5276818", "0.5275506", "0.5274315", "0.5264194", "0.52582633", "0.5251851", "0.5247789", "0.5237188", "0.5234313", "0.5221334", "0.5218108", "0.52177125", "0.5217596", "0.52141076", "0.5211881", "0.52101713", "0.52066034", "0.52062374", "0.52046037", "0.5199216", "0.5196296", "0.519268", "0.519187", "0.51788867", "0.51755697", "0.5174725", "0.5170597", "0.51652914", "0.5161285", "0.51583266", "0.51575184", "0.5157181" ]
0.0
-1
TODO Autogenerated method stub
private static Material FabricBlockSettings(Material stone) { return null; }
{ "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
Register block entities here
public static void registerBlockEntities() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void registerBlock(Block b)\n\t{\n\t}", "private static void registerBlocks() {\n for(Block block : modBlocks) {\n ForgeRegistries.BLOCKS.register(block);\n\n ItemBlock itemBlock = new ItemBlock(block);\n itemBlock.setRegistryName(block.getRegistryName());\n ForgeRegistries.ITEMS.register(itemBlock);\n }\n }", "public static void register(GenericBlock block)\n\t{\n\t\tBLOCKS.add(block);\n\t}", "public static void registerBlocks() {\n\t\tRegistry.register(Registry.BLOCK, new Identifier(EggMod.MOD_ID, \"egg_block\"), EGG_BLOCK);\n\t\t\n\t\t// Yolk\n\t\tSTILL_YOLK = Registry.register(Registry.FLUID, new Identifier(EggMod.MOD_ID, \"yolk_flow\"), new YolkFluid.Still());\n\t\tFLOWING_YOLK = Registry.register(Registry.FLUID, new Identifier(EggMod.MOD_ID, \"yolk_still\"), new YolkFluid.Flowing());\n\t\tYOLK = Registry.register(Registry.BLOCK, new Identifier(EggMod.MOD_ID, \"yolk\"), new FluidBlock(STILL_YOLK, FabricBlockSettings.copy(Blocks.WATER)){});\n\t}", "@Override\n\tpublic void addBlock(Block block) {\n\t\tem.persist(block);\n\t}", "@SubscribeEvent\n public static void onRegisterBlocks(RegistryEvent.Register<Block> event) {\n CoffeeMachineBlock coffeMachine = new CoffeeMachineBlock(\n Block.Properties.create(Material.ANVIL)\n .hardnessAndResistance(-1.0F, 360000F));\n event.getRegistry().registerAll(setup(coffeMachine, \"coffee_machine\"));\n }", "public static void BlockRegister()\n\t{\n\t\tString[] umberstoneBlock = {\"umberstone\"};\n\t\tString[] umbercobbleBlock = {\"cobbleUmber\"};\n\t\tStoneRegister umberstone = getStoneRegister(ModBlocks.umberstone, ModBlocks.umberstone, \"umberstone\", umberstoneBlock, umbercobbleBlock, \"erebus\");\n\t\tumberstone.mossyCobble = false;\n\t\tumberstone.genReplaceable = false;\n\t\tumberstone.register();\n\t}", "@SubscribeEvent\n public static void registerBlock(final RegistryEvent.Register<Block> event){\n walletBlock = new WalletBlock();\n event.getRegistry().register(walletBlock);\n }", "@Override\r\n public void preInit(FMLPreInitializationEvent e) {\n \tModBlocks.registerBlockModels();\r\n \tnet.minecraftforge.fml.client.registry.RenderingRegistry.registerEntityRenderingHandler(EntityTribeling.class, RenderTribeling.FACTORY);\r\n super.preInit(e);\r\n }", "private void setBlocks() {\n // load the class\n ClassLoader cl = ClassLoader.getSystemClassLoader();\n // create an InputStream object\n InputStream inputStream = cl.getResourceAsStream(this.map.get(\"block_definitions\"));\n // initialize this factory with a factory\n this.factory = BlocksDefinitionReader.fromReader(new InputStreamReader(inputStream));\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public static void register(Block block, ItemBlock itemBlock) {\n\t\tGameRegistry.register(block);\n\t\tGameRegistry.register(itemBlock);\n\t}", "public static void registerBlocks() {\n\t\tModLoader.registerBlock(blockWirelessR,\n\t\t\t\tBlockItemRedstoneWirelessR.class);\n\t\tModLoader.addName(blockWirelessR, \"Wireless Receiver\");\n\t\tModLoader.addName(blockWirelessR, \"de_DE\", \"Drahtloser Empfänger\");\n\t\tModLoader.registerTileEntity(TileEntityRedstoneWirelessR.class,\n\t\t\t\t\"Wireless Receiver\", new TileEntityRedstoneWirelessRenderer());\n\n\t\tModLoader.registerBlock(blockWirelessT,\n\t\t\t\tBlockItemRedstoneWirelessT.class);\n\t\tModLoader.addName(blockWirelessT, \"Wireless Transmitter\");\n\t\tModLoader.addName(blockWirelessT, \"de_DE\", \"Drahtloser Sender\");\n\t\tModLoader.registerTileEntity(TileEntityRedstoneWirelessT.class,\n\t\t\t\t\"Wireless Transmitter\",\n\t\t\t\tnew TileEntityRedstoneWirelessRenderer());\n\t\tregisterBlockForCreativeGui(blockWirelessR);\n\t\tregisterBlockForCreativeGui(blockWirelessT);\n\t}", "public static void register() {\n Registry.register(Registry.BLOCK, new Identifier(\"cultivation\", \"sieve_block\"), SIEVE_BLOCK);\n Registry.register(Registry.ITEM, new Identifier(\"cultivation\", \"sieve_block\"), new BlockItem(SIEVE_BLOCK, new Item.Settings().group(Cultivation.GROUP)));\n Registry.register(Registry.BLOCK, new Identifier(\"cultivation\", \"pod_shell\"), POD_SHELL);\n }", "@SubscribeEvent\n public static void onBlocksRegistry(final RegistryEvent.Register<Block> blockRegistryEvent) {\n LOGGER.info(\"HELLO from Register Block\");\n }", "public static void loadBlockTextures() {\n\t\tspriteTopOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOn.png\");\n\t\tspriteTopOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOff.png\");\n\t\tspriteROn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOn.png\");\n\t\tspriteROff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOff.png\");\n\t\tspriteTOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOn.png\");\n\t\tspriteTOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOff.png\");\n\t}", "public static void init () {\n\t\t\n\t\t/*\n\t\t * Letter block naming and registry code\n\t\t */\n\t\tfor (int i = 0; i <= NameHandler.length(); ++i) {\n\t\t\tBlockLetter bL = new BlockLetter();\n\t\t\tString name = NameHandler.getNameFromIndex(i);\n\t\t\tbL.setBlockName(name);\n\t\t\tGameRegistry.registerBlock(bL, name);\n\t\t\tletterBlocks.add(bL);\n\t\t}\n\t\t\n\t\tcopperBlock.setBlockName(Names.Blocks.COPPER_BLOCK);\n\t\ttinBlock.setBlockName(Names.Blocks.TIN_BLOCK);\n\t\tsilverBlock.setBlockName(Names.Blocks.SILVER_BLOCK);\n\t\tclassicBronzeBlock.setBlockName(Names.Blocks.CLASSIC_BRONZE_BLOCK);\n\t\tmildBronzeBlock.setBlockName(Names.Blocks.MILD_BRONZE_BLOCK);\n\t\telectrumBlock.setBlockName(Names.Blocks.ELECTRUM_BLOCK);\n\t\tcopperDustBlock.setBlockName(Names.Blocks.COPPER_DUST_BLOCK);\n\t\t\n\t\tcopperOre.setBlockName(Names.Blocks.COPPER_ORE);\n\t\ttinOre.setBlockName(Names.Blocks.TIN_ORE);\n\t\tsilverOre.setBlockName(Names.Blocks.SILVER_ORE);\n\t\t\n\t\tmarble.setBlockName(Names.Blocks.MARBLE);\n\t\t\n\t\tgrindstone.setBlockName(Names.Blocks.GRINDSTONE);\n\t\t\n\t\tGameRegistry.registerBlock(column, Names.Blocks.COLUMN);\n\t\tGameRegistry.registerBlock(copperBlock, Names.Blocks.COPPER_BLOCK);\n\t\tGameRegistry.registerBlock(tinBlock, Names.Blocks.TIN_BLOCK);\n\t\tGameRegistry.registerBlock(silverBlock, Names.Blocks.SILVER_BLOCK);\n\t\tGameRegistry.registerBlock(classicBronzeBlock, Names.Blocks.CLASSIC_BRONZE_BLOCK);\n\t\tGameRegistry.registerBlock(mildBronzeBlock, Names.Blocks.MILD_BRONZE_BLOCK);\n\t\tGameRegistry.registerBlock(electrumBlock, Names.Blocks.ELECTRUM_BLOCK);\n\t\tGameRegistry.registerBlock(copperDustBlock, Names.Blocks.COPPER_DUST_BLOCK);\n\t\t\n\t\tGameRegistry.registerBlock(copperOre, Names.Blocks.COPPER_ORE);\n\t\tGameRegistry.registerBlock(tinOre, Names.Blocks.TIN_ORE);\n\t\tGameRegistry.registerBlock(silverOre, Names.Blocks.SILVER_ORE);\n\t\tGameRegistry.registerBlock(marble, Names.Blocks.MARBLE);\n\t\t\n\t\tGameRegistry.registerBlock(grindstone, Names.Blocks.GRINDSTONE);\n\t}", "@SubscribeEvent\n public static void registerItem(final RegistryEvent.Register<Item> event){\n Item.Properties properties = new Item.Properties().maxStackSize(1).group(ItemGroup.MISC);\n walletBlockItem = new BlockItem(walletBlock, properties);\n walletBlockItem.setRegistryName(walletBlock.getRegistryName());\n event.getRegistry().register(walletBlockItem);\n }", "public void blockAdded(Response block) {\n try {\n long id = block.getId(\"block\");\n blockList.add(0, block);\n blockMap.put(block.getId(\"block\"), block);\n fireTableRowsInserted(0, 0);\n } catch (IdentifierException exc) {\n // Ignore the block\n }\n }", "public void registerTileEntities() {\n GameRegistry.registerTileEntity(TEEssenceStorage.class, ReferenceMisc.MODID + \"_essencestorage\");\n GameRegistry.registerTileEntity(TEPylon.class, ReferenceMisc.MODID + \"_pylon\");\n GameRegistry.registerTileEntity(TEVitar.class, ReferenceMisc.MODID + \"_vitar\");\n GameRegistry.registerTileEntity(TEStorage.class, ReferenceMisc.MODID + \"_storage\");\n GameRegistry.registerTileEntity(TELeo.class, ReferenceMisc.MODID + \"_leo\");\n GameRegistry.registerTileEntity(TEBreedingChamber.class, ReferenceMisc.MODID + \"_breedingChamber\");\n GameRegistry.registerTileEntity(TEIncubationChamber.class, ReferenceMisc.MODID + \"_incubationChamber\");\n\n }", "public static void initializeBlocks() {\n if (Config.enableGiveADamn) {\n giveADamn = new GiveADamn();\n }\n\n if (Config.enableGlowstone) {\n glowstone = new HeavyLight();\n }\n\n if (Config.enableSpicedSand) {\n sandSpiced = new SpicedSand();\n }\n /*\n\n if (Config.enableMuffler){\n muffler = new Muffler();\n }\n */\n }", "public static void init() {\n Handler.log(Level.INFO, \"Loading Blocks\");\n\n oreAluminum = new BaseOre(Config.oreAluminumID).setUnlocalizedName(Archive.oreAluminum)\n .setHardness(3.0F).setResistance(5.0F);\n\n blockGrinder = new BaseContainerBlock(Config.blockGrinderID, Archive.grinderGUID)\n .setUnlocalizedName(Archive.blockGrinder);\n\n blockOven = new BaseContainerBlock(Config.blockOvenID, Archive.ovenGUID)\n .setUnlocalizedName(Archive.blockOven);\n }", "private static Item registerBlockItem(Block block, Item.Settings settings){\n Identifier id = Registry.BLOCK.getId(block);\n return CottonItemHelper.registerItem(id.getNamespace(), id.getPath(), new BlockItem(block, settings));\n }", "public void addBlock(Block block) {\n\t\tblock.setId(this.generateID());\n\t\tthis.blocks.put(block.getId(), block);\n\t}", "@Override\n public void RegisterEntities(LinkedList<Entity> listToModify) {\n listToModify.add(test1);\n// listToModify.add(test2);\n }", "@Override\n public void createBlockchain(String name, Block genesisBlock) {\n BlockNodeEntity blockNodeEntity = getBlockNodeEntity(name, genesisBlock);\n blockRepository.save(blockNodeEntity);\n }", "@SubscribeEvent\n public static void registerTileEntity(final RegistryEvent.Register<TileEntityType<?>> event){\n walletBlockTileEntityType = TileEntityType.Builder.create(WalletBlockTileEntity::new, walletBlock).build(null);\n walletBlockTileEntityType.setRegistryName(\"bitcoinmod:wallet_block_tile_entity\");\n event.getRegistry().register(walletBlockTileEntityType);\n }", "public static void registerRenders() {\n for(Block block : modBlocks)\n BlockHelper.registerRender(block);\n }", "public void register(WorldGenKawaiiBaseWorldGen.WorldGen gen)\r\n\t{\t\r\n\t\tif (!this.Enabled) return; \r\n\t\tGameRegistry.registerBlock(this, this.getUnlocalizedName());\r\n\t\t\r\n\t\tString saplingName = name + \".sapling\";\r\n\t\tSapling = new ItemKawaiiSeed(saplingName, SaplingToolTip, this);\r\n\t\tSapling.OreDict = SaplingOreDict;\r\n\t\tSapling.MysterySeedWeight = SeedsMysterySeedWeight;\r\n\t\tSapling.register();\r\n\r\n\t\tString fruitName = name + \".fruit\";\r\n\t\tif (FruitEdible)\r\n\t\t{\r\n\t\t\tItemKawaiiFood fruit = new ItemKawaiiFood(fruitName, FruitToolTip, FruitHunger, FruitSaturation, FruitPotionEffets);\r\n\t\t\tFruit = fruit;\r\n\t\t\tfruit.OreDict = FruitOreDict;\r\n\t\t\t\r\n\t\t\tfruit.register();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tItemKawaiiIngredient fruit = new ItemKawaiiIngredient(fruitName, FruitToolTip);\r\n\t\t\tFruit = fruit;\r\n\t\t\tfruit.OreDict = FruitOreDict;\r\n\t\t\t\r\n\t\t\tfruit.register();\r\n\t\t}\r\n\t\t\r\n\t\tif (gen.weight > 0)\r\n\t\t{\r\n\t\t\tgen.generator = new WorldGenKawaiiTree(this);\r\n\t\t\tModWorldGen.WorldGen.generators.add(gen);\r\n\t\t}\r\n\r\n\t\tModBlocks.AllTrees.add(this);\t\t\r\n\t}", "public static void initialize()\n {\n CHUNK_LOADER = new ChunkLoader();\n //VILLAGE_INDICATOR = new VillageIndicator();\n\n BLOCK_LIST.add(CHUNK_LOADER);\n //BLOCK_LIST.add(VILLAGE_INDICATOR);\n Log.info(\"=========================================================> Initialized Blocks\");\n }", "public void addBlock(Block block){\n\t\tblocks.addElement(block);\n\t}", "@Override\n public void onInitializeClient() {\n\t\tBlockEntityRendererRegistry.INSTANCE.register(TableBlockEntity.BLOCK_ENTITY_TYPE, TableBlockEntityRenderer::new);\n\n\t\tClientSpriteRegistryCallback.event(SpriteAtlasTexture.BLOCK_ATLAS_TEXTURE).register((atlasTexture, registry) ->\n\t\t{\n\t\t\tregistry.register(TableBlockEntityRenderer.BOOK_SPRITE_ID);\n\t\t});\n\t\t\n\t\tScreenRegistry.<CursedEnchantmentScreenHandler, CursedEnchantmentScreen>register(\n\t\t\tCursedEnchantingMain.CURSED_ENCHANTMENT_GUI,\n\t\t\t(gui, inventory, title) -> new CursedEnchantmentScreen(gui, inventory, title)\n\t\t);\n }", "Collection<Class<?>> registerEntities();", "public static void registerBlock(boolean fireproof, ItemGroup group, String name, Block block) {\n Item.Settings normalSettings = new Item.Settings().group(group);\n Item.Settings fireproofSettings = new Item.Settings().group(group).fireproof();\n\n Registry.register(Registry.BLOCK, newID(name), block);\n Registry.register(Registry.ITEM, newID(name), new BlockItem(block, (fireproof ? fireproofSettings : normalSettings)));\n }", "@Override\n\tpublic void registerWorldChunkManager() {\n\t\tworldChunkMgr = new zei_WorldChunkManagerZeitgeist(giants, worldObj);\n\t\tworldType = 99;\n\t\thasNoSky = false;\n\t}", "@Override\n\tpublic void registerRecipes() {\n\n\t\tItemStack block, ingot;\n\n\t\tfor (MetalType metal : MetalType.VALUES) {\n\n\t\t\tblock = this.createItemStack(metal, 1);\n\t\t\tingot = BrItems.ingotMetals.createItemStack(metal, 1);\n\n\t\t\tGameRegistry.addShapelessRecipe(block, ingot, ingot, ingot, ingot, ingot, ingot, ingot, ingot, ingot);\n\t\t\tingot.stackSize = 9;\n\t\t\tGameRegistry.addShapelessRecipe(ingot, block);\n\t\t}\n\n\t\t// Ludicrite block. Because.\n\n\t\tfinal ItemStack ludicriteBlock = this.createItemStack(MetalType.Ludicrite, 1);\n\n\t\tGameRegistry.addRecipe(new ShapedOreRecipe(ludicriteBlock, \"BPB\", \"ENE\", \"BPB\",\n\t\t\t\t'N', Items.NETHER_STAR, 'P', Items.ENDER_PEARL, 'E', Blocks.EMERALD_BLOCK,\n\t\t\t\t'B', BigReactors.CONFIG.recipeBlutoniumIngotName));\n\n\t\tif (OreDictionaryHelper.doesOreNameExist(\"blockEnderium\")) {\n\n\t\t\t// Ok, how about some ludicrous shit here. Enderium and blaze rods. Have fun, bucko.\n\t\t\tGameRegistry.addRecipe(new ShapedOreRecipe(ludicriteBlock, \"BRB\", \"E E\", \"BRB\",\n\t\t\t\t\t'B', BigReactors.CONFIG.recipeBlutoniumIngotName, 'R', Items.BLAZE_ROD, 'E', \"blockEnderium\"));\n\t\t}\n\t}", "private void setBlock(Block block) {\r\n this.block = block;\r\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n @SideOnly(Side.CLIENT)\n public void registerItemModels() {\n final Item item = this;\n final ResourceLocation loc = ForgeRegistries.BLOCKS.getKey(block);\n\n for(T o : (Collection<T>) mappingProperty.getAllowedValues()) {\n int meta = block.getMetaFromState(block.getDefaultState().withProperty(mappingProperty, o));\n String name = mappingProperty.getName(o);\n\n ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(loc, \"half=bottom,\" + mappingProperty.getName() + \"=\" + name));\n }\n }", "public void addBlock(Block newBlock) {\n\t\tBLOCK_LIST.add(newBlock);\n\t\tSPRITE_LIST.add(newBlock);\n\t}", "public EntangledChaliceItem(Block block) {\n super(block);\n }", "public static void initializeBlockFields() {\n KitchenMod.LOGGER.log(\"Initializing static block fields\");\n KMComposterBlock.rinit();\n\n StakeBlock.registerPlant(GRAPE_VINE);\n StakeBlock.registerPlant(TOMATO_VINE);\n StakeBlock.registerPlant(VANILLA_VINE);\n }", "public static void render(Block block) {\n\t\tItem item = Item.getItemFromBlock(block);\n\t\tModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), \"inventory\"));\n\t}", "public static void init()\n {\n oreStarSteel = new BlockOreStarSteel(MSAConfig.ores, Material.rock);\n storageStarSteel = new BlockStorageStarSteel(MSAConfig.storageBlock, Material.iron);\n // tech blocks\n launchTower = new BlockLaunchTower(MSAConfig.launchTower, Material.iron);\n launchTowerController = new BlockLaunchControl(MSAConfig.launchController, Material.iron);\n rocketAssembler = new BlockRocketAssembler(MSAConfig.rocketAssembler, Material.iron);\n comSatellite = new BlockComSatellite(MSAConfig.comSatellite, Material.iron);\n ssBuilding = new BlockSSBuilding(MSAConfig.ssBuilding, Material.rock);\n commandCenter = new BlockCommandCenter(MSAConfig.commandCenter, Material.iron);\n\n /* Register Blocks */\n // ore blocks\n GameRegistry.registerBlock(oreStarSteel, \"oreStarSteel\");\n GameRegistry.registerBlock(storageStarSteel, \"storageStarSteel\");\n // tech blocks\n GameRegistry.registerBlock(launchTower, \"launchTower\");\n GameRegistry.registerBlock(launchTowerController, \"launchTowerController\");\n GameRegistry.registerBlock(rocketAssembler, \"rocketAssembler\");\n GameRegistry.registerBlock(comSatellite, \"comSatellite\");\n GameRegistry.registerBlock(ssBuilding, \"ssBuilding\");\n GameRegistry.registerBlock(commandCenter, \"commandCenter\");\n\n /* Set block harvest level */\n // ore blocks\n MinecraftForge.setBlockHarvestLevel(oreStarSteel, \"pickaxe\", 2);\n MinecraftForge.setBlockHarvestLevel(storageStarSteel, \"pickaxe\", 2);\n // building blocks\n MinecraftForge.setBlockHarvestLevel(ssBuilding, \"pickaxe\", 2);\n // tech blocks\n MinecraftForge.setBlockHarvestLevel(launchTower, \"pickaxe\", 1);\n }", "public static void registerBlockSmelting(){\n\t\t\n\t\tGameRegistry.addSmelting(blockInfo.myWood_ID, new ItemStack(items.compressedAir, 2), 0.1f);\n\t\t\n\t}", "public void blocksAdded(List<Response> blocks) {\n for (Response block : blocks) {\n try {\n long id = block.getId(\"block\");\n blockList.add(block);\n blockMap.put(id, block);\n } catch (IdentifierException exc) {\n // Ignore the block\n }\n }\n fireTableDataChanged();\n }", "private void registerFleshBlock(){\n\t\tgetVariantBuilder(OrganicTechBlocks.FLESH_BLOCK.get()).forAllStates(state -> {\n\t\t\t//Generate the set of rotations for a flesh block w/o eyes\n\t\t\tConfiguredModel[] rotations = ConfiguredModel.allRotations(models().cubeAll(\"flesh_block\", modLoc(BLOCK_DIR + \"/flesh_block\")), false, 4);\n\t\t\t//then append the rotations for one eye\n\t\t\trotations = ArrayUtils.addAll(rotations, ConfiguredModel.allRotations(models().cubeAll(\"flesh_block_1eye\", modLoc(BLOCK_DIR + \"/flesh_block_1eye\")), false, 1));\n\t\t\t//then append the rotations for two eyes and return\n\t\t\treturn ArrayUtils.addAll(rotations, ConfiguredModel.allRotations(models().cubeAll(\"flesh_block_2eye\", modLoc(BLOCK_DIR + \"/flesh_block_2eye\")), false, 1));\n\t\t});\n\t}", "public void registerWorldChunkManager()\n\t{\n\t\tthis.worldChunkMgr = new WorldChunkMangerHeaven(worldObj.getSeed(), terrainType);\n\t\tthis.hasNoSky = false;\n\t}", "public static void registerTags() {\n\n\t\tPonderRegistry.tags.forTag(PonderTag.KINETIC_RELAYS)\n\t\t\t.add(AllBlocks.SHAFT)\n\t\t\t.add(AllBlocks.COGWHEEL)\n\t\t\t.add(AllBlocks.LARGE_COGWHEEL)\n\t\t\t.add(AllItems.BELT_CONNECTOR)\n\t\t\t.add(AllBlocks.GEARBOX)\n\t\t\t.add(AllBlocks.CLUTCH)\n\t\t\t.add(AllBlocks.GEARSHIFT)\n\t\t\t.add(AllBlocks.ENCASED_CHAIN_DRIVE)\n\t\t\t.add(AllBlocks.ADJUSTABLE_CHAIN_GEARSHIFT)\n\t\t\t.add(AllBlocks.SEQUENCED_GEARSHIFT)\n\t\t\t.add(AllBlocks.ROTATION_SPEED_CONTROLLER);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.KINETIC_SOURCES)\n\t\t\t.add(AllBlocks.HAND_CRANK)\n\t\t\t.add(AllBlocks.COPPER_VALVE_HANDLE)\n\t\t\t.add(AllBlocks.WATER_WHEEL)\n\t\t\t.add(AllBlocks.ENCASED_FAN)\n\t\t\t.add(AllBlocks.WINDMILL_BEARING)\n\t\t\t.add(AllBlocks.FURNACE_ENGINE)\n\t\t\t.add(AllBlocks.FLYWHEEL)\n\t\t\t.add(AllBlocks.CREATIVE_MOTOR);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.KINETIC_APPLIANCES)\n\t\t\t.add(AllBlocks.MILLSTONE)\n\t\t\t.add(AllBlocks.TURNTABLE)\n\t\t\t.add(AllBlocks.ENCASED_FAN)\n\t\t\t.add(AllBlocks.CUCKOO_CLOCK)\n\t\t\t.add(AllBlocks.MECHANICAL_PRESS)\n\t\t\t.add(AllBlocks.MECHANICAL_MIXER)\n\t\t\t.add(AllBlocks.MECHANICAL_CRAFTER)\n\t\t\t.add(AllBlocks.MECHANICAL_DRILL)\n\t\t\t.add(AllBlocks.MECHANICAL_SAW)\n\t\t\t.add(AllBlocks.DEPLOYER)\n\t\t\t.add(AllBlocks.MECHANICAL_PUMP)\n\t\t\t.add(AllBlocks.MECHANICAL_ARM)\n\t\t\t.add(AllBlocks.MECHANICAL_PISTON)\n\t\t\t.add(AllBlocks.ROPE_PULLEY)\n\t\t\t.add(AllBlocks.MECHANICAL_BEARING)\n\t\t\t.add(AllBlocks.GANTRY_SHAFT)\n\t\t\t.add(AllBlocks.GANTRY_CARRIAGE)\n\t\t\t.add(AllBlocks.CLOCKWORK_BEARING)\n\t\t\t.add(AllBlocks.CRUSHING_WHEEL);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.FLUIDS)\n\t\t\t.add(AllBlocks.FLUID_PIPE)\n\t\t\t.add(AllBlocks.MECHANICAL_PUMP)\n\t\t\t.add(AllBlocks.FLUID_VALVE)\n\t\t\t.add(AllBlocks.SMART_FLUID_PIPE)\n\t\t\t.add(AllBlocks.HOSE_PULLEY)\n\t\t\t.add(AllBlocks.ITEM_DRAIN)\n\t\t\t.add(AllBlocks.SPOUT)\n\t\t\t.add(AllBlocks.PORTABLE_FLUID_INTERFACE)\n\t\t\t.add(AllBlocks.FLUID_TANK)\n\t\t\t.add(AllBlocks.CREATIVE_FLUID_TANK);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.ARM_TARGETS)\n\t\t\t.add(AllBlocks.MECHANICAL_ARM)\n\t\t\t.add(AllItems.BELT_CONNECTOR)\n\t\t\t.add(AllBlocks.CHUTE)\n\t\t\t.add(AllBlocks.DEPOT)\n\t\t\t.add(AllBlocks.WEIGHTED_EJECTOR)\n\t\t\t.add(AllBlocks.BASIN)\n\t\t\t.add(AllBlocks.ANDESITE_FUNNEL)\n\t\t\t.add(AllBlocks.BRASS_FUNNEL)\n\t\t\t.add(AllBlocks.MECHANICAL_CRAFTER)\n\t\t\t.add(AllBlocks.MILLSTONE)\n\t\t\t.add(AllBlocks.DEPLOYER)\n\t\t\t.add(AllBlocks.MECHANICAL_SAW)\n\t\t\t.add(AllBlocks.BLAZE_BURNER)\n\t\t\t.add(AllBlocks.CRUSHING_WHEEL)\n\t\t\t.add(Blocks.COMPOSTER)\n\t\t\t.add(Blocks.JUKEBOX);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.LOGISTICS)\n\t\t\t.add(AllItems.BELT_CONNECTOR)\n\t\t\t.add(AllItems.FILTER)\n\t\t\t.add(AllItems.ATTRIBUTE_FILTER)\n\t\t\t.add(AllBlocks.CHUTE)\n\t\t\t.add(AllBlocks.SMART_CHUTE)\n\t\t\t.add(AllBlocks.DEPOT)\n\t\t\t.add(AllBlocks.WEIGHTED_EJECTOR)\n\t\t\t.add(AllBlocks.MECHANICAL_ARM)\n\t\t\t.add(AllBlocks.ANDESITE_FUNNEL)\n\t\t\t.add(AllBlocks.BRASS_FUNNEL)\n\t\t\t.add(AllBlocks.ANDESITE_TUNNEL)\n\t\t\t.add(AllBlocks.BRASS_TUNNEL)\n\t\t\t.add(AllBlocks.CONTENT_OBSERVER)\n\t\t\t.add(AllBlocks.STOCKPILE_SWITCH)\n\t\t\t.add(AllBlocks.ADJUSTABLE_CRATE)\n\t\t\t.add(AllBlocks.CREATIVE_CRATE)\n\t\t\t.add(AllBlocks.PORTABLE_STORAGE_INTERFACE);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.DECORATION)\n\t\t\t.add(AllBlocks.NIXIE_TUBE)\n\t\t\t.add(AllBlocks.CUCKOO_CLOCK)\n\t\t\t.add(AllBlocks.WOODEN_BRACKET)\n\t\t\t.add(AllBlocks.METAL_BRACKET)\n\t\t\t.add(AllBlocks.ANDESITE_CASING)\n\t\t\t.add(AllBlocks.BRASS_CASING)\n\t\t\t.add(AllBlocks.COPPER_CASING);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.CREATIVE)\n\t\t\t.add(AllBlocks.CREATIVE_CRATE)\n\t\t\t.add(AllBlocks.CREATIVE_FLUID_TANK)\n\t\t\t.add(AllBlocks.CREATIVE_MOTOR);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.SAILS)\n\t\t\t.add(AllBlocks.SAIL)\n\t\t\t.add(AllBlocks.SAIL_FRAME)\n\t\t\t.add(Blocks.WHITE_WOOL);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.REDSTONE)\n\t\t\t.add(AllBlocks.NIXIE_TUBE)\n\t\t\t.add(AllBlocks.REDSTONE_CONTACT)\n\t\t\t.add(AllBlocks.ANALOG_LEVER)\n\t\t\t.add(AllBlocks.REDSTONE_LINK)\n\t\t\t.add(AllBlocks.ADJUSTABLE_REPEATER)\n\t\t\t.add(AllBlocks.PULSE_REPEATER)\n\t\t\t.add(AllBlocks.ADJUSTABLE_PULSE_REPEATER)\n\t\t\t.add(AllBlocks.POWERED_LATCH)\n\t\t\t.add(AllBlocks.POWERED_TOGGLE_LATCH);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.MOVEMENT_ANCHOR)\n\t\t\t.add(AllBlocks.MECHANICAL_PISTON)\n\t\t\t.add(AllBlocks.WINDMILL_BEARING)\n\t\t\t.add(AllBlocks.MECHANICAL_BEARING)\n\t\t\t.add(AllBlocks.CLOCKWORK_BEARING)\n\t\t\t.add(AllBlocks.ROPE_PULLEY)\n\t\t\t.add(AllBlocks.GANTRY_CARRIAGE)\n\t\t\t.add(AllBlocks.CART_ASSEMBLER);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.CONTRAPTION_ASSEMBLY)\n\t\t\t.add(AllBlocks.LINEAR_CHASSIS)\n\t\t\t.add(AllBlocks.SECONDARY_LINEAR_CHASSIS)\n\t\t\t.add(AllBlocks.RADIAL_CHASSIS)\n\t\t\t.add(AllItems.SUPER_GLUE)\n\t\t\t.add(AllBlocks.STICKER)\n\t\t\t.add(Blocks.SLIME_BLOCK)\n\t\t\t.add(Blocks.HONEY_BLOCK);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.CONTRAPTION_ACTOR)\n\t\t\t.add(AllBlocks.MECHANICAL_HARVESTER)\n\t\t\t.add(AllBlocks.MECHANICAL_PLOUGH)\n\t\t\t.add(AllBlocks.MECHANICAL_DRILL)\n\t\t\t.add(AllBlocks.MECHANICAL_SAW)\n\t\t\t.add(AllBlocks.DEPLOYER)\n\t\t\t.add(AllBlocks.PORTABLE_STORAGE_INTERFACE)\n\t\t\t.add(AllBlocks.PORTABLE_FLUID_INTERFACE)\n\t\t\t.add(AllBlocks.MECHANICAL_BEARING)\n\t\t\t.add(AllBlocks.ANDESITE_FUNNEL)\n\t\t\t.add(AllBlocks.BRASS_FUNNEL)\n\t\t\t.add(AllBlocks.SEATS[0])\n\t\t\t.add(AllBlocks.REDSTONE_CONTACT)\n\t\t\t.add(Blocks.BELL)\n\t\t\t.add(Blocks.DISPENSER)\n\t\t\t.add(Blocks.DROPPER);\n\n\t}", "void registerSelf(EntityType<?>... entityTypes);", "public void addBlock(Block block) {\n this.blocks.add(block);\n }", "public static void preInit() {\n registerBlocks();\n }", "Block saveBlock(Block block) throws BlockExistsException;", "@Test\n public void testORMUsageToretrieveBlocks() throws DataloadGeneratorException {\n List<BlockDefEntityWrap> tbsBlockEntity = getTbsBlockEntity();\n// System.out.println(\"BlockDiagCodeMappingTEntity - \" + tbsBlockSaved);\n System.out.println(\"BlockDefTEntity - \" + tbsBlockEntity);\n// assertNotNull(tbsBlockSaved);\n }", "protected void entityInit() {}", "public Block(){\n\t\tinstns = new ArrayList<Instruction>();\n\t}", "private void createBlock() {\n\t\tblock = new Block(mouseX, mouseY, 25, 25);\r\n\t\tblock.addObserver(this);\r\n\t\tblock.start();\r\n\t\t// System.out.println(\"Block created (at Model.createBlock)\");\r\n\t}", "Block createBlock();", "public void registerWorldChunkManager() {\n\t\tthis.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.sky, 0.5F, 0.0F);\n\t\tthis.dimensionId = 1;\n\t\tthis.hasNoSky = true;\n\t}", "public void ProtectMe(Block block){\n \tplugin.getProtect().add(block);\r\n \t\t//run the timer to load the block\r\n \t\r\n \tif(plugin.getTreeprotect_Timer().getPoolSize() < plugin.getTreeprotect_Timer().getMaximumPoolSize()){\r\n \t\tplugin.getTreeprotect_Timer().schedule(new Runnable() {\r\n \t\t\t\tpublic void run() {\r\n \t\t\t\t\tif(!(plugin.getProtect().isEmpty())){\r\n \t\t\t\t\t\t//remove it from the list\r\n \t\t\t\t\t\tplugin.getProtect().remove(0);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}, plugin.getProtectTime(), TimeUnit.MILLISECONDS);\r\n \t}\r\n \t}", "public void addBlock(Block block)\n {\n SolrInputDocument solr_doc = new SolrInputDocument();\n solr_doc.setField(\"type\",\"Block\");\n solr_doc.setField(\"hash\", block.getHash_block());\n solr_doc.setField(\"block_num\", block.getBlock_num());\n solr_doc.setField(\"version\", block.getVersion());\n solr_doc.setField(\"transaction_merkle_root\", block.getTransac_merkle_root());\n solr_doc.setField(\"timestamps\", block.getTimestamp());\n solr_doc.setField(\"datetime\", block.getDatetime());\n solr_doc.setField(\"difficulty\", block.getDifficulty());\n solr_doc.setField(\"cumulative_difficulty\", block.getCumulative_difficulty());\n solr_doc.setField(\"nonce\", block.getNonce());\n solr_doc.setField(\"how_much_transaction\", block.getHow_much_transaction());\n solr_doc.setField(\"value_out\", block.getValue_out());\n solr_doc.setField(\"block_fee\", block.getBlock_fee());\n solr_doc.setField(\"avg_coin_out\", block.getAvg_coin_age());\n solr_doc.setField(\"coin_days_destroyed\", block.getCoin_days_destroyed());\n solr_doc.setField(\"cumulative_coin_days_destroyed\", block.getCumulative_coin_days_destroyed());\n\n try {\n client.add(solr_doc);\n } catch (SolrServerException | IOException e) {\n e.printStackTrace();\n }\n\n commit();\n }", "public void store(Block fb) throws Exception {\r\n\t\tsuper.store(fb);\r\n\t}", "public static void registerOres(){\n overworldOres.add(register(\"limestone\", Feature.ORE.withConfiguration(new OreFeatureConfig(\n OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, AnnotatedBlockHolder.LIMESTONE.getDefaultState(), 24)) //Vein Size\n .range(72).square()\n .func_242731_b(24))); \n\n overworldOres.add(register(\"halite_ore\", Feature.ORE.withConfiguration(new OreFeatureConfig(\n new BlockMatchRuleTest(AnnotatedBlockHolder.LIMESTONE.getDefaultState().getBlock()), AnnotatedBlockHolder.HALITE_ORE.getDefaultState(), 16)) //Vein Size\n .range(72).square() //Spawn height start\n .func_242731_b(48))); //Chunk spawn frequency\n }", "public static <BLOCK extends Block> BLOCK register(@Nonnull final BLOCK block, @Nullable final ItemBlock itemBlock) {\n\t\tfinal ResourceLocation resourceLocation = block.getRegistryName();\n\t\tif (resourceLocation == null) {\n\t\t\tWarpDrive.logger.error(String.format(\"Missing registry name for block %s, ignoring registration...\",\n\t\t\t block));\n\t\t\treturn block;\n\t\t}\n\t\t\n\t\tassert !blocks.contains(block);\n\t\tblocks.add(block);\n\t\t\n\t\tif (itemBlock != null) {\n\t\t\titemBlock.setRegistryName(resourceLocation);\n\t\t\tregister(itemBlock);\n\t\t}\n\t\t\n\t\treturn block;\n\t}", "protected void onBlockPlace(BlockPlaceEvent event) {\n\t}", "private void populateEntitiesLists() {\n\t\tfor (StaticEntity entity : ((ClientTiledMap) map).staticEntities) {\n\t\t\tregisterStaticEntity(entity);\n\t\t}\n\t}", "public interface IBlockAdded {\n\t\n\tpublic void setItemBlock(@Nullable IItemAddedBlock itemBlock);\n\t\n\tpublic void setDisplayName(String displayName);\n\t\n\tpublic void setBlockMaterial(Material blockMaterial);\n\t\n\tpublic void setPlaceSound(SoundEvent sound);\n\t\n\tpublic void setBreakSound(SoundEvent sound);\n\t\n\tpublic void setHitSound(SoundEvent sound);\n\t\n\tpublic void setStepSound(SoundEvent sound);\n\t\n\tpublic void setFallSound(SoundEvent sound);\n\t\n\tpublic void setBlockMapColor(@Nullable MapColor mapColor);\n\t\n\tpublic void setHarvestLevel(int harvestLevel);\n\t\n\tpublic void setHarvestTool(String harvestTool);\n\t\n\tpublic void setEffectiveTools(List<String> effectiveTools);\n\t\n\tpublic void setBookshelfStrength(int bookshelfStrength);\n\t\n\tpublic void setBeaconColorMultiplier(@Nullable float[] beaconColorMultiplier);\n\t\n\tpublic void setSlipperiness(float slipperiness);\n\t\n\tpublic void setIsSlime(boolean isSlime);\n\t\n\tpublic void setIsBeaconBase(boolean isBeaconBase);\n\t\n\tpublic void setCanPistonsPush(boolean canPistonsPush);\n\t\n\tpublic void setSemiTransparent(boolean semiTransparent);\n\t\n\tpublic void setXpDroppedMin(int xpMin);\n\t\n\tpublic void setXpDroppedMax(int xpMax);\n\t\n\tpublic void setDroppedFromExplosions(Boolean droppedFromExplosions);\n\t\n\tpublic default void setCanEndermenCarry(boolean canEndermenCarry) {\n\t\tif (EntityEnderman.getCarriable(this.getAsBlock()) != canEndermenCarry) {\n\t\t\tEntityEnderman.setCarriable(this.getAsBlock(), canEndermenCarry);\n\t\t}\n\t}\n\t\n\t@Nullable\n\tpublic IItemAddedBlock getItemBlock();\n\t\n\tpublic String getDisplayName();\n\t\n\tpublic Material getBlockMaterial();\n\t\n\tpublic SoundEvent getPlaceSound();\n\t\n\tpublic SoundEvent getBreakSound();\n\t\n\tpublic SoundEvent getHitSound();\n\t\n\tpublic SoundEvent getStepSound();\n\t\n\tpublic SoundEvent getFallSound();\n\t\n\t@Nullable\n\tpublic MapColor getBlockMapColor();\n\t\n\tpublic int getHarvestLevel();\n\t\n\tpublic String getHarvestTool();\n\t\n\tpublic List<String> getEffectiveTools();\n\t\n\tpublic int getBookshelfStrength();\n\t\n\t@Nullable\n\tpublic float[] getBeaconColorMultiplier();\n\t\n\tpublic float getSlipperiness();\n\t\n\tpublic boolean isSlime();\n\t\n\tpublic boolean isBeaconBase();\n\t\n\tpublic boolean canPistonsPush();\n\t\n\tpublic float getHardness();\n\t\n\tpublic float getResistance();\n\t\n\tpublic int getOpacity();\n\t\n\tpublic boolean isSemiTransparent();\n\t\n\tpublic int getLightLevel();\n\t\n\tpublic int getXpDroppedMin();\n\t\n\tpublic int getXpDroppedMax();\n\t\n\tpublic Boolean getDroppedFromExplosions();\n\t\n\tpublic default boolean canEndermenCarry() {\n\t\treturn EntityEnderman.getCarriable(this.getAsBlock());\n\t}\n\t\n\tpublic default void registerModels() {\n\t\tAdditionsMod.proxy.registerBlockRender(this.getAsBlock());\n\t}\n\t\n\tpublic default Block getAsBlock() {\n\t\tif (!(this instanceof Block)) {\n\t\t\tthrow new IllegalArgumentException(\"An IBlockAdded must be an instance of Block.\");\n\t\t}\n\t\treturn (Block) this;\n\t}\n\t\n public default String getId() {\n \tResourceLocation registryName = this.getAsBlock().getRegistryName();\n \t\n \tif (registryName != null) {\n \t\treturn registryName.getResourcePath();\n \t}\n \t\n String unlocalizedName = this.getAsBlock().getUnlocalizedName();\n \n if (unlocalizedName.startsWith(\"tile.\")) {\n \treturn unlocalizedName.substring(5);\n }\n \n return unlocalizedName;\n }\n\n public abstract static class Serializer<T extends IBlockAdded> {\n\t\t\n\t\tprivate final ResourceLocation blockAddedType;\n private final Class<T> blockAddedClass;\n\n protected Serializer(ResourceLocation location, Class<T> clazz)\n {\n this.blockAddedType = location;\n this.blockAddedClass = clazz;\n }\n\n\t\tpublic ResourceLocation getBlockAddedType() {\n\t\t\treturn this.blockAddedType;\n\t\t}\n\t\t\n\t\tpublic Class<T> getBlockAddedClass() {\n\t\t\treturn this.blockAddedClass;\n\t\t}\n\n\t\tpublic JsonObject serialize(T blockAddedObj, JsonSerializationContext context) {\n\t\t\tJsonObject json = new JsonObject();\n\t\t\tBlock blockAdded = blockAddedObj.getAsBlock();\n\t\t\t\n\t\t\tif (blockAddedObj.getItemBlock() != null) {\n\t\t\t\tjson.add(\"item_block\", AdditionTypeItem.GSON.toJsonTree(blockAddedObj.getItemBlock()));\n\t\t\t}\n\t\t\t\n\t\t\tjson.addProperty(\"name\", blockAddedObj.getDisplayName());\n\t\t\tjson.add(\"material\", OtherSerializers.BlockMaterialSerializer.serialize(blockAddedObj.getBlockMaterial()));\n\t\t\t\n\t\t\tif (blockAddedObj.getPlaceSound() != null) {\n\t\t\t\tjson.add(\"place_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getPlaceSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBreakSound() != null) {\n\t\t\t\tjson.add(\"break_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getBreakSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHitSound() != null) {\n\t\t\t\tjson.add(\"hit_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getHitSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getStepSound() != null) {\n\t\t\t\tjson.add(\"step_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getStepSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getFallSound() != null) {\n\t\t\t\tjson.add(\"fall_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getFallSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBlockMapColor() != null) {\n\t\t\t\tjson.add(\"map_color\", OtherSerializers.BlockMapColorSerializer.serialize(blockAddedObj.getBlockMapColor()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHardness() > 0) {\n\t\t\t\tjson.addProperty(\"hardness\", blockAddedObj.getHardness());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getResistance() > 0) {\n\t\t\t\tjson.addProperty(\"resistance\", blockAddedObj.getResistance() / 3.0f);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHarvestLevel() != 0) {\n\t\t\t\tjson.addProperty(\"harvest_level\", blockAddedObj.getHarvestLevel());\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.getHarvestTool().isEmpty()) {\n\t\t\t\tjson.addProperty(\"harvest_tool\", blockAddedObj.getHarvestTool());\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.getEffectiveTools().isEmpty()) {\n\t\t\t\tjson.add(\"effective_tools\", OtherSerializers.StringListSerializer.serialize(blockAddedObj.getEffectiveTools()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAdded.getLightOpacity(blockAdded.getDefaultState()) != 15) {\n\t\t\t\tjson.addProperty(\"light_opacity\", blockAdded.getLightOpacity(blockAdded.getDefaultState()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAdded.getLightValue(blockAdded.getDefaultState()) > 0) {\n\t\t\t\tjson.addProperty(\"light_level\", blockAdded.getLightValue(blockAdded.getDefaultState()));\n\t\t\t}\n\t\t\t\n\t\t\tif (Blocks.FIRE.getFlammability(blockAdded) > 0) {\n\t\t\t\tjson.addProperty(\"flammability\", Blocks.FIRE.getFlammability(blockAdded));\n\t\t\t}\n\t\t\t\n\t\t\tif (Blocks.FIRE.getEncouragement(blockAdded) > 0) {\n\t\t\t\tjson.addProperty(\"fire_spread_speed\", Blocks.FIRE.getEncouragement(blockAdded));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBookshelfStrength() > 0) {\n\t\t\t\tjson.addProperty(\"bookshelf_strength\", blockAddedObj.getBookshelfStrength());\n\t\t\t}\n\t\t\t\n\t\t\tfloat[] beaconColorsMultiplier = blockAddedObj.getBeaconColorMultiplier();\n\t\t\tif (beaconColorsMultiplier != null && beaconColorsMultiplier.length == 3) {\n\t\t\t\tJsonObject beaconColorObj = new JsonObject();\n\t\t\t\tbeaconColorObj.addProperty(\"red\", beaconColorsMultiplier[0]);\n\t\t\t\tbeaconColorObj.addProperty(\"green\", beaconColorsMultiplier[1]);\n\t\t\t\tbeaconColorObj.addProperty(\"blue\", beaconColorsMultiplier[2]);\n\t\t\t\tjson.add(\"beacon_color_multiplier\", beaconColorObj);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getSlipperiness() != 0.6f) {\n\t\t\t\tjson.addProperty(\"slipperiness\", blockAddedObj.getSlipperiness());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isSlime()) {\n\t\t\t\tjson.addProperty(\"is_slime\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isBeaconBase()) {\n\t\t\t\tjson.addProperty(\"is_beacon_base\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.canPistonsPush()) {\n\t\t\t\tjson.addProperty(\"can_pistons_push\", false);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isSemiTransparent()) {\n\t\t\t\tjson.addProperty(\"semi_transparent\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getXpDroppedMin() != 0) {\n\t\t\t\tjson.addProperty(\"xp_dropped_min\", blockAddedObj.getXpDroppedMin());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getXpDroppedMax() != 0) {\n\t\t\t\tjson.addProperty(\"xp_dropped_max\", blockAddedObj.getXpDroppedMax());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getDroppedFromExplosions() != null) {\n\t\t\t\tjson.addProperty(\"dropped_from_explosions\", blockAddedObj.getDroppedFromExplosions());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.canEndermenCarry()) {\n\t\t\t\tjson.addProperty(\"can_endermen_carry\", true);\n\t\t\t}\n\t\t\t\n\t\t\treturn json;\n }\n\n\t\tpublic abstract T deserialize(JsonObject json, JsonDeserializationContext context);\n\t\t\n\t\tpublic <V extends Block & IBlockAdded> V deserializeDefaults(JsonObject json, JsonDeserializationContext context, V blockAdded) {\n\t\t\t\n\t\t\tif (json.has(\"item_block\")) {\n\t\t\t\tIItemAdded itemAdded = AdditionTypeItem.GSON.fromJson(json.get(\"item_block\"), IItemAdded.class);\n\t\t\t\t\n\t\t\t\tif (itemAdded instanceof IItemAddedBlock) {\n\t\t\t\t\tIItemAddedBlock itemAddedBlock = (IItemAddedBlock)itemAdded;\n\t\t\t\t\titemAddedBlock.setBlock(blockAdded);\n\t\t\t\t\tblockAdded.setItemBlock(itemAddedBlock);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n \tblockAdded.setDisplayName(JsonUtils.getString(json, \"name\"));\n \tblockAdded.setBlockMaterial(OtherSerializers.BlockMaterialSerializer.deserialize(json, \"material\"));\n\t\t\t\n\t\t\tif (json.has(\"map_color\")) {\n\t\t\t\tblockAdded.setBlockMapColor(OtherSerializers.BlockMapColorSerializer.deserialize(json, \"map_color\"));\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setHardness(JsonUtils.getFloat(json, \"hardness\", 0));\n\t\t\tblockAdded.setResistance(JsonUtils.getFloat(json, \"resistance\", 0));\n\t\t\tblockAdded.setHarvestLevel(JsonUtils.getInt(json, \"harvest_level\", 0));\n\t\t\tblockAdded.setHarvestTool(JsonUtils.getString(json, \"harvest_tool\", \"\"));\n\t\t\t\n\t\t\tif (json.has(\"effective_tools\")) {\n\t\t\t\tblockAdded.setEffectiveTools(OtherSerializers.StringListSerializer.deserialize(json.get(\"effective_tools\"), \"effective_tools\"));\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setLightOpacity(MathHelper.clamp(JsonUtils.getInt(json, \"light_opacity\", 15), 0, 15));\n\t\t\tblockAdded.setLightLevel(MathHelper.clamp(JsonUtils.getInt(json, \"light_level\", 0), 0, 15) / 15F);\n\t\t\t\n\t\t\tint flammability = JsonUtils.getInt(json, \"flammability\", 0);\n\t\t\tint fireSpreadSpeed = JsonUtils.getInt(json, \"fire_spread_speed\", 0);\n\t\t\tif (flammability > 0 || fireSpreadSpeed > 0) {\n\t\t\t\tBlocks.FIRE.setFireInfo(blockAdded, fireSpreadSpeed, flammability);\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setBookshelfStrength(JsonUtils.getInt(json, \"bookshelf_strength\", 0));\n\t\t\t\n\t\t\tif (json.has(\"beacon_color_multiplier\")) {\n\t\t\t\tJsonObject beaconColorObj = JsonUtils.getJsonObject(json, \"beacon_color_multiplier\");\n\t\t\t\tblockAdded.setBeaconColorMultiplier(new float[]{JsonUtils.getFloat(beaconColorObj, \"red\"), JsonUtils.getFloat(beaconColorObj, \"green\"), JsonUtils.getFloat(beaconColorObj, \"blue\")});\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setSlipperiness(JsonUtils.getFloat(json, \"slipperiness\", 0.6f));\n\t\t\tblockAdded.setIsSlime(JsonUtils.getBoolean(json, \"is_slime\", false));\n\t\t\tblockAdded.setIsBeaconBase(JsonUtils.getBoolean(json, \"is_beacon_base\", false));\n\t\t\tblockAdded.setCanPistonsPush(JsonUtils.getBoolean(json, \"can_pistons_push\", true));\n\t\t\tblockAdded.setSemiTransparent(JsonUtils.getBoolean(json, \"semi_transparent\", false));\n\t\t\tblockAdded.setXpDroppedMin(JsonUtils.getInt(json, \"xp_dropped_min\", 0));\n\t\t\tblockAdded.setXpDroppedMax(JsonUtils.getInt(json, \"xp_dropped_max\", 0));\n\t\t\tblockAdded.setCanEndermenCarry(JsonUtils.getBoolean(json, \"can_endermen_carry\", false));\n\t\t\t\n\t\t\tif (json.has(\"dropped_by_explosions\")) {\n\t\t\t\tblockAdded.setDroppedFromExplosions(JsonUtils.getBoolean(json, \"dropped_by_explosions\"));\n\t\t\t}\n \t\n \treturn blockAdded;\n }\n\t\t\n\t\tpublic void postDeserializeBlockAdded(JsonObject json, IBlockAdded blockAddedObj) {\n\t\t\tif (blockAddedObj.getClass() != this.blockAddedClass) {\n\t\t\t\tthrow new IllegalArgumentException(\"Tried to call post serialize for an object of the wrong type! Expected: \" + this.blockAddedClass + \", Actual: \" + blockAddedObj.getClass());\n\t\t\t}\n\t\t\t\n\t\t\tpostDeserialize(json, (T) blockAddedObj);\n\t\t}\n\t\t\n\t\tpublic void postDeserialize(JsonObject json, T blockAdded) {\n\t\t\tthis.postDeserializeDefaults(json, blockAdded);\n\t\t}\n\t\t\n\t\tpublic void postDeserializeDefaults(JsonObject json, T blockAdded) {\n \t\n \tIItemAdded itemAdded = blockAdded.getItemBlock();\n \tif (itemAdded != null) {\n \t\tItemAddedManager.Serializer.postDeserialize(JsonUtils.getJsonObject(json, \"item_block\"), itemAdded);\n \t}\n \t\n \tif (json.has(\"place_sound\")) {\n \t\tblockAdded.setPlaceSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"place_sound\"));\n \t}\n \t\n \tif (json.has(\"break_sound\")) {\n \t\tblockAdded.setBreakSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"break_sound\"));\n \t}\n \t\n \tif (json.has(\"hit_sound\")) {\n \t\tblockAdded.setHitSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"hit_sound\"));\n \t}\n \t\n \tif (json.has(\"step_sound\")) {\n \t\tblockAdded.setStepSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"step_sound\"));\n \t}\n \t\n \tif (json.has(\"fall_sound\")) {\n \t\tblockAdded.setFallSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"fall_sound\"));\n \t}\n }\n }\n}", "@Override\n\tpublic void postinit(FMLPostInitializationEvent event) {\n\t\t\n\t\tRenderItem renderItem = Minecraft.getMinecraft().getRenderItem();\n\t\t\n\t\t//blocks\n\t\trenderItem.getItemModelMesher().register(Item.getItemFromBlock(TCMBlocks.bonepile), 0, new ModelResourceLocation(techicraftmod.MODID + \":\" + ((BlockBonePile) TCMBlocks.bonepile).getName(), \"inventory\"));\n\t\trenderItem.getItemModelMesher().register(Item.getItemFromBlock(TCMBlocks.obsidianpressureplate), 0, new ModelResourceLocation(techicraftmod.MODID + \":\" + ((BlockObsidianPressurePlate) TCMBlocks.obsidianpressureplate).getName(), \"inventory\"));\n\t\trenderItem.getItemModelMesher().register(Item.getItemFromBlock(TCMBlocks.invisiblepressureplate), 0, new ModelResourceLocation(techicraftmod.MODID + \":\" + ((BlockInvisiblePressurePlate) TCMBlocks.invisiblepressureplate).getName(), \"inventory\"));\n\t\trenderItem.getItemModelMesher().register(Item.getItemFromBlock(TCMBlocks.crystaltorch), 0, new ModelResourceLocation(techicraftmod.MODID + \":\" + ((BlockCrystalTorch) TCMBlocks.crystaltorch).getName(), \"inventory\"));\n\t\trenderItem.getItemModelMesher().register(Item.getItemFromBlock(TCMBlocks.solidglass), 0, new ModelResourceLocation(techicraftmod.MODID + \":\" + ((BlockSolidGlass) TCMBlocks.solidglass).getName(), \"inventory\"));\n\n\t\t//items\n\t\trenderItem.getItemModelMesher().register(TCMItems.firestaff, 0, new ModelResourceLocation(techicraftmod.MODID + \":\" + ((ItemFireStaff) TCMItems.firestaff).getName(), \"inventory\"));\n\n\t}", "BlockStore getBlockStore();", "public static <T extends Block> T register(T block, String name, ItemGroup group, boolean hasItem) {\n ResourceLocation loc = new ResourceLocation(Missy.MODID, name);\n // Set the block to it.\n block.setRegistryName(loc);\n\n if(hasItem) {\n if(block instanceof IMakeItem) {\n ITEMS.add(((IMakeItem) block).getItem().setRegistryName(loc));\n }\n else ITEMS.add(new BlockItem(block, MItemProperties.BLOCK.group(group)).setRegistryName(loc));\n }\n\n BLOCKS.add(block);\n\n return block;\n }", "private void addBlock(Block one)\n\t{\n\t\tgetChildren().add(one);\n\t\tblocks1.add(one);\n\t\tblocks2.add(one);\n\t}", "private void addBlockAddresses(MemoryBlockDB block, boolean addToAll) {\n\t\tAddress start = block.getStart();\n\t\tAddress end = block.getEnd();\n\t\tif (addToAll) {\n\t\t\tallAddrSet.add(start, end);\n\t\t}\n\t\tif (block.isExternalBlock()) {\n\t\t\taddrSetView.externalBlock.add(start, end);\n\t\t}\n\t\telse if (block.isExecute()) {\n\t\t\taddrSetView.execute.add(start, end);\n\t\t}\n\t\tif (block.isMapped()) {\n\t\t\t// Identify source-blocks which block maps onto and add as a mapped-block to each of these\n\t\t\tAddressRange mappedRange = block.getSourceInfos().get(0).getMappedRange().get();\n\t\t\tfor (MemoryBlockDB b : getBlocks(mappedRange.getMinAddress(),\n\t\t\t\tmappedRange.getMaxAddress())) {\n\t\t\t\tif (!b.isMapped()) {\n\t\t\t\t\tb.addMappedBlock(block);\n\t\t\t\t}\n\t\t\t}\n\t\t\tAddressSet mappedSet = getMappedIntersection(block, addrSetView.initialized);\n\t\t\taddrSetView.initialized.add(mappedSet);\n\t\t\taddrSetView.initializedAndLoaded.add(getMappedIntersection(block, addrSetView.initializedAndLoaded));\n\t\t}\n\t\telse if (block.isInitialized()) {\n\t\t\taddrSetView.initialized.add(block.getStart(), block.getEnd());\n\t\t\tif (block.isLoaded()) {\n\t\t\t\taddrSetView.initializedAndLoaded.add(block.getStart(), block.getEnd());\n\t\t\t}\n\t\t}\n\t}", "private void initEntities() {\n\t\tship = new ShipEntity(this,\"ship.gif\",370,550);\n\t\tentities.add(ship);\n\t\tscore = 0;\n\t\t// create a block of aliens (5 rows, by 12 aliens, spaced evenly)\n\t\talienCount = 0;\n\t\tfor (int row=0;row<5;row++) {\n\t\t\tfor (int x=0;x<12;x++) {\n\t\t\t\tEntity alien = new AlienEntity(this,\"alien.gif\",100+(x*50),(50)+row*30);\n\t\t\t\tentities.add(alien);\n\t\t\t\talienCount++;\n\t\t\t}\n\t\t}\n\t}", "private static void put(Block block, TempBlock tempBlock) {\r\n\t\tif (!instances_.containsKey(block)) {\r\n\t\t\tinstances_.put(block, new LinkedList<>());\r\n\t\t}\r\n\t\tinstances_.get(block).add(tempBlock);\r\n\t}", "public void PlantMe(Block block){\n \tplugin.getReplant().add(block);\r\n \t\t//run the timer to load the block\r\n \t\r\n \tif(plugin.getTreeplant_Timer().getPoolSize() < plugin.getTreeplant_Timer().getMaximumPoolSize()){\r\n \t\tplugin.getTreeplant_Timer().schedule(new Runnable() {\r\n \t\t\t\tpublic void run() {\r\n \t\t\t\t\tif(!(plugin.getReplant().isEmpty())){\r\n \t\t\t\t\t\tBlock loadedBlock = plugin.getReplant().get(0);\r\n \t\t\t\t\t\t//remove it from the list\r\n \t\t\t\t\t\tplugin.getReplant().remove(0);\r\n \t\t\t\t\t\t//protect it\r\n \t\t\t\t\t\tProtectMe(loadedBlock);\r\n \t\t\t\t\t\t//made into a sap\r\n \t\t\t\t\t\tif( (loadedBlock.getType().equals(Material.AIR)) || (loadedBlock.getType().equals(Material.FIRE)) ) //just incase it was on fire\r\n \t\t\t\t\t\t\tloadedBlock.setType(Material.SAPLING);\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t\t/* No longer needed! Didn't realized leaves light blocking changed way back when.\r\n \t\t\t\t\t\t * for(int i=loadedBlock.getY(); i < 128; i++){\r\n \t\t\t\t\t\t\t//delete all the leaves in a line to the sky limit\r\n \t\t\t\t\t\t\tif(loadedBlock.getType()==Material.LEAVES){\r\n \t\t\t\t\t\t\t\t//it's a leaf delete it\r\n \t\t\t\t\t\t\t\tloadedBlock.setType(Material.AIR);\r\n \t\t\t\t\t\t\t\t//update on server | Not needed?\r\n \t\t\t\t\t\t\t\t//etc.getServer().setBlock(leafToDelete);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t//go up one\r\n \t\t\t\t\t\t\tloadedBlock = loadedBlock.getFace(BlockFace.UP);\r\n \t\t\t\t\t\t}*/\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}, plugin.getdelayTime(), TimeUnit.MILLISECONDS);\r\n \t}\r\n \t}", "@SuppressWarnings(\"rawtypes\")\n\tprivate void registerHeartFurnace(){\n\t\tMap<Direction, BlockModelBuilder> models = new HashMap<Direction, BlockModelBuilder>();\n\t\tMap<Direction, BlockModelBuilder> litModels = new HashMap<Direction, BlockModelBuilder>();\n\t\tfor(boolean lit : new boolean[]{true, false}){\n\t\t\tfor(Direction dir : Direction.values()){\n\t\t\t\tString modelName = \"heart_furnace_\" + dir.toString();\n\t\t\t\tif(lit){\n\t\t\t\t\tmodelName += \"_on\";\n\t\t\t\t}\n\t\t\t\tBlockModelBuilder model = models().withExistingParent(modelName, mcLoc(BLOCK_DIR + \"/block\"));\n\t\t\t\t//Create furnace element\n\t\t\t\tmodel.element().from(0, 0, 0).to(16, 16, 16).allFaces((faceDir, faceBuilder) -> {\n\t\t\t\t\tswitch(faceDir){\n\t\t\t\t\t\tcase NORTH:\n\t\t\t\t\t\t\tfaceBuilder.cullface(faceDir).texture(\"#front\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase UP:\n\t\t\t\t\t\tcase DOWN:\n\t\t\t\t\t\t\tfaceBuilder.cullface(faceDir).texture(\"#top\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tfaceBuilder.cullface(faceDir).texture(\"#side\");\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t//Create overlay element\n\t\t\t\tElementBuilder overlayElement = model.element().from(0, 0, 0).to(16, 16, 16);\n\t\t\t\tswitch(dir){\n\t\t\t\t\tcase UP:\n\t\t\t\t\t\toverlayElement.face(Direction.UP).cullface(Direction.UP).texture(\"#overlay_top\").end()\n\t\t\t\t\t\t.face(Direction.NORTH).cullface(Direction.NORTH).texture(\"#overlay_side\").end()\n\t\t\t\t\t\t.face(Direction.EAST).cullface(Direction.EAST).texture(\"#overlay_side\").end()\n\t\t\t\t\t\t.face(Direction.SOUTH).cullface(Direction.SOUTH).texture(\"#overlay_side\").end()\n\t\t\t\t\t\t.face(Direction.WEST).cullface(Direction.WEST).texture(\"#overlay_side\").end();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DOWN:\n\t\t\t\t\t\toverlayElement.face(Direction.DOWN).cullface(Direction.DOWN).texture(\"#overlay_top\").end()\n\t\t\t\t\t\t.face(Direction.NORTH).cullface(Direction.NORTH).texture(\"#overlay_side\").rotation(FaceRotation.UPSIDE_DOWN).end()\n\t\t\t\t\t\t.face(Direction.EAST).cullface(Direction.EAST).texture(\"#overlay_side\").rotation(FaceRotation.UPSIDE_DOWN).end()\n\t\t\t\t\t\t.face(Direction.SOUTH).cullface(Direction.SOUTH).texture(\"#overlay_side\").rotation(FaceRotation.UPSIDE_DOWN).end()\n\t\t\t\t\t\t.face(Direction.WEST).cullface(Direction.WEST).texture(\"#overlay_side\").rotation(FaceRotation.UPSIDE_DOWN).end();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase EAST:\n\t\t\t\t\t\toverlayElement.face(Direction.EAST).cullface(Direction.EAST).texture(\"#overlay_top\").end()\n\t\t\t\t\t\t.face(Direction.UP).cullface(Direction.UP).texture(\"#overlay_side\").rotation(FaceRotation.CLOCKWISE_90).end()\n\t\t\t\t\t\t.face(Direction.NORTH).cullface(Direction.NORTH).texture(\"#overlay_side\").rotation(FaceRotation.COUNTERCLOCKWISE_90).end()\n\t\t\t\t\t\t.face(Direction.DOWN).cullface(Direction.DOWN).texture(\"#overlay_side\").rotation(FaceRotation.CLOCKWISE_90).end()\n\t\t\t\t\t\t.face(Direction.SOUTH).cullface(Direction.SOUTH).texture(\"#overlay_side\").rotation(FaceRotation.CLOCKWISE_90).end();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NORTH:\n\t\t\t\t\t\toverlayElement.face(Direction.NORTH).cullface(Direction.NORTH).texture(\"#overlay_top\").end()\n\t\t\t\t\t\t.face(Direction.UP).cullface(Direction.UP).texture(\"#overlay_side\").rotation(FaceRotation.ZERO).end()\n\t\t\t\t\t\t.face(Direction.EAST).cullface(Direction.EAST).texture(\"#overlay_side\").rotation(FaceRotation.CLOCKWISE_90).end()\n\t\t\t\t\t\t.face(Direction.DOWN).cullface(Direction.DOWN).texture(\"#overlay_side\").rotation(FaceRotation.UPSIDE_DOWN).end()\n\t\t\t\t\t\t.face(Direction.WEST).cullface(Direction.WEST).texture(\"#overlay_side\").rotation(FaceRotation.COUNTERCLOCKWISE_90).end();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase SOUTH:\n\t\t\t\t\t\toverlayElement.face(Direction.SOUTH).cullface(Direction.SOUTH).texture(\"#overlay_top\").end()\n\t\t\t\t\t\t.face(Direction.UP).cullface(Direction.UP).texture(\"#overlay_side\").rotation(FaceRotation.UPSIDE_DOWN).end()\n\t\t\t\t\t\t.face(Direction.EAST).cullface(Direction.EAST).texture(\"#overlay_side\").rotation(FaceRotation.COUNTERCLOCKWISE_90).end()\n\t\t\t\t\t\t.face(Direction.DOWN).cullface(Direction.DOWN).texture(\"#overlay_side\").rotation(FaceRotation.ZERO).end()\n\t\t\t\t\t\t.face(Direction.WEST).cullface(Direction.WEST).texture(\"#overlay_side\").rotation(FaceRotation.CLOCKWISE_90).end();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase WEST:\n\t\t\t\t\t\toverlayElement.face(Direction.WEST).cullface(Direction.WEST).texture(\"#overlay_top\").end()\n\t\t\t\t\t\t.face(Direction.UP).cullface(Direction.UP).texture(\"#overlay_side\").rotation(FaceRotation.COUNTERCLOCKWISE_90).end()\n\t\t\t\t\t\t.face(Direction.NORTH).cullface(Direction.NORTH).texture(\"#overlay_side\").rotation(FaceRotation.CLOCKWISE_90).end()\n\t\t\t\t\t\t.face(Direction.DOWN).cullface(Direction.DOWN).texture(\"#overlay_side\").rotation(FaceRotation.COUNTERCLOCKWISE_90).end()\n\t\t\t\t\t\t.face(Direction.SOUTH).cullface(Direction.SOUTH).texture(\"#overlay_side\").rotation(FaceRotation.COUNTERCLOCKWISE_90).end();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t//Assign textures\n\t\t\t\tmodel.texture(\"front\", mcLoc(BLOCK_DIR + (lit ? \"/furnace_front_on\" : \"/furnace_front\")))\n\t\t\t\t\t.texture(\"top\", mcLoc(BLOCK_DIR + \"/furnace_top\"))\n\t\t\t\t\t.texture(\"side\", mcLoc(BLOCK_DIR + \"/furnace_side\"))\n\t\t\t\t\t.texture(\"overlay_top\", modLoc(BLOCK_DIR + \"/flesh_block\")) //TODO: Placeholder texture\n\t\t\t\t\t.texture(\"overlay_side\", modLoc(BLOCK_DIR + \"/furnace_overlay\"))\n\t\t\t\t\t.texture(\"particle\", mcLoc(BLOCK_DIR + \"/furnace_front\"));\n\t\t\t\t//Add to respective map\n\t\t\t\tif(lit){\n\t\t\t\t\tlitModels.put(dir, model);\n\t\t\t\t}else{\n\t\t\t\t\tmodels.put(dir, model);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Create map of directions for offsetting rotations\n\t\tMap<Direction, Orientation> yRotationOffsets = new HashMap<Direction, Orientation>();\n\t\tyRotationOffsets.put(Direction.NORTH, Orientation.IDENTITY);\n\t\tyRotationOffsets.put(Direction.EAST, Orientation.ROT_90_Y_POS);\n\t\tyRotationOffsets.put(Direction.SOUTH, Orientation.ROT_180_FACE_XZ);\n\t\tyRotationOffsets.put(Direction.WEST, Orientation.ROT_90_Y_NEG);\n\t\t//Build multipart json\n\t\tgetVariantBuilder(OrganicTechBlocks.HEART_FURNACE.get()).forAllStates(state -> {\n\t\t\t//Get BlockState property values\n\t\t\tDirection connectionDir = state.get(HeartFurnaceBlock.CONNECTION_FACING);\n\t\t\tDirection facingDir = state.get(HeartFurnaceBlock.FACING);\n\t\t\tboolean lit = state.get(HeartFurnaceBlock.LIT);\n\t\t\t//Get blockstate JSON builder\n\t\t\tConfiguredModel.Builder builder = ConfiguredModel.builder();\n\t\t\tswitch(connectionDir){\n\t\t\t\tcase UP:\n\t\t\t\tcase DOWN:\n\t\t\t\t\tbuilder.modelFile((lit ? litModels.get(connectionDir) : models.get(connectionDir)))\n\t\t\t\t\t\t.rotationY(getYRotationFromFacing(facingDir));\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tDirection adjustedDir = yRotationOffsets.get(facingDir).func_235530_a_(connectionDir);\n\t\t\t\t\tbuilder.modelFile((lit ? litModels.get(adjustedDir) : models.get(adjustedDir)))\n\t\t\t\t\t\t.rotationY(getYRotationFromFacing(facingDir));\n\t\t\t}\n\t\t\treturn builder.build();\n\t\t});\n\t}", "public void insert(int index, Block block) {\r\n\t\tfor(Entry s : block) {\r\n\t\t\tinsert(index++, s.code,s.attributes());\r\n\t\t}\r\n\t}", "public void append(Block block) {\r\n\t\tfor(Entry s : block) {\r\n\t\t\tappend(s.code,s.attributes());\r\n\t\t}\r\n\t}", "@SubscribeEvent\n public static void registerContainer(final RegistryEvent.Register<ContainerType<?>> event){\n walletBlockContainerType = IForgeContainerType.create(WalletBlockContainer::createForClientSide);\n walletBlockContainerType.setRegistryName(\"wallet_block_container\");\n event.getRegistry().register(walletBlockContainerType);\n }", "public void addBlock(int x, int y) {\r\n\t\tthis.blockMap.add(new Block(x, y));\r\n\t}", "@Override\r\n\tprotected boolean shouldBlock(Entity e) {\n\t\treturn super.shouldBlock(e);\r\n\t}", "public void registerIcons(IconRegister register)\n {\n this.blockIcon = register.registerIcon(\"decoBlockMud\");\n }", "Integer add(@Param(\"tableName\") String tableName, @Param(\"block\") TbBlock tbBlock);", "private void readBlocks(List<Element> blockElements, Model model)\n throws ObjectExistsException {\n // Add the blocks.\n for (int i = 0; i < blockElements.size(); i++) {\n Element curBlockElement = blockElements.get(i);\n Integer blockID;\n try {\n blockID = Integer.valueOf(curBlockElement.getAttributeValue(\"id\"));\n }\n catch (NumberFormatException e) {\n blockID = null;\n }\n Block curBlock = model.createBlock(blockID);\n TCSObjectReference<Block> blockRef = curBlock.getReference();\n String blockName = curBlockElement.getAttributeValue(\"name\");\n if (blockName == null || blockName.isEmpty()) {\n blockName = \"BlockName\" + i + \"Unknown\";\n }\n model.getObjectPool().renameObject(curBlock.getReference(), blockName);\n // Add members.\n List<Element> memberElements = curBlockElement.getChildren(\"member\");\n for (int j = 0; j < memberElements.size(); j++) {\n Element curMemberElement = memberElements.get(j);\n String memberName = curMemberElement.getAttributeValue(\"name\");\n if (memberName == null || memberName.isEmpty()) {\n memberName = \"MemberName\" + j + \"Unknown\";\n }\n TCSResource<?> curMember\n = (TCSResource<?>) model.getObjectPool().getObject(memberName);\n curBlock.addMember(curMember.getReference());\n }\n List<Element> properties = curBlockElement.getChildren(\"property\");\n for (int k = 0; k < properties.size(); k++) {\n Element curPropElement = properties.get(k);\n String curKey = curPropElement.getAttributeValue(\"name\");\n if (curKey == null || curKey.isEmpty()) {\n curKey = \"Key\" + k + \"Unknown\";\n }\n String curValue = curPropElement.getAttributeValue(\"value\");\n if (curValue == null || curValue.isEmpty()) {\n curValue = \"Value\" + k + \"Unknown\";\n }\n model.getObjectPool().setObjectProperty(blockRef, curKey, curValue);\n }\n }\n }", "public void setupEntities() {\n }", "public EntityRegister() {\r\n\t\tObjectifyService.register(Empleado.class);\r\n\t\tObjectifyService.register(Empresa.class);\r\n\t\tObjectifyService.register(Regimen.class);\r\n\t\tObjectifyService.register(Factura.class);\r\n\t\tObjectifyService.register(DeduccionInfonavit.class);\r\n\t\tregistrar(DeduccionAusentismo.class);\r\n\t\tObjectifyService.register(Pago.class);\r\n\t\tregistrar(Emisor.class);\r\n\t\tregistrar(DatosEmisor.class);\r\n\t\tregistrar(Catalogos.class);\r\n\t\tregistrar(EntTipoPercepcion.class);\r\n\t\tregistrar(EntTipoDeduccion.class);\r\n\t\tregistrar(TipoRegimenContratacion.class);\r\n\t\tregistrar(CatalogosContabilidadPropia.class);\r\n\t\tregistrar(ContabilidadPropiaTipoPercepcion.class);\r\n\t\tregistrar(ContabilidadPropiaTipoDeduccion.class);\r\n\t\tregistrar(IndicadorNomina.class);\r\n\t\tregistrar(PercepcionHorasExtra.class);\r\n\t\tregistrar(PercepcionPrimaSeguroDeVida.class);\r\n\t\tregistrar(PercepcionCuotaSindical.class);\r\n\t\tregistrar(PercepcionSubsidiosIncapacidad.class);\r\n\t\tregistrar(PercepcionPrimaDominical.class);\r\n\t\tregistrar(PrimaRiesgoDeTrabajo.class);\r\n\r\n\t\tObjectifyService.register(TarifaSubsidio.class);\r\n\t\tObjectifyService.register(TarifaTrabajoRealizado.class);\r\n\t\tObjectifyService.register(TarifaSemanal.class);\r\n\t\tObjectifyService.register(TarifaDecenal.class);\r\n\t\tObjectifyService.register(TarifaQuincenal.class);\r\n\t\tObjectifyService.register(TarifaMensual.class);\r\n\t\tObjectifyService.register(Perfil.class);\r\n\t\tObjectifyService.register(RegistroBitacora.class);\r\n\t\tregistrar(ContadorEmpleados.class);\r\n\t\tregistrar(Conceptos.class);\r\n\t\tregistrar(Serial.class);\r\n\t\tregistrar(Imagen.class);\r\n\t\tregistrar(FacturaRenglon.class);\r\n\r\n\t\tregistrar(Municipio.class);\r\n\t\tregistrar(CFDINominaAsimilado.class);\r\n\t\tregistrar(NominaIASRenglon.class);\r\n\t\tregistrar(ListaDeClasesDeProdServ.class);\r\n\t\tregistrar(TrabajadorIAS.class);\r\n\t\tregistrar(FacturaVTT.class);\r\n\t\tregistrar(ConjuntoIAS.class);\r\n\t}", "private void initAccounts() {\n ((GenesisBlock) DependencyManager.getBlockchain().getGenesisBlock()).getAccountBalances().forEach((key, value) -> {\n Account account = getAccount(key);\n account.addBalance(value);\n });\n DependencyManager.getBlockchain().getChain().getChain().forEach(this::parseBlock);\n }", "void addEntityToSystems(Entity e, RECSBits systemBits) {\n \t\tfor (int i = systemBits.nextSetBit(0); i >= 0; i = systemBits.nextSetBit(i + 1)) {\n \t\t\tsystemMap.get(i).addEntity(e.id);\n \t\t}\n \t}", "public void addBlocksToWorld(ChunkPrimer primer, List<TileEntity> tileEntitiesToAdd, World world, BlockPos pos, PlacementSettings placementIn)\n\t{\n\t\tplacementIn.setBoundingBoxFromChunk();\n\t\tRandom rand = new Random();\n\t\tStructureBoundingBox boundingBox = placementIn.getBoundingBox();\n\t\trand.setSeed((boundingBox.minX >> 4) * 0x4f9939f508L + (boundingBox.minZ >> 4) * 0x1ef1565bd5L);\n\n\t\tfinal Rotation rotationIn = placementIn.getRotation();\n\t\tif (!isEmpty())\n\t\t{\n\t\t\tfinal Block block = placementIn.getReplacedBlock();\n\t\t\tfinal StructureBoundingBox structureboundingbox = boundingBox;\n\n\t\t\tfor (BlockInfo templateBlockInfo : blocks)\n\t\t\t{\n\t\t\t\ttemplateBlockInfo = getAlternateBlockInfo(templateBlockInfo, rand);\n\n\t\t\t\tfinal BlockPos blockpos = transformedBlockPos(placementIn, templateBlockInfo.pos).add(pos);\n\n\t\t\t\tfinal Block processedBlock = templateBlockInfo.blockState.getBlock();\n\n\t\t\t\tif ((block == null || block != processedBlock) && (!placementIn.getIgnoreStructureBlock() || processedBlock != Blocks.STRUCTURE_BLOCK) && (structureboundingbox == null || structureboundingbox.isVecInside(blockpos)))\n\t\t\t\t{\n\t\t\t\t\tfinal IBlockState mirrorState = templateBlockInfo.blockState.withMirror(placementIn.getMirror());\n\t\t\t\t\tfinal IBlockState finalState = mirrorState.withRotation(rotationIn);\n\n\t\t\t\t\tif (primer != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tprimer.setBlockState(blockpos.getX() & 15, blockpos.getY(), blockpos.getZ() & 15, finalState);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (templateBlockInfo.tileentityData != null && processedBlock instanceof ITileEntityProvider) {\n\n\t\t\t\t\t\tfinal TileEntity tileEntity = ((ITileEntityProvider) processedBlock).createNewTileEntity(world, processedBlock.getMetaFromState(finalState));\n\t\t\t\t\t\tif (tileEntity != null) {\n\t\t\t\t\t\t\ttemplateBlockInfo.tileentityData.setInteger(\"x\", blockpos.getX());\n\t\t\t\t\t\t\ttemplateBlockInfo.tileentityData.setInteger(\"y\", blockpos.getY());\n\t\t\t\t\t\t\ttemplateBlockInfo.tileentityData.setInteger(\"z\", blockpos.getZ());\n\t\t\t\t\t\t\ttileEntity.readFromNBT(templateBlockInfo.tileentityData);\n\t\t\t\t\t\t\ttileEntity.mirror(placementIn.getMirror());\n\t\t\t\t\t\t\ttileEntity.rotate(rotationIn);\n\t\t\t\t\t\t\ttileEntitiesToAdd.add(tileEntity);\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}", "@ForgeSubscribe\r\n\tpublic void OnBonemealUse(net.minecraftforge.event.entity.player.BonemealEvent e)\r\n\t{\n\t\tif (!e.world.isRemote && e.entityPlayer.dimension == YC_Mod.d_astralDimID)\r\n\t\t{\r\n\t\t\tif (e.world.getBlockId(e.X, e.Y, e.Z) == YC_Mod.b_astralCrystals.blockID && e.world.getBlockId(e.X, e.Y-1, e.Z) == Block.grass.blockID)//crystal in center and grass beneath them\r\n\t\t\t\tif (e.world.getBlockId(e.X+1, e.Y, e.Z) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X-1, e.Y, e.Z) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X, e.Y, e.Z+1) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X, e.Y, e.Z-1) == Block.sapling.blockID)//4 sapplings on sides\r\n\t\t\t\t{\r\n\t\t\t\t\tint iron = 0, gold = 0;\r\n\t\t\t\t\tint id = 0;\r\n\t\t\t\t\t//============================================2 blocks of iron and gold each diagonally===================================================\r\n\t\t\t\t\tid = e.world.getBlockId(e.X+1, e.Y, e.Z+1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X+1, e.Y, e.Z-1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X-1, e.Y, e.Z-1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X-1, e.Y, e.Z+1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\tif (iron == 2 && gold == 2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (HasCoalCount(e.world, e.X, e.Y, e.Z, 64))//stack of coal for it\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tDecrCoalCount(e.world, e.X, e.Y, e.Z, 64);\r\n\t\t\t\t\t\t\tYC_WorldGenAstral.GenerateTree(e.world, new Random(), e.X, e.Y-1, e.Z);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z+1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X, e.Y, e.Z+1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z+1, 0, 0, 3);\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}\r\n\t\t//System.out.println(e.X+\" ; \" + e.Y + \" ; \" + e.Z + \" ; \" + FMLCommonHandler.instance().getEffectiveSide());\r\n\t}", "@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)\n public void onBlockPlace(BlockPlaceEvent event) {\n if (event.getBlock().getType() == Material.IRON_BLOCK) {\n\n running = true;\n\n Location location = event.getBlock().getLocation();\n int size = Options.ARENA_SIZE;\n\n // Set our Y to where we won't collide with anything.\n location.setY(location.getWorld().getHighestBlockYAt(location));\n\n for (int x = -size / 2; x <= size / 2; x++) {\n for (int z = -size / 2; z <= size / 2; z++) {\n int maxY = (x == -size / 2 || z == -size / 2 || x == size / 2 || z == size / 2) ? 5 : 1;\n\n for (int y = 0; y < maxY; y++) {\n Block block = location.clone().add(x, y, z).getBlock();\n\n if (y == 0) {\n block.setType(Material.NETHERRACK);\n } else {\n block.setType(Material.IRON_FENCE);\n }\n }\n }\n }\n\n Player player = event.getPlayer();\n\n player.getInventory().clear();\n player.getActivePotionEffects().clear();\n player.setGameMode(GameMode.ADVENTURE);\n player.teleport(location.clone().add(5, 1, 0));\n\n player.spigot().sendMessage(ChatMessageType.ACTION_BAR, new TextComponent(ChatColor.RED + \"An arena appears...\"));\n\n Options.KIT_ITEMS.forEach(itemStack -> player.getInventory().addItem(itemStack.clone()));\n \n updateArmor(player);\n\n Bukkit.getScheduler().scheduleSyncDelayedTask(Plugin.getInstance(), () -> {\n Location spawnLocation = location.clone().add(0, 1, 0);\n\n SpawnControl point = new SpawnControl(spawnLocation);\n NPCController controller = new NPCController(player.getUniqueId(), point);\n\n NPCRegistry.getInstance().register(controller);\n });\n\n event.setBuild(false);\n }\n }", "protected abstract int addBlock(Collection<Record> candidates,\n Map.Entry block);", "void addInlineBlockWriter(InlineBlockWriter bloomWriter);", "public void createSideBlocks() {\n Fill fill = new FillColor(Color.darkGray);\n Block topB = new Block(new Rectangle(new Point(0, 0), 800, 45), fill);\n Block rightB = new Block(new Rectangle(new Point(775, 25), 25, 576), fill);\n Block leftB = new Block(new Rectangle(new Point(0, 25), 25, 576), fill);\n //add each screen-side block to game and set 1 hitpoint.\n topB.addToGame(this);\n topB.setHitPoints(1);\n rightB.addToGame(this);\n rightB.setHitPoints(1);\n leftB.addToGame(this);\n leftB.setHitPoints(1);\n }", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\r\n\t}", "@Override\n public void getTileEntities(int blockID, Set<Pair<String, Class<? extends TileEntity>>> list)\n {\n\n }", "@Override\n\tpublic void saveBlocks() {\n\t\tint saved = 0;\n\t\ttry {\n\t\t\tsaved = ZoneVolumeMapper.saveZoneBlocksAndEntities(this, this.zone.getName());\n\t\t} catch (SQLException ex) {\n\t\t\tWar.war.log(\"Failed to save warzone \" + zone.getName() + \": \" + ex.getMessage(), Level.WARNING);\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tWar.war.log(\"Saved \" + saved + \" blocks in warzone \" + this.zone.getName() + \".\", java.util.logging.Level.INFO);\n\t\tthis.isSaved = true;\n\t}", "public WorldRegion(GameWorldEntity entity) {\n gameWorldEntities.add(entity);\n }", "@Override\r\n\tpublic void registriereBeobachter(Beobachter b) {\n\t\tbeobachter.add(b);\r\n\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}" ]
[ "0.70680845", "0.6993013", "0.68081784", "0.6649638", "0.66282123", "0.6336847", "0.63133633", "0.62097025", "0.6184016", "0.6119668", "0.6114742", "0.60889035", "0.6049115", "0.6042947", "0.5976847", "0.5917639", "0.58909535", "0.58802944", "0.586145", "0.58533615", "0.5835411", "0.5824052", "0.58213174", "0.57930493", "0.5789193", "0.57823503", "0.5758052", "0.56898236", "0.5648978", "0.5640468", "0.5638683", "0.5633157", "0.56191695", "0.56108874", "0.5603961", "0.5603062", "0.5572958", "0.55444205", "0.55338454", "0.55335265", "0.5532882", "0.5522206", "0.55095404", "0.55014575", "0.54883534", "0.54838216", "0.54819137", "0.5477783", "0.54706013", "0.5461929", "0.5449521", "0.5443995", "0.54439235", "0.5440696", "0.5404482", "0.5404448", "0.5403028", "0.5402063", "0.53915966", "0.53888255", "0.53596926", "0.5344549", "0.5338984", "0.5336352", "0.53263927", "0.5323982", "0.53231704", "0.53149253", "0.5299894", "0.5295873", "0.52851284", "0.52783936", "0.52639717", "0.52602375", "0.5257221", "0.52569026", "0.5251504", "0.5237486", "0.5231919", "0.5225244", "0.5225046", "0.5223802", "0.5222795", "0.52211547", "0.52166307", "0.5211453", "0.52020574", "0.520088", "0.5195519", "0.5181278", "0.5161729", "0.5157534", "0.5121836", "0.5119472", "0.5119081", "0.5119025", "0.5118444", "0.5111171", "0.5111171", "0.5111171" ]
0.8634812
0
TODO Autogenerated method stub
public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int N = Integer.parseInt(br.readLine()); PriorityQueue<Integer> q = new PriorityQueue<Integer>(); for(int i=0; i<N; i++) { int n = Integer.parseInt(br.readLine()); q.add(n); } for(int i=0; i<N; i++) { sb.append(q.poll() + "\n"); } System.out.println(sb.toString()); }
{ "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
Sort according the scoring function
private void sortAndSetExplanations(IExplanationSet explanationSet){ List<IBasicExplanation> explanationList = explanationSet.getExplanations(); Collections.sort(explanationList, RankerFactory.getScoreTotalOrderComparator(scoringFunction)); for (IBasicExplanation explanation : explanationList) put(explanation); setMinMax(explanationList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "public void sortScoresDescendently(){\n this.langsScores.sort((LangScoreBankUnit o1, LangScoreBankUnit o2) -> {\n return Double.compare(o2.getScore(),o1.getScore());\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 sortMatches();", "private void sortEScores() {\n LinkedHashMap<String, Double> sorted = eScores\n .entrySet()\n .stream()\n .sorted(Collections.reverseOrder(Map.Entry.comparingByValue()))\n .collect(\n toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e2,\n LinkedHashMap::new));\n eScores = sorted;\n }", "public void sortScores(){\r\n // TODO: Use a single round of bubble sort to bubble the last entry\r\n // TODO: in the high scores up to the correct location.\r\n \tcount=0;\r\n \tfor(int i=Settings.numScores-1; i>0;i--){\r\n \t\tif(scores[i]>scores[i-1]){\r\n \t\t\tint tempS;\r\n \t\t\ttempS=scores[i];\r\n \t\t\tscores[i]=scores[i-1];\r\n \t\t\tscores[i-1]=tempS;\r\n \t\t\t\r\n \t\t\tString tempN;\r\n \t\t\ttempN=names[i];\r\n \t\t\tnames[i]=names[i-1];\r\n \t\t\tnames[i-1]=tempN;\r\n \t\t\tcount++;\r\n \t\t}\r\n \t}\r\n }", "public static List<Double> sortScores(List<Double> results) {\n\t\t\n\t\t\n\t\tfor (int i = 0; i < results.size()-1; i++) {\n\t\t\tif (results.get(i)>results.get(i+1)) {\n\t\t\t\t//highScore = results.get(i);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tDouble temp = results.get(i);\n\t\t\t\t\n\t\t\t\tresults.set(i, results.get(i+1));\n\t\t\t\t\n\t\t\tresults.set(i+1, temp);\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\n\t\t\n\t\treturn results;\n\t\t//return null;\n\t}", "private void sortScoreboard() {\n score.setSortType(TableColumn.SortType.DESCENDING);\n this.scoreboard.getSortOrder().add(score);\n score.setSortable(true);\n scoreboard.sort();\n }", "public static Student[] sortScore( Student s[]){\n\t\tStudent temp ;\r\n\t\tfor(int i=0; i<s.length; i++){\r\n\t\t\tfor(int j=i+1; j<s.length;j++)\r\n\t\t\t\tif(s[i].score > s[j].score){\r\n\t\t\t\t\ttemp = s[i];\r\n\t\t\t\t\ts[i] = s[j];\r\n\t\t\t\t\ts[j]= temp;\r\n\t\t\t\t} \t\t\t\r\n\t\t\t}\r\n\t\t\r\n\r\n\r\n\r\n\t\tSystem.out.println(\"Students with score<50 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score<50){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Students with score>=50 and <65 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=50 && s[i].score<65){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Students with score>=65 and <80 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=65 && s[i].score<80){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Students with score>=80 and <100 are: \");\r\n\t\tfor(int i=0; i<s.length;i++){\r\n\t\t\tif(s[i].score>=80 && s[i].score<=100){\r\n\t\t\ts[i].Display();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn s;\r\n\r\n\r\n\t}", "public static List<Double> sortScores(List<Double> results) {\n\t\tfor (int i = 0; i < results.size(); i++) {\n\t\t\tint index = i;\n\t\t\tfor (int j = i + 1; j < results.size(); j++) {\n\t\t\t\tif (results.get(j) < results.get(index)) {\n\t\t\t\t\tindex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdouble temp = results.get(index);\n\t\t\tresults.set(index, results.get(i));\n\t\t\tresults.set(i, temp);\n\t\t}\n\t\treturn results;\n\t}", "void sort();", "void sort();", "public void sortHighscores(){\n Collections.sort(highscores);\n Collections.reverse(highscores);\n }", "public void sort() {\n }", "public void sortHighScores(){\n for(int i=0; i<MAX_SCORES;i++){\n long score = highScores[i];\n String name= names[i];\n int j;\n for(j = i-1; j>= 0 && highScores[j] < score; j--){\n highScores[j+1] = highScores[j];\n names[j+1] = names[j];\n }\n highScores[j+1] = score;\n names[j+1] = name;\n }\n }", "public void scoreSorting(SortingQuiz scoringMethod, SortingSample s) {\r\n for(int i=1; i<=s.answers.size(); i++) {\r\n HourGlass scores = new HourGlass();\r\n scores.weightAnswer(scoringMethod.answers.get(s.getAnswerNum(i)));\r\n System.out.println(scores);\r\n// this.scores.weightAnswer(scoringMethod.answers.get(s.getAnswerNum(i)));\r\n }\r\n }", "private void sortRating()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getRating().compareTo(b.getRating());\n if(result < 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n else if(result == 0)\n {\n result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }\n }", "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 }", "public void sortGivenArray_popularity() { \n int i, j, k; \n for(i = movieList.size()/2; i > 0; i /= 2) {\n for(j = i; j < movieList.size(); j++) {\n Movie key = movieList.get(j);\n for(k = j; k >= i; k -= i) {\n if(key.rents > movieList.get(k-i).rents) {\n movieList.set(k, movieList.get(k-i));\n } else {\n break; \n }\n }\n movieList.set(k, key);\n }\n } \n }", "public String doSort();", "public void sortCompetitors(){\n\t\t}", "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 }", "@Test\n public void testSort() {\n initialize();\n var realList = new HighScoreList();\n realList.setList(list);\n realList.sort();\n\n assertEquals(300, realList.getList().get(0).getScore());\n assertEquals(200, realList.getList().get(1).getScore());\n assertEquals(100, realList.getList().get(2).getScore());\n }", "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 }", "static String[] sortWordsByScore(String[] words) {\n\n if(words.length == 0) return new String[0];\n String[] sorted = new String[words.length];\n\n int minScore = -1; //minScore(words[0]);\n int currentIndex = 1;\n int index = 0;\n\n getMinScoreWordIndex(words, minScore);\n\n System.out.println(tracker);\n while(currentIndex <= tracker.size()){\n\n\n System.out.println(tracker.get(index));\n \n sorted[index] = words[tracker.get(index)];\n\n index++;\n currentIndex++;\n// tracker.clear();\n }\n\n return sorted;\n }", "@Override\r\n\tpublic int compareTo(ListElements arg0) {\n\t\tint compareQuantity = ((ListElements) arg0).getScore(); \r\n\t\t \r\n\t\t//ascending order\r\n\t\treturn this.score - compareQuantity;\r\n\t}", "@Override\r\n\tpublic int compareTo(CandidateDoc o) {\n\t\tif((score-o.score)>0)\r\n\t\t{\r\n\t\t\treturn 1;\r\n\t\t}else if((score-o.score)<0)\r\n\t\t{\r\n\t\t\treturn -1;\r\n\t\t}else\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\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}", "private List<Score> order(List<Score> s)\n {\n Collections.sort(s, new Comparator<Score>()\n {\n\n @Override\n public int compare(Score o1, Score o2) {\n // TODO Auto-generated method stub\n\n return o1.getSentId() - o2.getSentId();\n }\n });\n return s;\n }", "public void sortPassing(){\n\t\tpassing.sort(PlayingCard.PlayingCardComparator_ACEHIGH);\n\t}", "void sortV();", "@Override\n\tpublic int compareTo(Score s) {\n\t\treturn Double.compare(this.score, s.score);\n\t}", "@Override\n\t\tpublic int compare(ScoreSum lhs, ScoreSum rhs) {\n\t\t\tScoreSum temp1 = lhs;\n\t\t\tScoreSum temp2 = rhs;\n\t\t\tint num = temp1.getScore().compareTo(temp2.getScore());\n\t\t\tif (num == 0)\n\t\t\t\treturn temp1.getAthleteName().compareTo(temp2.getAthleteName());\n\t\t\treturn num;\n\t\t}", "private static void SortHash(HashMap<String,ArrayList<input>> hashMap,Distribution list)\n\t{\n\t\tCollections.sort(list.First, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\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 }\n\t\t}); \n\t\tCollections.sort(list.Second, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\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 }\n\t\t}); \n\t\tCollections.sort(list.Third, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\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 }\n\t\t}); \n\t\tCollections.sort(list.Fourth, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\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 }\n\t\t}); \n\t\tCollections.sort(list.Fifth, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\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 }\n\t\t}); \n\t\tCollections.reverse(list.First);\n\t\tCollections.reverse(list.Second);\n\t\tCollections.reverse(list.Third);\n\t\tCollections.reverse(list.Fourth);\n\t\tCollections.reverse(list.Fifth);\n\t\tputInHashMap(hashMap,list);\n\t}", "protected void sort() {\n\n\t\tCollections.sort(this.myRRList);\n\t}", "public static void SortPlayers () {\r\n boolean sorted = false;\r\n Player temp;\r\n\r\n while (!sorted) {\r\n sorted = true;\r\n for (int i = 0; i < player.length - 1; i++) {\r\n if (player[i].score > player[i + 1].score) {\r\n\r\n // SWAP THE OBJECTS' POSITION IN THE ARRAY\r\n temp = player[i];\r\n player[i] = player[i + 1];\r\n player[i + 1] = temp;\r\n\r\n sorted = false;\r\n }\r\n\r\n }\r\n }\r\n\r\n }", "public void sort() {\n Collections.sort(jumpers, new SortJumperByPoints()); \n }", "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 }", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "@Override\n\tpublic int compareTo(Student o) {\n\t\treturn this.score - o.score;\n\t\t\n\t}", "public static List<String> sortScores(List<Double> results) {\n\t\treturn null;\n\t}", "@Override\n public int compareTo(WordAndScore o) {\n int i = getScore() < o.getScore() ? -1 : getScore() > o.getScore() ? +1 : 0;\n if (i == 0) {\n i = word.compareTo(o.word);\n }\n if (i == 0) {\n i = Long.valueOf(resultID).compareTo(o.resultID);\n }\n if (i == 0) {\n i = Integer.valueOf(wseq).compareTo(o.wseq);\n }\n return i;\n }", "public void sortDocumentsByDocnos() {\n order = new int[mDocSet.length];\n mDocSet_tmp = new double[mDocSet.length];\n accumulated_scores_tmp = new float[mDocSet.length];\n\n for (int i = 0; i < order.length; i++) {\n order[i] = i;\n mDocSet_tmp[i] = mDocSet[i];\n accumulated_scores_tmp[i] = accumulated_scores[i];\n }\n\n ivory.smrf.model.constrained.ConstraintModel.Quicksort(mDocSet_tmp, order, 0, order.length - 1);\n\n for (int i = 0; i < order.length; i++) {\n mDocSet[i] = (int) mDocSet_tmp[i];\n accumulated_scores[i] = accumulated_scores_tmp[order[i]];\n }\n }", "@Override\n public int compareTo(Object o) { \n if(this.getGrade()==((BoardCandidate)o).getGrade()){\n return (int)(Math.random()*10-Math.random()*10);\n }\n return this.getGrade()-((BoardCandidate)o).getGrade();\n }", "void sort() {\n Card.arraySort(this.myCards, numCards);\n }", "@Override\r\n\t\tpublic int compareTo(usrPoint a) {\n\t\t\tif(score > a.score)\r\n\t\t\t\treturn -1;\r\n\t\t\tif(score < a.score)\r\n\t\t\t\treturn 1;\r\n\t\t\treturn name.compareTo(a.name);\r\n\t\t}", "public void sort() {\n compares = 0;\n shuttlesort((int[]) indexes.clone(), indexes, 0, indexes.length);\n }", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "@Override\r\n public int compare(searchNode e1, searchNode e2) {\r\n //if node 1 has a a lower FScore than node 2, return -1 which will put e1 BEFORE e2\r\n if (e1.getFScore() < e2.getFScore()) {\r\n return -1;\r\n }\r\n //if node 1 has a higher FScore than node 2, return 1 which will put e2 BEFORE e1\r\n if (e1.getFScore() > e2.getFScore()) {\r\n return 1;\r\n }\r\n //else return they are same whichw ill keep order same\r\n return 0;\r\n }", "void sort()\n {\n Card.arraySort(cards, topCard);\n }", "public void sort() {\n Card.arraySort(this.cards, this.topCard);\n }", "@Override\r\n public int compareTo(final QueryResultEntry comparative) {\r\n return (mScore > comparative.mScore ? -1 : (mScore == comparative.mScore ? 0 : 1));\r\n }", "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 }", "@Override\n\t\t\tpublic int compare(Sentence s1, Sentence s2) {\n\t\t\t\tif(s1.getScore() > s2.getScore()) return -1;\n\t\t\t\telse return 1;\n\t\t\t}", "@Override\n \tpublic void sort() {\n \t\tArrays.sort(data);\n \t}", "public void sort() {\n documents.sort();\n }", "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 void sort_crystals() {\n\t\tArrays.sort(identifiedArray, new SortByRating()); \n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tList<Student> students = new ArrayList<>();\r\n\t\t\r\n\t\tstudents.add(new Student(23, \"Aryan\"));\r\n\t\tstudents.add(new Student(23, \"Jeet\"));\r\n\t\tstudents.add(new Student(83, \"Dhruv\"));\r\n\t\tstudents.add(new Student(13, \"Amit\"));\r\n\t\tstudents.add(new Student(65, \"Aditya\"));\r\n\t\tstudents.add(new Student(57, \"Jeet\"));\r\n\t\t\r\n//\t\tCollections.sort(students);\r\n\t\t\r\n//\t\tCollections.sort(students, new SortByNameThenMarks());\t// We passed our own comparator object.\r\n\t\t\r\n\t\t// We can have our own anonymous comparator without making a class. We can do that so by doing the following:\r\n\t\t\r\n//\t\tCollections.sort(students, new Comparator<Student>() {\r\n//\r\n//\t\t\t@Override\r\n//\t\t\tpublic int compare(Student obj1, Student obj2) {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t}\r\n//\t\t\t\r\n//\t\t});\r\n\t\t\r\n\t\t// With the help of Lambda we could cut short the lines but we have to mention the sign \"->\".\r\n//\t\tCollections.sort(students,(Student obj1, Student obj2) -> {\r\n\t\t\r\n//\t\tCollections.sort(students,(obj1, obj2) -> {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t});\r\n\t\t\r\n//\t\tCollections.sort(students, (obj1, obj2) -> obj1.name.compareTo(obj2.name));\r\n\t\t\r\n//\tThe comparator SortByNameThenMarks can be written in one line as follows. Also \".reversed()\" is used to reverse the order of comparison.\r\n\t\tCollections.sort(students, Comparator.comparing(Student::getName).thenComparing(Student::getMarks).reversed());\r\n\t\t\r\n\t\tstudents.forEach(System.out::println);\t// This is lambda expression to print \r\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\tpublic int compareTo(Record record) {\n\t\t// If we reverse this, the order will be descending\n\t\treturn record.score - this.score;\n\t}", "public Scores[] dbSorter(int score, String name){\n\n\n Scores s1 = new Scores(score, name); // makes the current score and name into a score object\n\n db.addScore(s1);\n Scores[] scoreList = db.getAllScores(); // gets score list from main activity\n scoreList = db.sortScores(scoreList);\n Log.i(\"Scores count\", Integer.toString(db.getScoresCount()));\n\n return scoreList;\n }", "private void sortByWeight()\n\t{\n\t\tfor(int i=1; i<circles.size(); i++)\n\t\t{\n\t\t\tPVCircle temp = circles.get(i);\n\t\t\tint thisWeight = circles.get(i).getWeight();\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--)\n\t\t\t{\n\t\t\t\tint compWeight = circles.get(j).getWeight();\n\t\t\t\tif(thisWeight < compWeight)\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\tcircles.set(j+1, circles.get(j));\n\t\t\t}\n\t\t\tcircles.set(j+1, temp);\n\t\t}\n\t\t\n\t}", "void sort()\n {\n Card.arraySort(myCards, numCards);\n }", "public void sortLibrary() {\n libraries.sort(Comparator.comparingLong(Library::getSignupCost));\n\n //J-\n// libraries.sort((o1, o2) -> Long.compare(\n// o2.getCurrentScore() - (2 * o2.getDailyShipCapacity() * o2.getSignupCost()),\n// o1.getCurrentScore() - (2 * o1.getDailyShipCapacity() * o1.getSignupCost())\n// ));\n\n// libraries.sort((o1, o2) -> Long.compare(\n// (o2.getBooksCount() + o2.getSignupCost()) * o2.getDailyShipCapacity(),\n// (o1.getBooksCount() + o1.getSignupCost()) * o1.getDailyShipCapacity()));\n //J+\n }", "public static void sortByFitlvl() {\n Collections.sort(Population);\n if (debug) {\n debugLog(\"\\nSorted: \");\n printPopulation();\n }\n }", "public void sort()\r\n {\r\n Card.arraySort(myCards, myCards.length);\r\n }", "public ArrayList<Question> getQuestionsSortedByScore() {\n \t\tArrayList<Question> sortedQuestions = questions;\n \n \t\tCollections.sort(sortedQuestions, Collections.reverseOrder(new ScoreComparator()));\n \t\t\n \t\treturn sortedQuestions;\n \t}", "public int compareTo(Object o) {\n if (o instanceof HighScore) {\n if (((HighScore) o).score < score)\n return -1;\n else if (((HighScore) o).score == score)\n return 0;\n else\n return 1;\n }\n return -1;\n }", "public void sort(){\n Collections.sort(list, new SortBySpecies());\n }", "private static void sortFriends() {\n friends.postValue(friends.getValue());\n }", "@Override\n public void sort() {\n int cont = 0;\n int mov = 0;\n for (int i = 0; i < (100 - 1); i++) {\n int menor = i;\n for (int j = (i + 1); j < 100; j++){\n if (array[menor] > array[j]){\n cont= cont + 1;\n menor = j;\n mov = mov + 1;\n }\n }\n swap(menor, i);\n mov = mov + 3;\n }\n System.out.println(cont + \" comparações\");\n System.out.println(mov + \" Movimenteções\");\n }", "void sort() {\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) { // if the first term is larger\n\t\t\t\t\t\t\t\t\t\t\t\t// than the last term, then the\n\t\t\t\t\t\t\t\t\t\t\t\t// temp holds the previous term\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];// swaps places within the array\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "private void sortDice() {\r\n for (int index = 0; index < dice.size(); index++) {\r\n for (int subIndex = index; subIndex < dice.size(); subIndex++) {\r\n if (dice.get(subIndex).compareTo((dice.get(index))) > 0) {\r\n final Integer temp = dice.get(index);\r\n dice.set(index, dice.get(subIndex));\r\n dice.set(subIndex, temp);\r\n }\r\n }\r\n }\r\n }", "public int compareTo(FontMatch match) {\n/* 710 */ return Double.compare(match.score, this.score);\n/* */ }", "public void winner() {\n\t\tList<String> authors = new ArrayList<String>(scores_authors.keySet());\n\t\tCollections.sort(authors, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_authors.get(o1).compareTo(scores_authors.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des auteurs :\");\n\t\tfor(String a :authors) {\n\t\t\tSystem.out.println(a.substring(0,5)+\" : \"+scores_authors.get(a));\n\t\t}\n\t\t\n\t\tList<String> politicians = new ArrayList<String>(scores_politicians.keySet());\n\t\tCollections.sort(politicians, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_politicians.get(o1).compareTo(scores_politicians.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des politiciens :\");\n\t\tfor(String p :politicians) {\n\t\t\tSystem.out.println(p.substring(0,5)+\" : \"+scores_politicians.get(p));\n\t\t}\n\t}", "@Override\n public int compareTo(Score other) {\n return (int) (100 * (this.getAsDouble() - other.getAsDouble()));\n }", "int compareTo(Student s){\n\n if(cgpa.compareTo(s.cgpa)!=0)\n return -(cgpa.compareTo(s.cgpa)); //Sort in descending order according to cgpa\n\n else{\n\n // if cgpa of both student is same\n if(name.compareTo(s.name)!=0)\n return (name.compareTo(s.name)); //sort in ascending order according to name\n\n else{\n // if name of both sudents are same\n return (token.compareTo(s.token)); //sort in ascending order according to token\n }\n\n }\n\n }", "@Override\n public int compareTo(ObjectScore arg0) {\n if (this.getScore() > arg0.getScore()) {\n return 1;\n } else if (this.getScore() < arg0.getScore()) {\n return -1;\n } else {\n return 0;\n }\n }", "public void sort() {\n\t\t\tCollections.sort(population, new SolutionComparator());\n\t\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 }", "public void sort(){\n ArrayList<Card> sortedCards = new ArrayList<Card>();\n ArrayList<Card> reds = new ArrayList<Card>();\n ArrayList<Card> yellows = new ArrayList<Card>();\n ArrayList<Card> greens = new ArrayList<Card>();\n ArrayList<Card> blues = new ArrayList<Card>();\n ArrayList<Card> specials = new ArrayList<Card>();\n for(int i = 0; i < cards.size(); i++){\n if(cards.get(i).getColor() == RED){\n reds.add(cards.get(i));\n }else if(cards.get(i).getColor() == YELLOW){\n yellows.add(cards.get(i));\n }else if(cards.get(i).getColor() == GREEN){\n greens.add(cards.get(i));\n }else if(cards.get(i).getColor() == BLUE){\n blues.add(cards.get(i));\n }else if(cards.get(i).getColor() == ALL){\n specials.add(cards.get(i));\n }\n }\n cards = new ArrayList<Card>();\n for(Card c: reds){\n sortedCards.add(c);\n }\n for(Card c: yellows){\n sortedCards.add(c);\n }\n for(Card c: greens){\n sortedCards.add(c);\n }\n for(Card c: blues){\n sortedCards.add(c);\n }\n for(Card c: specials){\n sortedCards.add(c);\n }\n for(Card c: sortedCards){\n cards.add(c);\n }\n }", "private Sort() { }", "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\r\n public int compareTo(PfamHmmer3RawMatch that) {\r\n if (this == that) return 0;\r\n if (this.getDomainIeValue() < that.getDomainIeValue()) return -1; // First, sort by ievalue ASC\r\n if (this.getDomainIeValue() > that.getDomainIeValue()) return 1;\r\n if (this.getScore() > that.getScore()) return -1; // then by score ASC\r\n if (this.getScore() < that.getScore()) return 1;\r\n if (this.hashCode() > that.hashCode())\r\n return -1; // then by hashcode to be consistent with equals.\r\n if (this.hashCode() < that.hashCode()) return 1;\r\n return 0;\r\n }", "public int compare(RankSorter rs1, RankSorter rs2) {\n if (rs1.y < rs2.y)\n return -1;\n if (rs1.y > rs2.y)\n return 1;\n if (rs1.id < rs2.id)\n return -1;\n if (rs1.id > rs2.id)\n return 1;\n return 0;\n }", "public double getBestScore();", "public static void quickSortTest(){\n\t\tTransformer soundwave = new Transformer(\"Soundwave\", 'D', new int[] {8,9,2,6,7,5,6,10});\n\t\tTransformer bluestreak = new Transformer(\"Bluestreak\", 'A', new int[] {6,6,7,9,5,2,9,7});\n\t\tTransformer hubcap = new Transformer(\"Hubcap\", 'A', new int[] {4,4,4,4,4,4,4,4});\n\t\tTransformer abominus = new Transformer(\"Abominus\", 'D', new int[] {10,1,3,10,5,10,8,4});\n\t\t\n\t\tgame.addTransformer(soundwave);\n\t\tgame.addTransformer(bluestreak);\n\t\tgame.addTransformer(hubcap);\n\t\tgame.addTransformer(abominus);\n\t\t\n\t\tgame.sortCompetitorsByRank();\n\t\tgame.printSortedRoster();\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 }", "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}", "@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 }", "@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 }", "@Override\r\n\t public int compare(Student_UsingComparator obj1, Student_UsingComparator obj2){\n\t\t return obj2.rollno-obj1.rollno;\r\n\t }", "public void sort() {\n\t\tdivider(0, array.size() - 1);\n\t}", "public void sortArray(){\n\t\tfor (int i=0; i<population.length;i++){\n\n\t\t\tfor (int j=0; j<population.length-i-1;j++){\n\n\t\t\t\tif(population[j].computeFitness()>population[j+1].computeFitness()) {\n\t\t\t\t\t//swap their positions in the array\n\t\t\t\t\tChromosome temp1 = population[j];\n\t\t\t\t\tpopulation[j] = population[j+1];\n\t\t\t\t\tpopulation[j+1] = temp1;\n\t\t\t\t}//end if\n\n\t\t\t}//end j for\n\n\t\t}//end i for\n\t}", "@Override\n\tpublic int compareTo(Score s) {\n\t\treturn totalSecs - s.totalSecs;\n\t}", "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 }", "@Override\n\tpublic void sortDeck() {\n\t\tfor(int i = 0; i < getCount() - 1; i++) {\n\t\t\tfor(int j = i + 1; j < getCount(); j++) {\n\t\t\t\tif(aktuellesDeck[i].compareTo(aktuellesDeck[j]) == 1) {\n\t\t\t\t\tSkatCard speicherCard = new SkatCard(aktuellesDeck[i].getSuit(), aktuellesDeck[i].getRank());\n\t\t\t\t\taktuellesDeck[i] = null;\n\t\t\t\t\taktuellesDeck[i] = new SkatCard(aktuellesDeck[j].getSuit(), aktuellesDeck[j].getRank());\n\t\t\t\t\taktuellesDeck[j] = null;\n\t\t\t\t\taktuellesDeck[j] = new SkatCard(speicherCard.getSuit(), speicherCard.getRank());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void sortPlayerScores(){\n text=\"<html>\";\n for (int i = 1; i <= Options.getNumberOfPlayers(); i++){\n if(Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey() != null){\n Integer pl = Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey();\n if(pl != null && playerScores.containsKey(pl)){\n text += \"<p>Player \" + pl + \" Scored : \" + playerScores.get(pl) + \" points </p></br>\";\n playerScores.remove(pl);\n }\n }\n }\n text += \"</html>\";\n }", "public void sortList() {\n Node3 current = front, index = null;\n student temp;\n\n if(front == null) {\n return;\n }\n else {\n while(current != null) {\n //Node index will point to node next to current\n index = current.getNext();\n\n while(index != null) {\n //If current node's data is greater than index's node data, swap the data between them\n if(current.getData().getRoll()> index.getData().getRoll()) {\n temp = current.getData();\n current.setData(index.getData());\n index.setData(temp);\n }\n index = index.getNext();\n }\n current = current.getNext();\n }\n }\n }", "public static void sortByJaccardSimilarity(int n, CharSequence to, List<? extends CharSequence> l) {\n l.sort((a, b) -> {\n double aval = jaccardSimilarity(n, to, a);\n double bval = jaccardSimilarity(n, to, b);\n return Double.compare(bval, aval);\n });\n }" ]
[ "0.8049312", "0.73382276", "0.7043005", "0.69160736", "0.69152015", "0.68912464", "0.68349063", "0.67741853", "0.669307", "0.66697955", "0.66657513", "0.66657513", "0.6663784", "0.66012913", "0.6593352", "0.65764886", "0.6552877", "0.6518307", "0.65023774", "0.64861083", "0.6413069", "0.637861", "0.6364885", "0.63467085", "0.6327791", "0.63269883", "0.6319089", "0.63171786", "0.6305263", "0.6288703", "0.62518805", "0.6244924", "0.62398905", "0.62354445", "0.622329", "0.6208295", "0.6186967", "0.6184915", "0.61693984", "0.6163848", "0.6163658", "0.6151314", "0.61502886", "0.6136269", "0.6111968", "0.6111132", "0.61068577", "0.6104017", "0.60909647", "0.60844076", "0.60833687", "0.6067343", "0.60669714", "0.6060163", "0.60503125", "0.6040792", "0.6030283", "0.6026915", "0.6013323", "0.59941286", "0.59937024", "0.5989961", "0.5981828", "0.59806573", "0.5963791", "0.5963293", "0.5947513", "0.593472", "0.59100074", "0.5906157", "0.58943635", "0.5892816", "0.5879341", "0.5872925", "0.58705175", "0.5865661", "0.5865523", "0.5852103", "0.58473223", "0.584675", "0.5822697", "0.5821609", "0.58191687", "0.58078855", "0.57957816", "0.578932", "0.5788818", "0.57855123", "0.5782289", "0.5771314", "0.57614034", "0.5755548", "0.5751492", "0.57416666", "0.5734139", "0.57331157", "0.57289916", "0.5728689", "0.57227343", "0.57222706", "0.5719021" ]
0.0
-1
Set MinSE and MaxSE according to the explanation list for the error
private void setMinMax(List<IBasicExplanation> explanationList){ minSE = scoringFunction.getScore(explanationList.get(0)); maxSE = scoringFunction.getScore(explanationList.get(explanationList.size() - 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setSilicateMinError (float silicateMin, Exception e, int error) {\n this.silicateMin = silicateMin;\n silicateMinErrorMessage = e.toString();\n silicateMinError = error;\n }", "public double[] getConfigMse()\r\n\t{\r\n\t\tint i;\r\n\t\tdouble[] avg_error; \r\n\t\t\r\n\t\tavg_error = new double[_esn.getNumOutputNeurons()];\r\n\t\tif(_best_idx!=-1)\r\n\t\t{\r\n\t\t\tfor(i=0; i<avg_error.length; i++)\r\n\t\t\t{\r\n\t\t\t\tavg_error[i] = _pool_of_bests.get(_best_idx)._error_config.avg_mse;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(i=0; i<avg_error.length; i++)\r\n\t\t\t{\r\n\t\t\t\tavg_error[i] = Double.MAX_VALUE;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn avg_error;\r\n\t}", "private void setOxygenMinError (float oxygenMin, Exception e, int error) {\n this.oxygenMin = oxygenMin;\n oxygenMinErrorMessage = e.toString();\n oxygenMinError = error;\n }", "private void setNitrateMinError (float nitrateMin, Exception e, int error) {\n this.nitrateMin = nitrateMin;\n nitrateMinErrorMessage = e.toString();\n nitrateMinError = error;\n }", "private void setSalinityMinError (float salinityMin, Exception e, int error) {\n this.salinityMin = salinityMin;\n salinityMinErrorMessage = e.toString();\n salinityMinError = error;\n }", "private void setSilicateMaxError (float silicateMax, Exception e, int error) {\n this.silicateMax = silicateMax;\n silicateMaxErrorMessage = e.toString();\n silicateMaxError = error;\n }", "private void setOxygenMaxError (float oxygenMax, Exception e, int error) {\n this.oxygenMax = oxygenMax;\n oxygenMaxErrorMessage = e.toString();\n oxygenMaxError = error;\n }", "private void setChlorophyllMinError (float chlorophyllMin, Exception e, int error) {\n this.chlorophyllMin = chlorophyllMin;\n chlorophyllMinErrorMessage = e.toString();\n chlorophyllMinError = error;\n }", "public double[] getConfigRmse()\r\n\t{\r\n\t\tint i;\r\n\t\tdouble[] avg_error; \r\n\t\t\r\n\t\tavg_error = new double[_esn.getNumOutputNeurons()];\r\n\t\tif(_best_idx!=-1)\r\n\t\t{\r\n\t\t\tfor(i=0; i<avg_error.length; i++)\r\n\t\t\t{\r\n\t\t\t\tavg_error[i] = _pool_of_bests.get(_best_idx)._error_config.computeRmse();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(i=0; i<avg_error.length; i++)\r\n\t\t\t{\r\n\t\t\t\tavg_error[i] = Double.MAX_VALUE;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn avg_error;\r\n\t}", "protected void calcMinMax() {\n }", "private void setPhosphateMinError (float phosphateMin, Exception e, int error) {\n this.phosphateMin = phosphateMin;\n phosphateMinErrorMessage = e.toString();\n phosphateMinError = error;\n }", "private void setSalinityMaxError (float salinityMax, Exception e, int error) {\n this.salinityMax = salinityMax;\n salinityMaxErrorMessage = e.toString();\n salinityMaxError = error;\n }", "private void setNitrateMaxError (float nitrateMax, Exception e, int error) {\n this.nitrateMax = nitrateMax;\n nitrateMaxErrorMessage = e.toString();\n nitrateMaxError = error;\n }", "public void setSecondExtreme(double se){\r\n secondExtreme = se;\r\n }", "private void setTemperatureMaxError (float temperatureMax, Exception e, int error) {\n this.temperatureMax = temperatureMax;\n temperatureMaxErrorMessage = e.toString();\n temperatureMaxError = error;\n }", "private void setTemperatureMinError (float temperatureMin, Exception e, int error) {\n this.temperatureMin = temperatureMin;\n temperatureMinErrorMessage = e.toString();\n temperatureMinError = error;\n }", "private void setPhosphateMaxError (float phosphateMax, Exception e, int error) {\n this.phosphateMax = phosphateMax;\n phosphateMaxErrorMessage = e.toString();\n phosphateMaxError = error;\n }", "private void setChlorophyllMaxError (float chlorophyllMax, Exception e, int error) {\n this.chlorophyllMax = chlorophyllMax;\n chlorophyllMaxErrorMessage = e.toString();\n chlorophyllMaxError = error;\n }", "public void SetStandardDev(double standard_dev);", "public void setMinimumLevel(ErrorLevel el);", "public void setMinMax(double min, double max)\n {\n if (max == min)\n throw new IllegalArgumentException(\"Max value must be bigger than Min value!\");\n\n this.min = min;\n this.max = max;\n if (max < min)\n {\n this.max = min;\n this.min = max;\n }\n }", "@Override\r\n public void setMinMax(Double min, Double max) {\r\n this.minIn = min;\r\n this.maxIn = max;\r\n }", "public void setStandardY(double y)\n {\n standardy=y; \n }", "private void validateGeneralisation() throws Exception {\n if(m_PreInst == null){\n\tthrow new Exception(\"Exemplar.validateGeneralisation : validateGeneralisation called without previous call to preGeneralise!\");\n }\n add(m_PreInst);\n m_PreRange = null;\n m_PreMinBorder = null;\n m_PreMaxBorder = null;\n }", "public MVSR() {\n clg = \"MVSR\";\n cmax = 10000;\n mmax = 12000;\n eemax = 13033;\n emax = 18520;\n imax = 20204;\n }", "public int setSilicateMin(Float silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\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}", "private void findMinandMaxValues(SparklineValues values) {\n minY = values.getValues().stream().filter(value -> value.getValue() != null).mapToDouble(SparklineValues.SparklineValue::getValue).min().orElse(0.0);\n maxY = values.getValues().stream().filter(value -> value.getValue() != null).mapToDouble(SparklineValues.SparklineValue::getValue).max().orElse(0.0);\n\n if (Math.abs(minY) > 1E30 || Math.abs(maxY) > 1E30) {\n // something is probably wrong\n System.out.println(\"Unexpectedly small/large min or max: \");\n values.getValues().forEach(value -> {\n System.out.print(value.getValue() + \" \");\n });\n System.out.println();\n minY = -1.0;\n maxY = 1.0;\n }\n\n if (minY.equals(maxY)) {\n if (minY.equals(0.0)) {\n minY = -1.0;\n maxY = 1.0;\n } else {\n minY = minY - 0.1 * Math.abs(minY);\n maxY = maxY + 0.1 * Math.abs(maxY);\n }\n }\n }", "private void setSteine() {\n\t\tfor(int i = 0; i<mulden.length; i++) {\n\t\t\tmulden[i] = 5;\n\t\t}\n\t}", "public ValidatorStandardSubsetBroad() {\n super();\n addErrorKey(ERROR_KEY1);\n addValidatorErrorListener(new DefaultErrorListener(), ERROR_KEY1);\n addErrorKey(ERROR_KEY2);\n addValidatorErrorListener(new DefaultErrorListener(), ERROR_KEY2); \n }", "public int setSilicateMin(Integer silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "private void setProblem() throws IOException, InvalidInputException{\r\n String finalInputFileName;\r\n if(scale){\r\n finalInputFileName = inputFileName + \".scaled\";\r\n }\r\n else{\r\n finalInputFileName = inputFileName;\r\n }\r\n \r\n // Read data from the input file\r\n BufferedReader reader = new BufferedReader(new FileReader(finalInputFileName));\r\n if(reader.toString().length() == 0){\r\n throw new InvalidInputException(\"Invalid input file! File is empty!\");\r\n }\r\n\r\n // Prepare holders for dataset D=(X,y)\r\n Vector<svm_node[]> X = new Vector<svm_node[]>();\r\n Vector<Double> y = new Vector<Double>();\r\n int maxIndex = 0;\r\n\r\n // Load data from file to holders\r\n while(true){\r\n String line = reader.readLine();\r\n\r\n if(line == null){\r\n break;\r\n }\r\n\r\n StringTokenizer st = new StringTokenizer(line,\" \\t\\n\\r\\f:\");\r\n\r\n y.addElement(Utils.toDouble(st.nextToken()));\r\n int m = st.countTokens()/2;\r\n svm_node[] x = new svm_node[m];\r\n for(int i = 0; i < m; i++) {\r\n x[i] = new svm_node();\r\n x[i].index = Utils.toInt(st.nextToken());\r\n x[i].value = Utils.toDouble(st.nextToken());\r\n }\r\n if(m > 0){\r\n maxIndex = Math.max(maxIndex, x[m-1].index);\r\n }\r\n X.addElement(x);\r\n }\r\n\r\n this.problem = new svm_problem();\r\n this.problem.l = y.size();\r\n this.inputDime = maxIndex + 1;\r\n\r\n // Wrap up multi-dimensional input vector X\r\n this.problem.x = new svm_node[this.problem.l][];\r\n for(int i=0;i<this.problem.l;i++)\r\n this.problem.x[i] = X.elementAt(i);\r\n\r\n // Wrap up 1-dimensional input vector y\r\n this.problem.y = new double[this.problem.l];\r\n for(int i=0;i<this.problem.l;i++)\r\n this.problem.y[i] = y.elementAt(i);\r\n \r\n////////////////////???\r\n // Verify the gamma setting according to the maxIndex\r\n if(param.gamma == 0 && maxIndex > 0)\r\n param.gamma = 1.0/maxIndex;\r\n\r\n // Dealing with pre-computed kernel\r\n if(param.kernel_type == svm_parameter.PRECOMPUTED){\r\n for(int i = 0; i < this.problem.l; i++) {\r\n if (this.problem.x[i][0].index != 0) {\r\n String msg = \"Invalid kernel matrix! First column must be 0:sample_serial_number.\";\r\n throw new InvalidInputException(msg);\r\n }\r\n if ((int)this.problem.x[i][0].value <= 0 || (int)this.problem.x[i][0].value > maxIndex){\r\n String msg = \"Invalid kernel matrix! Sample_serial_number out of range.\";\r\n throw new InvalidInputException(msg);\r\n }\r\n }\r\n }\r\n\r\n reader.close();\r\n }", "public int setSilicateMin(String silicateMin) {\n try {\n setSilicateMin(new Float(silicateMin).floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public void validateMinimum() {\n/* */ double newMin;\n/* */ try {\n/* 373 */ newMin = Double.parseDouble(this.minimumRangeValue.getText());\n/* 374 */ if (newMin >= this.maximumValue) {\n/* 375 */ newMin = this.minimumValue;\n/* */ }\n/* */ }\n/* 378 */ catch (NumberFormatException e) {\n/* 379 */ newMin = this.minimumValue;\n/* */ } \n/* */ \n/* 382 */ this.minimumValue = newMin;\n/* 383 */ this.minimumRangeValue.setText(Double.toString(this.minimumValue));\n/* */ }", "public void initMaxMin(){\n\t\tmax = dja.max();\n\t\tmin = dja.min();\n\t}", "public void initialiseExtremeValues() {\n for (int i = 0; i < numberOfObj; i++) {\n minimumValues[i] = Double.MAX_VALUE;\n maximumValues[i] = -Double.MAX_VALUE;\n }\n }", "public int setOxygenMin(Float oxygenMin) {\n try {\n setOxygenMin(oxygenMin.floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "public int setOxygenMin(Integer oxygenMin) {\n try {\n setOxygenMin(oxygenMin.floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "public void calcError(double[] idealOutput){\n for (int i = 0; i < getNeuronCount(); i++) {\n setError(i, idealOutput[i] - fire[i]);\n setErrorDelta(i, bound(calculateDelta(i)));\n }\n\n }", "public EstimateParameter( String name, String units, double min, double max, ArrayList allowedEstimateTypes) throws ConstraintException {\n\t\tsuper(name, new EstimateConstraint(min,max,allowedEstimateTypes), units, null);\n\t}", "public void setHeardPercentSE(double heardPercentSE) {\n this.heardPercentSE = heardPercentSE;\n }", "public void validateMaximum() {\n/* */ double newMax;\n/* */ try {\n/* 392 */ newMax = Double.parseDouble(this.maximumRangeValue.getText());\n/* 393 */ if (newMax <= this.minimumValue) {\n/* 394 */ newMax = this.maximumValue;\n/* */ }\n/* */ }\n/* 397 */ catch (NumberFormatException e) {\n/* 398 */ newMax = this.maximumValue;\n/* */ } \n/* */ \n/* 401 */ this.maximumValue = newMax;\n/* 402 */ this.maximumRangeValue.setText(Double.toString(this.maximumValue));\n/* */ }", "public void setMinMaxLabel() {\n minMaxLabel.setText(min + \" ≤ val ≤ \" + max);\n }", "public void err2() {\n\t\tString errMessage = CalculatorValue.checkMeasureValue(text_Operand2.getText());\n\t\tif (errMessage != \"\") {\n\t\t\tlabel_errOperand2.setText(CalculatorValue.measuredValueErrorMessage);\n\t\t\tif (CalculatorValue.measuredValueIndexofError <= -1)\n\t\t\t\treturn;\n\t\t\tString input = CalculatorValue.measuredValueInput;\n\t\t\toperand2ErrPart1.setText(input.substring(0, CalculatorValue.measuredValueIndexofError));\n\t\t\toperand2ErrPart2.setText(\"\\u21EB\");\n\t\t}\n\t}", "void calcHorizSeamInfo() {\n SeamInfo tl = null;\n SeamInfo dl = null;\n SeamInfo l = null;\n if (this.topLeft() != null) {\n tl = topLeft().seamInfo;\n }\n if (this.downLeft() != null) {\n dl = downLeft().seamInfo;\n }\n if (this.left != null) {\n l = left.seamInfo;\n }\n\n double min = Double.MAX_VALUE;\n SeamInfo cameFrom = null;\n\n if (tl != null && min > tl.totalWeight) {\n min = tl.totalWeight;\n cameFrom = tl;\n }\n if (dl != null && min > dl.totalWeight) {\n min = dl.totalWeight;\n cameFrom = dl;\n }\n if (l != null && min > l.totalWeight) {\n min = l.totalWeight;\n cameFrom = l;\n }\n\n // for top border cases\n if (cameFrom == null) {\n min = 0;\n }\n\n this.seamInfo = new SeamInfo(this, min + this.energy(), cameFrom, false);\n }", "private void updateSpanTopParameters(){\r\n spanTopMin = spanTop[0];\r\n spanTopMax = spanTop[0];\r\n for(int i = 1; i < mSpanCount; i++){\r\n if(spanTopMin > spanTop[i])\r\n spanTopMin = spanTop[i];\r\n if(spanTopMax < spanTop[i])\r\n spanTopMax = spanTop[i];\r\n }\r\n }", "public int setSilicateMax(Float silicateMax) {\n try {\n setSilicateMax(silicateMax.floatValue());\n } catch (Exception e) {\n setSilicateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMaxError;\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}", "void calcVertSeamInfo() {\n SeamInfo tr = null;\n SeamInfo tl = null;\n SeamInfo t = null;\n if (this.topRight() != null) {\n tr = topRight().seamInfo;\n }\n if (this.topLeft() != null) {\n tl = topLeft().seamInfo;\n }\n if (this.up != null) {\n t = up.seamInfo;\n }\n\n double min = Double.MAX_VALUE;\n SeamInfo cameFrom = null;\n\n if (tr != null && min > tr.totalWeight) {\n min = tr.totalWeight;\n cameFrom = tr;\n }\n if (tl != null && min > tl.totalWeight) {\n min = tl.totalWeight;\n cameFrom = tl;\n }\n if (t != null && min > t.totalWeight) {\n min = t.totalWeight;\n cameFrom = t;\n }\n\n // for top border cases\n if (cameFrom == null) {\n min = 0;\n }\n\n this.seamInfo = new SeamInfo(this, min + this.energy(), cameFrom, true);\n }", "private static double minMaxNormalization(final double value) {\n return (((value - Configuration.ACTUAL_MIN) / (Configuration.ACTUAL_MAX - Configuration.ACTUAL_MIN)) * (Configuration.NORMALIZED_MAX - Configuration.NORMALIZED_MIN)) + Configuration.NORMALIZED_MIN;\n }", "public int setOxygenMin(String oxygenMin) {\n try {\n setOxygenMin(new Float(oxygenMin).floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "private void validateParameter(){\n\t\tif(hrNum > upperBound){\n\t\t\thrNum = upperBound;\n\t\t}\n\t\telse if(hrNum < lowerBound){\n\t\t\thrNum = lowerBound;\n\t\t}\n\t}", "public void StandardDeviationPair(){\r\n\t\tAveragePair();\r\n\t\tif (count<=1|| Total<=0){\r\n\t\t\tSystem.out.println(\"The Standard Deviation of x and y is \"+0.0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tStandardDeviation=(float)Math.sqrt((Total2-Total*Total/count)/(count-1));\r\n\t\t\tStandardDeviationY=(float)Math.sqrt((TotalY2-TotalY*TotalY/count)/(count-1));\r\n\t\t\t\r\n\t\t}\r\n\t}", "public YValueOutOfRangeException(double yValue){\n this.yValue = yValue;\n \n message = \"The Y values in the FuzzySet must be in the range [0.0, 1.0].\";\n\n if(yValue < 0.0){\n message = message + \" Y values cannot be less than zero. The y value which \" +\n \"fell outside of the acceptable range had a value of \" + \n yValue + \".\";\n } else {\n message = message + \" Y values cannot be greater than one. The y value which \" +\n \"fell outside of the acceptable range had a value of \" + yValue + \".\";\n } \n }", "public void evel_threshold_cross_possible_rootcause_set(String sheader)\r\n\t {\r\n\t\t EVEL_ENTER();\r\n\r\n\t\t /***************************************************************************/\r\n\t\t /* Check preconditions. */\r\n\t\t /***************************************************************************/\r\n\t\t assert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t\t \r\n\t\t assert(sheader != null);\r\n\r\n\t\t possibleRootCause.SetValuePr(\r\n\t\t sheader,\r\n\t\t \"Rootcause value\");\r\n\t\t EVEL_EXIT();\r\n\t }", "public void setMinAlturaCM(float max);", "public static void calError(Neuron x) {\r\n int error = x.getDesired() - x.getActual();\r\n x.setError(error);\r\n }", "public synchronized void setOutputRange(double minOutput, double maxOutput)\n {\n final String funcName = \"setOutputRange\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"min=%f,max=%f\", minOutput, maxOutput);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n if (maxOutput <= minOutput)\n {\n throw new IllegalArgumentException(\"maxOutput must be greater than minOutput\");\n }\n\n if (Math.abs(minOutput) == Math.abs(maxOutput))\n {\n outputLimit = maxOutput;\n }\n\n this.minOutput = minOutput;\n this.maxOutput = maxOutput;\n }", "public int setSilicateMax(Integer silicateMax) {\n try {\n setSilicateMax(silicateMax.floatValue());\n } catch (Exception e) {\n setSilicateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMaxError;\n }", "void makeAnalysis(double v_min, double v_max) {\n\t\t\tfmt_result = universalFormat;\n\t\t\tdouble range = v_max - v_min;\n\t\t\tscale = 0.;\n\t\t\tif (range > 0.) {\n\t\t\t\tscale = Math.pow(10., Math.floor(1.000001 * Math.log(range) / Math.log(10.0)));\n\t\t\t}\n\t\t\tif (scale == 0.) {\n\t\t\t\tscale = 1.;\n\t\t\t\tvalue_min = -1.0;\n\t\t\t\tvalue_max = +1.0;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvalue_min = scale * Math.floor(v_min / scale);\n\t\t\tvalue_max = scale * Math.ceil(v_max / scale);\n\t\t\tif (value_min * value_max == 0. && (scale == Math.abs(value_max) || scale == Math.abs(value_min))) {\n\t\t\t\tscale = scale / 5.0;\n\t\t\t\tvalue_min = scale * Math.floor(v_min / scale);\n\t\t\t\tvalue_max = scale * Math.ceil(v_max / scale);\n\t\t\t}\n\n\t\t\tdouble[] arr = new double[3];\n\t\t\tarr[0] = scale;\n\t\t\tarr[1] = value_min;\n\t\t\tarr[2] = value_max;\n\n\t\t\tdouble zz_max = Math.max(Math.abs(arr[1]), Math.abs(arr[2]));\n\t\t\tint nV = (int) (Math.floor(1.0001 * Math.log(zz_max) / Math.log(10.0)));\n\t\t\tif (nV >= 0) {\n\t\t\t\tnV += 1;\n\t\t\t} else {\n\t\t\t\tnV -= 1;\n\t\t\t}\n\n\t\t\tzz_max = zz_max / Math.abs(arr[0]);\n\t\t\tint nD = (int) (Math.floor(1.0001 * Math.log(zz_max) / Math.log(10.0)));\n\t\t\tif (nD >= 0) {\n\t\t\t\tnD += 1;\n\t\t\t}\n\n\t\t\t//This is for zoom, so we want to increase number of significant digits\n\t\t\tnD = nD + 1;\n\n\t\t\tif (nV >= 4) {\n\t\t\t\tint n = Math.min(4, Math.abs(nD));\n\t\t\t\tfmt_result = scientificFormats[n];\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (nV > 0 && nV < 4) {\n\t\t\t\tif (nV >= nD) {\n\t\t\t\t\tfmt_result = simpleFormats[0];\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tint n = Math.min(4, Math.abs(nV - nD));\n\t\t\t\t\tfmt_result = simpleFormats[n];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (nV < 0 && nV > -4) {\n\t\t\t\tint n = Math.abs(nV) + Math.abs(nD) - 2;\n\t\t\t\tif (n <= 4) {\n\t\t\t\t\tfmt_result = simpleFormats[n];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "protected void calcMinMax() {\n if (this.mDataSets != null) {\n T t;\n this.mYMax = -3.4028235E38f;\n this.mYMin = Float.MAX_VALUE;\n this.mXMax = -3.4028235E38f;\n this.mXMin = Float.MAX_VALUE;\n Iterator<T> iterator = this.mDataSets.iterator();\n while (iterator.hasNext()) {\n this.calcMinMax((IDataSet)iterator.next());\n }\n this.mLeftAxisMax = -3.4028235E38f;\n this.mLeftAxisMin = Float.MAX_VALUE;\n this.mRightAxisMax = -3.4028235E38f;\n this.mRightAxisMin = Float.MAX_VALUE;\n T t2 = this.getFirstLeft(this.mDataSets);\n if (t2 != null) {\n this.mLeftAxisMax = t2.getYMax();\n this.mLeftAxisMin = t2.getYMin();\n for (IDataSet iDataSet : this.mDataSets) {\n if (iDataSet.getAxisDependency() != YAxis.AxisDependency.LEFT) continue;\n if (iDataSet.getYMin() < this.mLeftAxisMin) {\n this.mLeftAxisMin = iDataSet.getYMin();\n }\n if (!(iDataSet.getYMax() > this.mLeftAxisMax)) continue;\n this.mLeftAxisMax = iDataSet.getYMax();\n }\n }\n if ((t = this.getFirstRight(this.mDataSets)) != null) {\n this.mRightAxisMax = t.getYMax();\n this.mRightAxisMin = t.getYMin();\n for (IDataSet iDataSet : this.mDataSets) {\n if (iDataSet.getAxisDependency() != YAxis.AxisDependency.RIGHT) continue;\n if (iDataSet.getYMin() < this.mRightAxisMin) {\n this.mRightAxisMin = iDataSet.getYMin();\n }\n if (!(iDataSet.getYMax() > this.mRightAxisMax)) continue;\n this.mRightAxisMax = iDataSet.getYMax();\n }\n }\n }\n }", "public double getSlopeStdErr() {\n return Math.sqrt(getMeanSquareError() / sumXX);\n }", "public static void findMinMax(Student[] student){\n int minMidterm=student[0].getExamGrade().getMidtermExamGrade();//this is first step to find min value of midterm because I describe first index of midterm value in array\n int maxMidterm=student[0].getExamGrade().getMidtermExamGrade();//this is first step to find max value of midterm because I describe first index of midterm value in array\n int minFinal=student[0].getExamGrade().getFinalExamGrade();//this is first step to find min value of final because I describe first index of final value in array\n int maxFinal=student[0].getExamGrade().getFinalExamGrade();//this is first step to find max value of final because I describe first index of final value in array\n\n for(int i=0;i<student.length;i++){\n if(student[i].getExamGrade().getMidtermExamGrade()<minMidterm){ // this condution find min value of midterm until this step \n minMidterm=student[i].getExamGrade().getMidtermExamGrade();\n }\n if(student[i].getExamGrade().getMidtermExamGrade()>maxMidterm){// this condution find max value of midterm until this step \n maxMidterm=student[i].getExamGrade().getMidtermExamGrade();\n }\n if(student[i].getExamGrade().getFinalExamGrade()<minFinal){// this condution find min value of final until this step \n minFinal=student[i].getExamGrade().getFinalExamGrade();\n }\n if(student[i].getExamGrade().getFinalExamGrade()>maxFinal){// this condution find max value of final until this step \n maxFinal=student[i].getExamGrade().getFinalExamGrade();\n }\n }\n\n System.out.println(\"Maximum Midterm Exam Grade: \"+maxMidterm+\" Minumum Midterm Exam Grade: \"+minMidterm);\n System.out.println(\"Maximum Final Exam Grade: \"+maxFinal+\" Minumum Final Exam Grade: \"+minFinal);\n }", "void setDeviation(double deviation);", "@Test\n public void test02() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[6];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, '\\u0086');\n assertEquals(Double.POSITIVE_INFINITY, evaluation0.meanPriorAbsoluteError(), 0.01D);\n }", "protected abstract double getRefinementStandardDeviation();", "public void setFirstExtreme(double fe){\r\n firstExtreme = fe;\r\n }", "public Plot(String S, int _numEstimations) {\n\t\tsuper(S);\n\n\t\tnumEstimations = _numEstimations;\n\t\t\n\t\tpanel = new JPanel();\n\t\tBoxLayout layout = new BoxLayout(panel,BoxLayout.Y_AXIS);\n\t\tpanel.setLayout(layout);\n\t\n\t\tmakeNrmsePanel();\n\t\t\n\t\tchart = ChartFactory.createXYLineChart(\"\",\"\",\"\",new XYSeriesCollection(),PlotOrientation.VERTICAL,false,false,false);\n\t\t\n\t\tchart.getXYPlot().setBackgroundPaint(Color.WHITE);\n\n\t\tchartPanel = new ChartPanel(chart);\n\t\tpanel.add(chartPanel);\n\t\t\n\t\tToolkit toolkit = Toolkit.getDefaultToolkit ();\n\t\tDimension dim = toolkit.getScreenSize();\n\t\tdim.setSize(dim.getWidth()*0.75, dim.getHeight()*0.75);\n\t\tchartPanel.setPreferredSize(dim);\n\t\t\n\t\t\n\t\tif (S.startsWith(\"D\")) setLocation(360,45);\n\t\telse setLocation(480,75);\n\t\t\t\n\t\tsetContentPane(panel);\n\t\tpack();\n\t\tsetVisible(true);\n\n\t\tmakeLegend();\n\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 TemperaturaErradaExcepcion(){\r\n super(\"mensaxe por defecto:temperatura ten que ser naior que 80ºC\");//mensaxe por defecto\r\n }", "private void normalize() {\r\n // GET MAX PRICE \r\n for (Alternative alt : alternatives) {\r\n if (alt.getPrice() > 0 && alt.getPrice() < minPrice) {\r\n minPrice = alt.getPrice();\r\n }\r\n }\r\n\r\n for (Alternative alt : alternatives) {\r\n // NORMALIZE PRICE - NON BENIFICIAL using max - min \r\n double price = alt.getPrice();\r\n double value = minPrice / price;\r\n alt.setPrice(value);\r\n // BENITIFICIAL v[i,j] = x[i,j] / x[max,j]\r\n double wood = alt.getWood();\r\n value = wood / maxWood;\r\n alt.setWood(value);\r\n\r\n double brand = alt.getBrand();\r\n value = wood / maxBrand;\r\n alt.setBrand(value);\r\n\r\n double origin = alt.getOrigin();\r\n value = origin / maxOrigin;\r\n alt.setOrigin(value);\r\n\r\n }\r\n }", "private Exemplar (NNge nnge, Instances inst, int size, double classV){\n\n super(inst, size);\n m_NNge = nnge;\n m_ClassValue = classV;\n m_MinBorder = new double[numAttributes()];\n m_MaxBorder = new double[numAttributes()];\n m_Range = new boolean[numAttributes()][];\n for(int i = 0; i < numAttributes(); i++){\n\tif(attribute(i).isNumeric()){\n\t m_MinBorder[i] = Double.POSITIVE_INFINITY;\n\t m_MaxBorder[i] = Double.NEGATIVE_INFINITY;\n\t m_Range[i] = null;\n\t} else {\n\t m_MinBorder[i] = Double.NaN;\n\t m_MaxBorder[i] = Double.NaN;\n\t m_Range[i] = new boolean[attribute(i).numValues() + 1];\n\t for(int j = 0; j < attribute(i).numValues() + 1; j++){\n\t m_Range[i][j] = false;\n\t }\n\t}\n }\n }", "public static void checkMinMax() {\r\n\t\tSystem.out.println(\"Beginning min/max test (should be -6 and 17)\");\r\n\t\tSortedIntList list = new SortedIntList();\r\n\t\tlist.add(5);\r\n\t\tlist.add(-6);\r\n\t\tlist.add(17);\r\n\t\tlist.add(2);\r\n\t\tSystem.out.println(\" min = \" + list.min());\r\n\t\tSystem.out.println(\" max = \" + list.max());\r\n\t\tSystem.out.println();\r\n\t}", "private void calculateMaxTemperatureNormalisation() {\n maxTemperatureNormalisation = (temperatureMax - temperatureMin) / 2;\n }", "public double getInterceptStdErr() {\n return Math.sqrt(\n getMeanSquareError() * ((1d / (double) n) + (xbar * xbar) / sumXX));\n }", "public LimitConfiguration() {\n try {\n yellowLimit = new AlertLimit((float) 0.75);\n redLimit = new AlertLimit((float)0.9);\n } catch(Exception e){\n //This exception should not happen\n System.out.println(e.getMessage());\n }\n }", "@Test\r\n\tpublic void calculLostPointsByOneRuleAboveMaxTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 3f), new Integer(5)),\r\n\t\t\t\tnew Float(1.5));\r\n\t}", "public void setMaxSR(float maxSR) {\n this.maxSR = maxSR;\n }", "@Test\r\n\tpublic void calculLostPointsByOneRuleBelowMinTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(2f, 0.5f, 3f), new Integer(1)),\r\n\t\t\t\tnew Float(0));\r\n\t}", "public int setSilicateMax(String silicateMax) {\n try {\n setSilicateMax(new Float(silicateMax).floatValue());\n } catch (Exception e) {\n setSilicateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMaxError;\n }", "public void setAbsDFMin(double dFMinimal, int nMax) throws OptimizerException\n {\n setMaxIntRed(nMax); // \"emergency break\"\n dFMin = dFMinimal;\n stoCri = 1;\n }", "public double GetStandardDev();", "void calculateError(double targetValue) {\n this.error = this.getOutput()*(1-this.getOutput())*(this.getOutput()-targetValue);\n }", "public void ResetColorGradient_ds2() {\r\n\t\tdouble min;\r\n\t\tdouble max;\r\n\t\tdouble median;\r\n\r\n\t\tswitch(transformation) {\r\n\t\t\tcase ROWNORM:\r\n\t\t\t\tmin = minExpression_rownorm_ds2;\r\n\t\t\t\tmax = maxExpression_rownorm_ds2;\r\n\r\n\t\t\t\t//if both row normalization values are zero, can't perform row normalization\r\n\t\t\t\t//issue warning\r\n\t\t\t\t//This happens when there is only one data column in the dataset (or if it is rank file)\r\n\t\t\t\tif((min == 0) && (max == 0)) {\r\n\t\t\t\t\t//JOptionPane.showMessageDialog(Cytoscape.getDesktop(),\"Row normalization does not work with only one data column per dataset.\",\"Row normalization error\",JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t\tmax = Math.max(Math.abs(min), max);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase LOGTRANSFORM:\r\n\r\n\t\t\t\t//can't take a log of a negative number\r\n\t\t\t\t//if both the max and min are negative then log tranform won't work.\r\n\t\t\t\t//issue a warning.\r\n\t\t\t\tif((minExpression_ds2 <= 0) && (maxExpression_ds2 <= 0)) {\r\n\t\t\t\t\t//both the max and min are probably negative values\r\n\t\t\t\t\t//JOptionPane.showMessageDialog(Cytoscape.getDesktop(),\"Both the max and min expression are negative, log of negative numbers is not valid\", \"log normalization error\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\tmin = 0;\r\n\t\t\t\t\tmax = 0;\r\n\t\t\t\t}\r\n\t\t\t\t//if min expression is negative then use the max expression as the max\r\n\t\t\t\telse if(minExpression_ds2 <= 0) {\r\n\t\t\t\t\tmin = Math.min(Math.log(closestToZeroExpression_ds2), Math.log1p(maxExpression_ds2));\r\n\t\t\t\t\tmax = Math.max(Math.log(closestToZeroExpression_ds2), Math.log1p(maxExpression_ds2));\r\n\t\t\t\t}\r\n\t\t\t\t//if the max expression is negative then use the min expression as the max (should never happen!)\r\n\t\t\t\telse if(maxExpression_ds2 <= 0) {\r\n\t\t\t\t\tmin = 0;\r\n\t\t\t\t\tmax = Math.log1p(minExpression_ds2);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmin = Math.log1p(minExpression_ds2);\r\n\t\t\t\t\tmax = Math.log1p(maxExpression_ds2);\r\n\t\t\t\t\tmax = Math.max(Math.abs(min), max);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ASIS:\r\n\t\t\tdefault:\r\n\t\t\t\tmin = minExpression_ds2;\r\n\t\t\t\tmax = Math.max(Math.abs(minExpression_ds2), maxExpression_ds2);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tmedian = max / 2;\r\n\t\tif(min >= 0) {\r\n\t\t\tmedian = max / 2;\r\n\t\t\trange_ds2 = ColorGradientRange.getInstance(0, median, median, max, 0, median, median, max);\r\n\t\t\ttheme_ds2 = ColorGradientTheme.GREEN_ONECOLOR_GRADIENT_THEME;\r\n\t\t} else {\r\n\t\t\tmedian = 0;\r\n\t\t\trange_ds2 = ColorGradientRange.getInstance(-max, 0, 0, max, -max, 0, 0, max);\r\n\t\t\ttheme_ds2 = ColorGradientTheme.GREEN_MAGENTA_GRADIENT_THEME;\r\n\t\t}\r\n\r\n\t}", "public double[] getConfigNrmse(double[] variance)\r\n\t{\r\n\t\tint i;\r\n\t\tdouble[] avg_error; \r\n\t\t\r\n\t\tavg_error = new double[_esn.getNumOutputNeurons()];\r\n\t\tif(_best_idx!=-1)\r\n\t\t{\r\n\t\t\tfor(i=0; i<avg_error.length; i++)\r\n\t\t\t{\r\n\t\t\t\tavg_error[i] = _pool_of_bests.get(_best_idx)._error_config.computeNrmse(variance);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(i=0; i<avg_error.length; i++)\r\n\t\t\t{\r\n\t\t\t\tavg_error[i] = Double.MAX_VALUE;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn avg_error;\r\n\t}", "public int setNitrateMin(Float nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "private void err4() {\n\t\tString errMessage = CalculatorValue.checkMeasureValue(text_Operand4.getText());\n\t\tif (errMessage != \"\") {\n\t\t\t// System.out.println(errMessage);\n\t\t\tlabel_errOperand4.setText(CalculatorValue.measuredValueErrorMessage);\n\t\t\tif (CalculatorValue.measuredValueIndexofError <= -1)\n\t\t\t\treturn;\n\t\t\tString input = CalculatorValue.measuredValueInput;\n\t\t\toperand4ErrPart1.setText(input.substring(0, CalculatorValue.measuredValueIndexofError));\n\t\t\toperand4ErrPart2.setText(\"\\u21EB\");\n\t\t} else {\n\t\t\terrMessage = CalculatorValue.checkErrorTerm(text_Operand4.getText());\n\t\t\tif (errMessage != \"\") {\n\t\t\t\t// System.out.println(errMessage);\n\t\t\t\tlabel_errOperand4.setText(CalculatorValue.errorTermErrorMessage);\n\t\t\t\tString input = CalculatorValue.errorTermInput;\n\t\t\t\tif (CalculatorValue.errorTermIndexofError <= -1)\n\t\t\t\t\treturn;\n\t\t\t\toperand4ErrPart1.setText(input.substring(0, CalculatorValue.errorTermIndexofError));\n\t\t\t\toperand4ErrPart2.setText(\"\\u21EB\");\n\t\t\t}\n\t\t}\n\t}", "public SettingInteger setValidRange(int min, int max) { _minValue = min; _maxValue = max; return this; }", "public int setOxygenMax(Integer oxygenMax) {\n try {\n setOxygenMax(oxygenMax.floatValue());\n } catch (Exception e) {\n setOxygenMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMaxError;\n }", "public void set(int min, int max, double score){\r\n\t\tchart[min][max] = score;\r\n\t}", "public Vector2d getErrm() {\n return errm;\n }", "private void checkValues(int yMin2, int yMax2, List<XYValue> listOfValues2) {\n\t\tif(yMin2 < 0) {\n\t\t\tthrow new IllegalArgumentException(\"Number can not be negative!\");\n\t\t}\n\t\tif(yMax2 <= yMin2) {\n\t\t\tthrow new IllegalArgumentException(\"Max has to be greater than min!\");\n\t\t}\n\t\tfor(XYValue value : listOfValues2) {\n\t\t\tif(value.getY() < yMin2) {\n\t\t\t\tthrow new IllegalArgumentException(\"Found smaller y than minimum!\");\n\t\t\t}\n\t\t}\n\t}", "public void setX_ValuesForHazardCurve(){\n useCustomX_Values = false;\n }", "public abstract void setUncertaintyInterval(double dx);", "@Test\r\n public void testInvalidMinusAssignmentExpressionWithSIUnits2() throws IOException {\n checkError(\"varS-=4km\", \"0xA0177\");\r\n }", "public int setOxygenMax(Float oxygenMax) {\n try {\n setOxygenMax(oxygenMax.floatValue());\n } catch (Exception e) {\n setOxygenMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMaxError;\n }", "@Test\r\n public void testInvalidMinusAssignmentExpressionWithSIUnits1() throws IOException {\n checkError(\"varD_S-=4km\", \"0xA0177\");\r\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 int setNitrateMin(Integer nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "public ZlExRangeSpec(Object min, Object max, boolean minex, boolean maxex) {\n\t\tthis.min = min;\n\t\tthis.max = max;\n\t\tthis.minex = minex;\n\t\tthis.maxex = maxex;\n\t}" ]
[ "0.6138321", "0.60929644", "0.60873723", "0.6045027", "0.59777343", "0.58708346", "0.5811689", "0.5770089", "0.5760638", "0.57200444", "0.57126856", "0.5670644", "0.5666572", "0.5614765", "0.55447197", "0.55110204", "0.5494909", "0.5430493", "0.53925306", "0.5384776", "0.5366473", "0.5349956", "0.5289225", "0.52574813", "0.51919156", "0.51879185", "0.5182158", "0.51556665", "0.50986505", "0.50890493", "0.5087867", "0.50762844", "0.50757784", "0.5073326", "0.5058402", "0.5050298", "0.5045027", "0.5029839", "0.50092244", "0.49985173", "0.49753833", "0.4961695", "0.4953435", "0.49497324", "0.4947563", "0.49118972", "0.49074516", "0.49051586", "0.4898016", "0.4886132", "0.4880923", "0.487285", "0.48687017", "0.48661572", "0.4862586", "0.4860928", "0.48576453", "0.48566747", "0.4849949", "0.48469728", "0.48463023", "0.48292175", "0.48236525", "0.48200375", "0.4814981", "0.48132733", "0.48129", "0.48114023", "0.48030397", "0.47978902", "0.47866789", "0.47846162", "0.47781432", "0.47741598", "0.47717887", "0.476774", "0.47676578", "0.47609022", "0.47548467", "0.4754451", "0.47498655", "0.47486186", "0.4738549", "0.47373894", "0.47358766", "0.47340542", "0.47254816", "0.4724729", "0.47198093", "0.47187", "0.47164828", "0.471041", "0.47093132", "0.4693874", "0.4693843", "0.4692346", "0.46865523", "0.46862417", "0.46855697", "0.46850392" ]
0.69601464
0
/ Add all possible sets from one error to a set, remove the original set from the list and add the extended sets to the list.
private void expandAndInsert(RankedListElement currentExplanation) { boolean disOverlap = currentExplanation.extensionWithoutOverlap(); sortedSets.remove(currentExplanation); for (int i = 0; i < errorExpl.get(currentExplanation.firstUnset).size(); i++) { RankedListElement newOne = new RankedListElement(currentExplanation, i); if (log.isDebugEnabled()) { log.debug("Was included? : " + sortedSets.contains(newOne) + "\n" + newOne); } if ((!disOverlap || !newOne.lastAdditionHasOverlap()) && !sortedSets.contains(newOne)) sortedSets.add(newOne); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAll(SelectionSet newSet)\n {\n elements.addAll(newSet.elements);\n }", "void addEmergingSymbols(Set<Integer> acc);", "public Set(Set original) throws SetException {\n\t\tthis();\n\t\taddItems(original);\n\t}", "private ISet<S> expand(ISet<S> set) {\n\t\t\tISet<S> expanded = ISets.empty();\n\t\t\tfor (S b : set) {\n\t\t\t\texpanded = expanded.union(b);\n\t\t\t\tif (!reasoner.entails(base.minus(expanded), sentence)) {\n\t\t\t\t\treturn expanded;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public void addItems(Set newItems) throws SetException {\n\t\tboolean exceptionFlag = false;\n\t\tfor (Object element : newItems.list) {\n\t\t\ttry {\n\t\t\t\taddItem(element);\n\t\t\t} catch (SetException se) {\n\t\t\t\texceptionFlag = true;\n\t\t\t}\n\t\t}\n\t\tif (exceptionFlag)\n\t\t\tthrow new SetException(\"Item already in set.\");\n\t}", "public void addAll (SetADT<T> set);", "public static void powerSet(ArrayList<Integer> set) {\n HashSet<ArrayList<Integer>> output = new HashSet<ArrayList<Integer>>();\n output.add(new ArrayList<Integer>());\n for(Integer a : set) {\n HashSet<ArrayList<Integer>> new_subsets = new HashSet<ArrayList<Integer>>();\n ArrayList<Integer> el_set = new ArrayList<Integer>(a);\n new_subsets.add(el_set);\n for(ArrayList<Integer> subset: output) {\n ArrayList<Integer> new_subset = new ArrayList<Integer>(subset);\n new_subset.add(a);\n new_subsets.add(new_subset);\n }\n if(new_subsets.size() > 0) {\n output.addAll(new_subsets);\n }\n }\n for(ArrayList<Integer> subset: output) {\n System.out.print(\"{\");\n for(Integer el: subset) {\n System.out.print(el + \",\");\n }\n System.out.println(\"}\");\n }\n }", "public Set union(Set in_set) throws SetException {\n\t\tSet union = new Set(this);\n\t\tfor (Object element : in_set.list) {\n\t\t\tif (!member(element))\n\t\t\t\tunion.addItem(element);\n\t\t}\n\t\treturn union;\n\t}", "public void removeAllPartOfSet() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PARTOFSET);\r\n\t}", "public static <T> Set<T> consolidateSets(Collection<Set<T>> inputSets) {\n\t\tSet<T> set = new HashSet<T>();\n\t\tfor (Set<T> inputSet : inputSets)\n\t\t\tset.addAll(inputSet);\n\t\treturn set;\n\t}", "private void createNewItemsetsFromPreviousOnes() {\n // by construction, all existing itemsets have the same size\n int currentSizeOfItemsets = itemsets.get(0).length;\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"Creating itemsets of size {0} based on {1} itemsets of size {2}\", new Object[]{currentSizeOfItemsets + 1, itemsets.size(), currentSizeOfItemsets});\n\n HashMap<String, String[]> tempCandidates = new HashMap<>(); //temporary candidates\n\n // compare each pair of itemsets of size n-1\n for (int i = 0; i < itemsets.size(); i++) {\n for (int j = i + 1; j < itemsets.size(); j++) {\n String[] X = itemsets.get(i);\n String[] Y = itemsets.get(j);\n\n assert (X.length == Y.length);\n\n //make a string of the first n-2 tokens of the strings\n String[] newCand = new String[currentSizeOfItemsets + 1];\n for (int s = 0; s < newCand.length - 1; s++) {\n newCand[s] = X[s];\n }\n\n int ndifferent = 0;\n // then we find the missing value\n for (int s1 = 0; s1 < Y.length; s1++) {\n boolean found = false;\n // is Y[s1] in X?\n for (int s2 = 0; s2 < X.length; s2++) {\n if (X[s2].equals(Y[s1])) {\n found = true;\n break;\n }\n }\n if (!found) { // Y[s1] is not in X\n ndifferent++;\n // we put the missing value at the end of newCand\n newCand[newCand.length - 1] = Y[s1];\n }\n\n }\n\n // we have to find at least 1 different, otherwise it means that we have two times the same set in the existing candidates\n assert (ndifferent > 0);\n\n /*if (ndifferent==1) {\n \tArrays.sort(newCand);*/\n tempCandidates.put(Arrays.toString(newCand), newCand);\n //}\n }\n }\n\n //set the new itemsets\n itemsets = new ArrayList<>(tempCandidates.values());\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"Created {0} unique itemsets of size {1}\", new Object[]{itemsets.size(), currentSizeOfItemsets + 1});\n\n }", "@Test\n\tpublic void testAddAll() {\n\t Set<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t Set<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t setA.addAll(setB);\n\t Set<Integer> union = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9));\n\t assertEquals(setA, union);\n }", "private List<Set<String>> getSubSets(Set<String> set) {\n\t\tString[] setArray = set.toArray(new String[0]);\n\t\tList<Set<String>> result = new ArrayList<Set<String>>();\n\t\tfor(int i = 0; i < setArray.length; i++){\n\t\t\tSet<String> subSet = new HashSet<String>();\n\t\t\tfor(int j = 0; j < setArray.length; j++){\n\t\t\t\tif(j != i) subSet.add(setArray[j]);\n\t\t\t}\n\t\t\tresult.add(subSet);\n\t\t}\n\t\treturn result;\n\t}", "public void unionSet(NSSet<? extends E> otherSet) {\n\t\tthis.wrappedSet.addAll(otherSet.getWrappedSet());\n\t}", "public static ArrayList<ArrayList<String>> getAllMinusOneSizedSubsets(ArrayList<String> set) {\n\t\tint elementToIgnore = 0;\n\t\tArrayList<ArrayList<String>> result = new ArrayList<ArrayList<String>>();\n\t\t\n\t\tfor(int i=0;i<set.size();i++) {\n\t\t\telementToIgnore = i;\n\t\t\t\n\t\t\tArrayList<String> subSet = new ArrayList<String>();\n\t\t\t\n\t\t\tfor(int j=0;j<set.size();j++) {\n\t\t\t\tif(j != elementToIgnore) {\n\t\t\t\t\tsubSet.add(set.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tresult.add(subSet);\n\t\t}\n\t\treturn result;\n\t}", "static void AddCollections()\n\t{\n\t\tSet<String> oSet1 = null;\n\t\tSet<String> oSet2 = null;\n\t\ttry {\n\t\t\toSet1 = new TreeSet<String>();\n\t\t\toSet1.add(\"Apple\");\n\t\t\toSet1.add(\"Boy\");\n\t\t\toSet1.add(\"Cat\");\n\t\t\tSystem.out.println(oSet1);\n\t\t\t\n\t\t\toSet2 = new TreeSet<String>();\n\t\t\toSet2.add(\"Dog\");\n\t\t\toSet2.add(\"Arrow\");\n\t\t\toSet2.add(\"Frog\");\n\t\t\tSystem.out.println(oSet2);\n\t\t\t\n\t\t\toSet1.addAll(oSet2);\n\t\t\tSystem.out.println(oSet1);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toSet1 = null;\n\t\t\toSet2 = null;\n\t\t}\n\t}", "protected void removeFromAllSubsets()\r\n {\n if (!m_subsets.isEmpty()) {\r\n List<SubsetImpl> tmp = new ArrayList<SubsetImpl>(m_subsets);\r\n m_subsets.clear();\r\n tmp.forEach(r -> {if (r != null) r.remove(this);});\r\n }\r\n }", "@Test\r\n public void addAllFromSet() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n assertTrue(s.contains(1));\r\n assertTrue(s.contains(2));\r\n assertTrue(s.contains(3));\r\n assertTrue(s.contains(4));\r\n assertTrue(s.contains(5));\r\n }", "public void add(final int[] newSet) {\n for (int i: newSet) {\n add(i);\n }\n }", "set.addAll(Arrays.asList(a));", "private static <T> Set<T> Create_UnModifiableSet_By_InputElements(@NonNull Set<T> set, @NonNull T... ts) {\n for (T t : ts) {\n set.add(t);\n }\n\n return Collections.unmodifiableSet(set);\n }", "private static Set<String> m23474a(Set<String> set, Set<String> set2) {\n if (set.isEmpty()) {\n return set2;\n }\n if (set2.isEmpty()) {\n return set;\n }\n HashSet hashSet = new HashSet(set.size() + set2.size());\n hashSet.addAll(set);\n hashSet.addAll(set2);\n return hashSet;\n }", "@Test\r\n public void addAll() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(7);\r\n l.add(9);\r\n check.addAll(l);\r\n assertTrue(check.containsAll(l));\r\n }", "protected abstract Set<String> _addToSet(String key, Collection<String> str);", "public Set<Set<Integer>> calculate(Set<Integer> originalSet)\n\t{\n\t\tvalidateInputSet(originalSet);\n\n\t\tSet<Set<Integer>> sets = new HashSet<Set<Integer>>();\n\t\t//Base class returns the empty set.\n\t\tif (originalSet.isEmpty())\n\t\t{\n\t\t\tsets.add(new HashSet<Integer>());\n\t\t\treturn sets;\n\t\t}\n\t\t//Take the first element in head.\n\t\tList<Integer> list = new ArrayList<Integer>(originalSet);\n\t\tInteger head = list.get(0);\n\t\t//Generate a hash set without the first element\n\t\tSet<Integer> rest = new HashSet<Integer>(list.subList(1, list.size()));\n\t\t//Recursive call to iterate over every combination generated with the rest list.\n\t\tfor (Set<Integer> set : calculate(rest))\n\t\t{\n\t\t\t//Add every element and the head, the old set and the new set.\n\t\t\tSet<Integer> newSet = new HashSet<Integer>();\n\t\t\tnewSet.add(head);\n\t\t\tnewSet.addAll(set);\n\t\t\tsets.add(newSet);\n\t\t\tsets.add(set);\n\t\t}\n\t\treturn sets;\n\t}", "MultiSet<X> add(X x);", "@Test\r\n public void addAllWorks() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n ArrayList<Integer> array = new ArrayList<>();\r\n array.add(1);\r\n array.add(2);\r\n array.add(3);\r\n s.addAll(array);\r\n assertTrue(s.contains(1));\r\n assertTrue(s.contains(2));\r\n assertTrue(s.contains(3));\r\n }", "Set<ISOAError> getErrors();", "private void update_auxlist(ArrayList<Line> auxlist, Line workingSet) {\n\t\tLine new_working_set = new Line(workingSet);\n\n\t\t// Add the working set copy to the set of maximal lines\n\t\tauxlist.add(new_working_set);\n\t}", "@Test \r\n\t\tpublic void testinsertAll() {\n\t\t\ttestingSet = new IntegerSet();\r\n\t\t\ttestingSet.insertAll(list1);\r\n\t\t\t// create set = to unique values in list \r\n\t\t\ttestingSet2 = new IntegerSet(unique); \r\n\t\t\t// 2 set should be equal \r\n\t\t\t// assertEquals for these parameters is a deprecated method \r\n\t\t\tassertArrayEquals(testingSet.toArray(), testingSet2.toArray()); \r\n\t\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t}", "@Test\r\n public void testUnion1() {\r\n int actual[] = set1.unionOfSets(set2);\r\n Assert.assertArrayEquals(new int[] { 1, 2, 3, 4, 5 }, actual);\r\n }", "private void AddSet(String set)\n\t{\n\t\tint i;\n\n\t\tif (_canonical && RangeCount() > 0 && set.length() > 0 && set.charAt(0) <= GetRangeAt(RangeCount() - 1)._last)\n\t\t{\n\t\t\t_canonical = false;\n\t\t}\n\n\t\tfor (i = 0; i < set.length() - 1; i += 2)\n\t\t{\n\t\t\t_rangelist.add(new SingleRange(set.charAt(i), (char)(set.charAt(i + 1) - 1)));\n\t\t}\n\n\t\tif (i < set.length())\n\t\t{\n\t\t\t_rangelist.add(new SingleRange(set.charAt(i), Lastchar));\n\t\t}\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 }", "public ZYSet<ElementType> union(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n result.add(e);\n }\n for(ElementType e :otherSet){\n result.add(e);\n }\n \n return result;\n }", "@Test\n public void testAddAll_Collection_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(2);\n\n Collection c = Arrays.asList(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.addAll(c);\n assertEquals(expResult, result);\n\n }", "public void setAllMissing();", "public static <T extends Comparable<T>> boolean testSet(ISet<T> set, String name,\n T[] data, T _invalid) {\n for (int i = 0; i < data.length; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n boolean contains = set.contains(_invalid);\n boolean removed = set.remove(_invalid);\n if (contains || removed) {\n System.err.println(name+\" invalidity check. contains=\" + contains + \" removed=\" + removed);\n Utils.handleError(_invalid,set);\n return false;\n }\n\n int size = set.size();\n for (int i = 0; i < size; i++) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != data.length-(i+1))) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!removed || set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n // Add half, remove a quarter, add three-quarters, remove all\n int quarter = data.length/4;\n int half = data.length/2;\n for (int i = 0; i < half; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = (half-1); i >= quarter; i--) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != i)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!removed || set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = quarter; i < data.length; i++) {\n T item = data[i];\n boolean added = set.add(item);\n if (!set.validate() || (set.size() != i+1)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if (!added || !set.contains(item)) {\n System.err.println(name+\" YIKES!! \" + item + \" doesn't exists but has been added.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n for (int i = data.length-1; i >= 0; i--) {\n T item = data[i];\n removed = set.remove(item);\n if (!set.validate() || (set.size() != i)) {\n System.err.println(name+\" YIKES!! \" + item + \" caused a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n if ((!removed || set.contains(item))) {\n System.err.println(name+\" YIKES!! \" + item + \" still exists but it has been remove.\");\n Utils.handleError(data,set);\n return false;\n }\n }\n\n if (set.size() != 0) {\n System.err.println(name+\" YIKES!! a size mismatch.\");\n Utils.handleError(data,set);\n return false;\n }\n \n return true;\n }", "@Override\n public boolean add(Set<E> e) {\n throw new UnsupportedOperationException(\"Add not supported\");\n }", "public void addAllFailures(Collection<Failure<T>> c) {\n failures.addAll(c);\n }", "public static void main(String[] args) {\n\t\tArraySet as = new ArraySet(10);\n\t\tArraySet as2 = new ArraySet();\n\n\t\t//Testing add method\n\t\tas.add(1);\n\t\tas.add(2);\n\t\tas.add(3);\n\t\tas.add(6);\n\t\tas.add(5);\n\t\tas.add(23);\n\n\t\tas2.add(2);\n\t\tas2.add(3);\n\n\t\t//Testing size method\n\t\tSystem.out.println(\"Size of as: \" + as.size() + \"\\nSize of as2: \" + as2.size());\n\n\t\t//Testing contains method\n\t\tSystem.out.println(\"as contains 2: \" + as.contains(2) + \"\\nas2 contains 5: \" + as2.contains(5));\n\n\t\t//Testing addall method\n\t\tas.addAll(as2);\n\t\tas2.addAll(as);\n\t\tSystem.out.println(\"Testing addall on as : \" + as.toString() +\"\\nTesting addall on as2: \" + as2.toString());\n\n\t\t//Testing remove method\n\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Testing remove 5 on as: \" + as.remove(5));\n\t\t\tSystem.out.println(\"Testing remove 33 on as2: \" + as2.remove(12));\n\n\t\t} catch (NoSuchElementException name) {\n\t\t\tSystem.out.println(\"NoSuchElementException: \" + name.getMessage());\n\t\t}\n\n\t\t//Testing removeRandom method\n\t\tSystem.out.println(\"Testing removeRandom on as: \" + as.removeRandom());\n\n\t\t//Testing union method\n\t\tas.add(7);\n\t\tas.add(56);\n\n\t\tas2.add(45);\n\t\tas2.add(8);\n\t\tSystem.out.println(\"Testing union method on as: \" + as.union(as2));\n\n\t\t//Testing equals method\n\t\tSystem.out.println(\"Testing equals method: \" + as.equals(as2));\n\t\tSystem.out.println(\"as to string: \" + as.toString());\n\t\tSystem.out.println(\"as2 tostring: \" + as2.toString());\n\t\tas.addAll(as2);\n\t\tas2.addAll(as);\n\t\tSystem.out.println(\"as to string: \" + as.toString());\n\t\tSystem.out.println(\"as2 tostring: \" + as2.toString());\n\n\n\t\tSystem.out.println(\"Testing equals method: \" + as2.equals(as));\n\n\t\t//Testing difference method\n\t\tas2.remove(6);\n\t\tSystem.out.println(\"Testing difference method: \" + as.difference(as2));\n\n\t}", "public ZYSet<ElementType> difference(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n if(!otherSet.contains(e)){\n result.add(e);\n }\n }\n return result;\n }", "@Test\n public void testAddAll_int_Collection_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(1, 2, 3);\n\n boolean expResult = true;\n boolean result = instance.addAll(1, c);\n assertEquals(expResult, result);\n\n }", "private void addAllComposedGlyphsToSubset() {\n int newIndex = this.subset.size();\n for (final int composedGlyph : this.composedGlyphs) {\n this.subset.put(composedGlyph, newIndex++);\n }\n }", "private static Set<ARGState> removeSet(Set<ARGState> elements) {\n Set<ARGState> toWaitlist = new LinkedHashSet<ARGState>();\n int i=0;\n for (ARGState ae : elements) {\n if(ae.getParents()!=null){\n for (ARGState parent : ae.getParents()) {\n if (!elements.contains(parent)) {\n toWaitlist.add(parent);\n }\n }\n if(ae.getChildren()!=null)\n ae.removeFromARG();\n else\n ae.setDestroyed(true);\n }\n\n // ae.setNull();\n }\n return toWaitlist;\n }", "@Override\r\n\tpublic boolean addAll(Collection<? extends GIS_layer> c) {\n\t\treturn set.addAll(c);\r\n\t}", "public static void parseSetExp() {\n parseSLevel2();\n if (currToken.tokenType == Token.SETDIFFERENCE) {\n //TODO: Consume set difference token and add to output\n sb.append(\".intersect(\");\n getNextToken();\n parseSetExp();\n sb.append(\".complement())\");\n }\n \n }", "@Override\n\tpublic void concatenate(SetLinkedList<T> otherSet) {\n\t\tthrow new UnsupportedOperationException(\"Not implemented yet!\");\n\t}", "protected void mergeWith(ExceptionHandler eh) {\n BasicBlock succ = eh.getEntry();\n if (this.start_states[succ.getID()] == null) {\n if (TRACE_INTRA) out.println(succ+\" not yet visited.\");\n this.start_states[succ.getID()] = this.s.copy();\n for (Iterator i = rf.iterator(); i.hasNext(); ) {\n Register r = (Register) i.next();\n if (r.isTemp())\n this.start_states[succ.getID()].registers[r.getNumber()] = null;\n }\n this.change = true;\n } else {\n //if (TRACE_INTRA) out.println(\"merging out set of \"+bb+\" \"+Strings.hex8(this.s.hashCode())+\" into in set of ex handler \"+succ+\" \"+Strings.hex8(this.start_states[succ.getID()].hashCode()));\n if (TRACE_INTRA) out.println(\"merging out set of \"+bb+\" into in set of ex handler \"+succ);\n for (Iterator i = rf.iterator(); i.hasNext(); ) {\n Register r = (Register) i.next();\n if (r.isTemp()) continue;\n if (this.start_states[succ.getID()].merge(r.getNumber(), this.s.registers[r.getNumber()]))\n this.change = true;\n }\n if (TRACE_INTRA && this.change) out.println(succ+\" in set changed\");\n }\n }", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "public Set Union(Set secondSet) {\n\t\t\n\t\tArrayList<String> firstArray = noDuplicates(stringArray);\n\t\t// Taking out duplications out of our sets by calling the noDuplicates private function\n\t\tArrayList<String> secondArray = noDuplicates(secondSet.returnArray());\n\t\t\n\t\tArrayList<String> unionOfBoth = new ArrayList<String>();\n\t\t// New ArrayList to hold the final values\n\t\t\n\t\tfor (int i=0; i < 10; i++) {\n\t\t\tif (firstArray.size() > i) {\n\t\t\t\tif (unionOfBoth.contains(firstArray.get(i)) == false && firstArray.get(i).equals(\"emptyElement\") == false) {\n\t\t\t\t\tunionOfBoth.add(firstArray.get(i));\n\t\t\t\t\t// If our final ArrayList does not already contain the element, and the item is not an empty string\n\t\t\t\t\t// (Does not contain the phrase \"emptyElement\"), then add it to our final ArrayList\n\t\t\t\t}\n\t\t\t\telse if (unionOfBoth.contains(firstArray.get(i)) == false && firstArray.get(i).equals(\"emptyElement\")) {\n\t\t\t\t\tunionOfBoth.add(\"\");\n\t\t\t\t\t// If our final ArrayList does not already contain the element, but the item is an empty string\n\t\t\t\t\t// (Does contain the phrase \"emptyElement\"), then add an empty string to our final ArrayList\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (secondArray.size() > i) {\n\t\t\t\tif (unionOfBoth.contains(secondArray.get(i)) == false && secondArray.get(i).equals(\"emptyElement\") == false) {\n\t\t\t\t\tunionOfBoth.add(secondArray.get(i));\n\t\t\t\t\t// If our final ArrayList does not already contain the element, and the item is not an empty string\n\t\t\t\t\t// (Does not contain the phrase \"emptyElement\"), then add it to our final ArrayList\n\t\t\t\t}\n\t\t\t\telse if (unionOfBoth.contains(secondArray.get(i)) == false && secondArray.get(i).equals(\"emptyElement\")) {\n\t\t\t\t\tunionOfBoth.add(\"\");\n\t\t\t\t\t// If our final ArrayList does not already contain the element, but the item is an empty string\n\t\t\t\t\t// (Does contain the phrase \"emptyElement\"), then add an empty string to our final ArrayList\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSet unionReturn = new Set(unionOfBoth); // Initiate a Set object from out final ArrayList\n\t\t\n\t\treturn unionReturn; // Return the final Set Object\n\t}", "private void canCreateBuildErrorSet(List<String> errorSet, List<String> naSet, String name, int max, int used, int required)\n {\n if(max == 0 && used < 0)\n {\n naSet.add(name + \" ::: Resource information not available.\");\n }\n else if(max == 0 && required > 0)\n {\n naSet.add(name + \" ::: not possible to validate. Information about the resource was not received from the API. \" +\n \"Received ::: Quota: \" + max + \", Available: \" + (max - used) + \", Required: \" + required + \".\");\n }\n //else if(used > max)\n //{\n // naSet.add(name + \" ::: API seems to work incorrectly: used resources cannot be bigger than quota.\");\n //}\n //else if((max - used) <= required)\n else if(!canCreateCheck(max, used, required))\n {\n errorSet.add(name + \" ::: Quota: \" + max + \", Available: \" + (max - used) + \", Required: \" + required + \".\");\n }\n }", "public void clearErrors() {\n mErrors = new ArrayList();\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}", "private HashSet addGranteeAndRoles(HashSet set) {\n\n RoleManager rm = getRoleManager();\n String candidateRole;\n\n set.add(sName);\n\n Iterator it = roles.iterator();\n\n while (it.hasNext()) {\n candidateRole = (String) it.next();\n\n if (!set.contains(candidateRole)) {\n try {\n rm.getGrantee(candidateRole).addGranteeAndRoles(set);\n } catch (HsqlException he) {\n throw new RuntimeException(he.getMessage());\n }\n }\n }\n\n return set;\n }", "public void clearErrors() {\n super.resetErrors();\n }", "@Test\r\n public void addAllFromSetWithStrings() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n s.addAll(sStr);\r\n assertTrue(s.contains(\"kek\"));\r\n assertTrue(s.contains(\"lel\"));\r\n assertTrue(s.contains(\"lol\"));\r\n }", "protected abstract Set<String> _removeFromSet(String key, Collection<String> str);", "Set <JAVATYPE> convertSet(Set<JAVATYPE> oldSet, final METATYPE meta);", "public void store(final Collection<HPListGraph<NodeType, EdgeType>> set) {\n\t\tset.add(getHPlistGraph());\n\t}", "public static void main(String[] args) {\n\n Integer[] integers = new Integer[] {1,2,3,4,5};\n List<Integer>list = new ArrayList<>(Arrays.asList(integers)); // correct one\n System.out.println(\"Converted from Array to List = \" + list);\n\n // this will be a fixed-size list- you can not use add method.\n List<Integer>fixedSizeList = Arrays.asList(integers); // bunu da yapabiliriz ama element ekleme yapamayiz.\n //fixedSizeList.add(6); bunda hata verecek. cunku fixedsize olarak convert ettik. \"unsupported operation exception\" uyarisi verir\n\n\n //Converting list to Array\n Integer[] convertedFromList =list.toArray(new Integer[0]); // sifir yerine herhangi bi sey yazilabilir. ama 0 yazmada fayda var.\n System.out.println(\"Converted from List to Array = \"+ Arrays.toString(convertedFromList));\n\n //Converting an Array to set\n Set<Integer>set = new HashSet<>(Arrays.asList(integers));\n System.out.println(\"Converted from Array to Set = \" + set);\n\n // Converting Set to Array\n Integer[] convertedFromSet = set.toArray(new Integer[0]);\n System.out.println(\"Converted from Set to Array = \" + Arrays.toString(convertedFromSet));\n\n // converting List to Set\n Set<Integer>setFromList = new HashSet<>(list); // bu en cok , ayni value varsa isimize yarar. cunku set'de duplicate yok\n System.out.println(\"Converted list to Set = \" + setFromList);\n\n // Converting Set to List\n List<Integer>listFromSet = new ArrayList<>(setFromList);\n listFromSet.add(9); // en sona ekler\n System.out.println(\"Converted Set to List = \" + listFromSet);\n\n }", "public Set removeDuplicateUsingSet() throws ComputationException {\n Set<Integer> uniqueSet = new HashSet<>();\n log.debug(\"Removing duplicate using Set......\");\n int[] intArray = getRandomArray();\n log.debug(\"Actual size of int array:\" + intArray.length);\n for (int i = 0; i < intArray.length; i++) {\n uniqueSet.add(intArray[i]);\n }\n log.debug(\"refined size of int array using Set: \" + uniqueSet.size());\n log.debug(Arrays.toString(uniqueSet.toArray()));\n return uniqueSet;\n }", "private static <T> Set<T> union(Collection<T> c1, Collection<T> c2) {\n return Stream.concat(c1.stream(), c2.stream()).collect(Collectors.toUnmodifiableSet());\n }", "@Test\r\n\t\tpublic void testUnion() {\n\t\t\ttestingSet = new IntegerSet(list1);\r\n\t\t\ttestingSet2= new IntegerSet(list2);\r\n\t\t\t// 3rd set =to the union of the two lists \r\n\t\t\ttestingSet3= new IntegerSet(union);\r\n\t\t\t// 4th set equal to the union of sets 1 and 2 \r\n\t\t\ttestingSet4= testingSet.union(testingSet, testingSet2);\r\n\t\t\t// sets 3 and 4 should be equal\r\n\t\t\t// assertEquals method is deprecated \r\n\t\t\tassertArrayEquals(testingSet3.toArray(),testingSet4.toArray());\r\n\t\t\t \r\n\t\t}", "private void addSymbolFirstSet(Symbol symbol) {\n if (isSymbolTerminal(symbol)) {\n return;\n }\n\n // left side is not a terminal, than we need to compute its right side\n // an non terminal may have a couple of productions\n for (int i = 0; i < symbol.productions.size(); i++) {\n // getLine every production in order\n ArrayList<Tag> production = symbol.productions.get(i);\n if (production.size() == 0) continue;\n\n // getLine symbol of this production in order\n for (int j = 0; j < production.size(); j++) {\n Tag currentTag = production.get(j);\n Symbol current = symbolMap.get(currentTag);\n if (!symbol.firstSet.containsAll(current.firstSet)) {\n needMoreRound = true;\n\n for (int k = 0; k < current.firstSet.size(); k++) {\n if (!symbol.firstSet.contains(current.firstSet.get(k))) {\n symbol.firstSet.add(current.firstSet.get(k));\n }\n }\n }\n if (!current.isNullable) break;\n }\n }\n }", "public List<List<Integer>> findSubsequences3(int[] nums) {\n //below set is not working\n Set<List<Integer>> ret = new HashSet<>();\n\n ret.add(new ArrayList<>());\n int index = 0;\n while (index < nums.length) {\n //try to add nums[index]\n\n Set<List<Integer>> newly_added_set = new HashSet<>();\n\n for (List<Integer> l : ret) {\n if (l.size() <= 0 || l.get(l.size() - 1) <= nums[index]) {\n List<Integer> newList = new ArrayList<>(l);\n newList.add(nums[index]);\n newly_added_set.add(newList);\n }\n }\n\n ret.addAll(newly_added_set);\n\n ++index;\n }\n\n List<List<Integer>> ret2 = new ArrayList<>();\n for (List<Integer> l : ret) {\n if (l.size() >= 2) {\n ret2.add(l);\n }\n }\n return ret2;\n }", "public static void main(String[] argv) throws SetException {\n\t\tString[] professor = new String[] { \"Kesden\", \"Atkeson\", \"Reddy\" };\n\t\tString[] lecturer = new String[] { \"Kesden\", \"Atkeson\", \"Joe\", \"Reddy\" };\n\t\tString[] students = new String[] { \"SungPil\", \"Joe\", \"Pom\" };\n\n\t\t// Test for constructor\n\t\tSet professorSet = new Set();\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for constructor\");\n\t\tSystem.out.println(\"No data in the Set: \" + professorSet.toString());\n\n\t\t// Test for addItem\n\t\tfor (String prof : professor)\n\t\t\tprofessorSet.addItem(prof);\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for addItem\");\n\t\tSystem.out.println(\"Professors in the Set: \" + professorSet.toString());\n\n\t\t// Test for copy constructor\n\t\tSet professorCopySet = new Set(professorSet);\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for copy constructor\");\n\t\tSystem.out.println(\"Professors copy Set: \"\n\t\t\t\t+ professorCopySet.toString());\n\n\t\t// Test for addItems with Exception\n\t\tSet lecturerSet = new Set();\n\t\tfor (String lect : lecturer)\n\t\t\tlecturerSet.addItem(lect);\n\t\tSet teacherSet = new Set();\n\t\tteacherSet.addItems(professorSet);\n\t\ttry {\n\t\t\tteacherSet.addItems(lecturerSet);\n\t\t} catch (SetException se) {\n\t\t\tSystem.out.println(se.toString());\n\t\t}\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for addItems\");\n\t\tSystem.out.println(\"Teacher Set: \" + teacherSet.toString());\n\n\t\t// Test for removeItem\n\t\tteacherSet.removeItem(\"Joe\");\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for removeItem\");\n\t\tSystem.out.println(\"Joe left CMU: \" + teacherSet.toString());\n\n\t\t// Test for removeItems\n\t\tteacherSet.removeItems(professorSet);\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for removeItems\");\n\t\tSystem.out\n\t\t\t\t.println(\"Professor is not teacher: \" + teacherSet.toString());\n\n\t\t// Test for member\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for memeber\");\n\t\tSystem.out.println(\"Joe is professor?: \" + professorSet.member(\"Joe\"));\n\t\tSystem.out.println(\"Joe is lecturer?: \" + lecturerSet.member(\"Joe\"));\n\n\t\t// Test for intersection\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for intersection\");\n\t\tSet intersectionSet = professorSet.intersection(lecturerSet);\n\t\tSystem.out\n\t\t\t\t.println(\"The person who is proferssor as well as lecturer?: \"\n\t\t\t\t\t\t+ intersectionSet.toString());\n\n\t\t// Test for union\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for union\");\n\t\tSet unionSet = professorSet.union(lecturerSet);\n\t\tSystem.out.println(\"The person who is proferssor or lecturer?: \"\n\t\t\t\t+ unionSet.toString());\n\n\t\t// Test for subset\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for subset\");\n\t\tSystem.out\n\t\t\t\t.println(\"Does the group of lecturer is the subset of the group of professor?: \"\n\t\t\t\t\t\t+ professorSet.subset(lecturerSet));\n\t\tSystem.out\n\t\t\t\t.println(\"Does the group of professor is the subset of the group of lecturer?: \"\n\t\t\t\t\t\t+ lecturerSet.subset(professorSet));\n\n\t\t// Test for xor\n\t\tSystem.out\n\t\t\t\t.println(\"-------------------------------------- Test for xor\");\n\t\tSet xor = professorSet.xor(lecturerSet);\n\t\tSystem.out\n\t\t\t\t.println(\"The person who is only professor or only lecturer: \"\n\t\t\t\t\t\t+ xor.toString());\n\t\tSystem.out\n\t\t\t\t.println(\"----------------------------------------------------\");\n\t}", "@SafeVarargs\n public static <T> Set<T> union(Set<T>... sets) {\n if (sets == null) return set();\n Set<T> result = set();\n for (Set<T> s : sets) {\n if (s != null) result.addAll(s);\n }\n return result;\n }", "@Test\n public void testSet_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 Integer expResult = 7;\n Integer result = instance.set(2, 9);\n assertEquals(expResult, result);\n\n }", "@Test(expected = NullPointerException.class)\r\n\t\tpublic void testAllNull() {\n\t\t\ttestingSet = new IntegerSet();\r\n\t\t\ttestingSet.insertAll(null);\r\n\t\t\t// check if set is null \r\n \t\t\tassertNull(testingSet);\r\n\t\t}", "public SetSet(Vector<IntSet> initials){\n\t\tfor(int i=0;i<initials.size();i++){\n\t\t\tcontents.addElement(initials.get(i));\n\t\t}\n\t}", "@Test\n public void testAddAll_int_Collection_Order_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(1, 2, 3);\n instance.addAll(1, c);\n\n List expResult = Arrays.asList(3, 1, 2, 3, 2, 3, 2, 3, 2);\n\n for (int i = 0; i < expResult.size(); i++) {\n assertEquals(expResult.get(i), instance.get(i));\n }\n }", "Boolean superset(MultiSet<X> s);", "@Override // java.util.Collection, java.util.Set\r\n public boolean addAll(Collection<? extends E> collection) {\r\n b(this.f513d + collection.size());\r\n boolean added = false;\r\n Iterator<? extends E> it = collection.iterator();\r\n while (it.hasNext()) {\r\n added |= add(it.next());\r\n }\r\n return added;\r\n }", "public void deleteAllOptset() {\n this.optionSet = new ArrayList<OptionSet>();\n }", "public Set setDifference(Set diff){\n Set newSet = new Set();\n for(int element = 0; element < set.length; element++){\n if(!diff.elementOf(set[element]))\n newSet.add(set[element]);\n }\n return newSet;\n }", "public final TreeToNFAConverter.set_return set() throws RecognitionException {\n\t\tTreeToNFAConverter.set_return retval = new TreeToNFAConverter.set_return();\n\t\tretval.start = input.LT(1);\n\n\t\tGrammarAST b=null;\n\n\n\t\t\tIntSet elements=new IntervalSet();\n\t\t\tif ( state.backtracking == 0 )\n\t\t\t\t((GrammarAST)retval.start).setSetValue(elements); // track set for use by code gen\n\n\t\ttry {\n\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:663:2: ( ^(b= BLOCK ( ^( ALT ( ^( BACKTRACK_SEMPRED ( . )* ) )? setElement[elements] EOA ) )+ EOB ) )\n\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:663:4: ^(b= BLOCK ( ^( ALT ( ^( BACKTRACK_SEMPRED ( . )* ) )? setElement[elements] EOA ) )+ EOB )\n\t\t\t{\n\t\t\tb=(GrammarAST)match(input,BLOCK,FOLLOW_BLOCK_in_set1390); if (state.failed) return retval;\n\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return retval;\n\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:664:6: ( ^( ALT ( ^( BACKTRACK_SEMPRED ( . )* ) )? setElement[elements] EOA ) )+\n\t\t\tint cnt60=0;\n\t\t\tloop60:\n\t\t\twhile (true) {\n\t\t\t\tint alt60=2;\n\t\t\t\tint LA60_0 = input.LA(1);\n\t\t\t\tif ( (LA60_0==ALT) ) {\n\t\t\t\t\talt60=1;\n\t\t\t\t}\n\n\t\t\t\tswitch (alt60) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:664:7: ^( ALT ( ^( BACKTRACK_SEMPRED ( . )* ) )? setElement[elements] EOA )\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,ALT,FOLLOW_ALT_in_set1399); if (state.failed) return retval;\n\t\t\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return retval;\n\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:664:13: ( ^( BACKTRACK_SEMPRED ( . )* ) )?\n\t\t\t\t\tint alt59=2;\n\t\t\t\t\tint LA59_0 = input.LA(1);\n\t\t\t\t\tif ( (LA59_0==BACKTRACK_SEMPRED) ) {\n\t\t\t\t\t\talt59=1;\n\t\t\t\t\t}\n\t\t\t\t\tswitch (alt59) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:664:15: ^( BACKTRACK_SEMPRED ( . )* )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmatch(input,BACKTRACK_SEMPRED,FOLLOW_BACKTRACK_SEMPRED_in_set1404); if (state.failed) return retval;\n\t\t\t\t\t\t\tif ( input.LA(1)==Token.DOWN ) {\n\t\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); if (state.failed) return retval;\n\t\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:664:35: ( . )*\n\t\t\t\t\t\t\t\tloop58:\n\t\t\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\t\tint alt58=2;\n\t\t\t\t\t\t\t\t\tint LA58_0 = input.LA(1);\n\t\t\t\t\t\t\t\t\tif ( ((LA58_0 >= ACTION && LA58_0 <= XDIGIT)) ) {\n\t\t\t\t\t\t\t\t\t\talt58=1;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if ( (LA58_0==UP) ) {\n\t\t\t\t\t\t\t\t\t\talt58=2;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tswitch (alt58) {\n\t\t\t\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t\t\t\t// org/antlr/grammar/v3/TreeToNFAConverter.g:664:35: .\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tmatchAny(input); if (state.failed) return retval;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\t\t\t\tbreak loop58;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tmatch(input, Token.UP, null); if (state.failed) return retval;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tpushFollow(FOLLOW_setElement_in_set1413);\n\t\t\t\t\tsetElement(elements);\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return retval;\n\t\t\t\t\tmatch(input,EOA,FOLLOW_EOA_in_set1416); if (state.failed) return retval;\n\t\t\t\t\tmatch(input, Token.UP, null); if (state.failed) return retval;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tif ( cnt60 >= 1 ) break loop60;\n\t\t\t\t\tif (state.backtracking>0) {state.failed=true; return retval;}\n\t\t\t\t\tEarlyExitException eee = new EarlyExitException(60, input);\n\t\t\t\t\tthrow eee;\n\t\t\t\t}\n\t\t\t\tcnt60++;\n\t\t\t}\n\n\t\t\tmatch(input,EOB,FOLLOW_EOB_in_set1426); if (state.failed) return retval;\n\t\t\tmatch(input, Token.UP, null); if (state.failed) return retval;\n\n\t\t\tif ( state.backtracking==0 ) {\n\t\t\t\t\tretval.g = factory.build_Set(elements,b);\n\t\t\t\t\tb.followingNFAState = retval.g.right;\n\t\t\t\t\tb.setSetValue(elements); // track set value of this block\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}", "public void removeItems(Set items) throws SetException {\n\t\tfor (Object element : items.list) {\n\t\t\tif (member(element))\n\t\t\t\tremoveItem(element);\n\t\t\telse\n\t\t\t\tthrow new SetException(\"Item not already in set.\");\n\t\t}\n\n\t}", "public Map<K, Set<V>> coreGetAllSupersetsOf(Collection<?> set, int mode) {\n // Skip elements in the collection having an incorrect type, as we are looking for subsets which simply\n // cannot contain the conflicting items\n Set<V> navSet = createNavigableSet(set, true);\n Iterator<V> it = navSet.iterator();\n\n List<SetTrieNode> frontier = new ArrayList<>();\n frontier.add(superRootNode);\n\n // For every value, extend the frontier with the successor nodes for that value.\n V from = null;\n V upto = null;\n\n // Use a flag for null safety so we do not rely on the comparator to treat null as the least element\n boolean isLeastFrom = true;\n while(it.hasNext()) {\n from = upto;\n upto = it.next();\n\n List<SetTrieNode> nextNodes = new ArrayList<>();\n\n // Based on the frontier, we need to keep scanning nodes whose values is in the range [from, upto]\n // until we find the nodes whose values equals upto\n // Only these nodes then constitute the next frontier\n Collection<SetTrieNode> currentScanNodes = frontier;\n do {\n Collection<SetTrieNode> nextScanNodes = new ArrayList<>();\n for(SetTrieNode currentNode : currentScanNodes) {\n if(currentNode.nextValueToChild != null) {\n NavigableMap<V, SetTrieNode> candidateNodes = isLeastFrom\n ? currentNode.nextValueToChild.headMap(upto, true)\n : currentNode.nextValueToChild.subMap(from, true, upto, true);\n\n for(SetTrieNode candidateNode : candidateNodes.values()) {\n if(Objects.equals(candidateNode.value, upto)) {\n nextNodes.add(candidateNode);\n } else {\n nextScanNodes.add(candidateNode);\n }\n }\n }\n }\n currentScanNodes = nextScanNodes;\n } while(!currentScanNodes.isEmpty());\n\n frontier = nextNodes;\n\n isLeastFrom = false;\n }\n\n Map<K, Set<V>> result = new HashMap<>();\n\n // Copy all data entries associated with the frontier to the result\n Stream<SetTrie<K, V>.SetTrieNode> stream = frontier.stream();\n\n if(mode != 0) {\n stream = stream.flatMap(node -> reachableNodesAcyclic(\n node,\n x -> (x.nextValueToChild != null ? x.nextValueToChild.values() : Collections.<SetTrieNode>emptySet()).stream()));\n }\n\n stream.forEach(currentNode -> {\n if(currentNode.keyToSet != null) {\n for(Entry<K, NavigableSet<V>> e : currentNode.keyToSet.entrySet()) {\n result.put(e.getKey(), e.getValue());\n }\n }\n });\n\n return result;\n }", "protected int[] resubset(int[] newset) {\n\t\tfor (int i = 0; i < newset.length; i++) {\n\t\t\tnewset[i] = subset[newset[i]];\n\t\t}\n\t\treturn newset;\n\t}", "public interface Set {\n\n /**\n * Create an empty set.\n *\n * @return the empty set\n */\n static Set createEmpty() {\n return new EmptySet();\n }\n\n /**\n * Checks if the ASet is empty.\n *\n * @return true if the set is empty, false otherwise\n */\n boolean isEmpty();\n\n /**\n * Given an {@code Integer} {@code element} add the element to the set. If {@code element} is\n * already a member of the set, we perform no operation and return back the set intact.\n *\n * @param element the new element to add to the set\n *\n * @return a newly created set that contains {@code element} and the original elements of the set.\n */\n Set add(Integer element);\n\n /**\n * Given an {@code Integer} {@code element} returns {@code true} if the element is already in the\n * set and {@code false} otherwise.\n *\n * @param element the element to check\n *\n * @return true if {@code element} is in the set, false otherwise\n */\n Boolean contains(Integer element);\n\n /**\n * Return the size of the set.\n *\n * @return return the size of the set\n */\n Integer size();\n\n /**\n * Given an element {@code element} remove it from the this list if it exists.\n *\n * @param element the element to remove\n *\n * @return set without {@code element}\n */\n Set remove(Integer element);\n\n\n /**\n * Given a set {@code other} return a new set which is the set union between {@code this} set and\n * {@code other} set.\n *\n * @param other set to perform union\n *\n * @return set union of this and other\n */\n Set union(Set other);\n\n\n /**\n * Returns the set intersection between {@code this} and {@code otherSet}.\n *\n * @param otherSet set to perform intersection with\n *\n * @return set intersection between {@code this} and {@code otherSet}\n */\n Set intersect(Set otherSet);\n\n\n /**\n * Returns the set difference between {@code this} and {@code otherSet}.\n *\n * @param otherSet set to perform set difference with\n *\n * @return set difference between {@code this} and {@code otherSet}\n */\n Set difference(Set otherSet);\n\n\n /**\n * Returns true if {@code this} set is a subset of {@code otherSet}.\n *\n * @param otherSet the set to check against\n *\n * @return true if this is a subset of otherSet, false otherwise\n */\n Boolean subset(Set otherSet);\n\n\n}", "private static Set symmetricSetDifference (Set<Integer> set1, Set<Integer> set2)\n {\n Set<Integer> skæringspunktet = new HashSet<Integer>(set1);\n\n // Holder på set2 også\n skæringspunktet.retainAll(set2);\n\n // Set1 fjerner alt fra Settet\n set1.removeAll(skæringspunktet);\n // Set1 fjerner alt fra Settet\n set2.removeAll(skæringspunktet);\n\n // Tilføjer alt fra set2 til set1\n set1.addAll(set2);\n\n // Returnerer set1\n return set1;\n }", "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 }", "@Override\n\tpublic void setErrors(List<Error> errors) {\n\n\t}", "private Collection<LR1ItemSet> createItemSets( Grammar grammar)\n {\n Map<LR1ItemSet, LR1ItemSet> itemSets = new LinkedHashMap<LR1ItemSet, LR1ItemSet>();\n \n LR1ItemSet itemSet = new LR1ItemSet();\n itemSet.kernel.add( new LR1Item( grammar.rules().get( 0), Grammar.terminus));\n itemSet.closure( grammar);\n itemSets.put( itemSet, itemSet);\n \n List<LR1ItemSet> stack = new ArrayList<LR1ItemSet>();\n stack.add( itemSet);\n while( stack.size() > 0)\n {\n itemSet = stack.remove( 0);\n\n //\n // Compute the kernel of the successors of the LR1ItemSet, but only incur the cost\n // of closure if the LR1ItemSet has not already been created. LR1ItemSets are unique\n // by kernel.\n //\n itemSet.successors( grammar);\n for( LR1ItemSet successor: itemSet.successors.values())\n {\n LR1ItemSet existing = itemSets.get( successor);\n if ( existing != null)\n {\n LR1Item firstItem = existing.kernel.iterator().next();\n String leadSymbol = firstItem.rule.rhs().get( firstItem.dot - 1);\n itemSet.successors.put( leadSymbol, existing);\n }\n else\n {\n successor.closure( grammar);\n itemSets.put( successor, successor);\n stack.add( successor);\n }\n }\n }\n \n return itemSets.values();\n }", "@Override\n\tpublic SetLinkedList<T> union(SetLinkedList<T> otherSet) {\n\t\tthrow new UnsupportedOperationException(\"Not implemented yet!\");\n\t}", "public Set retainAll(final int[] newSet) {\n Set s2 = new Set();\n for (int i = 0; i < size; i++) {\n for (int element : newSet) {\n if (set[i] == element) {\n s2.add(set[i]);\n }\n }\n }\n // for (int i = 0; i < size; i++) {\n // if (newSet.contains(set[i])) {\n // s2.add(set[i]);\n // }\n // }\n return s2;\n }", "@Test\n\tpublic void testUnionSLLSetArrayAll0() {\n\n\t\tint[] arr1 = { 0, 0, 0 };\n\t\tint[] arr2 = { 0, 0, 0, 0 };\n\t\tint[] arr3 = { 0, 0 };\n\t\tint[] arr4 = { 0, 0 };\n\t\tSLLSet listObj100 = new SLLSet(arr1);\n\t\tSLLSet listObj99 = new SLLSet(arr2);\n\t\tSLLSet listObj98 = new SLLSet(arr3);\n\t\tSLLSet listObj97 = new SLLSet(arr4);\n\t\tSLLSet listObj96 = new SLLSet();\n\t\tSLLSet[] Array = { listObj100, listObj99, listObj98, listObj97, listObj96 }; // test static SLLSet union(sArray)\n\n\t\tSLLSet listObj23 = SLLSet.union(Array);\n\n\t\tString expected = \"0\";\n\t\tint expectedSize = 1;\n\n\t\tassertEquals(expectedSize, listObj23.getSize());\n\t\tassertEquals(expected, listObj23.toString());\n\n\t}", "@Override\r\n\tpublic MySet intersectSets(MySet[] t) {\r\n\t\tallElements = new ArrayList<Integer>();\r\n\r\n\t\t\r\n\t\tfor(Object element: t[0]) {\r\n\t\t\tallElements.add(element);\r\n\t\t}\r\n\t\r\n\t\tfor(Object e: allElements) {\r\n\t\t\tInteger c = map.getOrDefault(e, 0);\r\n\t\t\tmap.put((E)e, c + 1);\r\n\t\t}\r\n\t\t\r\n\t\tMySet<E> returnSet = (MySet<E>) new Set2<Integer>();\r\n\t\tfor(Map.Entry<E, Integer> entry :map.entrySet())\r\n\t\t\tif(entry.getValue() >= dataSet[0].length) // check\r\n\t\t\t\treturnSet.add(entry.getKey());\r\n\t\t\r\n\t\t\r\n\t\treturn returnSet;\r\n\t}", "public HashSet<T> removeDups(Node root, HashSet set) {\n if(root == null) {\n return set;\n }\n if(root.getLeftChildNode() != null) {\n removeDups(root.getLeftChildNode(), set);\n }\n if(set.contains(root.getData())){\n set.add(root.getData());\n }\n if(root.getRightChildNode() != null) {\n removeDups(root.getRightChildNode(), set);\n }\n return set;\n }", "public RegexNode ReduceSet()\n\t{\n\t\t// Extract empty-set, one and not-one case as special\n\n\t\tif (RegexCharClass.IsEmpty(_str))\n\t\t{\n\t\t\t_type = Nothing;\n\t\t\t_str = null;\n\t\t}\n\t\telse if (RegexCharClass.IsSingleton(_str))\n\t\t{\n\t\t\t_ch = RegexCharClass.SingletonChar(_str);\n\t\t\t_str = null;\n\t\t\t_type += (One - Set);\n\t\t}\n\t\telse if (RegexCharClass.IsSingletonInverse(_str))\n\t\t{\n\t\t\t_ch = RegexCharClass.SingletonChar(_str);\n\t\t\t_str = null;\n\t\t\t_type += (Notone - Set);\n\t\t}\n\n\t\treturn this;\n\t}", "public Set removeDuplicateUsingLinkedHashSet() throws ComputationException {\n Set<Integer> uniqueSet = new LinkedHashSet<>();\n log.debug(\"Removing duplicate using Linked Hash Set......\");\n int[] intArray = getRandomArray();\n log.debug(\"Actual size of int array:\" + intArray.length);\n for (int i = 0; i < intArray.length; i++) {\n uniqueSet.add(intArray[i]);\n }\n log.debug(\"refined size of int array using Set: \" + uniqueSet.size());\n log.debug(Arrays.toString(uniqueSet.toArray()));\n return uniqueSet;\n }", "public abstract NestedSet<Artifact> auxiliary();", "static public Set setFlatten(Object source) {\n\t\tSet result = new HashSet();\n\t\tif ( source instanceof Collection ) {\n\t\t\tIterator it = ((Collection)source).iterator();\n\t\t\twhile ( it.hasNext() ) {\n\t\t\t\tObject elem = it.next();\n\t\t\t\tif ( elem instanceof Collection ) {\n\t\t\t\t\tresult.addAll( setFlatten(elem));\n\t\t\t\t} else {\n\t\t\t\t\tresult.add(elem);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static Set unmodifiableSet(Set set) {\n/* 175 */ return UnmodifiableSet.decorate(set);\n/* */ }", "public SetSet setUnion(SetSet second){\n\t\tSetSet result = new SetSet(contents);\n\t\tfor(int i=0;i<second.size();i++){\n\t\t\tresult.add(second.get(i));\n\t\t}\n\t\treturn result;\n\t}", "public boolean addAll(ISet<E> otherSet) {\n\t\tif (otherSet == null)\n\t\t\tthrow new IllegalArgumentException(\"The given set is null.\");\n\t\tboolean result = false;\n\t\tfor (E obj: otherSet) {\n\t\t\tif (!this.contains(obj)) {\n\t\t\t\tthis.add(obj);\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Test\n public void AfterAddingDuplicatetheSizeShouldBeOne() throws MySetException {\n set.add(1);\n assertThat(set.size(), is(1));\n }", "public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}", "public ISet<E> union(ISet<E> otherSet) {\n\t\tif (otherSet == null)\n\t\t\tthrow new IllegalArgumentException(\"The given set is null.\");\n\t\tISet<E> result = this.difference(otherSet);\n\t\tresult.addAll(this.intersection(otherSet));\n\t\tresult.addAll(otherSet.difference(this));\n\t\treturn result;\n\t}", "@Test\n\t public void test_Union_Set_Same() throws Exception{\n\t\t int[] setarray1= new int[]{1,2,3};\n\t\t int[] setarray2= new int[]{1,2,3};\n\t\t SET set = new SET(setarray1);\n\t\t int returnedArrOperation[] =set.Union(setarray1,setarray2); \n\t\t int []expectedArr = new int[] {1,2,3};\n\t\t Assert.assertArrayEquals( expectedArr, returnedArrOperation );\n\t }" ]
[ "0.60289675", "0.59322125", "0.5930343", "0.59129065", "0.5825527", "0.58194494", "0.57804525", "0.56627274", "0.5615958", "0.5603413", "0.55827516", "0.55137825", "0.5470152", "0.54523504", "0.5443907", "0.54343873", "0.54145813", "0.5413694", "0.54049623", "0.53545654", "0.53444856", "0.5306283", "0.52911156", "0.52753127", "0.52647555", "0.5253003", "0.52440417", "0.52257097", "0.5218628", "0.51939654", "0.51805526", "0.51629496", "0.5161253", "0.5140034", "0.51390517", "0.51359934", "0.5134403", "0.51315516", "0.5108048", "0.51066387", "0.51055574", "0.5090885", "0.5084049", "0.5080501", "0.50708747", "0.50697875", "0.5066542", "0.506442", "0.50604427", "0.50597453", "0.5038219", "0.50356144", "0.5023307", "0.50068784", "0.5006506", "0.49968308", "0.49922088", "0.4982523", "0.49788263", "0.49763525", "0.49750692", "0.49703798", "0.49612558", "0.49579775", "0.49573672", "0.49494165", "0.49370992", "0.49307168", "0.49291697", "0.49264723", "0.49222115", "0.49209803", "0.49165893", "0.4907564", "0.49031392", "0.49009943", "0.4888745", "0.48836812", "0.4880057", "0.48794243", "0.48792368", "0.48780718", "0.4865075", "0.48624405", "0.4862101", "0.4857006", "0.48565155", "0.48557875", "0.48508203", "0.48487762", "0.4848162", "0.4839473", "0.48295376", "0.48209304", "0.48192632", "0.48175925", "0.48155138", "0.48150307", "0.47914797", "0.47869968" ]
0.51927847
30
Keep confirmed explanations in a field
@Override public void confirmExplanation(IBasicExplanation correctExpl) { confirmedExplanations.add(correctExpl); // Keep confirmed errors in another field IMarkerSet correctMarkers = correctExpl.getRealExplains(); confirmedMarkers.addAll(correctMarkers); //TODO 4) adapt ExplanationCollection //TODO 5) wipe internal data structures of the ranker /* errors.removeAll(correctMarkers); errorList.removeAll(correctMarkers); removeMarkersFromOneErrorList(correctMarkers); */ // Call initialize to restart the ranker initializeListsAndSets(); initializeCollection(explCollection); //TODO 7) merge confirmed explanations for scoring }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setConfirmed(String value);", "private void clearFormatedText() {\n \n formatedText_ = getDefaultInstance().getFormatedText();\n }", "@Test//ExSkip\n public void fieldAsk() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Place a field where the response to our ASK field will be placed.\n FieldRef fieldRef = (FieldRef) builder.insertField(FieldType.FIELD_REF, true);\n fieldRef.setBookmarkName(\"MyAskField\");\n builder.writeln();\n\n Assert.assertEquals(\" REF MyAskField\", fieldRef.getFieldCode());\n\n // Insert the ASK field and edit its properties to reference our REF field by bookmark name.\n FieldAsk fieldAsk = (FieldAsk) builder.insertField(FieldType.FIELD_ASK, true);\n fieldAsk.setBookmarkName(\"MyAskField\");\n fieldAsk.setPromptText(\"Please provide a response for this ASK field\");\n fieldAsk.setDefaultResponse(\"Response from within the field.\");\n fieldAsk.setPromptOnceOnMailMerge(true);\n builder.writeln();\n\n Assert.assertEquals(\n \" ASK MyAskField \\\"Please provide a response for this ASK field\\\" \\\\d \\\"Response from within the field.\\\" \\\\o\",\n fieldAsk.getFieldCode());\n\n // ASK fields apply the default response to their respective REF fields during a mail merge.\n DataTable table = new DataTable(\"My Table\");\n table.getColumns().add(\"Column 1\");\n table.getRows().add(\"Row 1\");\n table.getRows().add(\"Row 2\");\n\n FieldMergeField fieldMergeField = (FieldMergeField) builder.insertField(FieldType.FIELD_MERGE_FIELD, true);\n fieldMergeField.setFieldName(\"Column 1\");\n\n // We can modify or override the default response in our ASK fields with a custom prompt responder,\n // which will occur during a mail merge.\n doc.getFieldOptions().setUserPromptRespondent(new MyPromptRespondent());\n doc.getMailMerge().execute(table);\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.ASK.docx\");\n testFieldAsk(table, doc); //ExSkip\n }", "String getRemark();", "@Override\n public String toString() {\n return super.toString() + \" --> \" + getCorrectedText();\n }", "private void showThatNotEditable() {\n\t\tTextView tv = new TextView(this);\n\t\ttv.setText(\"Only the original creator may edit their recipe!\");\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Sorry\");\n\t\talert.setView(tv);\n\t\talert.setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t}\n\t\t});\n\t\talert.show();\n\t}", "private String extractConfirmPassword() {\n return SwingUtil.extract(confirmPasswordJPasswordField, Boolean.TRUE);\n }", "public void editFieldConfirm(TextView tv, EditText et, Button btn, String field)\n {\n tv.setText(field + et.getText().toString());\n et.setVisibility(View.INVISIBLE);\n et.setText(\"\");\n btn.setVisibility(View.INVISIBLE);\n tv.setVisibility(View.VISIBLE);\n }", "private static void setIfNecessary(BibtexEntry be, String field, String content) {\n if (!content.equals(\"\"))\n be.setField(field, content);\n }", "public String printChangeSuccessful(String field) {\n return \"Congratulations! Your \" + field + \" has been successfully changed\";\n }", "@Test\n public void nao_deve_aceitar_descricao_com_a_primeira_letra_minuscula() {\n telefone.setDescricao(\"celular empresarial.\");\n assertFalse(isValid(telefone, \"A descrição não pode conter acentos, caracteres especiais e números.\", Find.class));\n }", "public void illFormattedAnswer() {\n\n if (currentTeam.getTeamIndex() == teamIndex) {\n announcementsLabel.setText(\"You had an illformatted answer. Please try again\");\n } else {\n announcementsLabel.setText(currentTeam.getTeamName() + \" had an illformatted answer. They get to answer again.\");\n }\n }", "protected boolean acceptToStringField(Field f)\n\t{\n\t\treturn true;\n\t}", "private void displayConfirmPassword() {\n FieldRelatedLabel confirmPasswordLabel = new FieldRelatedLabel(\"Confirm Password\", 750, 370);\n\n invalidConfirmPasswordLabel = new InvalidFormEntryLabel(\"Does not match with the other password\", 910, 400, false);\n\n confirmPasswordTF = new PasswordField();\n confirmPasswordTF.relocate(750, 400);\n confirmPasswordTF.textProperty().addListener(e->FormValidatorPokeMongo.handleConfirmField(passwordTF, confirmPasswordTF, invalidConfirmPasswordLabel));\n\n sceneNodes.getChildren().addAll(confirmPasswordLabel, invalidConfirmPasswordLabel, confirmPasswordTF);\n }", "@Test\n public void nao_deve_aceitar_descricao_vazia() {\n telefone.setDescricao(EMPTY);\n assertFalse(isValid(telefone, \"A descrição não pode ser nula ou vazia.\", Find.class));\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getFieldId() != null)\n sb.append(\"FieldId: \").append(getFieldId()).append(\",\");\n if (getFieldValue() != null)\n sb.append(\"FieldValue: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getAxisBinding() != null)\n sb.append(\"AxisBinding: \").append(getAxisBinding()).append(\",\");\n if (getSettings() != null)\n sb.append(\"Settings: \").append(getSettings());\n sb.append(\"}\");\n return sb.toString();\n }", "public boolean shouldSkipField(FieldAttributes f) {\n\t\t return f.getName().equals(\"user_id\")\n || f.getName().equals(\"owner\")\n || f.getName().equals(\"recipient\")\n || f.getName().equals(\"isGood\")\n || f.getName().equals(\"reward\");\n\t\t}", "public String getRemark()\n/* */ {\n/* 255 */ return this.remark;\n/* */ }", "@Override\r\n\tprotected boolean validationCriteria(JPasswordField textFieldpasswordConfirm) {\n\t\treturn false;\r\n\t}", "@Override\r\n\t\t\tpublic void afterTextChanged(Editable edit) {\n\t\t\t\tconfirmPassword = edit.toString();\r\n\t\t\t}", "private void eraseFieldsContent() {\r\n\t\ttxPassword.setText(\"\");\r\n\t\ttxUsuario.setText(\"\");\r\n\t\tcheckAdmin.setIndeterminate(true);\r\n\t\tcheckTPV.setIndeterminate(true);\r\n\t}", "void setDraft(boolean d);", "@Override\n\tprotected boolean isInClearText() {\n\t\treturn !this.inQuotes;\n\t}", "boolean getDraft();", "@Test//ExSkip\n public void fieldRef() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n builder.startBookmark(\"MyBookmark\");\n builder.insertFootnote(FootnoteType.FOOTNOTE, \"MyBookmark footnote #1\");\n builder.write(\"Text that will appear in REF field\");\n builder.insertFootnote(FootnoteType.FOOTNOTE, \"MyBookmark footnote #2\");\n builder.endBookmark(\"MyBookmark\");\n builder.moveToDocumentStart();\n\n // We will apply a custom list format, where the amount of angle brackets indicates the list level we are currently at.\n builder.getListFormat().applyNumberDefault();\n builder.getListFormat().getListLevel().setNumberFormat(\"> \\u0000\");\n\n // Insert a REF field that will contain the text within our bookmark, act as a hyperlink, and clone the bookmark's footnotes.\n FieldRef field = insertFieldRef(builder, \"MyBookmark\", \"\", \"\\n\");\n field.setIncludeNoteOrComment(true);\n field.setInsertHyperlink(true);\n\n Assert.assertEquals(field.getFieldCode(), \" REF MyBookmark \\\\f \\\\h\");\n\n // Insert a REF field, and display whether the referenced bookmark is above or below it.\n field = insertFieldRef(builder, \"MyBookmark\", \"The referenced paragraph is \", \" this field.\\n\");\n field.setInsertRelativePosition(true);\n\n Assert.assertEquals(field.getFieldCode(), \" REF MyBookmark \\\\p\");\n\n // Display the list number of the bookmark as it appears in the document.\n field = insertFieldRef(builder, \"MyBookmark\", \"The bookmark's paragraph number is \", \"\\n\");\n field.setInsertParagraphNumber(true);\n\n Assert.assertEquals(\" REF MyBookmark \\\\n\", field.getFieldCode());\n\n // Display the bookmark's list number, but with non-delimiter characters, such as the angle brackets, omitted.\n field = insertFieldRef(builder, \"MyBookmark\", \"The bookmark's paragraph number, non-delimiters suppressed, is \", \"\\n\");\n field.setInsertParagraphNumber(true);\n field.setSuppressNonDelimiters(true);\n\n Assert.assertEquals(field.getFieldCode(), \" REF MyBookmark \\\\n \\\\t\");\n\n // Move down one list level.\n builder.getListFormat().setListLevelNumber(builder.getListFormat().getListLevelNumber() + 1)/*Property++*/;\n builder.getListFormat().getListLevel().setNumberFormat(\">> \\u0001\");\n\n // Display the list number of the bookmark and the numbers of all the list levels above it.\n field = insertFieldRef(builder, \"MyBookmark\", \"The bookmark's full context paragraph number is \", \"\\n\");\n field.setInsertParagraphNumberInFullContext(true);\n\n Assert.assertEquals(field.getFieldCode(), \" REF MyBookmark \\\\w\");\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n\n // Display the list level numbers between this REF field, and the bookmark that it is referencing.\n field = insertFieldRef(builder, \"MyBookmark\", \"The bookmark's relative paragraph number is \", \"\\n\");\n field.setInsertParagraphNumberInRelativeContext(true);\n\n Assert.assertEquals(field.getFieldCode(), \" REF MyBookmark \\\\r\");\n\n // At the end of the document, the bookmark will show up as a list item here.\n builder.writeln(\"List level above bookmark\");\n builder.getListFormat().setListLevelNumber(builder.getListFormat().getListLevelNumber() + 1)/*Property++*/;\n builder.getListFormat().getListLevel().setNumberFormat(\">>> \\u0002\");\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.REF.docx\");\n testFieldRef(new Document(getArtifactsDir() + \"Field.REF.docx\")); //ExSkip\n }", "private void conmuteFields() {\r\n\t\ttxPassword.setEditable(!txPassword.isEditable());\r\n\t\ttxUsuario.setEditable(!txUsuario.isEditable());\r\n\t\tcheckAdmin.setDisable(!checkAdmin.isDisable());\r\n\t\tcheckTPV.setDisable(!checkTPV.isDisable());\r\n\t}", "@Override\r\n public void afterTextChanged(Editable editable) {\n checkFieldsForEmptyValues();\r\n }", "@Override\n \t\t\t\tpublic void modifyText(ModifyEvent e) {\n \t\t\t\t\tString result = fp.getValidator().validate(text.getText());\n \t\t\t\t\tif (result == null)\n \t\t\t\t\t\tdecorator.hide();\n \t\t\t\t\telse {\n \t\t\t\t\t\tdecorator.setDescriptionText(result);\n \t\t\t\t\t\tdecorator.show();\n \t\t\t\t\t}\n \t\t\t\t\tupdateState();\n \t\t\t\t}", "@Test\n public void testInsuredPayerInsuredDobText() {\n new InsuredPayerFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissInsuredPayer.Builder::setInsuredDobText,\n RdaFissPayer::getInsuredDobText,\n RdaFissPayer.Fields.insuredDobText,\n 9);\n }", "@Override\n public void afterTextChanged(Editable editable) {\n checkFieldsForEmptyValues();\n }", "public void setShortExplanation(String _shortExplantion)\r\n\t{\r\n\t\tthis._shortExplanation=_shortExplanation;\r\n\t}", "public String getRemark() {\r\n return remark;\r\n }", "@Override\n\tpublic boolean isDraft();", "public boolean getClearsTestNotes()\n {\n return true;\n }", "public StringFieldEditor makeNewModifiedMarkField(\n PreferencePage page, PreferencesTab tab, IPreferencesService service,\n String level, String key, String text,\n Composite parent\n// boolean isEnabled, boolean isEditable,\n// boolean hasSpecialValue, String specialValue,\n// boolean emptyValueAllowed, String emptyValue,\n// boolean isRemovable\n )\n {\n Composite fieldHolder = new Composite(parent, SWT.NONE);\n fieldHolder.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\n//\t boolean onProjectLevelWithNullProject =\n//\t \tlevel != null && level.equals(IPreferencesService.PROJECT_LEVEL) && service.getProject() == null;\n//\t boolean notOnARealLevel = level == null;\n//\t boolean onAFunctioningLevel = !onProjectLevelWithNullProject && !notOnARealLevel;\n\n StringFieldEditor field = new StringFieldEditor(page, tab, service, level, key + \"Marker\", \"\", 1, fieldHolder);\n\n//\t\tif (!onProjectLevelWithNullProject) {\n//\t\t\tsetField(field, fieldHolder);\n//\t\t\taddStringPropertyChangeListeners(service, level, field, key, fieldHolder);\n//\t\t} else {\n//\t\t\t//setField(field, fieldHolder);\n//\t\t\t//addStringPropertyChangeListeners(service, level, field, key, fieldHolder);\n//\t\t}\n\n//\t\t//field.getTextControl().setEnabled(isEnabled);\n//\t\tif (onProjectLevelWithNullProject || notOnARealLevel) {\n//\t\t\t//System.out.println(\"SPU.makeNewStringField(..): disabling all\");\n//\t\t\tfield.getTextControl().setEnabled(false);\n//\t\t\tfield.getTextControl().setEditable(false);\n//\t\t\tfield.setEnabled(false, field.getParent());\n//\t\t} else if (onAFunctioningLevel) {\n//\t\t\t//System.out.println(\"SPU.makeNewStringField(..): setting all to \" + isEnabled);\n//\t\t\tfield.getTextControl().setEnabled(isEnabled);\n//\t\t\tfield.getTextControl().setEditable(isEditable);\n//\t\t\tfield.setEnabled(isEnabled, field.getParent());\n//\t\t}\n//\n//\t\tif (hasSpecialValue)\n//\t\t\tfield.setSpecialValue(specialValue);\n//\t\telse\n//\t\t\tfield.setNoSpecialValue();\n//\t\tfield.setEmptyValueAllowed(emptyValueAllowed);\n\n//\t\tif (level == null) field.setRemovable(false);\t// can never remove from a field that doesn't have a stored value\n//\t\telse if (level.equals(IPreferencesService.DEFAULT_LEVEL)) field.setRemovable(false);\t// can never remove from Default level\n//\t\telse field.setRemovable(isRemovable);\n\n //System.err.println(\"SPU.makeNewStringField() ending for key = \" + key);\n return field;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "@Override\n\tprotected boolean isUserWishToKeepChanges() {\n\t\tString newValue = convertPairsToText().replace(\" \", \"\");\n\t\tString oldValue = result.get().replace(\" \", \"\");\n\t\t\n\t\tif(oldValue.equals(newValue))\n\t\t\treturn false;\n\t\t\n\t\treturn not(showConfirmActionDialog());\n\t}", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "@SkipValidation\n public String makeChangesToShowMessage() {\n important = impService.getImportantNews(important.getImportantNewsId());\n if (important.isShowMessage() == false) {\n important.setShowMessage(true);\n impService.updateImportantNews(important);\n }\n return SUCCESS;\n }", "private void saveCurrentAcknowledgment() {\n\t\tacknowledgment.setANumber(aNumberField.getText());\n\t\tacknowledgment.setDate(DateUtil.formatToString(dateField.getValue()));\n\t\tacknowledgment.setNotify(notifyField.getText());\n\t\tacknowledgment.setTag(tagField.getText());\n\t\tacknowledgment.setDateOrderReceived(DateUtil.formatToString(dateOrderReceivedField.getValue()));\n\t\tacknowledgment.setCustomerOrderNumber(customerOrderNumberField.getText());\n\t\tacknowledgment.setApproxShipDate(DateUtil.formatToString(approxShipDateField.getValue()));\n\t\tacknowledgment.setShippingCost(shippingCostField.getText());\n\t\tacknowledgment.setFob(fobField.getText());\n\t\tacknowledgment.setShipVia(shipViaField.getText());\n\t\tacknowledgment.setDocuments(documentsField.getText());\n\t\tacknowledgment.setPrice(priceField.getText());\n\t\tacknowledgment.setUsername(main.getPreferenceList().get(0).getUsername());\n\t}", "@Test\n public void nao_deve_aceitar_descricao_nula() {\n telefone.setDescricao(null);\n assertFalse(isValid(telefone, \"A descrição não pode ser nula ou vazia.\", Find.class));\n }", "String getConfirmed();", "private void setupOptionalFields() {\n // Optional fields <-> labels\n Map<AutoCompleteTextView, TextView> map = new HashMap<>();\n map.put(mBind.backgroundEdit, mBind.backgroundLabel);\n map.put(mBind.maxWidthEdit, mBind.maxWidthLabel);\n map.put(mBind.maxHeightEdit, mBind.maxHeightLabel);\n\n for (Map.Entry<AutoCompleteTextView, TextView> e : map.entrySet()) {\n // On every keystroke, check if field is empty, and if yes, strike through its label\n e.getKey().addTextChangedListener(new MyTextWatcher() {\n @Override\n public void afterTextChanged(Editable s) {\n int mode = e.getValue().getPaintFlags();\n if (e.getKey().getText().toString().equals(\"\"))\n mode = Util.setFlag(mode, Paint.STRIKE_THRU_TEXT_FLAG);\n else\n mode = Util.unsetFlag(mode, Paint.STRIKE_THRU_TEXT_FLAG);\n e.getValue().setPaintFlags(mode);\n }\n });\n }\n }", "public String getRemark() {\n return this.Remark;\n }", "private void step3() {\n\t\tthis.demonstrationStep++;\n\t\tthis.editableFields = (this.getView().getUserInput().length - 2);\n\t\tthis.getView().getForwardingViewContainer().remove(this.getView().getProceed());\n\t\tthis.getView().setProceed(null);\n\t\tthis.getView().getUserInput()[1].setBorder(null);\n\t\tthis.getView().getUserOutput()[1].setBorder(null);\n\t\tfor (int i = 2; i < this.getView().getUserInput().length; i++) {\n\t\t\tthis.getView().getUserOutput()[i].setEditable(true);\n\t\t}\n\t\tthis.getView()\n\t\t\t\t.getExplanations()\n\t\t\t\t.setText(\n\t\t\t\t\t\tthis.wrapHtml(CryptoDemonstrationController.i18n\n\t\t\t\t\t\t\t\t.tr(\"Oh mighty Caesar. No one will ever be able to destroy you! Because of that fact lets end\"\n\t\t\t\t\t\t\t\t\t\t+ \" this childish games and finish the rest of the fields fast. Then we can send the courier again\"\n\t\t\t\t\t\t\t\t\t\t+ \" but this time your enemies will have no idea who wrote it and you will conquer the world.\")));\n\t\tthis.getView().getUserOutput()[2].requestFocus();\n\t\tthis.getView().validate();\n\n\t}", "@Test//ExSkip\n public void fieldNoteRef() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create a bookmark with a footnote that the NOTEREF field will reference.\n insertBookmarkWithFootnote(builder, \"MyBookmark1\", \"Contents of MyBookmark1\", \"Footnote from MyBookmark1\");\n\n // This NOTEREF field will display the number of the footnote inside the referenced bookmark.\n // Setting the InsertHyperlink property lets us jump to the bookmark by Ctrl + clicking the field in Microsoft Word.\n Assert.assertEquals(\" NOTEREF MyBookmark2 \\\\h\",\n insertFieldNoteRef(builder, \"MyBookmark2\", true, false, false, \"Hyperlink to Bookmark2, with footnote number \").getFieldCode());\n\n // When using the \\p flag, after the footnote number, the field also displays the bookmark's position relative to the field.\n // Bookmark1 is above this field and contains footnote number 1, so the result will be \"1 above\" on update.\n Assert.assertEquals(\" NOTEREF MyBookmark1 \\\\h \\\\p\",\n insertFieldNoteRef(builder, \"MyBookmark1\", true, true, false, \"Bookmark1, with footnote number \").getFieldCode());\n\n // Bookmark2 is below this field and contains footnote number 2, so the field will display \"2 below\".\n // The \\f flag makes the number 2 appear in the same format as the footnote number label in the actual text.\n Assert.assertEquals(\" NOTEREF MyBookmark2 \\\\h \\\\p \\\\f\",\n insertFieldNoteRef(builder, \"MyBookmark2\", true, true, true, \"Bookmark2, with footnote number \").getFieldCode());\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n insertBookmarkWithFootnote(builder, \"MyBookmark2\", \"Contents of MyBookmark2\", \"Footnote from MyBookmark2\");\n\n doc.updatePageLayout();\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.NOTEREF.docx\");\n testNoteRef(new Document(getArtifactsDir() + \"Field.NOTEREF.docx\")); //ExSkip\n }", "private void exibirSenha() {\n if (exibeSenha) {\n txtSenha.setTransformationMethod(PasswordTransformationMethod.getInstance());\n exibeSenha = false;\n } else {\n txtSenha.setTransformationMethod(HideReturnsTransformationMethod.getInstance());\n exibeSenha = true;\n }\n }", "String propose() {\r\n Person person = preferences[pointer];\r\n partner = determinePartner(person);\r\n String result;\r\n if (partner == null) {\r\n result = person.name + \" rejects. \";\r\n } else if (ex == null || ex.isEmpty()) {\r\n result = person.name + \" accepts. \";\r\n } else {\r\n result = person.name + \" dumps \" + ex + \", gets engaged to \" + name + \".\";\r\n }\r\n pointer++;\r\n ex = \"\";\r\n return name + \" proposes to \" + person.name + \". \" + result;\r\n }", "public void note(ValidationType type, String validationName, String content);", "public void setConfirmed(boolean confirmed) {\n this.confirmed = confirmed;\n }", "public boolean hasPlainApprove() {\n return dataCase_ == 4;\n }", "public String getRemarks() { return remarks; }", "public String getMoneyRemark() {\n return moneyRemark;\n }", "@Test\n public void noteRef() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n builder.write(\"CrossReference: \");\n\n FieldNoteRef field = (FieldNoteRef)builder.insertField(FieldType.FIELD_NOTE_REF, false); // <--- don't update field\n field.setBookmarkName(\"CrossRefBookmark\");\n field.setInsertHyperlink(true);\n field.setInsertReferenceMark(true);\n field.setInsertRelativePosition(false);\n builder.writeln();\n\n builder.startBookmark(\"CrossRefBookmark\");\n builder.write(\"Hello world!\");\n builder.insertFootnote(FootnoteType.FOOTNOTE, \"Cross referenced footnote.\");\n builder.endBookmark(\"CrossRefBookmark\");\n builder.writeln();\n\n doc.updateFields();\n\n // This field works only in older versions of Microsoft Word.\n doc.save(getArtifactsDir() + \"Field.NOTEREF.doc\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.NOTEREF.doc\");\n field = (FieldNoteRef)doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_NOTE_REF, \" NOTEREF CrossRefBookmark \\\\h \\\\f\", \"1\", field);\n TestUtil.verifyFootnote(FootnoteType.FOOTNOTE, true, null, \"Cross referenced footnote.\",\n (Footnote)doc.getChild(NodeType.FOOTNOTE, 0, true));\n }", "boolean hasNotes();", "public void getNewWord(JTextField textField, JTextField clue) {\n\t\ttextField.setText(\"\");\n\t\tclue.setText(\"\");\n\t for(Letter l : letters) l.setStatus(false);\n\t letters.clear();\n\t setWord();\n\t for(int i = 0; i < guessedLetter.length; i++)\n\t \tguessedLetter[i] = false;\n\t}", "@Override\n\tprotected boolean verifyFields() {\n\t\treturn false;\n\t}", "@NotNull\n String getDescription();", "public Builder clearExplanations() {\n if (explanationsBuilder_ == null) {\n explanations_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000020);\n onChanged();\n } else {\n explanationsBuilder_.clear();\n }\n return this;\n }", "boolean hasPlainApprove();", "public Builder clearCorrect() {\n bitField0_ = (bitField0_ & ~0x00000001);\n correct_ = false;\n onChanged();\n return this;\n }", "public boolean hasPlainApprove() {\n return dataCase_ == 4;\n }", "public String getShortExplanation()\r\n\t{\r\n\t\treturn this._shortExplanation;\r\n\t}", "public void setDescripcion(String p) { this.descripcion = p; }", "String getConfirmationMessage();", "String getFormFieldDescription();", "public boolean hasPlainRedeem() {\n return dataCase_ == 3;\n }" ]
[ "0.5337342", "0.51845425", "0.51777864", "0.5124804", "0.5102222", "0.50415355", "0.50310874", "0.5029375", "0.50285894", "0.4985992", "0.49663505", "0.4963524", "0.4960254", "0.4959721", "0.4956323", "0.4943903", "0.49356443", "0.49270916", "0.49224055", "0.49187705", "0.4911745", "0.48914546", "0.48753756", "0.4857625", "0.48245353", "0.48162007", "0.4785937", "0.47856867", "0.47815907", "0.47788218", "0.47654486", "0.47578993", "0.47394022", "0.47270668", "0.47111535", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.4705301", "0.47051787", "0.47051328", "0.47051328", "0.47051328", "0.47051328", "0.47017777", "0.46954525", "0.4691703", "0.46870843", "0.4680503", "0.46777332", "0.46716356", "0.46654677", "0.46634814", "0.46586233", "0.46579853", "0.4654268", "0.4644485", "0.46427572", "0.46420494", "0.4632091", "0.46303418", "0.4630264", "0.46281594", "0.46276405", "0.4624288", "0.4621219", "0.46197358", "0.46096843", "0.46083945", "0.46039158", "0.45991933", "0.45984265", "0.4595609" ]
0.5439164
0
Set Object Reference for EventDay and Itinerary
public static void Ref_EventDay_Itinerary(IDMap map, ArrayList<EventDay> EDlist, ArrayList<Itinerary> PLlist) { while (map.hasNext()) { Pair mapping = map.NextPair(); if (mapping.notNull()) { EDlist.get(mapping.First()).setItinerary(PLlist.get(mapping.Second())); } } map.Reset(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OrgDay(OrgDay another) {\n this.events = new LinkedList<>();\n for (OrgEvent event : another.events) {\n this.events.add(new OrgEvent(event));\n }\n }", "public OrgDay() {\n events = new LinkedList<>();\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(int day)\n {\n this.day = day;\n }", "public void setDay(Date day) {\n this.day = day;\n }", "public void assignEventDates(EventDates val) {\n eventDates = val;\n }", "public void setDay(int day) {\r\n this.day = day;\r\n }", "public TypicalDay() {\n\t\tnbDeliveries = 0;\n\t\twareHouse = -1;\n\t}", "abstract public void setServiceAppointment(Date serviceAppointment);", "public void xsetDay(org.apache.xmlbeans.XmlString day)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DAY$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DAY$0);\n }\n target.set(day);\n }\n }", "private void setCurrentDay() {\n Calendar c = Calendar.getInstance();\n\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n }", "public void setDay(Day day, int dayNum) {\n\t\tif (dayNum <= days.length) {\n\t\t\tdays[dayNum - 1] = day;\n\t\t}\n\t}", "public void setDate(int day,int month,int year){\n this.day=day;\n this.month=month;\n this.year=year;\n }", "public void setDay(int day) {\n\t\tthis.day = day;\n\t}", "public void setDay(int day) {\n\t\tthis.day = day;\n\t}", "@JsonSetter(\"joiningDay\")\n public void setJoiningDay (Days value) { \n this.joiningDay = value;\n notifyObservers(this.joiningDay);\n }", "public void setHolidayEnumerator(HolidayEnumerator he) {\n _holidayEnumerator = he;\n }", "public interface CalendarEventDO {\n long getCalendarId();\n\n String getEventTitle();\n\n boolean isAllDay();\n\n long getStartDT();\n\n long getEndDT();\n\n String getRrule();\n\n String getRdate();\n\n String getExrule();\n\n String getExdate();\n\n long getEventID();\n}", "public static void Ref_EventDay_Event(IDMap map, ArrayList<EventDay> EDlist, ArrayList<Event> Elist) {\n while (map.hasNext()) {\n Pair mapping = map.NextPair();\n if (mapping.notNull()) {\n EDlist.get(mapping.First()).setEvent(Elist.get(mapping.Second()));\n }\n }\n map.Reset();\n }", "public void setMeetingCal(final BwCalendar val) {\n meetingCal = val;\n }", "public void setDay(java.lang.String day)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DAY$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DAY$0);\n }\n target.setStringValue(day);\n }\n }", "public void setupCalendar() { \n\t\tcal = whenIsIt();\n\t\tLocale here = Locale.US;\n\t\tthisMonth = cal.getDisplayName(2, Calendar.LONG_STANDALONE, here);\n\t\tdate = cal.get(5); //lesson learned: if it's a number do this\n\t\t//ADD CODE FOR ORDINALS HERE\n\t\tyear = cal.get(1);\n\t\tthisHour = cal.get(10);\n\t\tthisMinute = cal.get(12);\n\t\tthisSecond = cal.get(13);\n\t\tamPm = cal.getDisplayName(9, Calendar.SHORT, here);\n\t\tthisDay = thisMonth +\" \"+ addOrdinal(date) + \", \" + year;\n\t\tcurrentTime = fix.format(thisHour) + \":\" + fix.format(thisMinute) + \":\" + fix.format(thisSecond) + \" \" + amPm;\n\t}", "private void initEvents(){\n ArrayList<Event> en = new ArrayList();\n en.add(new Event_MessangerOfGods(this.village));\n en.add(new Event_PaganPriest(this.village));\n this.events = en;\n }", "public void setDay(final int day) {\n\t\tthis.day = day;\n\t}", "public void setWorkDay(Date workDay) {\n\t\tthis.workDay = workDay;\n\t}", "public void setDayStart(Integer dayStart) {\n this.dayStart = dayStart;\n }", "public void setDay(Calendar cal) {\n this.cal = (Calendar) cal.clone();\n }", "public void setDay(java.lang.String param) {\r\n localDayTracker = param != null;\r\n\r\n this.localDay = param;\r\n }", "public void setDay(java.lang.String param) {\r\n localDayTracker = param != null;\r\n\r\n this.localDay = param;\r\n }", "void setTripDates(Calendar departureDate, Calendar arrivalDate);", "public static void setDate(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.util.Calendar value) {\r\n\t\tBase.set(model, instanceResource, DATE, value);\r\n\t}", "public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }", "public void setCalDay() {\n\t\tfloat goal_bmr;\n\t\tif(gender==\"male\") {\n\t\t\tgoal_bmr= (float) (10 * (weight+loseGainPerWeek) + 6.25 * height - 5 * age + 5);\n\t\t}\n\t\telse {\n\t\t\tgoal_bmr=(float) (10 * (weight+loseGainPerWeek) + 6.25 * height - 5 * age - 161);\n\t\t}\n\t\tswitch (gymFrequency) {\n\t\tcase 0:calDay = goal_bmr*1.2;\n\t\t\t\tbreak;\n\t\tcase 1:\n\t\tcase 2:\n\t\tcase 3:calDay = goal_bmr*1.375;\n\t\t\t\tbreak;\n\t\tcase 4:\n\t\tcase 5:calDay = goal_bmr*1.55;\n\t\t\n\t\t\t\tbreak;\n\t\tcase 6:\n\t\tcase 7:calDay = goal_bmr*1.725;\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void setDayClass(String dayClass) {\r\n this.dayClass = dayClass;\r\n }", "public void seteBirthday(Date eBirthday) {\n this.eBirthday = eBirthday;\n }", "public T caseEventDefinition(EventDefinition object) {\r\n\t\treturn null;\r\n\t}", "Employee setBirthdate(Date birthdate);", "public void setReadingDay(GregorianCalendar readingDay) throws NullPointerException{\n\t\tif(readingDay == null) throw new NullPointerException(\"Null date invalid for reading point\");\n\t\tthis.readingDay = (GregorianCalendar)readingDay.clone();\n\t\tfireDateChanged();\n\t}", "@Test\n public void testSetEndDate() {\n System.out.println(\"setEndDate\");\n Calendar newEnd = new GregorianCalendar(2000, 01, 01);\n String endDate = newEnd.toString();\n DTO_Ride instance = dtoRide;\n instance.setEndDate(endDate);\n \n String result = endDate.toString();\n assertEquals(newEnd, newEnd);\n }", "public Entry(Calendar date){\n this.date = date; \n }", "public void setTodayCalendar()\n {\n this.currentCalendar = Calendar.getInstance();\n }", "void setPassedHabitEvent(HabitEvent passedHabitEvent);", "public Entry(int day) {\n\t\tthis.day = day;\n\t}", "public void setDayId(String dayId) {\r\n this.dayId = dayId;\r\n }", "public Office() {\n\n\t\tthis.departaments = new HashMap<>();\n\t\tthis.documents = new ArrayList<>();\n\t\tthis.employees = 0;\n\t}", "@Override\n public void setMeeting(Meeting meeting) {\n }", "public MyCalendarModel() {\n\t\tcalendarToEvent = new TreeMap<Calendar, TreeSet<Event>>();\n\t}", "public void setEvent(@NonNull EventModel event) {\n mEvent = event;\n mSwitchAllDay.setChecked(event.isAllDay());\n setCalendarId(mEvent.getCalendarId());\n setDate(true);\n setDate(false);\n setTime(true);\n setTime(false);\n }", "public void setupAppointments() {\n\n\t\t// // remember for animation\n\t\t// final List<AbstractClusteredDayAppointmentPane>\n\t\t// lOldClusteredDayAppointmentPanes = new\n\t\t// ArrayList<AbstractClusteredDayAppointmentPane>(\n\t\t// clusteredAppointmentPanes);\n\t\t// final List<WholedayAppointmentPane> lOldWholedayAppointmentPanes =\n\t\t// new ArrayList<WholedayAppointmentPane>(\n\t\t// wholedayAppointmentPanes);\n\t\t//\n\t\t// // clear\n\t\t// clusteredAppointmentPanes.clear();\n\t\t// wholedayAppointmentPanes.clear();\n\t\t// if (calendarObjectProperty.get() == null) {\n\t\t// return;\n\t\t// }\n\t\t//\n\t\t// // scan all appointments and filter the ones for this day\n\t\t// for (Agenda.Appointment lAppointment : getSkinnable().appointments())\n\t\t// {\n\t\t//\n\t\t// // different panes depending on the appointment time\n\t\t// if (lAppointment.isWholeDay()) {\n\t\t//\n\t\t// // if appointment falls on the same date as this day pane\n\t\t// if (isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointment.getStartTime())) {\n\t\t// WholedayAppointmentPane lAppointmentPane = new\n\t\t// WholedayAppointmentPane(\n\t\t// lAppointment, this);\n\t\t// wholedayAppointmentPanes.add(lAppointmentPane);\n\t\t// lAppointmentPane.setId(lAppointmentPane.getClass()\n\t\t// .getSimpleName() + wholedayAppointmentPanes.size());\n\t\t// }\n\t\t// } else if (lAppointment.getEndTime() == null) {\n\t\t//\n\t\t// // an not-wholeday appointment without an enddate is a task\n\t\t// if (isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointment.getStartTime())) {\n\t\t// TaskAppointmentPane lAppointmentPane = new TaskAppointmentPane(\n\t\t// lAppointment, this);\n\t\t// clusteredAppointmentPanes.add(lAppointmentPane);\n\t\t// lAppointmentPane\n\t\t// .setId(lAppointmentPane.getClass().getSimpleName()\n\t\t// + clusteredAppointmentPanes.size());\n\t\t// }\n\t\t// } else {\n\t\t// // appointments may span multiple days, but the appointment pane\n\t\t// // will clamp the start and end date\n\t\t// RegularAppointmentPane lAppointmentPane = new RegularAppointmentPane(\n\t\t// lAppointment, this);\n\t\t//\n\t\t// // check if the appointment falls in the same day as this day\n\t\t// // pane\n\t\t// if (isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointmentPane.start)\n\t\t// && isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointmentPane.end)) {\n\t\t// clusteredAppointmentPanes.add(lAppointmentPane);\n\t\t// lAppointmentPane\n\t\t// .setId(lAppointmentPane.getClass().getSimpleName()\n\t\t// + clusteredAppointmentPanes.size());\n\t\t// }\n\t\t// }\n\t\t// }\n\t\t//\n\t\t// // sort on start time and then decreasing duration\n\t\t// Collections.sort(clusteredAppointmentPanes,\n\t\t// new Comparator<AbstractDayAppointmentPane>() {\n\t\t// @Override\n\t\t// public int compare(AbstractDayAppointmentPane o1,\n\t\t// AbstractDayAppointmentPane o2) {\n\t\t// if (o1.startAsString.equals(o2.startAsString) == false) {\n\t\t// return o1.startAsString.compareTo(o2.startAsString);\n\t\t// }\n\t\t// return o1.durationInMS > o2.durationInMS ? -1 : 1;\n\t\t// }\n\t\t// });\n\t\t//\n\t\t// // start placing appointments in the tracks\n\t\t// AbstractClusteredDayAppointmentPane lClusterOwner = null;\n\t\t// for (AbstractClusteredDayAppointmentPane lAppointmentPane :\n\t\t// clusteredAppointmentPanes) {\n\t\t// // if there is no cluster owner\n\t\t// if (lClusterOwner == null) {\n\t\t//\n\t\t// // than the current becomes an owner\n\t\t// // only create a minimal cluster, because it will be setup fully\n\t\t// // in the code below\n\t\t// lClusterOwner = lAppointmentPane;\n\t\t// lClusterOwner.clusterTracks = new\n\t\t// ArrayList<List<AbstractClusteredDayAppointmentPane>>();\n\t\t// }\n\t\t//\n\t\t// // in which track should it be added\n\t\t// int lTrackNr = determineTrackWhereAppointmentCanBeAdded(\n\t\t// lClusterOwner.clusterTracks, lAppointmentPane);\n\t\t// // if it can be added to track 0, then we have a \"situation\". Track\n\t\t// // 0 could mean\n\t\t// // - we must start a new cluster\n\t\t// // - the appointment is still linked to the running cluster by means\n\t\t// // of a linking appointment in the higher tracks\n\t\t// if (lTrackNr == 0) {\n\t\t//\n\t\t// // So let's see if there is a linking appointment higher up\n\t\t// boolean lOverlaps = false;\n\t\t// for (int i = 1; i < lClusterOwner.clusterTracks.size()\n\t\t// && lOverlaps == false; i++) {\n\t\t// lOverlaps =\n\t\t// checkIfTheAppointmentOverlapsAnAppointmentAlreadyInThisTrack(\n\t\t// lClusterOwner.clusterTracks, i, lAppointmentPane);\n\t\t// }\n\t\t//\n\t\t// // if it does not overlap, we start a new cluster\n\t\t// if (lOverlaps == false) {\n\t\t// lClusterOwner = lAppointmentPane;\n\t\t// lClusterOwner.clusterMembers = new\n\t\t// ArrayList<AbstractClusteredDayAppointmentPane>();\n\t\t// lClusterOwner.clusterTracks = new\n\t\t// ArrayList<List<AbstractClusteredDayAppointmentPane>>();\n\t\t// lClusterOwner.clusterTracks\n\t\t// .add(new ArrayList<AbstractClusteredDayAppointmentPane>());\n\t\t// }\n\t\t// }\n\t\t//\n\t\t// // add it to the track (and setup all other cluster data)\n\t\t// lClusterOwner.clusterMembers.add(lAppointmentPane);\n\t\t// lClusterOwner.clusterTracks.get(lTrackNr).add(lAppointmentPane);\n\t\t// lAppointmentPane.clusterOwner = lClusterOwner;\n\t\t// lAppointmentPane.clusterTrackIdx = lTrackNr;\n\t\t// // for debug System.out.println(\"----\"); for (int i = 0; i <\n\t\t// // lClusterOwner.clusterTracks.size(); i++) { System.out.println(i +\n\t\t// // \": \" + lClusterOwner.clusterTracks.get(i) ); }\n\t\t// // System.out.println(\"----\");\n\t\t// }\n\t\t//\n\t\t// // laying out the appointments is fairly complex, so we use listeners\n\t\t// // and a relayout method instead of binding\n\t\t// relayout();\n\t\t//\n\t\t// // and swap the appointments; old ones out, new ones in\n\t\t// // TODO: animation? we could move the old appointments to the\n\t\t// equivalent\n\t\t// // positions on the drag pane, then animate them to their new\n\t\t// positions,\n\t\t// // remove the old, and insert the new ones.\n\t\t// // however, this needs to be cross-days, so it cannot be done here\n\t\t// (this\n\t\t// // is only one day), but after the complete setupAppointments()\n\t\t// getChildren().removeAll(lOldClusteredDayAppointmentPanes);\n\t\t// getChildren().removeAll(lOldWholedayAppointmentPanes);\n\t\t// getChildren().addAll(wholedayAppointmentPanes);\n\t\t// getChildren().addAll(clusteredAppointmentPanes);\n\t\t//\n\t\t// // we're done, now have the header updated\n\t\t// dayHeaderPane.setupAppointments();\n\t}", "public T caseEventDefinition(EventDefinition object) {\n\t\treturn null;\n\t}", "protected void sequence_DAYS(ISerializationContext context, DayValue semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public EmployeeArrivalEvent(int arrival, Employee employee) {\n super(arrival, employee);\n }", "void setNextrun(java.util.Calendar nextrun);", "public AssignDateCommand(Index index, EventDayTime eventDayTime) {\n requireNonNull(index);\n this.index = index;\n this.startOrTargetEventDate = Optional.empty();\n this.endEventDate = Optional.empty();\n this.eventDayTime = eventDayTime;\n }", "public void setDay(int year, int month, int day)\n\t{\n\t\t m_calendar.set(year,month-1,day);\n\n\t}", "public Schedule (Employee employee, Date startDate, Date endDate) {\n this.employee = employee;\n this.startDate = startDate;\n this.endDate = endDate;\n }", "public void setStart( Calendar start );", "public void setEDays(int days){\n \teDays = days;\n }", "public void setBirthday(Date birthday);", "public void setDay(byte value) {\n this.day = value;\n }", "public DateIn(int day, int month, int year){\n\tthis.day = day;\n\tthis.month = month;\n\tthis.year = year;\n\t}", "public void setStartDayEnd(Integer startDayEnd) {\n this.startDayEnd = startDayEnd;\n }", "public void setDay(final short day) {\r\n\t\tthis.day = day;\r\n\t}", "public void setDay(int day) {\r\n if ((day >= 1) && (day <= 31)) {\r\n this.day = day; //Validate day if true set else throws an exception\r\n } else {\r\n throw new IllegalArgumentException(\"Invalid Day!\");\r\n }\r\n\r\n }", "public void assignEObject(EObject eobj) {\n\t\tthis.assignedEObject = eobj;\n\t}", "@Override\n\tprotected void addItineraryToCalendar() {\n\t\tstartActivity(generateHotelCalendarIntent(false));\n\t\tstartActivity(generateHotelCalendarIntent(true));\n\n\t\tOmnitureTracking.trackHotelConfirmationAddToCalendar();\n\t}", "void setEvent(com.walgreens.rxit.ch.cda.EIVLEvent event);", "public Day()\n\t{\n\t\tthis(TimeZone.getDefault(), new Date());\n\t}", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public Forecastday() {\n }", "public void setEmpleado(Empleado empleado)\r\n/* 188: */ {\r\n/* 189:347 */ this.empleado = empleado;\r\n/* 190: */ }", "public T caseEntryEvent(EntryEvent object) {\r\n\t\treturn null;\r\n\t}", "@Override\n\tprotected void setDate() {\n\n\t}", "public void setDay(int day) {\n if(day < 1 || day > 31) {\n this.day = 1;\n } else {\n this.day = day;\n }\n\n if(month == 2 && this.day > 29) {\n this.day = 29;\n } else if((month==4 || month==6 || month==8 || month==11) && this.day > 30) {\n this.day = 30;\n }\n }", "public Calendar() {\n dateAndTimeables = new HashMap<>();\n }", "@Override\n\tpublic void initializeScehduleWithOneEvent() {\n\t\tdouble time = getTimeOfNextBirth();\n\t\tEvent birthEvent = new Event(time, EventType.BIRTH, this);\n\t\tbirthEvent.setTag(true);\n\t\tschedule.add(birthEvent);\t\n\t}", "public AddOrEditCalendarEvent(LocalDate date, TermCalendarController controller) {\n\t\tthis.date = date;\n\t\tthis.controller = controller;\n\t\tdisplay();\n\t}", "public StoredDay(LocalDate date) {\n this.date = date;\n this.recipes = new StoredRecipe[0];\n }", "public void setDate(Calendar date)\n {\n this.date = date;\n }", "public void setCalendarDay(int day)\n {\n this.currentCalendar.set(Calendar.DAY_OF_MONTH, day);\n }", "public static process.proxies.UU95_CalendarSetting initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject)\r\n\t{\r\n\t\treturn new process.proxies.UU95_CalendarSetting(context, mendixObject);\r\n\t}", "public void setDay(int day)\r\n {\n \tif (!(day <= daysInMonth(month) || (day < 1)))\r\n\t\t{\r\n \t\tthrow new IllegalArgumentException(\"Bad day: \" + day);\r\n\t\t}\r\n this.day = day;\r\n }", "private void setDay() {\n Boolean result = false;\n for (int i = 0; i < 7; ++i) {\n if(mAlarmDetails.getRepeatingDay(i))\n result = true;\n mAlarmDetails.setRepeatingDay(i, mAlarmDetails.getRepeatingDay(i));\n }\n if(!result)\n mAlarmDetails.setRepeatingDay((Calendar.getInstance().get(Calendar.DAY_OF_WEEK) - 1), true);\n }", "public MonthDay() {\n setMonth(1);\n setDay(1);\n }", "public static OrgDay merge(OrgDay one, OrgDay other) {\n if (one == null) {\n return other;\n }\n if (other == null) {\n return one;\n }\n OrgDay res = new OrgDay();\n for (OrgEvent event : one.events) {\n res.events.add(event);\n }\n for (OrgEvent event : other.events) {\n res.events.add(event);\n }\n return res;\n }", "public void setFechaSolicitud(java.util.Calendar param){\n \n this.localFechaSolicitud=param;\n \n\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof WeekDays)) {\n return false;\n }\n WeekDays other = (WeekDays) object;\n if ((this.day == null && other.day != null) || (this.day != null && !this.day.equals(other.day))) {\n return false;\n }\n return true;\n }", "public void setDateAppointment(MyDate dateAppointment) {\n\t\tthis.dateAppointment = dateAppointment;\n\t}", "public void setFechaFacturado(java.util.Calendar param){\n \n this.localFechaFacturado=param;\n \n\n }", "public CallTimeDict(CallTimeDict source) {\n if (source.Monday != null) {\n this.Monday = new CallTimeInfo(source.Monday);\n }\n if (source.Tuesday != null) {\n this.Tuesday = new CallTimeInfo(source.Tuesday);\n }\n if (source.Wednesday != null) {\n this.Wednesday = new CallTimeInfo(source.Wednesday);\n }\n if (source.Thursday != null) {\n this.Thursday = new CallTimeInfo(source.Thursday);\n }\n if (source.Friday != null) {\n this.Friday = new CallTimeInfo(source.Friday);\n }\n if (source.Saturday != null) {\n this.Saturday = new CallTimeInfo(source.Saturday);\n }\n if (source.Sunday != null) {\n this.Sunday = new CallTimeInfo(source.Sunday);\n }\n }", "public void setDepartureDay(int jour, LocalTime heure) {\n\t\tthis.departures[jour-1] = heure;\n\t}", "public T caseDayType(DayType object) {\n\t\treturn null;\n\t}", "public void setDay(String day) {\n\n\t\tthis.day = day;\n\t}", "public void setBirthday() { this.birthday = birthday; }" ]
[ "0.6336505", "0.6136189", "0.5801332", "0.5801332", "0.5801332", "0.5801332", "0.5801332", "0.57732826", "0.5770708", "0.57707053", "0.56927174", "0.56173664", "0.5599568", "0.5586023", "0.5528802", "0.55125827", "0.5426053", "0.542361", "0.542361", "0.54108065", "0.5385823", "0.5359902", "0.53516555", "0.53439224", "0.5334221", "0.53272265", "0.5326341", "0.5324222", "0.53178537", "0.52976173", "0.5291362", "0.5269005", "0.5269005", "0.5259625", "0.5243407", "0.5241507", "0.5236647", "0.5227471", "0.52188796", "0.52123016", "0.52064306", "0.52023274", "0.5197124", "0.5181685", "0.51795256", "0.5174882", "0.51694566", "0.51547605", "0.515473", "0.51457036", "0.51433825", "0.51194465", "0.5118899", "0.51165676", "0.511248", "0.51116145", "0.51009566", "0.5090357", "0.5067838", "0.50675297", "0.5066476", "0.5062322", "0.50569", "0.5053616", "0.50519174", "0.50492543", "0.504921", "0.5047924", "0.504376", "0.5039049", "0.5038506", "0.50311524", "0.50261384", "0.50261384", "0.50261384", "0.5024519", "0.50238454", "0.5022745", "0.5021301", "0.5020049", "0.50127554", "0.5008251", "0.50061464", "0.5001299", "0.4997836", "0.49938148", "0.4989065", "0.49876368", "0.4986018", "0.4984653", "0.49819523", "0.49752426", "0.49726367", "0.49710098", "0.4966868", "0.49623123", "0.4955168", "0.49525997", "0.4949985", "0.49488753" ]
0.56880015
11
Set Object Reference for EventDay and Event
public static void Ref_EventDay_Event(IDMap map, ArrayList<EventDay> EDlist, ArrayList<Event> Elist) { while (map.hasNext()) { Pair mapping = map.NextPair(); if (mapping.notNull()) { EDlist.get(mapping.First()).setEvent(Elist.get(mapping.Second())); } } map.Reset(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void assignEventDates(EventDates val) {\n eventDates = val;\n }", "public OrgDay(OrgDay another) {\n this.events = new LinkedList<>();\n for (OrgEvent event : another.events) {\n this.events.add(new OrgEvent(event));\n }\n }", "public OrgDay() {\n events = new LinkedList<>();\n }", "public void setEvent(@NonNull EventModel event) {\n mEvent = event;\n mSwitchAllDay.setChecked(event.isAllDay());\n setCalendarId(mEvent.getCalendarId());\n setDate(true);\n setDate(false);\n setTime(true);\n setTime(false);\n }", "public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }", "private void initEvents(){\n ArrayList<Event> en = new ArrayList();\n en.add(new Event_MessangerOfGods(this.village));\n en.add(new Event_PaganPriest(this.village));\n this.events = en;\n }", "public interface CalendarEventDO {\n long getCalendarId();\n\n String getEventTitle();\n\n boolean isAllDay();\n\n long getStartDT();\n\n long getEndDT();\n\n String getRrule();\n\n String getRdate();\n\n String getExrule();\n\n String getExdate();\n\n long getEventID();\n}", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\n this.day = day;\n }", "public MyCalendarModel() {\n\t\tcalendarToEvent = new TreeMap<Calendar, TreeSet<Event>>();\n\t}", "public T caseEventDefinition(EventDefinition object) {\r\n\t\treturn null;\r\n\t}", "public void setDate(int day,int month,int year){\n this.day=day;\n this.month=month;\n this.year=year;\n }", "public Event() {\n this.name = null;\n this.description = null;\n this.date = new GregorianCalendar();\n }", "public void onDateSelect(DateSelectEvent selectEvent) {\n event = new DefaultScheduleEvent(Math.random() + \"\", selectEvent.getDate(), selectEvent.getDate()); \r\n }", "public T caseEventDefinition(EventDefinition object) {\n\t\treturn null;\n\t}", "public void setDay(int day)\n {\n this.day = day;\n }", "public Event(String eventName, LocalDate eventDate) {\n this.eventName = new SimpleStringProperty(eventName);\n this.eventDate = new SimpleObjectProperty<LocalDate>(eventDate);\n }", "public void xsetDay(org.apache.xmlbeans.XmlString day)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DAY$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DAY$0);\n }\n target.set(day);\n }\n }", "void setEvent(com.walgreens.rxit.ch.cda.EIVLEvent event);", "public void setDay(Calendar cal) {\n this.cal = (Calendar) cal.clone();\n }", "@Override\n\tpublic void setEvent(Event event) {\n\t\tthis.currentEvent = event;\n\t}", "public void setDay(int day) {\r\n this.day = day;\r\n }", "public static void setDate(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.util.Calendar value) {\r\n\t\tBase.set(model, instanceResource, DATE, value);\r\n\t}", "public AssignDateCommand(Index index, EventDayTime eventDayTime) {\n requireNonNull(index);\n this.index = index;\n this.startOrTargetEventDate = Optional.empty();\n this.endEventDate = Optional.empty();\n this.eventDayTime = eventDayTime;\n }", "public interface Event extends Serializable {\n\n Long getEventId();\n\n String getEventTitle();\n\n String getEventDescription();\n\n Long getEventAssignerId();\n\n Date getOriginalEventStartDate();\n\n Date getEventStartDate();\n\n /***\n * Sets the new start date for new generating event.\n *\n * @param startEventDate\n */\n void setEventStartDate(Date startEventDate);\n\n Date getEventEndDate();\n\n /***\n * Sets the new end date for new generating event.\n *\n * @param endEventDate\n */\n void setEventEndDate(Date endEventDate);\n//\n// Date getEventRemindDate();\n//\n// /***\n// * Sets the new remind date for new generating event.\n// *\n// * @param endEventDate\n// */\n// void setEventRemindDate(Date endEventDate);\n\n /***\n * Return calendarId field generated with system calendar after sync it\n *\n * @return\n * @see SyncUtils\n */\n Long getCalendarId();\n\n /***\n * Sets calendarId field generated with system calendar after sync it\n *\n * @param calendarId\n * @see SyncUtils\n */\n void setCalendarId(Long calendarId);\n\n /***\n * @return repeat period for current entity instance\n * @see EventProperties.RepeatPeriod\n */\n @EventProperties.RepeatPeriod\n int getEventRepeatPeriod();\n\n /***\n * @return event icon url\n */\n String getEventIconUrl();\n\n /***\n * @return boolean which indicates is event editable\n */\n Boolean isEditable();\n\n /***\n * @return boolean which indicates is event length All day long\n */\n Boolean isAllDayEvent();\n}", "public abstract void setEvents(Map<String, Event> events);", "void setEventStartDate(Date startEventDate);", "public void setDay(Day day, int dayNum) {\n\t\tif (dayNum <= days.length) {\n\t\t\tdays[dayNum - 1] = day;\n\t\t}\n\t}", "public Entry(Calendar date){\n this.date = date; \n }", "abstract public void setServiceAppointment(Date serviceAppointment);", "public AssignDateCommand(Index index, EventDate targetEventDate, EventDayTime eventDayTime) {\n requireNonNull(index);\n this.index = index;\n this.startOrTargetEventDate = Optional.of(targetEventDate);\n this.endEventDate = Optional.empty();\n this.eventDayTime = eventDayTime;\n }", "public T caseEntryEvent(EntryEvent object) {\r\n\t\treturn null;\r\n\t}", "public EventObject(Object source) {\n\tif (source == null)\n\t throw new IllegalArgumentException(\"null source\");\n\n this.source = source;\n }", "public void createEvent(Event e) {\n\t\tLocalDate date = e.sDate;\n\t\tif(!map.containsKey(date)) {\n\t\t\tArrayList<Event> newList = new ArrayList<>();\n\t\t\tnewList.add(e);\n\t\t\tmap.put(date, newList);\n\t\t}\n\t\telse {\n\t\t\tmap.get(date).add(e);\n\n\t\t}\n\t}", "EventUse createEventUse();", "public static OrgDay merge(OrgDay one, OrgDay other) {\n if (one == null) {\n return other;\n }\n if (other == null) {\n return one;\n }\n OrgDay res = new OrgDay();\n for (OrgEvent event : one.events) {\n res.events.add(event);\n }\n for (OrgEvent event : other.events) {\n res.events.add(event);\n }\n return res;\n }", "public AssignDateCommand(Index index, EventDate startDate, EventDate endDate, EventDayTime eventDayTime) {\n requireNonNull(index);\n this.index = index;\n this.startOrTargetEventDate = Optional.of(startDate);\n this.endEventDate = Optional.of(endDate);\n this.eventDayTime = eventDayTime;\n }", "@JsonSetter(\"joiningDay\")\n public void setJoiningDay (Days value) { \n this.joiningDay = value;\n notifyObservers(this.joiningDay);\n }", "Event createEvent();", "Event createEvent();", "public T caseEvent(Event object) {\r\n\t\treturn null;\r\n\t}", "public void setDate(Calendar date)\n {\n this.date = date;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof WeekDays)) {\n return false;\n }\n WeekDays other = (WeekDays) object;\n if ((this.day == null && other.day != null) || (this.day != null && !this.day.equals(other.day))) {\n return false;\n }\n return true;\n }", "private void initialiseEventAliases() {\n eventAliases.put(\"entity\", EntityEvent.class);\n eventAliases.put(\"entityc\", EntityCombustEvent.class);\n eventAliases.put(\"entitydbb\", EntityDamageByBlockEvent.class);\n eventAliases.put(\"entitydbe\", EntityDamageByEntityEvent.class);\n eventAliases.put(\"entitydbp\", EntityDamageByProjectileEvent.class);\n eventAliases.put(\"entityd\", EntityDamageEvent.class);\n eventAliases.put(\"entitye\", EntityExplodeEvent.class);\n }", "public Event getTheObject(){\n return this;\n }", "public T caseEvent(Event object) {\n\t\treturn null;\n\t}", "private CalendarModel() {\n events = new ArrayList<>();\n }", "public void initEventsAndProperties() {\r\n }", "private void setCurrentDay() {\n Calendar c = Calendar.getInstance();\n\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n }", "private void createEvents() {\n\t}", "public void setEvents(Event[] event) {\n\n setEventID(event[0].getEventID());\n\n //Store keys as EventID for later use to put it all in order\n Map<String, ArrayList<Event>> listMap = new HashMap<>();\n\n for (int i = 0; i < event.length; i++) {\n\n events.put(event[i].getEventID(), event[i]);\n eventTypes.add(event[i].getEventType().toLowerCase());\n\n if(!listMap.containsKey(event[i].getPersonID())) {\n ArrayList<Event> newEventList = new ArrayList<>();\n listMap.put(event[i].getPersonID(), newEventList);\n }\n listMap.get(event[i].getPersonID()).add(event[i]);\n }\n\n // Chronologically order for events\n for (String key : listMap.keySet()) {\n Set birthSet = new HashSet<>(); // birth events come first\n Set deathSet = new HashSet<>(); // death events come last (obviously)\n ArrayList<Event> eventList = new ArrayList<Event>();\n\n // Adding events in chronological order based on events\n for(int i = 0; i < listMap.get(key).size(); i++) {\n Event currEvent = listMap.get(key).get(i);\n\n if(currEvent.getEventType().toLowerCase().equals(\"birth\")) {\n birthSet.add(currEvent);\n } else if (currEvent.getEventType().toLowerCase().equals(\"death\")) {\n deathSet.add(currEvent);\n } else { // get events by year and sort them\n if(eventList.size() > 0) {\n if (currEvent.getYear() < eventList.get(0).getYear()) {\n eventList.add(0, currEvent);\n } else if (currEvent.getYear() >= eventList.get(eventList.size() - 1).getYear()) {\n eventList.add(currEvent);\n } else {\n for (int j = 0; j < eventList.size() - 1; j++) {\n if(eventList.get(j).getYear() <= currEvent.getYear() && eventList.get(j + 1).getYear() > currEvent.getYear()) {\n eventList.add(j + 1, currEvent);\n }\n }\n }\n } else {\n eventList.add(currEvent);\n }\n }\n }\n\n ArrayList<Event> orderedList = new ArrayList<Event>(); // will store ordered list for events\n\n orderedList.addAll(birthSet);\n orderedList.addAll(eventList);\n orderedList.addAll(deathSet);\n\n personEvents.put(key, orderedList);\n }\n }", "public void setEventTime(Date eventTime) {\n this.eventTime = eventTime;\n }", "public void setEventTime(Date eventTime) {\n this.eventTime = eventTime;\n }", "@Override\n\tpublic void eventDate(Date newDate) {\n\t\t\n\t}", "public void setCalendar(Calendar cal) {\n this.cal = cal;\n }", "public void setDay(int day) {\n\t\tthis.day = day;\n\t}", "public void setDay(int day) {\n\t\tthis.day = day;\n\t}", "public interface Event {\n public static final String NAMESPACE = \"http://purl.org/NET/c4dm/event.owl#\";\n\n // classes\n public static final URI\n Event = new URIImpl(NAMESPACE + \"Event\"),\n Factor = new URIImpl(NAMESPACE + \"Factor\"),\n Product = new URIImpl(NAMESPACE + \"Product\");\n\n // properties\n public static final URI\n agent = new URIImpl(NAMESPACE + \"agent\"),\n agent_in = new URIImpl(NAMESPACE + \"agent_in\"),\n factor = new URIImpl(NAMESPACE + \"factor\"),\n factor_of = new URIImpl(NAMESPACE + \"factor_of\"),\n hasAgent = new URIImpl(NAMESPACE + \"hasAgent\"),\n hasFactor = new URIImpl(NAMESPACE + \"hasFactor\"),\n hasLiteralFactor = new URIImpl(NAMESPACE + \"hasLiteralFactor\"),\n hasProduct = new URIImpl(NAMESPACE + \"hasProduct\"),\n hasSubEvent = new URIImpl(NAMESPACE + \"hasSubEvent\"),\n isAgentIn = new URIImpl(NAMESPACE + \"isAgentIn\"),\n isFactorOf = new URIImpl(NAMESPACE + \"isFactorOf\"),\n literal_factor = new URIImpl(NAMESPACE + \"literal_factor\"),\n place = new URIImpl(NAMESPACE + \"place\"),\n producedIn = new URIImpl(NAMESPACE + \"producedIn\"),\n produced_in = new URIImpl(NAMESPACE + \"produced_in\"),\n product = new URIImpl(NAMESPACE + \"product\"),\n sub_event = new URIImpl(NAMESPACE + \"sub_event\"),\n time = new URIImpl(NAMESPACE + \"time\");\n}", "public void setDay(int year, int month, int day)\n\t{\n\t\t m_calendar.set(year,month-1,day);\n\n\t}", "public Calendar() {\n dateAndTimeables = new HashMap<>();\n }", "public void setDate(Calendar date) {\n\tthis.date = date;\n }", "public Value(int year, int month, int day) {\n\n // Construct the Calendar\n _calendar = Calendar.getInstance();\n _calendar.set(year, month - 1, day);\n }", "public ScheduleEvent()\n\t{\n\n\t}", "void setEventEndDate(Date endEventDate);", "public void setDay(java.lang.String day)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DAY$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DAY$0);\n }\n target.setStringValue(day);\n }\n }", "@Test\r\n public void testEvent() {\n Event event = new Event();\r\n }", "public void setDay(byte value) {\n this.day = value;\n }", "private void setEventThread() {\n setEventThread(Thread.currentThread());\n }", "public void setupCalendar() { \n\t\tcal = whenIsIt();\n\t\tLocale here = Locale.US;\n\t\tthisMonth = cal.getDisplayName(2, Calendar.LONG_STANDALONE, here);\n\t\tdate = cal.get(5); //lesson learned: if it's a number do this\n\t\t//ADD CODE FOR ORDINALS HERE\n\t\tyear = cal.get(1);\n\t\tthisHour = cal.get(10);\n\t\tthisMinute = cal.get(12);\n\t\tthisSecond = cal.get(13);\n\t\tamPm = cal.getDisplayName(9, Calendar.SHORT, here);\n\t\tthisDay = thisMonth +\" \"+ addOrdinal(date) + \", \" + year;\n\t\tcurrentTime = fix.format(thisHour) + \":\" + fix.format(thisMinute) + \":\" + fix.format(thisSecond) + \" \" + amPm;\n\t}", "@Override\n\tpublic void initializeScehduleWithOneEvent() {\n\t\tdouble time = getTimeOfNextBirth();\n\t\tEvent birthEvent = new Event(time, EventType.BIRTH, this);\n\t\tbirthEvent.setTag(true);\n\t\tschedule.add(birthEvent);\t\n\t}", "@NoProxy\n public void copyTo(final BwEvent ev) {\n super.copyTo(ev);\n ev.setEntityType(getEntityType());\n ev.setName(getName());\n ev.setClassification(getClassification());\n ev.setDtstart(getDtstart());\n ev.setDtend(getDtend());\n ev.setEndType(getEndType());\n ev.setDuration(getDuration());\n ev.setNoStart(getNoStart());\n\n ev.setLink(getLink());\n ev.setGeo(getGeo());\n ev.setDeleted(getDeleted());\n ev.setStatus(getStatus());\n ev.setCost(getCost());\n\n BwOrganizer org = getOrganizer();\n if (org != null) {\n org = (BwOrganizer)org.clone();\n }\n ev.setOrganizer(org);\n\n ev.setDtstamp(getDtstamp());\n ev.setLastmod(getLastmod());\n ev.setCreated(getCreated());\n ev.setStag(getStag());\n ev.setPriority(getPriority());\n ev.setSequence(getSequence());\n\n ev.setLocation(getLocation());\n\n ev.setUid(getUid());\n ev.setTransparency(getTransparency());\n ev.setPercentComplete(getPercentComplete());\n ev.setCompleted(getCompleted());\n\n ev.setCategories(copyCategories());\n\n ev.setContacts(copyContacts());\n\n ev.setAttendees(cloneAttendees());\n ev.setCtoken(getCtoken());\n\n ev.setRecurrenceId(getRecurrenceId());\n ev.setRecurring(getRecurring());\n if (ev.isRecurringEntity()) {\n ev.setRrules(clone(getRrules()));\n ev.setExrules(clone(getExrules()));\n ev.setRdates(clone(getRdates()));\n ev.setExdates(clone(getExdates()));\n }\n\n ev.setScheduleMethod(getScheduleMethod());\n ev.setOriginator(getOriginator());\n\n /* Don't copy these - we always set them anyway\n if (getNumRecipients() > 0) {\n ev.setRecipients(new TreeSet<String>());\n\n for (String s: getRecipients()) {\n ev.addRecipient(s);\n }\n }*/\n\n if (getNumComments() > 0) {\n ev.setComments(null);\n\n for (final BwString str: getComments()) {\n ev.addComment((BwString)str.clone());\n }\n }\n\n if (getNumSummaries() > 0) {\n ev.setSummaries(null);\n\n for (final BwString str: getSummaries()) {\n ev.addSummary((BwString)str.clone());\n }\n }\n\n if (getNumDescriptions() > 0) {\n ev.setDescriptions(null);\n\n for (final BwLongString str: getDescriptions()) {\n ev.addDescription((BwLongString)str.clone());\n }\n }\n\n if (getNumResources() > 0) {\n ev.setResources(null);\n\n for (final BwString str: getResources()) {\n ev.addResource((BwString)str.clone());\n }\n }\n\n if (getNumXproperties() > 0) {\n ev.setXproperties(null);\n\n for (final BwXproperty x: getXproperties()) {\n ev.addXproperty((BwXproperty)x.clone());\n }\n }\n\n ev.setScheduleState(getScheduleState());\n\n //ev.setRequestStatuses(clone(getRequestStatuses()));\n\n final BwRelatedTo rt = getRelatedTo();\n if (rt != null) {\n ev.setRelatedTo((BwRelatedTo)rt.clone());\n }\n\n /* These are in x-props in 3.10\n ev.setPollMode(getPollMode());\n ev.setPollProperties(getPollProperties());\n ev.setPollAcceptResponse(getPollAcceptResponse());\n\n ev.setPollItemId(getPollItemId());\n if (!Util.isEmpty(getPollItems())) {\n for (final String s: getPollItems()) {\n ev.addPollItem(s);\n }\n }\n */\n\n ev.setPollCandidate(getPollCandidate());\n }", "public Eventd() {\n }", "@Override\n protected void initEventAndData() {\n }", "public void setMeetingCal(final BwCalendar val) {\n meetingCal = val;\n }", "void init(Object theSource, int type, int posn, Object oldObject,\r\n\t\t\tObject newObject, int theNewSize, Object theOtherSource) {\n\t\tif (validType(type)) {\r\n\t\t\teventType = type;\r\n\t\t\toldValue = oldObject;\r\n\t\t\tnewValue = newObject;\r\n\t\t\tposition = posn;\r\n\t\t\tnewSize = theNewSize;\r\n\t\t\tsource = theSource;\r\n\t\t\totherSource = theOtherSource;\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"E*** Unknown Event Type \" + eventType);\r\n\t\t\teventType = UndefEvent;\r\n\r\n\t\t}\r\n\t}", "com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();", "public void setTodayCalendar()\n {\n this.currentCalendar = Calendar.getInstance();\n }", "public void setDate(int month, int day) {\r\n this.month = month;\r\n this.day = day;\r\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "BasicEvents createBasicEvents();", "public void setFechaFacturado(java.util.Calendar param){\n \n this.localFechaFacturado=param;\n \n\n }", "public T caseEventExpr(EventExpr object) {\n\t\treturn null;\n\t}", "@WebMethod public Event createEvent(Date date, Team a, Team b) throws EventAlreadyExist;", "public void calendarListener(CalendarEvent ce){\n Date triggerDate = (Date)ce.getTriggerDate().clone();\n setInicioRegistrar(triggerDate);\n setFinRegistrar(triggerDate);\n }", "public void setFechaSolicitud(java.util.Calendar param){\n \n this.localFechaSolicitud=param;\n \n\n }", "public void bindChosenEvent(Object currObject, Context context)\n {\n final Event event = (Event) currObject;\n\n showEventDescription(event);\n\n Drawable eventIcon = new IconDrawable(context,FontAwesomeIcons.fa_map_marker).colorRes(R.color.green).sizeDp(40);\n icon.setImageDrawable(eventIcon);\n }", "protected void sequence_DAYS(ISerializationContext context, DayValue semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "@Override\n public boolean equals(Object object)\n {\n if (!(object instanceof Event))\n {\n return false;\n }\n Event other = (Event) object;\n if ((this.eventid == null && other.eventid != null) || (this.eventid != null && !this.eventid.equals(other.eventid)))\n {\n return false;\n }\n return true;\n }", "@Test\n public void testSetEbXmlEventListener() {\n System.out.println(\"setEbXmlEventListener\");\n instance.setEbXmlEventListener(ebXmlEventListener);\n }", "public static void setDate( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, DATE, value);\r\n\t}", "public void setCalendar(Calendar cal) {\n this.cal = cal;\n }", "public void setCalendar(Calendar cal) {\n this.cal = cal;\n }", "public interface EventDefinition extends EObject {\r\n}", "public void setStart( Calendar start );" ]
[ "0.6585613", "0.63541114", "0.6131506", "0.5955297", "0.591543", "0.5878746", "0.5736775", "0.5697199", "0.5697199", "0.5697199", "0.5697199", "0.5697199", "0.5672226", "0.5634886", "0.55935985", "0.55670345", "0.5566509", "0.55056095", "0.54803747", "0.5471402", "0.5451501", "0.5447062", "0.54260063", "0.5423543", "0.53995717", "0.5399507", "0.539651", "0.5390128", "0.53866297", "0.53674537", "0.5365274", "0.53625816", "0.5312282", "0.5312119", "0.5295516", "0.5290506", "0.5287148", "0.5274439", "0.52624446", "0.52562904", "0.5250892", "0.5243419", "0.5236667", "0.5236667", "0.5219037", "0.5218895", "0.5211666", "0.5202469", "0.5186914", "0.5186703", "0.5172752", "0.51561415", "0.51535004", "0.51459825", "0.51437014", "0.51434124", "0.51434124", "0.5129667", "0.51268506", "0.5124588", "0.5124588", "0.5116579", "0.5109315", "0.50996625", "0.5096633", "0.5085287", "0.5083621", "0.50781155", "0.5073332", "0.50724393", "0.5068694", "0.50674963", "0.50638974", "0.50604445", "0.505991", "0.5055323", "0.5055186", "0.5054526", "0.5053366", "0.5048918", "0.5048372", "0.5047526", "0.50470906", "0.50470906", "0.50470906", "0.50443095", "0.5037214", "0.5034813", "0.50287706", "0.5026624", "0.5024459", "0.5023169", "0.5019689", "0.5013632", "0.500959", "0.5005606", "0.5005227", "0.5005227", "0.5003858", "0.5003294" ]
0.5816244
6
Set Object Reference for EventDay and VenueBooking
public static void Ref_EventDay_VenueBooking(IDMap map, ArrayList<EventDay> EDlist, ArrayList<VenueBooking> VBlist) { while (map.hasNext()) { Pair mapping = map.NextPair(); if (mapping.notNull()) { EDlist.get(mapping.First()).tagVenueBooking(VBlist.get(mapping.Second())); } } map.Reset(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void assignEventDates(EventDates val) {\n eventDates = val;\n }", "abstract public void setServiceAppointment(Date serviceAppointment);", "public OrgDay(OrgDay another) {\n this.events = new LinkedList<>();\n for (OrgEvent event : another.events) {\n this.events.add(new OrgEvent(event));\n }\n }", "void setTripDates(Calendar departureDate, Calendar arrivalDate);", "@JsonSetter(\"joiningDay\")\n public void setJoiningDay (Days value) { \n this.joiningDay = value;\n notifyObservers(this.joiningDay);\n }", "private void initEvents(){\n ArrayList<Event> en = new ArrayList();\n en.add(new Event_MessangerOfGods(this.village));\n en.add(new Event_PaganPriest(this.village));\n this.events = en;\n }", "public void setBooking(Set<Booking> aBooking) {\n booking = aBooking;\n }", "public void setMeetingCal(final BwCalendar val) {\n meetingCal = val;\n }", "@Override\n public void setMeeting(Meeting meeting) {\n }", "public void setEvent(@NonNull EventModel event) {\n mEvent = event;\n mSwitchAllDay.setChecked(event.isAllDay());\n setCalendarId(mEvent.getCalendarId());\n setDate(true);\n setDate(false);\n setTime(true);\n setTime(false);\n }", "public T caseEventDefinition(EventDefinition object) {\r\n\t\treturn null;\r\n\t}", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public OrgDay() {\n events = new LinkedList<>();\n }", "public static void setDate(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.util.Calendar value) {\r\n\t\tBase.set(model, instanceResource, DATE, value);\r\n\t}", "public void setDay(Date day) {\n this.day = day;\n }", "public Tournament(String name, String sDate, String eDate, String venue){\n\t\tthis.startDate = sDate;\n\t\tthis.endDate = eDate;\n\t\tthis.tournamentName = name;\n//\t\tthis.tType = structure;\n\t\tthis.setVenue(venue);\n\t}", "void setBookReservationDao(final BookReservationDao bookReservationDao);", "@Test\n public void testSetEndDate() {\n System.out.println(\"setEndDate\");\n Calendar newEnd = new GregorianCalendar(2000, 01, 01);\n String endDate = newEnd.toString();\n DTO_Ride instance = dtoRide;\n instance.setEndDate(endDate);\n \n String result = endDate.toString();\n assertEquals(newEnd, newEnd);\n }", "public T caseEventDefinition(EventDefinition object) {\n\t\treturn null;\n\t}", "public Appointment()\r\n {\r\n // cView = new CalendarEventView(\"appointmentView\");\r\n }", "public void setVenueID(Integer venueID) {\n this.venueID = venueID;\n }", "public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }", "private void setHotel(Hotel myHotel) {\n\t\tthis.myHotel = myHotel;\n\t}", "public AssignDateCommand(Index index, EventDate startDate, EventDate endDate, EventDayTime eventDayTime) {\n requireNonNull(index);\n this.index = index;\n this.startOrTargetEventDate = Optional.of(startDate);\n this.endEventDate = Optional.of(endDate);\n this.eventDayTime = eventDayTime;\n }", "public void setDate(int day,int month,int year){\n this.day=day;\n this.month=month;\n this.year=year;\n }", "void setEventEndDate(Date endEventDate);", "void setInvoicedDate(Date invoicedDate);", "public void setVenue(String venue) {\n\t\tthis.venue = venue;\n\t}", "public AssignDateCommand(Index index, EventDayTime eventDayTime) {\n requireNonNull(index);\n this.index = index;\n this.startOrTargetEventDate = Optional.empty();\n this.endEventDate = Optional.empty();\n this.eventDayTime = eventDayTime;\n }", "private void setupDependentEntities(final BwEvent val) throws CalFacadeException {\n if (val.getAlarms() != null) {\n for (BwAlarm alarm: val.getAlarms()) {\n alarm.setEvent(val);\n alarm.setOwnerHref(getUser().getPrincipalRef());\n }\n }\n }", "public void setDay(int day)\n {\n this.day = day;\n }", "public void setArrivalDate(Date arrivalDate);", "public void setHotel(Hotel hotel) {\n this.hotel = hotel;\n }", "public void setHotel(Hotel hotel) {\n this.hotel = hotel;\n }", "public void setDateAppointment(MyDate dateAppointment) {\n\t\tthis.dateAppointment = dateAppointment;\n\t}", "public void setFechaSolicitud(java.util.Calendar param){\n \n this.localFechaSolicitud=param;\n \n\n }", "public void makeBooking (Object booking);", "void setPassedHabitEvent(HabitEvent passedHabitEvent);", "@WebMethod public Event createEvent(Date date, Team a, Team b) throws EventAlreadyExist;", "@Override\n\tpublic void setDates(User user, Book book) {\n\t\t\n\t\treservationDate = new Date();\n\t\trestituteDate = new Date();\n\t\tcal = Calendar.getInstance();\n\t\tcal.setTime(restituteDate);\n\t\tcal.add(Calendar.DATE, 14);\n\t\trestituteDate = cal.getTime();\n\t\t\n\t\tformat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\treservDate = format.format(reservationDate);\n\t\trestDate = format.format(restituteDate);\n\t\t\n\t\trdDAO.setDates(user.getId(), book.getId(), reservDate, restDate);\n\t\t\n\t\t\n\t}", "public void setDay(Day day, int dayNum) {\n\t\tif (dayNum <= days.length) {\n\t\t\tdays[dayNum - 1] = day;\n\t\t}\n\t}", "public final void setTuesday(final TimeSlot tuesday) {\n this.tuesday = tuesday;\n }", "public void setDay(int day) {\r\n this.day = day;\r\n }", "public AssignDateCommand(Index index, EventDate targetEventDate, EventDayTime eventDayTime) {\n requireNonNull(index);\n this.index = index;\n this.startOrTargetEventDate = Optional.of(targetEventDate);\n this.endEventDate = Optional.empty();\n this.eventDayTime = eventDayTime;\n }", "public void seteBirthday(Date eBirthday) {\n this.eBirthday = eBirthday;\n }", "public Event(String eventName, LocalDate eventDate) {\n this.eventName = new SimpleStringProperty(eventName);\n this.eventDate = new SimpleObjectProperty<LocalDate>(eventDate);\n }", "public void setDate(Calendar date)\n {\n this.date = date;\n }", "public void elSetReference(Object bean);", "void setEventStartDate(Date startEventDate);", "public void setBirthday(Date birthday);", "public void setCalendar(VCalendar calendar) {\n this.calendar = calendar;\n }", "public void selectVenue() {\n\t\t\r\n\t}", "public void setEnddate(Date enddate) {\r\n this.enddate = enddate;\r\n }", "void m6859a(Venue venue) {\n this.f5231b = venue;\n }", "public Venue(String name) {\n this.name = name;\n this.rooms = new ArrayList<Room>();\n this.reservations = new ArrayList<Reservation>();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, monthOfYear, dayOfMonth);\n long time = calendar.getTimeInMillis();\n Bundle args = getArguments();\n if (args.getString(\"date\").equals(\"start\")) {\n setStartDate = true;\n }\n if (setStartDate)\n AddEventActivity.setStartDateEvent(new Date(time));\n else\n AddEventActivity.setEndDateEvent(new Date(time));\n }", "Employee setBirthdate(Date birthdate);", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateBdateValue();\n }", "@Override\n public void onSelectedDayChange(CalendarView view, int year, int month,\n int dayOfMonth) {\n bookingDate = dayOfMonth + \"-\" + (month + 1) + \"-\" + year;\n date = dayOfMonth;\n mon = (month + 1);\n }", "public void setFechaFacturado(java.util.Calendar param){\n \n this.localFechaFacturado=param;\n \n\n }", "@NoProxy\n public void copyTo(final BwEvent ev) {\n super.copyTo(ev);\n ev.setEntityType(getEntityType());\n ev.setName(getName());\n ev.setClassification(getClassification());\n ev.setDtstart(getDtstart());\n ev.setDtend(getDtend());\n ev.setEndType(getEndType());\n ev.setDuration(getDuration());\n ev.setNoStart(getNoStart());\n\n ev.setLink(getLink());\n ev.setGeo(getGeo());\n ev.setDeleted(getDeleted());\n ev.setStatus(getStatus());\n ev.setCost(getCost());\n\n BwOrganizer org = getOrganizer();\n if (org != null) {\n org = (BwOrganizer)org.clone();\n }\n ev.setOrganizer(org);\n\n ev.setDtstamp(getDtstamp());\n ev.setLastmod(getLastmod());\n ev.setCreated(getCreated());\n ev.setStag(getStag());\n ev.setPriority(getPriority());\n ev.setSequence(getSequence());\n\n ev.setLocation(getLocation());\n\n ev.setUid(getUid());\n ev.setTransparency(getTransparency());\n ev.setPercentComplete(getPercentComplete());\n ev.setCompleted(getCompleted());\n\n ev.setCategories(copyCategories());\n\n ev.setContacts(copyContacts());\n\n ev.setAttendees(cloneAttendees());\n ev.setCtoken(getCtoken());\n\n ev.setRecurrenceId(getRecurrenceId());\n ev.setRecurring(getRecurring());\n if (ev.isRecurringEntity()) {\n ev.setRrules(clone(getRrules()));\n ev.setExrules(clone(getExrules()));\n ev.setRdates(clone(getRdates()));\n ev.setExdates(clone(getExdates()));\n }\n\n ev.setScheduleMethod(getScheduleMethod());\n ev.setOriginator(getOriginator());\n\n /* Don't copy these - we always set them anyway\n if (getNumRecipients() > 0) {\n ev.setRecipients(new TreeSet<String>());\n\n for (String s: getRecipients()) {\n ev.addRecipient(s);\n }\n }*/\n\n if (getNumComments() > 0) {\n ev.setComments(null);\n\n for (final BwString str: getComments()) {\n ev.addComment((BwString)str.clone());\n }\n }\n\n if (getNumSummaries() > 0) {\n ev.setSummaries(null);\n\n for (final BwString str: getSummaries()) {\n ev.addSummary((BwString)str.clone());\n }\n }\n\n if (getNumDescriptions() > 0) {\n ev.setDescriptions(null);\n\n for (final BwLongString str: getDescriptions()) {\n ev.addDescription((BwLongString)str.clone());\n }\n }\n\n if (getNumResources() > 0) {\n ev.setResources(null);\n\n for (final BwString str: getResources()) {\n ev.addResource((BwString)str.clone());\n }\n }\n\n if (getNumXproperties() > 0) {\n ev.setXproperties(null);\n\n for (final BwXproperty x: getXproperties()) {\n ev.addXproperty((BwXproperty)x.clone());\n }\n }\n\n ev.setScheduleState(getScheduleState());\n\n //ev.setRequestStatuses(clone(getRequestStatuses()));\n\n final BwRelatedTo rt = getRelatedTo();\n if (rt != null) {\n ev.setRelatedTo((BwRelatedTo)rt.clone());\n }\n\n /* These are in x-props in 3.10\n ev.setPollMode(getPollMode());\n ev.setPollProperties(getPollProperties());\n ev.setPollAcceptResponse(getPollAcceptResponse());\n\n ev.setPollItemId(getPollItemId());\n if (!Util.isEmpty(getPollItems())) {\n for (final String s: getPollItems()) {\n ev.addPollItem(s);\n }\n }\n */\n\n ev.setPollCandidate(getPollCandidate());\n }", "public void setBookingId(int booking_id) {\n this.booking_id = booking_id;\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDateArrival();\n }", "public interface CalendarEventDO {\n long getCalendarId();\n\n String getEventTitle();\n\n boolean isAllDay();\n\n long getStartDT();\n\n long getEndDT();\n\n String getRrule();\n\n String getRdate();\n\n String getExrule();\n\n String getExdate();\n\n long getEventID();\n}", "private GuestBooking createGuestBookingInstance(Customer customer, Long taxiId, Date bookingDate ){\n GuestBooking booking = new GuestBooking();\n booking.setCustomer(customer);\n booking.setTaxiId(taxiId);\n booking.setBookingDate(bookingDate);\n return booking;\n }", "public static OrgDay merge(OrgDay one, OrgDay other) {\n if (one == null) {\n return other;\n }\n if (other == null) {\n return one;\n }\n OrgDay res = new OrgDay();\n for (OrgEvent event : one.events) {\n res.events.add(event);\n }\n for (OrgEvent event : other.events) {\n res.events.add(event);\n }\n return res;\n }", "public void bindChosenEvent(Object currObject, Context context)\n {\n final Event event = (Event) currObject;\n\n showEventDescription(event);\n\n Drawable eventIcon = new IconDrawable(context,FontAwesomeIcons.fa_map_marker).colorRes(R.color.green).sizeDp(40);\n icon.setImageDrawable(eventIcon);\n }", "public void setBirthday() { this.birthday = birthday; }", "@Generated(hash = 2102830174)\n public void setYesterday(YesterdayBean yesterday) {\n synchronized (this) {\n this.yesterday = yesterday;\n fk_yesterdayId = yesterday == null ? null : yesterday.getId();\n yesterday__resolvedKey = fk_yesterdayId;\n }\n }", "public T caseSeasonDayTypeSchedule(SeasonDayTypeSchedule object) {\n\t\treturn null;\n\t}", "private void setAppointment(Appointment appointment) {\n appointment.setCustomerId(customerNameTxt.getSelectionModel().getSelectedItem().getId());\n appointment.setTitle(titleTxt.getText());\n appointment.setDescription(descriptionTxt.getText());\n appointment.setLocation(locationTxt.getText());\n appointment.setContact(contactTxt.getText());\n appointment.setType(typeTxt.getText());\n appointment.setUrl(urlTxt.getText());\n\n // format times\n // Date formatter for date picker and time combo boxes\n final DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\n final DateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(\"hh:mm:ss\");\n LocalTime startTime = startTxt.getSelectionModel().getSelectedItem();\n LocalTime endTime = startTime.plusMinutes(endTxt.getSelectionModel().getSelectedItem());\n\n if (datePicker.getValue() != null && startTime != null && endTime != null) {\n appointment.setStart(Timestamp.valueOf(dateFormatter.format(datePicker.getValue()) + \" \" + timeFormatter.format(startTime)));\n appointment.setEnd(Timestamp.valueOf(dateFormatter.format(datePicker.getValue()) + \" \" + timeFormatter.format(endTime)));\n } else {\n Alert a = new Alert(Alert.AlertType.INFORMATION, \"You must select a date, start time, and end time.\");\n a.showAndWait();\n }\n }", "public static void Ref_EventDay_Event(IDMap map, ArrayList<EventDay> EDlist, ArrayList<Event> Elist) {\n while (map.hasNext()) {\n Pair mapping = map.NextPair();\n if (mapping.notNull()) {\n EDlist.get(mapping.First()).setEvent(Elist.get(mapping.Second()));\n }\n }\n map.Reset();\n }", "public T caseEntryEvent(EntryEvent object) {\r\n\t\treturn null;\r\n\t}", "public static void setDate( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, DATE, value);\r\n\t}", "public void setTodayCalendar()\n {\n this.currentCalendar = Calendar.getInstance();\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 }", "public void assignEObject(EObject eobj) {\n\t\tthis.assignedEObject = eobj;\n\t}", "private CalendarEventEdit calendarEvent(Calendar calendar, SignupMeeting meeting, SignupSite site)\n\t\t\tthrows IdUnusedException, PermissionException {\n\t\tCalendarEventEdit addEvent = calendar.addEvent();\n\t\taddEvent.setType(\"Meeting\");\n\t\tif (!site.isSiteScope()) {\n\t\t\tList<Group> groups = groupIds(site);\n\t\t\taddEvent.setGroupAccess(groups, true);\n\t\t}\n\n\t\treturn addEvent;\n\t}", "public TypicalDay() {\n\t\tnbDeliveries = 0;\n\t\twareHouse = -1;\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDatedeparture();\n }", "public void setObjeto(ObjetoVida o){\r\n\t\tobjeto = o;\r\n\t}", "void setEvent(com.walgreens.rxit.ch.cda.EIVLEvent event);", "@Test\r\n public void testSetDateEaten()\r\n {\r\n System.out.println(\"setDateEaten\");\r\n Date dateEaten = Date.valueOf(\"1982-04-08\");\r\n FoodBean instance = new FoodBean(5, \"Beans on toast\", \r\n Date.valueOf(\"2014-04-01\"), Time.valueOf(\"10:00:00\"), \r\n 100, 120, 5, 7, 500, 0, 3);\r\n instance.setDateEaten(dateEaten);\r\n assertEquals(dateEaten, instance.getDateEaten());\r\n }", "public T caseEvent(Event object) {\r\n\t\treturn null;\r\n\t}", "public void setDepartureDate(Date departureDate);", "private void editEvent(VBox day, String descript, String termID) {\n Label dayLbl = (Label)day.getChildren().get(0);\n Model.getInstance().event_day = Integer.parseInt(dayLbl.getText());\n Model.getInstance().eventEnd_day = Integer.parseInt(dayLbl.getText());\n Model.getInstance().event_month = Model.getInstance().getMonthIndex(monthSelect.getSelectionModel().getSelectedItem()); \n Model.getInstance().event_year = Integer.parseInt(selectedYear.getValue());\n Model.getInstance().eventEnd_month = Model.getInstance().getMonthIndex(monthSelect.getSelectionModel().getSelectedItem()); \n Model.getInstance().eventEnd_year = Integer.parseInt(selectedYear.getValue());\n Model.getInstance().event_subject = descript;\n Model.getInstance().event_term_id = Integer.parseInt(termID);\n\n // When user clicks on any date in the calendar, event editor window opens\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/views/planings/edit_event.fxml\"));\n \n AnchorPane rootLayout = (AnchorPane) loader.load();\n Stage stage = new Stage(StageStyle.UNDECORATED);\n stage.initModality(Modality.APPLICATION_MODAL); \n\n // Pass main controller reference to view\n EditEventController eventController = loader.getController();\n eventController.setMainController(this);\n \n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout);\n stage.setScene(scene);\n stage.show();\n } catch (IOException ex) {\n Logger.getLogger(FXMLDocumentController.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public EventObject(Object source) {\n\tif (source == null)\n\t throw new IllegalArgumentException(\"null source\");\n\n this.source = source;\n }", "public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n// updateLabel();\n updateLabel();\n// callTimeSlotService();\n\n }", "public Event createBooking(RequestContext context) {\n\tHotel hotel = (Hotel) context.getFlowScope().get(\"hotel\");\n\tUser user = (User) context.getConversationScope().get(\"user\");\n\tBooking booking = new Booking(hotel, user);\n\tEntityManager em = (EntityManager) context.getFlowScope().get(\"entityManager\");\n\tem.persist(booking);\n\tcontext.getFlowScope().put(\"booking\", booking);\n\treturn success();\n }", "public void createEvent(View view){\n showDatePickerDialog();\n }", "public void setDate(Calendar date) {\n\tthis.date = date;\n }", "ConferenceScheduleBuilderService startEvent();", "public void setCalendarForModel(Calendar calend) {\n this.cal = calend;\n //fireTableDataChanged();\n refresh();\n}", "public T caseEvent(Event object) {\n\t\treturn null;\n\t}", "public void setBirthday(Date birthday) {\r\n this.birthday = birthday;\r\n }", "public void setBirthday(Date birthday) {\r\n this.birthday = birthday;\r\n }" ]
[ "0.5864783", "0.5736453", "0.5736443", "0.5532311", "0.54758745", "0.5400639", "0.5338771", "0.52688193", "0.5249677", "0.5216521", "0.5203414", "0.5200378", "0.5200378", "0.5200378", "0.5200378", "0.5200378", "0.51906055", "0.51903987", "0.5186375", "0.5158895", "0.51224464", "0.5088952", "0.50862056", "0.5083014", "0.50820976", "0.5077251", "0.50709265", "0.5057236", "0.5054889", "0.50509334", "0.5040459", "0.50322104", "0.50193703", "0.5013685", "0.4989368", "0.49778262", "0.49616298", "0.49616298", "0.49574715", "0.4937869", "0.4937148", "0.4930666", "0.49267566", "0.4919687", "0.48982507", "0.48965806", "0.48915783", "0.48882407", "0.48766336", "0.48602283", "0.4859356", "0.4858692", "0.48585233", "0.48571408", "0.48414588", "0.484032", "0.48380318", "0.48378", "0.48355934", "0.48260993", "0.48248997", "0.4815677", "0.48148334", "0.48073128", "0.48069146", "0.48034582", "0.48023736", "0.48020872", "0.48011902", "0.47984847", "0.47929963", "0.47896335", "0.47832018", "0.47817078", "0.47757852", "0.4768344", "0.47642595", "0.47628424", "0.47449392", "0.4742624", "0.47398663", "0.47372606", "0.47365633", "0.47359166", "0.47312602", "0.4728277", "0.47274584", "0.47271025", "0.47202748", "0.4716093", "0.47113118", "0.47093776", "0.4707397", "0.47027594", "0.47005787", "0.4700212", "0.4700139", "0.46969995", "0.46951842", "0.46951842" ]
0.54034877
5
public List list(); public List findBy();
public GradeBean findBySeq(int input4);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<T> findAll();", "List<T> findAll();", "List<T> findAll();", "List<T> findAll() ;", "public List<E> findAll() ;", "public List<E> findAll();", "List<E> findAll();", "List<E> findAll();", "List<E> findAll();", "public java.util.List<Todo> findAll();", "public List<Service> findAll();", "public List<Product> findAll();", "List<T> findAll(ListParams params);", "List<T> findAll() throws Exception;", "List<Product> findAll();", "List<Product> findAll();", "public List<Servicio> findAll();", "public List<Article> findAll();", "List<Employee> findAll();", "public List findAll() {\n\t\treturn dao.findAll();\r\n\t}", "Collection<T> findAll();", "public <T> List<T> findByQuery(AnutaQuery<T> query);", "List<Book> findAll();", "public List<User> findAll();", "public List<User> findAll();", "public List findAll() {\n\t\treturn null;\r\n\t}", "List<Consulta> findAll();", "public List<T> findAll() throws NoSQLException;", "public List<Pago> findByEmpresa(Empresa empresa);", "List<User> findAll();", "List<User> findAll();", "List<User> findAll();", "List<User> findAll();", "List<T> findByCriteria(Criteria criteria) ;", "public List<T> list()\n\t{\n\t\tfinal List<T> list = this.dao.findAll();\n\t\treturn list;\n\t}", "List<AnswerList> findAllAnsList();", "List<ItemPedido> findAll();", "public List<Professor> findAll();", "public java.util.List<PlanoSaude> findAll();", "List<Usuario> findAll();", "public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "List<Salesman> findAll();", "List<Member> findAll();", "List<Perfil> findAll();", "public List<Pagos> findAll(){\n return pagoMongoRepository.findAll();\n }", "List<Office> findAll();", "List<Bill> findAll();", "List<Widget> findAll();", "List<Employee> findAllByName(String name);", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "List<Order> findAll();", "List<Client> findAll();", "@Override\n\tpublic List<T> find(String hql) {\n\t\treturn hibernateTemplate.find(hql);\n\t}", "public List<Usuario> findAllUsuarios ();", "public List findByExample(Object example);", "List<Price> findAll();", "List<Employee> findByName(String name);", "Iterable<T> findAll();", "List<ToChuc> findAll();", "List<UserEntity> findAll();", "public List findall() {\r\n log.debug(\"TwitterAccountHibernateDAO.findall\");\r\n List<T> t = find().list();\r\n \r\n return t;\r\n }", "@SelectProvider(type = BaseProvider.class, method = \"findAll\")\n List<T> findAll();", "public abstract List<CustomerOrder> findAll();", "public java.util.List<DataEntry> findAll();", "List<Chofer> findAll();", "List<Post> findAll();", "List<Computer> findAll();", "List<Administrativo> findAll();", "public List<Usuario> listarUsuario() {\n \n List<Usuario> lista = usuarioDAO.findAll();\n return lista;\n \n \n\n }", "public List<Page> searchAll() {\n return mysqlDao.searchAll();\n }", "public List<T> findAll() {\n\t\treturn null;\n\t}", "@Select(FIND_ALL)\r\n public List<CProducto> findAll();", "public List<MainItemOrdered> findAll();", "public List<EspecieEntity> encontrarTodos(){\r\n Query todos =em.createQuery(\"select p from EspecieEntity p\");\r\n return todos.getResultList();\r\n }", "List<Todo> findByUser(String user);", "public List listar() {\n Query query = Database.manager.createNamedQuery(\"StatussistemaDTO.findAll\");\n query.setHint(QueryHints.MAINTAIN_CACHE, HintValues.FALSE);// evita consulta em cache\n List lista = query.getResultList();\n return lista;\n }", "public List<User> list();", "@GetMapping(value = \"\")\r\n //select* from table\r\n /* public String index() {\r\n List<User> users = userRepository.findAll();\r\n System.out.println(\"############### Find All User (In Console) ###############\");\r\n System.out.println(users);\r\n return \"Method GET, Function : index => SHOW data list on page\";\r\n\r\n }*/\r\n \r\n public List<User> index() {\n return userService.findAllByJpqlParamsQuery(0, \"bangkok\");\r\n\r\n\r\n }", "@Override\r\n\tpublic List<T> find(String hql) throws Exception {\n\t\treturn this.getcurrentSession().createQuery(hql).list();\r\n\t}", "public List<o> selectAll();", "public Ruta[] findAll() throws RutaDaoException;", "List<QnowUser> findAll();", "public List getList();", "List<Account> findAll();", "List<Account> findAll();", "public List<TodoItemEntity> findAll(){\n return todoItemRepository.findAll();\n }", "List<Product>findAllBy(Pageable pageable);", "public List<User> listSearch(String search);", "List<Team> findAll();", "List<UserDTO> findAll();", "public List<User> list();", "public List<Product> list();", "public UserList list();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "java.util.List<AuditoriaUsuario> findAll();", "@Override\n\tpublic List<Listing> findAll() {\n\t\treturn theListingRepo.findAll();\n\t}", "public List<Ejemplar> getAll();" ]
[ "0.82548034", "0.82548034", "0.82548034", "0.82025987", "0.81744033", "0.8125711", "0.7917635", "0.7917635", "0.7917635", "0.7840658", "0.78375566", "0.7774892", "0.768137", "0.7594827", "0.75810117", "0.75810117", "0.7528228", "0.7478003", "0.7465489", "0.7465363", "0.74635744", "0.74629056", "0.7439375", "0.74336445", "0.74336445", "0.7420916", "0.7408455", "0.7316065", "0.7309899", "0.72904253", "0.72904253", "0.72904253", "0.72904253", "0.72423244", "0.7212185", "0.7179248", "0.71693426", "0.71094316", "0.7109374", "0.71027565", "0.70439565", "0.70322806", "0.7026923", "0.7020153", "0.7018669", "0.69941866", "0.6990656", "0.6986206", "0.69783175", "0.69765705", "0.6975066", "0.69733256", "0.69711304", "0.6958996", "0.69540846", "0.69334656", "0.69288373", "0.69157416", "0.6908958", "0.68986773", "0.689289", "0.6881922", "0.6875965", "0.68741703", "0.6857023", "0.68534946", "0.6848478", "0.6837814", "0.6828133", "0.6827781", "0.6827603", "0.6821896", "0.68216383", "0.6810987", "0.67898333", "0.6784502", "0.6778155", "0.6768996", "0.67670816", "0.6763988", "0.6759316", "0.6754963", "0.6751118", "0.67497116", "0.67497116", "0.67495036", "0.67467165", "0.6742889", "0.6742644", "0.6735433", "0.6728837", "0.6722763", "0.6717189", "0.67113227", "0.67113227", "0.67113227", "0.67113227", "0.67113227", "0.6710241", "0.6698885", "0.66987485" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_route_detail, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n 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 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 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\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.79039484", "0.78061193", "0.7765948", "0.772676", "0.76312095", "0.76217103", "0.75842994", "0.7530533", "0.748778", "0.7458179", "0.7458179", "0.7438179", "0.74213266", "0.7402824", "0.7391232", "0.73864055", "0.7378979", "0.73700106", "0.7362941", "0.73555434", "0.73453045", "0.7341418", "0.7330557", "0.7327555", "0.7326009", "0.7318337", "0.73160654", "0.73132724", "0.73037714", "0.73037714", "0.73011225", "0.7297909", "0.7293188", "0.72863173", "0.7282876", "0.72807044", "0.72783154", "0.72595924", "0.72595924", "0.72595924", "0.7259591", "0.72591716", "0.7249715", "0.72243243", "0.7219297", "0.7216771", "0.72042644", "0.72012293", "0.7199543", "0.7193037", "0.7184855", "0.7177254", "0.7168334", "0.7167477", "0.71536905", "0.7153523", "0.7135821", "0.7134834", "0.7134834", "0.7128953", "0.7128911", "0.71241933", "0.7123363", "0.71228945", "0.71219414", "0.7117495", "0.71173275", "0.71169853", "0.7116851", "0.7116851", "0.7116851", "0.7116851", "0.71148705", "0.7112308", "0.7109725", "0.71084905", "0.71055764", "0.70995593", "0.7098301", "0.7096311", "0.70935965", "0.70935965", "0.7086441", "0.7082852", "0.70806813", "0.70801675", "0.7073609", "0.70681775", "0.7061872", "0.7060011", "0.7059868", "0.70513153", "0.7037599", "0.7037599", "0.7036033", "0.70353055", "0.70353055", "0.70322436", "0.70304227", "0.70294935", "0.70187974" ]
0.0
-1
TODO process /refine processReuqest of get a new object from other service
@Override public ResponseEntity<Object> generateMessage(Map<String, Object> processedRequest, String url) { JSONObject response = new JSONObject(); response = new JSONObject(); response.put("FName", "FirtName"); response.put("LName", "Second Nmae"); ResponseEntity<Object> validationResponse = new ResponseEntity<Object>(response, HttpStatus.OK); return validationResponse; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ResultVO readService(Object object);", "protected BusinessObject getNewBusinessObjInstance()\n {\n return BUSINESS_OBJ ;\n }", "public interface ObjectInfoService {\n\n ObjectInfo getSubObjectInfo(SubObjectInfoPo subObjectInfoPo);\n\n int fixObject(SubObjectInfoPo objectInfoPo);\n}", "private void processNewObject(SystemMetadata mnSystemMetadata) throws SynchronizationFailed, \n RetryableException, UnrecoverableException {\n\n // TODO: should new objects from replica nodes process or throw SyncFailed?\n // as per V1 logic (TransferObjectTask), this class currently does not check\n // the authoritativeMN field and allows the object to sync.\n logger.debug(task.taskLabel() + \" entering processNewObject...\");\n \n \n try {\n \tvalidateSeriesId(mnSystemMetadata, null); \n } catch (NotAuthorized e) {\n logger.error(buildStandardLogMessage(e, \"NotAuthorized to claim the seriesId\"), e);\n throw SyncFailedTask.createSynchronizationFailed(mnSystemMetadata.getIdentifier().getValue(),\n \"NotAuthorized to claim the seriesId\", e);\n }\n \n try {\n\n // make sure the pid is not reserved by anyone else\n // not going through TLS, so need to build a Session, and will use the submitter\n // in the systemMetadata, since they should have access to their own reservation(?)\n Session verifySubmitter = new Session();\n verifySubmitter.setSubject(mnSystemMetadata.getSubmitter());\n identifierReservationService.hasReservation(verifySubmitter, mnSystemMetadata.getSubmitter(), mnSystemMetadata.getIdentifier());\n logger.debug(task.taskLabel() + \" Pid is reserved by this object's submitter.\");\n\n } catch (NotFound e) {\n logger.debug(task.taskLabel() + \" Pid is not reserved by anyone.\");\n // ok to continue...\n \n } catch (NotAuthorized | InvalidRequest e) {\n throw new UnrecoverableException(task.getPid() + \" - from hasReservation\",e);\n \n } catch (ServiceFailure e) {\n extractRetryableException(e);\n throw new UnrecoverableException(task.getPid() + \" - from hasReservation\",e);\n }\n\n mnSystemMetadata = populateInitialReplicaList(mnSystemMetadata);\n mnSystemMetadata.setSerialVersion(BigInteger.ONE);\n try {\n SystemMetadataValidator.validateCNRequiredNonNullFields(mnSystemMetadata);\n\n createObject(mnSystemMetadata);\n } catch (InvalidSystemMetadata e) {\n throw SyncFailedTask.createSynchronizationFailed(task.getPid(), null, e);\n }\n finally{};\n }", "public interface ProcessService {\n void save(Process process);\n\n Process update(Process process);\n\n List<Process> getAll();\n\n JSONObject getProcessCount();\n}", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public New getObject(long id);", "protected abstract void processDTO();", "public void recupera() {\n Cliente clienteActual;\n clienteActual=clienteDAO.buscaId(c.getId());\n if (clienteActual!=null) {\n c=clienteActual;\n } else {\n c=new Cliente();\n }\n }", "protected abstract DBObject getNewObject();", "public interface ProcessNodeService {\n /**\n * 添加节点\n * @param node\n * @return\n */\n int saveNode(ProcessNode node);\n\n /**\n * 选择节点\n */\n List<ProcessNode> getNodeListByNodeIds(List nodeIds);\n\n /**\n * @ProcessNode 包含以下参数\n * nodeName String 节点名字 必需\n * nodeId Integer 节点Id 必需\n * @return\n */\n boolean saveProcessNode(ProcessNode processNode);\n\n Integer getMaxNodeType(Long processId);\n\n Integer getMaxNodeOrder(Long processId);\n\n int updateProcessNode(ProcessNode processNode);\n\n int renameNode(Map<String, Object> map);\n\n int updateNode(ProcessNode processNode);\n\n int delNode(Long nodeId);\n\n int addNode(ProcessNode processNode);\n\n void removeNode(Long currentNodeId, Long preNodeId);\n\n Map<String, Object> deleteNodes(List<Long> list, String array);\n\n void removeLink(Long currentNodeId, Long preNodeId);\n\n ProcessNode findById(Long id);\n\n List<ProcessNode> getNextNode(Map map);\n\n ProcessNode findByProcessNode(ProcessNode processNode);\n\n boolean updateNodeForNextOrderAndParams(List<ProcessNode> list);\n\n boolean updateNodeForMove(ProcessNode processNode);\n\n String getJsonData(Long processId);\n\n List<ProcessNode> findProcessNodeListById(Long id);\n List<ProcessNode> findProcessNodeListByIds(Long id);\n /**\n * 添加节点\n * @param node\n * @return\n */\n String getNode(ProcessNode node);\n\n List<ProCrmProduct> getProcessByList(String searchKey);\n\n int insertNode(ProcessNode processNode);\n}", "ODataSingleProcessor createProcessor(ODataContext context);", "@Override\n\tpublic void service(ServletRequest arg0, ServletResponse arg1)\n\t\t\tthrows ServletException, IOException\n\t{\n\t\tsuper.service(arg0, arg1);\n\t\trenewObject(arg0, arg1);\n\t\tout.print(\"do my service\");\n\t}", "public interface DetailService {\n void add(Detail detail) throws PersistanceException;\n Detail get(long id) throws EntityNotFoundException;\n}", "@Override\r\n\tprotected void process() {\n\t\tconsultarSustentoProxy.setCodigoActvidad(codigo_actividad);\r\n\t\tconsultarSustentoProxy.setCodigoCliente(codigo_cliente);\r\n\t\tconsultarSustentoProxy.setCodigoPLan(codigo_plan);\r\n\t\tconsultarSustentoProxy.execute();\r\n\t}", "public interface NewTypeService {\n\n List<NewType> getNewTypeList();\n\n NewType getNewType(String type);\n\n boolean deleteNewTypeById(Integer id);\n\n boolean addNewType(String newType);\n\n boolean updateNewType(String type,Integer id);\n}", "public interface DemoService {\n DemoBO getDemoById(Long id);\n\n int add(DemoAddVO vo);\n}", "public interface PostService {\n public ResultInfo addPost(PostVo postVo);\n\n public ResultInfo getPostById(Long id);\n\n public ResultInfo updatePost(PostVo postVo);\n\n public ResultInfo deletePostById(Long id);\n\n public Map share(Long id);\n\n}", "private Restaurant copyRestData(Restaurant restaurant, Restaurant existing){\n\t\treturn existing;\n\t}", "public abstract P getNew() throws DataFault;", "public interface BonCommandeRS\n extends GenericService<BonCommande, Long>\n{\n\n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"envoye\")\n public BonCommande envoyer(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"confirme\")\n public BonCommande confirmer(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"reception\")\n public BonReception reception(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"annule\")\n public BonCommande annuler(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"facture\")\n public BonCommande facture(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"imprime\")\n public List<BonCommande> imprimer(@Context HttpHeaders headers,BonCommande dmde);\n}", "protected PObject createIndependentObject() {\n return createIndependentObjects(1).get(0);\n }", "Service newService();", "NewOrderResponse newOrder(NewOrder order);", "public interface OrderService {\n /**\n * Save a order\n * \n * @param object\n * @return just saved profile\n */\n Order save(Order object);\n\n /**\n * Get all the order\n * \n * @return all the order\n */\n Collection<Order> getAll();\n\n /**\n * Get all the user profile filtered on user and project\n * \n * @param user\n * @param project\n * @param filterDate\n * @param filterDeliveredDate\n * @param filterStatus\n * @param firstResult\n * @param excludeCancelled\n * @param maxResult\n * @param sortProperty\n * @param isAscending\n * @return all the user profile\n */\n Collection<Order> get(User user, Project project, Date filterDate, Date filterDeliveredDate, OrderStatus filterStatus, boolean excludeCancelled, int firstResult,\n int maxResult, String sortProperty, boolean isAscending);\n\n /**\n * Remove a profile\n * \n * @param order\n */\n void remove(Order order);\n\n /**\n * Cancel an order\n * \n * @param order\n * @param user user is performing the action\n * \n */\n Order cancel(Order order, User user);\n\n /**\n * Return the order by id\n * \n * @param id\n * @return user with the passed email\n */\n Order getByID(String id);\n\n /**\n * place a new order\n * \n * @param order the new order to insert\n * @param project project relates to order\n * @param user user that place the order\n * @return\n */\n Order placeNewOrder(Order order, Project project, User user);\n\n /**\n * Creates a {@link ProductOrdered} with correct data, adds the new ProductOrdered to the Order, recalculates all the prices and discounts. <strong>NOT persists</strong>\n * \n * @param order\n * @param product\n * @param project\n * @param numberOfProds\n\n * @return\n */\n ProductOrdered addProductOrdered(Order order, Product product, Project project, int numberOfProds);\n\n /**\n * Remove a {@link ProductOrdered} from the given order, recalculates all the prices and discounts on the order.<strong>NOT persists</strong>\n * \n * @param order\n * @param productOrderedIndex position on the list of product to be removed\n * \n */\n void removeProductOrdered(Order order, int productOrderedIndex);\n\n /**\n * \n * @param user\n * @param project\n * @return\n */\n List<Date> getDates(User user, Project project);\n\n /**\n * \n * @param user\n * @param project\n * @return\n */\n List<Date> getDeliveredDates(User user, Project project);\n\n /**\n * Send mail notification, <b>Note</b>: <b>notificationEnabled</b> properties must be set to true\n * \n * @param order\n * @return\n */\n Order sendNotificationNewOrder(Order order);\n\n /**\n * Sets this order as in charge \n * \n * @param order\n * @param user user is performing the action\n * @return\n */\n Order setAsInCharge(Order order, User user);\n\n /**\n * Remove this order as in charge \n * \n * @param order\n * @param user user is performing the action\n * @return\n */\n Order removeInCharge(Order order, User user);\n\n /**\n * Sets this order as \"sent\" \n * \n * @param order\n * @param user user is performing the action\n * @return\n */\n Order setSentStatus(Order order, User user);\n\n /**\n * Remove this order as \"sent\" \n * \n * @param order\n * @param user user is performing the action\n * @return\n */\n Order removeSentStatus(Order order, User user);\n\n /**\n * Sets this order as \"delivered\" \n * \n * @param order\n * @param user user is performing the action\n * @param deliveredTime \n * @return\n */\n Order setDeliveredStatus(Order order, User user, Date deliveredTime);\n\n /**\n * Remove this order as \"delivered\" \n * \n * @param order\n * @param user user is performing the action\n * @return\n */\n Order removeDeliveredStatus(Order order, User user);\n\n /**\n * Sets this order as \"InvoiceApproved\" \n * \n * @param order\n * @param user user is performing the action\n * @param invoiceDate\n * @param invoiceDueDate \n * @return\n */\n Order setInvoiceApprovedStatus(Order order, User user);\n\n /**\n * Removes this order as \"InvoiceApproved\" \n * \n * @param order\n * @param user user is performing the action\n * @return\n */\n Order removeInvoiceApprovedStatus(Order order, User user);\n\n /**\n * Sets this order as \"InvoiceCreated\" \n * \n * @param order\n * @param user user is performing the action\n * @param invoiceDate\n * @param invoiceDueDate data di pagamento prevista \n * @return\n */\n Order setInvoiceCreatedStatus(Order order, User user, Date invoiceDate, Date invoiceDueDate);\n\n /**\n * Sets this order as \"PaidInvoice\" \n * \n * @param order\n * @param user user is performing the action\n * @return\n */\n Order setInvoicePaidStatus(Order order, User user);\n\n /**\n * Remove this order as \"InvoiceCreated\" \n * \n * @param order\n * @param user user is performing the action\n * @return\n */\n Order removeInvoiceCreatedStatus(Order order, User user);\n\n /**\n * Set the OrderStatus \n * \n * @param orderStatus\n * @param order\n * @param user user is performing the action\n * @return\n */\n Order setStatus(OrderStatus orderStatus, Order order, User user);\n\n /**\n * Set order on the given dates/project in charge\n * \n * @param user\n * @param project\n * @param date\n * @return\n */\n void setAsInCharge(User user, Project project, Date date);\n\n /**\n * Get products base on the given order properties\n * \n * @param order\n * @return\n */\n List<Product> getProducts(Order order);\n\n // /**\n // * \n // * @param o\n // * @return\n // */\n // Order applyDiscountIfApplicable(Order o);\n //\n // \n // /**\n // * \n // * @param o\n // * @return\n // */\n // Order applyFreeShippingCostIfApplicable(Order o);\n\n /**\n * \n * @param order\n * @return\n */\n boolean isOrderValid(Order order);\n\n String getNotesForDisplay(Order o);\n\n String getNotesForPDF(Order order);\n\n /**\n * Force discount on existing order <b>Use with caution</b>\n * \n * @param order\n * @param discountToAppply to the order\n * @return\n */\n Order modifyDiscountToOrder(Order order, int discountToAppply);\n\n /**\n * \n * @param o\n * @return the order, product ordered with the correct costs and discount applied\n */\n public abstract Order calculatesCostsAndDiscount(Order o);\n\n /**\n * \n * @param o\n * @param cost cost to apply\n * @param discountForced discount to be forced\n * @return\n */\n Order forcePriceAndDiscountAndRecalculate(Order o, BigDecimal cost, BigDecimal discountForced);\n\n}", "public static void main(String[] args) throws Exception {\n\n System.out.println(\"###CustomerOrder Test###\");\n CustomerOrderService customerOrderService = new CustomerOrderService(new CustomerOrderDao());\n\n CustomerOrder customerOrder1 = new CustomerOrder(BigDecimal.valueOf(99.95), \"NEW\", \"1000\", 1, 1, 1);\n customerOrderService.addCustomerOrder(customerOrder1);\n\n System.out.println(\"getCustomerOrder(1): \" + customerOrderService.getCustomerOrder(1));\n System.out.println(\"getAllCustomerOrdersByCustId(1): \" + customerOrderService.getAllCustomerOrdersByCustId(1));\n\n System.out.println(\"getDetailedCustomerOrder(1): \" + customerOrderService.getDetailedCustomerOrder(1));\n\n System.out.println(\"getCustomerOrderStatus(1): \" + customerOrderService.getCustomerOrderStatus(1));\n \n\n CustomerOrder customerOrder2 = new CustomerOrder(1, BigDecimal.valueOf(88.88), \"SHIPPED\", \"2222\", 2, 2, 2);\n customerOrderService.updateCustomerOrder(customerOrder2);\n\n System.out.println(\"getCustomerOrder(1) - after update: \" + customerOrderService.getCustomerOrder(1));\n\n Payment payment1 = new Payment(1, \"PAYMENT\", \"PROCESSED\");\n customerOrderService.addPayment(payment1);\n\n System.out.println(\"getPayment(1): \" + customerOrderService.getPayment(1));\n customerOrderService.updatePayment(1, \"REFUNDED\");\n System.out.println(\"getPayment(1) - after status update: \" + customerOrderService.getPayment(1));\n\n System.out.println(\"getPaymentsByOrderId(1): \" + customerOrderService.getPaymentsByOrderId(1));\n\n CustomerOrderDetail customerOrderDetail1 = new CustomerOrderDetail(1, 3);\n customerOrderService.addCustomerOrderDetail(customerOrderDetail1);\n\n System.out.println(\"getCustomerOrderDetail(2): \" + customerOrderService.getCustomerOrderDetail(2));\n System.out.println(\"getCustomerOrderDetailsByOrderId(1): \" + customerOrderService.getCustomerOrderDetailsByOrderId(1));\n \n \n \n //Start of the Product test\n \n System.out.println(\"###Product Test###\"); \n ProductService productService = new ProductService(new ProductDao());\n\n Product productTest = new Product(1, \"1234\", \"ProductTest\", \"veryCool\", true, 1, 1, \"picture\");\n productService.createProduct(productTest);\n \n System.out.println(\"Select productTest by id: \" + productService.getProduct(4));\n \n System.out.println(\"select All Products: \" + productService.selectAllProducts());\n \n\n \n //End of product test\n \n //Partner test started\n \n System.out.println(\"###Partner Test###\"); \n PartnerService partnerService = new PartnerService(new PartnerDao());\n\n Partner partnerTest = new Partner(1, \"Myco\", \"6331 N Kenmore Ave\", \"Chicago\", \"IL\", \"60660\", \"USA\", \"800-556-8876\", \"[email protected]\", \"http://www.xyz.com/\", true);\n partnerService.createPartner(partnerTest);\n \n System.out.println(\"Select partnerTest by id: \" + partnerService.getPartner(1));\n \n System.out.println(\"select All Partners: \" + partnerService.selectAllPartner());\n \n \n //End of partner test\n }", "public interface MovimientoService {\n public static final String PROPERTY_ID = \"id\";\n public static final String PROPERTY_PARTIDO_ID = \"partidoId\";\n public static final String PROPERTY_TIEMPO_DES = \"tiempoDes\";\n public static final String PROPERTY_MINUTO = \"minuto\";\n public static final String PROPERTY_SEGUNDO = \"segundo\";\n public static final String PROPERTY_TIPO = \"tipo\";\n public static final String PROPERTY_ORIGEN = \"origen\";\n public static final String PROPERTY_ENTRA_ID = \"entraId\";\n public static final String PROPERTY_ENTRA_NOMBRE = \"entraNombre\";\n public static final String PROPERTY_SALE_ID = \"saleId\";\n public static final String PROPERTY_SALE_NOMBRE = \"saleNombre\";\n\n Map<String,Object> createMovimiento(Map<String, String> movimiento);\n\n void deleteMovimiento(Long idMovimiento);\n\n List<Map<String,Object>> movimientosByPartido(Long idPartido);\n}", "public interface RelationshipService {\n int add(Relationship relationship);\n}", "public interface ITripulanteService {\r\n\r\n\t/**\r\n\t * Metodo que permite guardar un tripulante en el gestor de Base de datos\r\n\t * \r\n\t * @param tripulante objeto de tipo tripulante que se desea guardar\r\n\t */\r\n\tpublic void guardarTripulante(Tripulante tripulante);\r\n\r\n\t/**\r\n\t * Metodo que permite guardar un Tripulante encontrado, recibe un objeto de tipo\r\n\t * tripulante\r\n\t * \r\n\t * @param tripulante objeto de tipo tripulante, a guardar\r\n\t */\r\n\tpublic void guardarTripulanteEncontrado(Tripulante tripulante);\r\n\r\n\t/**\r\n\t * Metodo que permite listar los Tripulantes almacenados\r\n\t * \r\n\t * @return la lista de Tripulantes encontrados\r\n\t */\r\n\tpublic List<Tripulante> obtenerTripulantes();\r\n\r\n\t/**\r\n\t * Metodo que permite listar todos los Tripulantes almacenados\r\n\t * \r\n\t * @return la lista de Tripulantes encontrados\r\n\t */\r\n\tpublic List<Tripulante> buscarTodosTripulantes();\r\n\r\n\t/**\r\n\t * Metodo para hacer una busqueda de Tripulante por su id ingresado por parametro\r\n\t * \r\n\t * @param id de Tripulante a buscar\r\n\t * @return Tripulante encontrado\r\n\t */\r\n\tpublic Optional<Tripulante> obtenerUnTripulante(Long id);\r\n\r\n\t/**\r\n\t * Metodo para hacer una eliminacion de un Tripulante almacenado en la Base de\r\n\t * datos\r\n\t * \r\n\t * @param id de Tripulante a eliminar\r\n\t */\r\n\tpublic void eliminarTripulante(Long id);\r\n\r\n\t/**\r\n\t * Metodo que implementara la eliminacion de los tripulantes almacenados en la\r\n\t * Base de datos, no recibe parametros\r\n\t */\r\n\tpublic void borrarTodosTripulantes();\r\n\r\n\t/**\r\n\t * Metodo para hacer una busqueda de un tripulante por su atributo de tipo\r\n\t * String y nombre documento\r\n\t * \r\n\t * @param documento atributo por el que se buscara\r\n\t * @return El tripulante encontrado\r\n\t * @throws Exception si hay algun error\r\n\t */\r\n\tpublic Tripulante buscarTripulante(String documento) throws Exception;\r\n\r\n}", "Service_Resource createService_Resource();", "public interface WorkService {\n\n /**\n * Crea un nuevo servicio de trabajo en una transaccion de base de datos.\n * @param work\n * @return true si se crea correctamente el servicio y false en caso\n * de tratar de agregar un servicio de trabajo en null\n */\n boolean createWork(Work work);\n\n /**\n * Remueve un trabajo segun el folio que se pase por parametro.\n * @param folio\n * @return true si se elimina el trabajo de forma correcta, y false\n * en caso de pasar un folio igual o menor a cero y que el folio\n * no exista en la base de datos.\n */\n boolean removeWorkByFolio(int folio);\n\n /**\n * Actualiza un trabajo por obeto, y se obtiene el folio dentro del\n * proceso.\n * @param work\n * @return true en caso de actualizarce correctamente el trabajo,\n * y en false en caso de que el folio sea menor o igual a cero y\n * que no exista el trabajo en la base de datos.\n */\n boolean updateWorkByObject(Work work);\n\n /**\n * Se obtiene un trabajo segun su folio.\n * @param folio\n * @return <code>Work</code> en caso de encontrarse el trabajo\n * en la base de datos, en caso de apuntar a null se retorna\n * un Optional.\n */\n Work getWorkByFolio(int folio);\n\n /**\n * Se obtiene una lista de trabajos.\n * @return List<Work>\n */\n List<Work> getAllWorks();\n}", "net.webservicex.www.WeatherForecasts addNewWeatherForecasts();", "@Test\n public void testAccessAndClone()\n {\n DefaultRemoteInvocationServiceDependencies deps1 =\n new DefaultRemoteInvocationServiceDependencies();\n System.out.println(deps1.toString());\n\n populate(deps1).validate();\n System.out.println(deps1.toString());\n\n DefaultRemoteInvocationServiceDependencies deps2 =\n new DefaultRemoteInvocationServiceDependencies(deps1);\n assertCloneEquals(deps1, deps2);\n deps2.validate();\n }", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "@Override\n @ResponseBody\n public int createObject(@RequestBody FancyPet object) {\n int id = super.createObject(object);\n // do some logic with sub class\n return id;\n }", "public IDfSysObject createNewObject(String repositoryObjectName,\r\n\t\t\tString fileLocation, String repositoryPath,String newObjectId) throws Exception {\r\n\t\tIDfSysObject sysObject = null;\r\n\t\ttry{\r\n\t\t\tlogger.info(\"repositoryObjectName\"+repositoryObjectName);\r\n\t\t\tif(newObjectId != null && !newObjectId.equals(\"\")){\r\n\t\t\t\t// This is delta migration. object id is maintained since work flow may be triggered on document\r\n\t\t\t\tsysObject = (IDfSysObject) getDocumemtumSession().getObject(new DfId(newObjectId));\r\n\t\t\t\tif( sysObject==null) throw new Exception(\"Object does not exist in the repository\");\r\n\t\t\t\tsysObject.checkout();\r\n\t\t\t\tlogger.info(\"checked out successfully\" );\r\n\t\t\t\tIDfCheckinOperation cio = clientx.getCheckinOperation();\r\n\t\t\t\tcio.setCheckinVersion(IDfCheckinOperation.SAME_VERSION);\r\n\t\t\t\tIDfCheckinNode node = (IDfCheckinNode) cio.add(sysObject);\r\n\t\t\t\tnode.setFilePath(fileLocation);\r\n\t\t\t\tcio.setSession(getDocumemtumSession());\r\n\t\t\t\tnode.setKeepLocalFile(true);\r\n\t\t\t\tif (!cio.execute())\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new Exception(\"Checkin failed.\");\r\n\t\t\t\t}\r\n\t\t\t\tlogger.info(\"checked in successfully\" );\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tlogger.info(\"before get Path\");\r\n\t\t\t\tIDfFormatRecognizer oFormatRec = clientx.getFormatRecognizer(getDocumemtumSession(),fileLocation,null);\r\n\t\t\t\tString fileFormatName = oFormatRec.getDefaultSuggestedFileFormat();\r\n\t\t\t\tlogger.info(\"after get Path\");\r\n\t\t\t\tsysObject =(IDfSysObject) getDocumemtumSession().newObject(repositoryObjectName);\r\n\t\t\t\tsysObject.setPath(fileLocation,fileFormatName,0,null);\r\n\t\t\t\tsysObject.link(repositoryPath);\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.severe(\"Errro in createNewObject\"+e);\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t return sysObject;\r\n\t}", "public interface RequestOtherNiazsanjiService {\n\n /**\n * Save a requestOtherNiazsanji.\n *\n * @param requestOtherNiazsanjiDTO the entity to save\n * @return the persisted entity\n */\n RequestOtherNiazsanjiDTO save(RequestOtherNiazsanjiDTO requestOtherNiazsanjiDTO);\n\n RequestOtherNiazsanjiDTO finalize(RequestOtherNiazsanjiDTO requestOtherNiazsanjiDTO);\n /**\n * Get all the requestOtherNiazsanjis.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);\n\n /**\n * Get all the RequestOtherNiazsanji with eager load of many-to-many relationships.\n *\n * @return the list of entities\n */\n Page<RequestOtherNiazsanjiDTO> findAllWithEagerRelationships(Pageable pageable);\n \n /**\n * Get the \"id\" requestOtherNiazsanji.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Optional<RequestOtherNiazsanjiDTO> findOne(Long id);\n\n /**\n * Delete the \"id\" requestOtherNiazsanji.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n}", "Map<String, Object> getServiceSpecificObjects();", "com.exacttarget.wsdl.partnerapi.ObjectDefinition addNewObjectDefinition();", "protected abstract ServiceObjectType getServiceObjectType();", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\t@Override\r\n\tpublic ResponseDto create(String controllerJson) {\n\t\tMap<String, Object> data = new HashMap<>();\r\n\t\t\r\n\t\tResponseDto response = new ResponseDto();\r\n\t\t\r\n\t\tMap<Object, Object> inputDataMap = new LinkedHashMap<>();\r\n\t\tinputDataMap.put(\"inputString\", controllerJson);\r\n\r\n\t\tGson gson = new Gson();\r\n\t\tContainerDTO dto = gson.fromJson(controllerJson.toString(), ContainerDTO.class);\r\n\t\tList<ContainerDetailsDTO> list = new ArrayList<>();\r\n\t\t// System.out.println(dto.getDELIVERY().getITEM());\r\n\t\tif (dto.getDELIVERY().getITEM() instanceof LinkedTreeMap) {\r\n\t\t\tLinkedTreeMap<String, String> item2 = (LinkedTreeMap) dto.getDELIVERY().getITEM();\r\n\t\t\tContainerDetailsDTO d = getLinkedTreeMapToContainerDetailsDto(item2);\r\n\t\t\tlist.add(d);\r\n\t\t\t// System.out.println(d.getAREACODE());\r\n\t\t} else if (dto.getDELIVERY().getITEM() instanceof ArrayList) {\r\n\t\t\tList<LinkedTreeMap> item2 = (List<LinkedTreeMap>) dto.getDELIVERY().getITEM();\r\n\t\t\tfor (LinkedTreeMap i : item2) {\r\n\t\t\t\tContainerDetailsDTO d = getLinkedTreeMapToContainerDetailsDto(i);\r\n\t\t\t\tlist.add(d);\r\n\t\t\t}\r\n\t\t}\r\n\t\tdto.getDELIVERY().setITEM(list);\r\n\t\tinputDataMap.put(\"processObject\", dto);\r\n\t\t// LOGGER.error(\"INSIDE CREATE CONTAINER SERVIE WITH REQUEST PAYLOAD =>\r\n\t\t// \" + dto);\r\n\t\tif (!ServicesUtil.isEmpty(dto) && !ServicesUtil.isEmpty(dto.getDELIVERY())) {\r\n\t\t\tList<ContainerDetailsDTO> containerDetailsDTOs = (List<ContainerDetailsDTO>) dto.getDELIVERY().getITEM();\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tlong timeStamp = System.currentTimeMillis();\r\n\t\t\t\tString jobIdentity = \"DnProcessJob\" + timeStamp;\r\n\t\t\t\tString group = \"group\" + timeStamp;\r\n\t\t\t\tString triggerName = \"DnProcessTrigger\" + timeStamp;\r\n\t\t\t\tString jobName = \"Job\" + timeStamp;\r\n\t\t\t\tDate currdate = new Date();\r\n\r\n\t\t\t\tJobDetail job = JobBuilder.newJob(ContainerToDeliveryNoteProcessingJob.class)\r\n\t\t\t\t\t\t.withIdentity(jobIdentity, group).build();\r\n\r\n\t\t\t\tSimpleTrigger trigger = (SimpleTrigger) TriggerBuilder.newTrigger().withIdentity(triggerName, group)\r\n\t\t\t\t\t\t.startNow().build();\r\n\t\t\t\tScheduler scheduler = new StdSchedulerFactory().getScheduler();\r\n\r\n\t\t\t\tContainerRecordsDo recordsDo = new ContainerRecordsDo();\r\n\t\t\t\trecordsDo.setPayload(controllerJson.trim());\r\n\t\t\t\trecordsDo.setCreatedAt(currdate);\r\n\r\n\t\t\t\t// containerRecordService.create(recordsDo);\r\n\r\n\t\t\t\tcontainerRecordsDAO.getSession().persist(recordsDo);\r\n\r\n\t\t\t\tcontainerRecordsDAO.getSession().flush();\r\n\t\t\t\tcontainerRecordsDAO.getSession().clear();\r\n\t\t\t\tcontainerRecordsDAO.getSession().getTransaction().commit();\r\n\t\t\t\t\r\n\t\t\t\t// adding data to scheduler context\r\n\t\t\t\tdata.put(\"data\", dto);\r\n\t\t\t\tdata.put(\"timeStamp\", currdate);\r\n\t\t\t\tdata.put(\"containerRecordId\", recordsDo.getId());\r\n\t\t\t\tdata.put(\"jobName\", jobName);\r\n\r\n\t\t\t\tcomp.backgroudDnProcessing(data);\r\n\t\t\t\t\r\n\t\t\t\t// adding data to scheduler context\r\n\t\t\t\tscheduler.getContext().put(\"data\", dto);\r\n\t\t\t\tscheduler.getContext().put(\"timeStamp\", currdate);\r\n\t\t\t\tscheduler.getContext().put(\"containerRecordId\", recordsDo.getId());\r\n\t\t\t\tscheduler.getContext().put(\"jobName\", jobName);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\t * int i=1; for (ContainerDetailsDTO d : containerDetailsDTOs) {\r\n\t\t\t\t * containerDao.create(d, new ContainerDetailsDo());\r\n\t\t\t\t * \r\n\t\t\t\t * if(i % BATCH_SIZE ==0) { containerDao.getSession().flush();\r\n\t\t\t\t * containerDao.getSession().clear(); }\r\n\t\t\t\t * \r\n\t\t\t\t * i++;\r\n\t\t\t\t * \r\n\t\t\t\t * }\r\n\t\t\t\t * \r\n\t\t\t\t * // flushing the session data\r\n\t\t\t\t * containerDao.getSession().flush();\r\n\t\t\t\t * containerDao.getSession().clear();\r\n\t\t\t\t */\r\n\r\n\t\t\t\t/*scheduler.start();\r\n\t\t\t\tscheduler.scheduleJob(job, trigger);*/\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tLOGGER.error(\"INSIDE CREATE CONTAINER SERVICE : JOB STARTED ID [ \"+jobName+\" ]\");\r\n\t\t\t\t\r\n\t\t\t\t//scheduler.standby();\r\n\t\t\t\t// scheduler.shutdown(true);\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Object data = createEntryInDeliveryHeader(dto); LOGGER.\r\n\t\t\t\t * error(\"INSIDE CREATE CONTAINER SERVIE WITH RESPONSE PAYLOAD <= \"\r\n\t\t\t\t * + data);\r\n\t\t\t\t */\r\n\t\t\t\tresponse.setStatus(true);\r\n\t\t\t\tresponse.setCode(HttpStatus.SC_OK);\r\n\t\t\t\tresponse.setMessage(Message.SUCCESS + \"\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tresponse.setStatus(false);\r\n\t\t\t\tresponse.setCode(HttpStatus.SC_INTERNAL_SERVER_ERROR);\r\n\t\t\t\tresponse.setMessage(Message.FAILED + \" : \" + e.toString());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tresponse.setStatus(true);\r\n\t\t\tresponse.setMessage(Message.SUCCESS.getValue());\r\n\t\t\tresponse.setCode(HttpStatus.SC_OK);\r\n\t\t}\r\n\r\n\t\treturn response;\r\n\t}", "private void processExistingObjects(String uri) throws Exception {\n Map resp = k8s.callWS(uri);\n int responseCode = (int) resp.get(\"code\");\n if (responseCode != 200) {\n throw new Exception(\"Unable to load \" + uri + \" - \" + resp);\n }\n\n JSONParser parser = new JSONParser();\n JSONObject root = (JSONObject) parser.parse((String) resp.get(\"data\"));\n JSONArray items = (JSONArray) root.get(\"items\");\n for (Object o : items) {\n JSONObject item = (JSONObject) o;\n\n String resourceVersion = this.getResourceVersion(item);\n if (resourceVersion == null) {\n System.out.println(\"skipping \" + item);\n continue;\n }\n\n this.processedVersions.add(resourceVersion);\n this.lastProcessedResource = resourceVersion;\n if (hasStatus(item)) {\n\n // has been processed at least once\n if (hasObjectChanged(item)) {\n // The object has been updated since the operator was last run\n JSONObject change = new JSONObject();\n change.put(\"object\", item);\n change.put(\"type\", \"MODIFIED\");\n\n // process the object\n try {\n processEvent(change,uri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n\n } else {\n // no status, so it needs to be added\n JSONObject add = new JSONObject();\n add.put(\"object\", item);\n add.put(\"type\", \"ADDED\");\n\n // process the object\n try {\n processEvent(add,uri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n }\n\n }", "@POST( CONTROLLER )\n VersionedObjectKey createObject( @Body CreateObjectRequest request );", "public Object getObject() throws javax.naming.NamingException {\n if (ThreadContext.isValid()) {\n ThreadContext cntx = ThreadContext.getThreadContext();\n byte operation = cntx.getCurrentOperation();\n checkOperation(operation);\n }\n return ref.getObject();\n }", "ProductDto createProduct(ProductDto productDto);", "public interface WeiboCrawlerService {\n int addOrUpdate(Weibo weibo);\n}", "@Override\r\n\t@Transactional\r\n\tpublic void doService() {\n\t\tTbookingrecord booking = new Tbookingrecord();\r\n\t\tbooking.setId(Long.valueOf(31622L));\r\n\t\tbooking.setInstrumentid(2);\r\n\t\tbooking.setUserid(3);\r\n\t\tmappper.insertSelective(booking);\r\n\t\tlogger.debug(booking);\r\n\t\t//int i = 1/0;\r\n\t}", "protected abstract Object createProcessBean(Name name);", "protected abstract SelfChainingDataObject getNewIndependentInstance();", "public interface PutaoFindService {\n public List<News> getNewss(Map<String,Object> map);\n}", "public interface ITest2Service {\n\n Test2Pojo getTest2(Long id);\n}", "@RequestMapping(value = \"/restAddNewService\", method = { RequestMethod.POST })\r\n\tpublic ResponseEntity<JsonResponse<Object>> restAddNewService(\r\n\t\t\t@RequestBody RestServiceMasterModel serviceMaster) {\r\n\t\tlogger.info(\"Method : restAddNewService starts\");\r\n\t\tlogger.info(\"Method : restAddNewService endss\");\r\n\t\treturn serviceDao.restAddNewService(serviceMaster);\r\n\t}", "public interface OrderService {\n\n /**\n * Returns route time\n * @param routeDTO route data transfer object\n * @param orderDTO order dto for building route\n * @return\n */\n Long getRouteTime(RouteDTO routeDTO, OrderDTO orderDTO);\n\n /**\n * Returns drivers from database by specified order duration and order dto\n * @param time order duration\n * @param orderDTO order dto for building a route\n * @return linked hash map, key - drivers' id, value - drivers\n */\n LinkedHashMap<Long, Driver> getDriversForOrder(Long time, OrderDTO orderDTO);\n\n /**\n * Returns trucks from database by specified weight of cargoes\n * @param weight cargoes's weight\n * @return linked hash map, key - trucks' id, value - trucks\n */\n LinkedHashMap<Long, Truck> getTrucksForOrder(Long weight);\n\n /**\n * Specifies drop locations for picked up cargoes\n * @param routeDTO route dto with route points\n * @param points temp collection for building sub route\n */\n void setDropLocations(RouteDTO routeDTO, List<RoutePointDTO> points);\n\n /**\n * Returns weight of cargoes\n * @param routePointDTO temp route point dto with cargo or drop location\n * @param points already built route as list of ordered route points\n * @param weight previous weight data before adding new route point\n * @return weight\n */\n Long getWeight(RoutePointDTO routePointDTO, List<RoutePointDTO> points, Long weight);\n\n /**\n * Adds new route point to the route\n * @param routePointDTO new route point dto\n * @param routeDTO route data transfer object\n * @param points route as an ordered list of route points dtos\n */\n void newRoutePoint(RoutePointDTO routePointDTO, RouteDTO routeDTO, List<RoutePointDTO> points);\n\n /**\n * Returns all cities from database\n * @return linked hash map of cities, key - cities' id\n */\n LinkedHashMap<Long, City> getAllCitiesMap();\n\n /**\n * Adds order to a database\n * @param routeDTO route for building path for the order\n * @param orderDTO complex order data\n */\n void saveOrder(RouteDTO routeDTO, OrderDTO orderDTO);\n\n /**\n * Returns orders' from database as dtos\n * @return unsorted list of orders' data transfer objects\n */\n List<OrderDTO> getAllOrdersDTO();\n\n /**\n * Returns route points for order\n * @param order order entity for getting specified route points\n * @return unsorted list of route points\n */\n List<RoutePoint> getRoutePointsForOrder(Order order);\n\n /**\n * Returns cities dto adopted for RESTful architecture\n * @param id order id for retrieving data from database\n * @return unsorted list of cities as dtos adopted for RESTful architecture\n */\n List<CityDTORest> getRoutePointsForOrder(Long id);\n\n /**\n * Returns cargoes from database for the given order dto\n * @param orderDTO order dto\n * @return unsorted list of cargoes\n */\n List<Cargo> getCargoesForOrder(OrderDTO orderDTO);\n\n /**\n * Deletes order from database\n * @param id order's id for deletion\n */\n void deleteOrder(Long id);\n\n /**\n * Updates order\n * @param order order entity for updating\n */\n void updateOrder(Order order);\n\n /**\n * Return orders as dtos adopted for RESTful architecture\n * @return unsorted list of orders dtos adopted for RESTful architecture\n */\n List<OrderDTORest> getAllOrdersDTORest();\n\n /**\n * Delete temp route point dto from the route dto\n * @param routePoint temp route point dto\n * @param routeDTO route dto collected already built route\n */\n void deleteRoutePoint(String routePoint, RouteDTO routeDTO);\n\n /**\n * Processes new route point, recalculates distance and weight\n * @param orderDTO order dto\n * @param routeDTO route dto\n * @param routePointDTO new route point\n * @return temp cargoes weight\n */\n Long tempProcessPoint(OrderDTO orderDTO, RouteDTO routeDTO, RoutePointDTO routePointDTO);\n}", "public abstract void dataFromEOJ(Service service);", "public DocumentumCoreServicesImpl() {\r\n\r\n\t\tIObjectService iObjService = null;\r\n\r\n\t\tif (this.objectService == null) {\r\n\r\n\t\t\tlogger.info(INFO_INICIANDO_EMC);\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tRepositoryIdentityConstants repositoryIdentityConstants = EMCDocumentumFactory\r\n\t\t\t\t\t\t.getConstants(RepositoryIdentityConstants.class);\r\n\r\n\t\t\t\tthis.setRepositoryIdentityConstants(repositoryIdentityConstants);\r\n\r\n\t\t\t\tContextFactory contextFactory = ContextFactory.getInstance();\r\n\r\n\t\t\t\tIServiceContext serviceContext = contextFactory.getContext();\r\n\t\t\t\tserviceContext.setRuntimeProperty(IServiceContext.USER_TRANSACTION_HINT, IServiceContext.TRANSACTION_REQUIRED);\r\n\t\t\t\tserviceContext.setRuntimeProperty(IServiceContext.PAYLOAD_PROCESSING_POLICY, \"PAYLOAD_FAIL_ON_EXCEPTION\");\r\n\r\n\t\t\t\tsetServiceContext(serviceContext);\r\n\r\n\t\t\t\tRepositoryIdentity repoId = new RepositoryIdentity();\r\n\r\n\t\t\t\trepoId.setRepositoryName(REPOSITORY_NAME);\r\n\r\n\t\t\t\trepoId.setUserName(USER_NAME);\r\n\r\n\t\t\t\trepoId.setPassword(USER_PASSWORD);\r\n\r\n\t\t\t\tgetServiceContext().addIdentity(repoId);\r\n\r\n\t\t\t\t//\t\tcontextFactory.register(getServiceContext());\r\n\r\n\t\t\t\t//iObjectService = ServiceFactory.getInstance().getRemoteService(IObjectService.class, serviceContext, MODULE_NAME, DFS_SERVICE_URL);\r\n\t\t\t\tiObjService = ServiceFactory.getInstance().getLocalService(IObjectService.class, serviceContext);\r\n\r\n\t\t\t\tlogger.info(INFO_CONEXAO_EMC);\r\n\r\n\t\t\t\tthis.objectService = iObjService;\r\n\r\n\t\t\t} catch (ServiceInvocationException e) {\r\n\r\n\t\t\t\tlogger.error(ERROR_CONEXAO_EMC.concat(e.getLocalizedMessage()));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tthis.setObjectService(iObjService);\r\n\t\t}\r\n\r\n\t}", "public Promise<ResourceResponse, ResourceException> createInstance(final Context context, \n final CreateRequest request) {\n try {\n final CreateRequest createRequest = Requests.copyOfCreateRequest(request);\n createRequest.setResourcePath(REPO_RESOURCE_PATH);\n createRequest.setContent(convertToRepoObject(firstResourcePath(context, request), request.getContent()));\n \n // If the request is from ManagedObjectSet then create and return the promise after formatting.\n if (context.containsContext(ManagedObjectSetContext.class)) {\n return getConnection().createAsync(context, createRequest).then(FORMAT_RESPONSE);\n }\n \n // Get the before value of the managed object\n final ResourceResponse beforeValue = getManagedObject(context);\n \n // Create the relationship\n final ResourceResponse response = \n getConnection().createAsync(context, createRequest).then(FORMAT_RESPONSE).getOrThrow();\n \n // Get the before value of the managed object\n final ResourceResponse afterValue = getManagedObject(context);\n \n // Do activity logging. \n // Log an \"update\" for the managed object, even though this is a \"create\" request on relationship field.\n activityLogger.log(context, request, \"update\", getManagedObjectPath(context), beforeValue.getContent(), \n afterValue.getContent(), Status.SUCCESS);\n\n // Changes to the relationship will trigger sync on the managed object that this field belongs to.\n managedObjectSyncService.performSyncAction(context, request, getManagedObjectId(context), \n SyncServiceAction.notifyUpdate, beforeValue.getContent(), afterValue.getContent());\n \n return expandFields(context, request, response);\n } catch (ResourceException e) {\n return e.asPromise();\n } catch (Exception e) {\n return new InternalServerErrorException(e.getMessage(), e).asPromise();\n }\n }", "public Object getDeletedObject(ABEDto object)\n\t{\n\t\t//Send this as return object when input object is null\n\t\tObject obj = new Object();\n\t\t if (object instanceof Hotel) {\n\t\t\t List<Hotel> hotelsList = new ArrayList<Hotel>();\n\t\t\t com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel hotelBO = new com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel();\n\t\t\t List<com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel> hotelListBO = new ArrayList<com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel>();\n\t\t\t\thotelsList.add((Hotel) object);\n\t\t\t\tif(hotelsList!=null && hotelsList.size()>0)\n\t\t\t\t{\n\t\t\t\t\tfor(int i=0;i<hotelsList.size();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hotelsList.get(i)!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\thotelBO = this.getHotelReq(hotelsList.get(i));\n\t\t\t\t\t\thotelListBO.add(hotelBO);\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\treturn hotelListBO;\n\t\t }\n\t\t \n\t\t else if(object instanceof Service)\n\t\t {\n\t\t\t List<Service> servicesList = new ArrayList<Service>();\n\t\t\t com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.service.v1.Service serviceBO = new com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.service.v1.Service();\n\t\t\t List<com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.service.v1.Service> serviceListBO = new ArrayList<com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.service.v1.Service>();\n\t\t\t servicesList.add((Service) object); \n\t\t\t\tif(servicesList!=null && servicesList.size()>0)\n\t\t\t\t{\n\t\t\t\t\tfor(int i=0;i<servicesList.size();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(servicesList.get(i)!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tserviceBO = this.getServiceReq(servicesList.get(i));\n\t\t\t\t\t\t\tserviceListBO.add(serviceBO);\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\treturn serviceListBO;\n\t\t }\n\t\t \n\t\t else if(object instanceof Insurance)\n\t\t {\n\t\t\t List<Insurance> insuranceList = new ArrayList<Insurance>();\n\t\t\t\tinsuranceList.add((Insurance) object);\n\t\t\t\t\n\t\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.insurance.v1.Insurance insuranceBO = new com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.insurance.v1.Insurance();\n\t\t\tList<com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.insurance.v1.Insurance> insuranceListBO = new ArrayList<com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.insurance.v1.Insurance>();\n\t\t\tif(insuranceList!=null && insuranceList.size()>0)\n\t\t\t{\n\t\t\t\tfor(int i=0;i<insuranceList.size();i++)\n\t\t\t\t{\n\t\t\t\t\tif(insuranceList.get(i)!=null)\n\t\t\t\t\t{\n\t\t\t\t\t\tinsuranceBO = this.getInsuranceReq(insuranceList.get(i));\n\t\t\t\t\t\tinsuranceListBO.add(insuranceBO);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn insuranceListBO;\n\t\t }\n\treturn obj;\t\n\t}", "public interface OrderDetailService {\n\t\n\t/**\n\t * This method is to create all order details to a specific order. \n\t * @param lOrderDetails List of details to a specific order.\n\t * @param order Order to assigned the list of details\n\t * @return\n\t */\n\tpublic int addOrderDetail(List<OrderDetail> lOrderDetails, Order order);\n\t\n\t/**\n\t * This method find all order details of the a specific order\n\t * @param orderId orderId\n\t * @return List of order detail asociated a specific order \n\t */\n\tpublic List<OrderDetail> getOrderDetailByOrder(Long orderId);\n\n}", "public Object getObject() ;", "@Override\n\tpublic Object compute(IEclipseContext context, String contextKey) {\n\t\tTaskService taskService = \n\t\t\t\tContextInjectionFactory.make(TransientTaskServiceImpl.class, context);\n\t\t\n\t\t// add instance of TaskService to context so that\n//\t\t// test next caller gets the same instance\n//\t\tMApplication app = context.get(MApplication.class);\n//\t\tIEclipseContext appCtx = app.getContext();\n//\t\tappCtx.set(TaskService.class, taskService);\n\t\t\n\t\t// in case the TaskService is also needed in the OSGi layer, e.g.\n\t\t// by other OSGi services, register the instance also in the OSGi service layer\n\t\tBundle bundle = FrameworkUtil.getBundle(this.getClass());\n\t\tBundleContext bundleContext = bundle.getBundleContext();\n\t\tbundleContext.registerService(TaskService.class, taskService, null);\n\n\t\t// return model for current invocation \n\t\t// next invocation uses object from application context\n\t\treturn taskService;\n\t}", "protected abstract Object createObjectInternal(ObjectInformation objectInformation) throws FillingException;", "@Override\n\t\t\tpublic void respuestaObj(WSInfomovilMethods metodo,\n\t\t\t\t\tWsInfomovilProcessStatus status, Object obj) {\n\t\t\t\t\n\t\t\t}", "public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios\n\t * @param calendario\n\t * @param usuario\n\t */\n\tpublic void updateCalendario(Calendario calendario, Usuario usuario);\n\t\n\t/**devuelve lista de calendarios\n\t * @param criteria\n\t * @return\n\t */\n\tpublic List getCalendarios(Map criteria);\n\t\n\t/**\n\t * devuelve el calendario\n\t * @param criteria\n\t * @return\n\t */\n\tpublic Calendario getCalendario(Map criteria);\n\t\n /**\n * devuelve los feriados d euna zona\n * @param criteria\n * @return\n */\n public List getFeriadoZona(Map criteria);\n\t\n\t/**\n\t * Actualiza feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * Inserta los feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * elimina los feriados d euna zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void deleteFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\n\t/**\n\t * Metodo que trae las zonas de una region\n\t * @param feriadoRegion\n\t * @return\n\t */\n\tpublic List getZonasRegion(String feriadoRegion);\n\n\t/**\n\t * Retorna el indicador de habilitacion RUV\n\t * @param criteria\n\t * @return\n\t */\n\tpublic String getIndicadorHabilitacionRuv(Map criteria);\n\n\t/**\n\t * Genera la informacion para el reporte RUV\n\t * @param map\n\t */\n\tpublic void executeGeneracionReporteRUV(Map map);\n\t\n\t/**\n\t * Genera los archivos de libro de ventas - detalles SII\n\t * @param map\n\t */\n\tpublic void executeGenerarArchivosLibroVentasDetalleSII(Map map);\n\t\n}", "OrderDTO create(OrderDTO orderDTO);", "public interface OrderPrePayService {\n\n int add(OrderPrePayDO orderPrePayDO);\n\n int deleteByOrderNo(String orderNo);\n\n OrderPrePayDO queryByOrderNo(String orderNo);\n}", "public DataHolder processRequest(DataHolder indataholder) throws java.rmi.RemoteException;", "public interface OrderRefCartService {\n public int insert(String ids,String orderNumber);\n}", "public interface PromulgatorService {\n\n //修改发布者信息\n int updateByPrimaryKeySelective(Promulgator record);\n\n //得到用户总点赞数\n List<Map<String,Object>> guidLikecount(String saleGuid);\n\n //根据proId查找数据\n Promulgator selectByPrimaryKey(String proId);\n\n //修改用户总点赞数\n int upLikecount(Integer likeCount,String proId);\n\n\n int insertSelective(Promulgator record);\n\n Integer selectPlikeCount(String saleGuid);\n}", "public interface CreateStudentOrderFor15Service {\n public void create();\n}", "public interface BookBLService\n{\n /**\n *\n * @param bookvo 表示一个BookVO对象\n * @return 返回新增结果\n */\n ResultMessage addBook(BookVO bookvo);\n\n /**\n *\n * @param data 表示日期\n * @return 返回一个BookVO对象\n */\n BookVO readBook(Data data);\n}", "public interface TransferHospitalService extends ReadOnlyBaseService<HospitalReadOnly> {\n /**\n * 获取用户医院数据\n * @param hosId\n * @return\n * @throws InvocationTargetException\n * @throws IntrospectionException\n * @throws InstantiationException\n * @throws IllegalAccessException\n */\n HospitalReadOnly getHospital(Long hosId)throws InvocationTargetException, IntrospectionException, InstantiationException, IllegalAccessException ;\n\n}", "public interface OrderService {\n\n void makeOrder(Order order);\n}", "public interface ReceiveThirdDataService {\n\n /**\n * 解析第三数据,每叫号业务推送\n *\n * @param courtTakeNumPojo\n * @return\n */\n RestApiMsg<String> transferThirdData(CourtTakeNumPojo courtTakeNumPojo, HttpServletRequest request);\n}", "@Remote\r\npublic interface ProductServiceRemote {\r\n long addProduct(Product product);\r\n}", "@Override\n\tpublic void ReciveFrom(User user_reciver) throws ServiceException {\n\n\t}", "protected abstract ServiceRegistry getNewServiceRegistry();", "public interface SalesRepresentativeService {\n void addEmployee(Context context, SalesRepresentative employee);\n void updateEmployee(Context context, SalesRepresentative employee);\n}", "public interface BookService {\n NoteResult<List<Book>> loadUserBooks(String userId);\n NoteResult<Map> addBook(String userId, String bookName);\n}", "public static void getProcessService(AmsProcess receivedProcess) {\n\t\tboolean result = false;\n\t\tlong clientId = receivedProcess.getClientId();\n\t\tif (receivedProcess.getAmsProcessDetailsList().isEmpty()) {\n\t\t\t// case: when process list is empty\n\t\t\tresult = fetchProcessList(clientId);\n\t\t} else {\n\t\t\t// case: when process list is not empty\n\t\t\tresult = updateProcessList(receivedProcess.getAmsProcessDetailsList(), clientId);\n\t\t}\n\t\tif (result) {\n\t\t\tlog.info(\"Process response published to ams '\" + clientId + \"' successfully..\");\n\t\t} else {\n\t\t\tlog.info(\"Error in publishing processes to ams...\");\n\t\t}\n\t}", "public interface OrderService {\r\n\r\n /**\r\n * 创建订单\r\n * @param orderDTO\r\n * @return\r\n */\r\n OrderDTO create(OrderDTO orderDTO);\r\n\r\n /**\r\n * 完结订单(只能卖家操作)\r\n * @param orderId\r\n * @return\r\n */\r\n OrderDTO finish(String orderId);\r\n}", "@Override\n protected ProdutoServicoImpl getservice() {\n return produtoService;\n }", "public interface RefuelingService {\n void saveOrUpdate(RefuelingBD refueling);\n}", "private void discoverNew(RoutingContext rctx) {\n rctx.response().end(new ObjectBuilder().build());\n }", "public interface OldManInfoService {\n PageInfo getOldManInfoList(String param,int currentPage,int pageSize);\n CodeObject save(PensionOldmaninfoB pensionOldmaninfoB,String userId);\n CodeObject update(PensionOldmaninfoB pensionOldmaninfoB,String userId);\n CodeObject delete(String delId);\n}", "public interface AppStandardService {\n\n int addStanard(AppStandard appStandard) throws MilkTeaException;\n\n\n //int updataStandard(AppStandard appStandard) throws MilkTeaException;\n\n AppStandard selectById(String id);\n\n // List<AppStandard> selectByGoodsId(String id);\n\n}", "private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}", "interface Retrieve {}", "UserDTO addNewData(UserDTO userDTO);", "public interface TbItemServiceAnno {\n //获取所有\n List<TbItem> getAll();\n\n //根据id进行查询\n TbItem getById(Long id);\n\n //插入\n int insertObj(TbItem tbItem);\n\n //更新\n int updateObj(TbItem tbItem);\n}", "protected void service(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"teste2\");\n int id = Integer.parseInt(request.getParameter(\"id\"));\n\n ProductBsn bsn = new ProductBsn();\n\n Product p = bsn.getProduct(id);\n System.out.println(p.getID());\n request.setAttribute(\"product\", p);\n System.out.println(\"teste1\");\n RequestDispatcher rd = request.getRequestDispatcher(\"editProduct.jsp\");\n rd.forward(request, response);\n\n }", "public interface PurchaseOrderService {\n /**\n * create Purchase Order From Boq.\n * @param boqDetail boqDetail\n * @param appUser appUser\n * @return PurchaseOrderHeader\n */\n PurchaseOrderHeader createPoFromBoq(BoqDetail boqDetail, AppUser appUser);\n /**\n * add lines to Purchase Order Header.\n * @param purchaseOrderHeader purchaseOrderHeader\n * @param boqDetail boqDetail\n * @return boolean\n */\n boolean addLineToPoFromBoqDetail(PurchaseOrderHeader purchaseOrderHeader, BoqDetail boqDetail);\n\n /**\n * save Purchase Order Header into database.\n * @param purchaseOrderHeader purchaseOrderHeader\n * @param securityContext securityContext\n * @return response\n */\n CommonResponse savePurchaseOrder(PurchaseOrderHeader purchaseOrderHeader, SecurityContext securityContext);\n\n /**\n * get all purchase Order Header.\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaders();\n\n /**\n * get PurchaseOrderHeader whole oblect per pohId.\n * @param pohId pohId.\n * @return PurchaseOrderHeader\n */\n PurchaseOrderHeader getPurchaseOrderHeaderWhole(long pohId);\n /**\n /**\n * get product purchase items for specific supplier.\n * @param suppId suppId\n * @param searchStr searchStr\n * @return List of PruductPurchaseItem\n */\n List<ProductPurchaseItem> getAllSupplierProductPurchaseItems(long suppId, String searchStr);\n /**\n * get all purchase Order Header.\n * @param supplierId supplierId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierIdAndStatusCode(long supplierId);\n\n /**\n * get all purchase Order Header per orguid and status.\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaderNotFullyReceived();\n\n /**\n * get all purchase Order Header for specific supplier.\n * @param supplierId supplierId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);\n /**\n * search purchase order header.\n * @param searchForm searchForm\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> searchPurchaseOrderHeaders(GeneralSearchForm searchForm);\n\n /**\n * get product purchase item for specific supplier and catalog no.\n * @param suppId suppId\n * @param catalogNo catalogNo\n * @return List of PruductPurchaseItem\n */\n ProductPurchaseItem getSupplierProductPurchaseItemPerCatalogNo(long suppId, String catalogNo);\n\n /**\n * get all purchase Order Header for specific product.\n * @param prodId prodId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseLine> getAllPurchaseOrderOfProduct(long prodId);\n\n /**\n * search purchase order header.\n * @param searchForm searchForm\n * @return List of PurchaseOrderHeader\n */\n GeneralSearchForm searchPurchaseOrderHeadersPaging(GeneralSearchForm searchForm);\n /**\n * create Purchase Order From Boq.\n * @param txnDetail sale order detail\n * @param appUser appUser\n * @return PurchaseOrderHeader\n */\n PurchaseOrderHeader createPoFromSaleOrder(TxnDetail txnDetail, AppUser appUser);\n\n /**\n * add lines to Purchase Order Header from txn detail.\n * @param purchaseOrderHeader purchaseOrderHeader\n * @param txnDetail txnDetail\n * @return true if successfull, otherwise return false;\n */\n boolean addLineToPoFromTxnDetail(PurchaseOrderHeader purchaseOrderHeader, TxnDetail txnDetail);\n\n /**\n * get all purchase order headers linked to specific sale order.\n * @param txhdId transaction header id.\n * @return List of purchase order linked to sale order\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderOfSaleOrder(long txhdId);\n\n /**\n * update status of linked BOQ.\n * @param pohId purchaes order header id.\n */\n void updatePurchaseOrderLinkedBoqStatus(long pohId);\n\n /**\n * delete purchase order per poh id.\n * @param pohId pohId\n * @return CommonResponse.\n */\n CommonResponse deletePurchaseOrderPerPhoId(long pohId);\n\n /**\n * update order status of linked sales orders.\n * @param pohId purchaes order header id.\n */\n void updatePurchaseOrderLinkedSaleOrderStatus(long pohId);\n\n /**\n * get all IN-PROGRESS and CONFIRMED purchase Order Header.\n * @param supplierId supplierId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllOutstandingAndConfirmedPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);\n\n\n /**\n * get product purchase item for specific supplier and catalog no.\n * @param sprcId sprcId\n * @return List of PruductPurchaseItem\n */\n ProductPurchaseItem getProductPurchaseItemPerId(long sprcId);\n}", "public interface ResourceChangeForMaketService {\n\n void send(Object o,User operator);\n}", "public OrderVO addOrder(String member_id, int order_pay, int delivery, String order_address, int order_fee, int order_status) {\n\t\t\n\t\tSystem.out.println(\"Service_addOrd Start\");\n\t\tOrderVO OrderVO = new OrderVO();\n\t\tOrderVO.setMember_id(member_id);\n\t\tOrderVO.setOrder_pay(order_pay);\n\t\tOrderVO.setDelivery(delivery);\n\t\tOrderVO.setOrder_address(order_address);\n\t\tOrderVO.setOrder_fee(order_fee);\n\t\tOrderVO.setOrder_status(order_status);\n\t\tdao.insert(OrderVO);\n\t\tSystem.out.println(\"ProINS¦¨¥\\\" + member_id );\n\t\treturn OrderVO;\n\t}\n\n\tpublic List<OrderVO> getAll() {\n\t\treturn dao.getAll();\n\t}\n\tpublic List<OrderVO> getAll(String member_id) {\n\t\treturn dao.getAllOrderByMemNo_All(member_id);\n\t}\n\tpublic List<OrderVO> getAll_Pay(String member_id) {\n\t\treturn dao.getAllOrderByMemNo_Pay(member_id);\n\t}\n\tpublic List<OrderVO> getAll_Com(String member_id) {\n\t\treturn dao.getAllOrderByMemNo_Com(member_id);\n\t}\n\tpublic List<OrderVO> getAll_Can(String member_id) {\n\t\treturn dao.getAllOrderByMemNo_Can(member_id);\n\t}\n\n\tpublic void complete_order(String order_id) {\n\t\tdao.complete_order(order_id);\n\t}\n\tpublic void cancel_order(String order_id) {\n\t\tdao.cancel_order(order_id);\n\t}\n\t\n\t\n\tpublic OrderVO getOneOrder(String order_id) {\n\t\tSystem.out.println(\"¨ì¹FGETONEPRODUCT\");\n\t\treturn dao.findByPrimaryKey(order_id);\n\t}\n\tpublic OrderVO UpdateStatus(String order_id,int order_status) {\n\t\tOrderVO OrderVO = new OrderVO();\n\t\tSystem.out.println(\"service update_status start\");\n\t\t\n\t\tOrderVO.setOrder_id(order_id);\n\t\tOrderVO.setOrder_status(order_status);\n\t\tdao.updatestatus(OrderVO);\n\t\tSystem.out.println(\"service update_status off\");\n\t\treturn OrderVO;\n\t}\n\tpublic OrderVO ProUpdate(String order_id,String member_id, int order_pay, int delivery, String order_address, int order_fee) {\n\t\tSystem.out.println(\"Service update start\");\n\t\tOrderVO OrderVO = new OrderVO();\n\t\tOrderVO.setOrder_id(order_id);\n\t\tOrderVO.setMember_id(member_id);\n\t\tOrderVO.setOrder_pay(order_pay);\n\t\tOrderVO.setDelivery(delivery);\n\t\tOrderVO.setOrder_address(order_address);\n\t\tOrderVO.setOrder_fee(order_fee);\n//\t\tOrderVO.setOrder_status(order_status);\n\t\t\n\t\tdao.update(OrderVO);\n\t\tSystem.out.println(\"Service update off \");\n\t\treturn OrderVO;\n\t}", "@Override\n public ClarifaiProcessDTO findOne(String id) {\n log.debug(\"Request to get ClarifaiProcess : {}\", id);\n ClarifaiProcess clarifaiProcess = clarifaiProcessRepository.findOne(id);\n return clarifaiProcessMapper.toDto(clarifaiProcess);\n }", "void lookupAndSaveNewPerson();", "@Override\n\tpublic void subscribe()\n\t{\n\t\ts_ctx = (IContextProxy) ServiceManager.get(IContextProxy.class);\n\t\ts_fileMgr = (IFileManager) ServiceManager.get(IFileManager.class);\n\t\tm_models = new ProcedureModelManager(s_ctx, s_fileMgr);\n\t}", "@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service consulterService(Integer idService) {\n\t\tService service= (Service) serviceRepository.findOne(idService);\r\n\t\tif(service==null) throw new RuntimeException(\"Service introuvable\");\r\n\t\treturn (sn.ucad.master.assurance.bo.Service) service;\r\n\t}", "public interface PatientService {\n\n /**\n * 新增病人获取ID\n *\n * @return\n */\n Long getNewPid(Patient patient);\n\n /**\n * 新增病人\n *\n * @param patient\n * @return\n */\n JSONObject newPatient(Patient patient);\n\n\n /**\n * 复诊输入病人条件查询\n *\n * @param patient\n * @return\n */\n JSONObject revisit(Patient patient);\n\n\n /**\n * 获取地址列表\n * @return\n */\n JSONObject getPlace();\n\n\n /**\n * 获取病人列表\n * @return\n */\n JSONObject getPatientList(String pName,Integer pageSize,Integer pageNum);\n\n\n /**\n * 获取病人基本信息\n * @param pId\n * @return\n */\n JSONObject getPatientInfo(Long pId);\n\n /**\n * 更新病人基本信息\n * @param patient\n * @return\n */\n JSONObject updatePatientInfo(Patient patient);\n\n\n /**\n * 复诊时,有重复条件者获取病人列表\n */\n JSONObject getRevisitList(Patient patient,Integer pageSize,Integer pageNum);\n\n\n /**\n * 删除病人\n * @param patientId\n * @return\n */\n JSONObject deletePatient(Long patientId);\n\n /**\n * 将选中的病人的病历保存到Word文档\n */\n void saveObjToWord(List<Long> inquiryIdList, boolean all,Long patientId, HttpServletResponse response);\n}", "public interface FlightService {\n\n /**\n * CREATE FLIGHT - adding new entity\n * @param flight entity of flight object\n * @return Flight object\n */\n Flight saveFlight(Flight flight);\n\n /**\n * READ FLIGHT - read exiting entity\n * @param id Long value of flight id\n * @return Flight object\n */\n Flight getFlight(Long id) throws DataAccessException;\n\n /**\n * UPDATE FLIGHT - update existing entity\n * @param flight entity of flight object\n * @return Flight object\n */\n Flight updateFlight(Flight flight);\n\n /**\n * DELETE FLIGHT - delete entity\n * @param flight Long value of flight id\n */\n void removeFlight(Flight flight);\n\n /**\n * FIND FLIGHT BY NAME - find all entities by parameter\n * @param name String value of flight name\n * @return List of Flight objects\n */\n List<Flight> findFlightByName(String name) throws DataAccessException;\n\n /**\n * FIND ALL FLIGHTS - find all entities\n * @return List of Flight objects\n */\n List<Flight> findAllFlights();\n\n /**\n * Add steward to flight\n * @param flight Flight where to add Steward\n * @param steward Steward to be add\n * @return List of Flight objects\n */\n Flight addStewardToFlight(Flight flight, Steward steward);\n\n /**\n * Validate Flight parameters - steward availibility, airplane availibility and time\n * @param flight validated Flight object\n * @return validation true or false if do not pass\n */\n boolean validateFlight(Flight flight);\n\n Flight removeStewardToFlight(Flight flight, Steward steward);\n}", "@Override\n public DataObjectResponse<Agenda> handlePOST(DataObjectRequest<Agenda> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validatePOST(request);\n\n Agenda agendaToPersist = request.getDataObject();\n final String customerID = agendaToPersist.getCustomerId();\n\n ObjectTrackerManager trackerManager = new ObjectTrackerManager();\n trackerManager.register(new EndpointObjectTracker<>(agendaProgressClient, AgendaProgress.class, customerID));\n trackerManager.register(new EndpointObjectTracker<>(operationProgressClient, OperationProgress.class, customerID));\n trackerManager.register(new PersisterObjectTracker<>(getObjectPersister(), Agenda.class));\n\n // verify we have a valid insight for this agenda\n Insight insight = null;\n try\n {\n insight = getInsightSelector().select(agendaToPersist);\n } catch (ValidationException e)\n {\n return new DefaultDataObjectResponse<>(ErrorResponseFactory.buildErrorResponse(e, e.getResponseCode(), request.getCID()));\n }\n if(insight == null)\n {\n return new DefaultDataObjectResponse<>(ErrorResponseFactory.objectNotFound(\n \"No available insights for processing agenda\",\n request.getCID()));\n }\n\n // The Agenda id is generated up front for use on other object updates/creates\n agendaToPersist.setId(UUID.randomUUID().toString());\n AgendaInsight agendaInsight = new AgendaInsight();\n agendaInsight.setInsightId(insight.getId());\n agendaInsight.setResourcePoolId(insight.getResourcePoolId());\n agendaToPersist.setCid(agendaToPersist.getCid() == null ? UUID.randomUUID().toString() : agendaToPersist.getCid());\n agendaToPersist.setAgendaInsight(agendaInsight);\n agendaToPersist.setParams(agendaToPersist.getParams() == null ? new ParamsMap() : agendaToPersist.getParams());\n\n DataObjectResponse<AgendaProgress> progressResponse =\n agendaToPersist.getProgressId() == null ? postAgendaProgress(agendaToPersist, request.getCID()) : putAgendaProgress(agendaToPersist);\n if (progressResponse.isError())\n {\n trackerManager.cleanUp();\n return new DefaultDataObjectResponse<>(progressResponse.getErrorResponse());\n }\n final String agendaProgressId = progressResponse.getFirst().getId();\n trackerManager.track(progressResponse.getFirst());\n agendaToPersist.setProgressId(agendaProgressId);\n\n // always create new OperationProgress objects\n if (agendaToPersist.getOperations() != null)\n {\n DataObjectResponse<OperationProgress> persistResponse = persistOperationProgresses(agendaToPersist, request.getCID(), trackerManager);\n if (persistResponse.isError())\n {\n trackerManager.cleanUp();\n return new DefaultDataObjectResponse<>(persistResponse.getErrorResponse());\n }\n }\n\n DataObjectResponse<Agenda> agendaPersistResponse = super.handlePOST(request);\n if (agendaPersistResponse.isError())\n {\n trackerManager.cleanUp();\n return agendaPersistResponse;\n }\n\n Agenda agendaResp = agendaPersistResponse.getFirst();\n trackerManager.track(agendaResp);\n\n if (!(agendaToPersist.getParams().containsKey(GeneralParamKey.doNotRun)))\n {\n DataObjectResponse<ReadyAgenda> readyAgendaResponse = persistReadyAgenda(insight.getId(), agendaResp.getId(), agendaResp.getCustomerId(), request.getCID());\n if (readyAgendaResponse.isError())\n {\n trackerManager.cleanUp();\n return new DefaultDataObjectResponse<>(readyAgendaResponse.getErrorResponse());\n }\n }\n\n return agendaPersistResponse;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.WhoOwnsWhom addNewWhoOwnsWhom();" ]
[ "0.59131736", "0.5740102", "0.57055134", "0.5705335", "0.55950254", "0.5584406", "0.5574536", "0.55426043", "0.5530257", "0.5493357", "0.5481325", "0.5475056", "0.543069", "0.5410446", "0.54010737", "0.5379192", "0.53567916", "0.535397", "0.5333236", "0.5331284", "0.5329949", "0.5329048", "0.5325841", "0.5323362", "0.53212136", "0.53121823", "0.5310328", "0.5298664", "0.5274276", "0.52719575", "0.52693504", "0.5264364", "0.5251602", "0.5250843", "0.52504945", "0.52423364", "0.5235142", "0.52174056", "0.5215758", "0.52128166", "0.5207302", "0.51997155", "0.51985145", "0.5197414", "0.5196172", "0.51917535", "0.51898", "0.51873267", "0.5183496", "0.51800257", "0.5178111", "0.51764077", "0.5173033", "0.5169252", "0.5169099", "0.51609975", "0.5140827", "0.5140547", "0.51385933", "0.513715", "0.5135194", "0.51250124", "0.5118985", "0.51185566", "0.51179266", "0.5115834", "0.51115", "0.5109052", "0.51071304", "0.510699", "0.5105396", "0.51036376", "0.509803", "0.50848293", "0.50832134", "0.50826716", "0.50801677", "0.5079197", "0.5075143", "0.5074874", "0.507331", "0.5073244", "0.50720155", "0.5069149", "0.5068893", "0.5065629", "0.5063492", "0.5061821", "0.5057417", "0.5052508", "0.5051901", "0.5051455", "0.50495225", "0.5048817", "0.5047634", "0.50444984", "0.50407207", "0.5039037", "0.50379807", "0.50371194", "0.50365293" ]
0.0
-1
Here create the HashMap and go through the word letters, count them if the letter is not already counted
private HashMap<Character, Integer> countAllLetters(String word) { WordToolbox otherWord = new WordToolbox(word.toLowerCase()); HashMap<Character, Integer> mapOfWord = new HashMap<>(); for (int i = 0; i < word.length(); i++) { mapOfWord.put(word.toLowerCase().charAt(i), otherWord.countHowMany(word.toLowerCase().charAt(i))); } return mapOfWord; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\t\r\n\t\tScanner info = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the phrase:\");\r\n\t\tString sentence = info.nextLine();\r\n\t\t\r\n\t\tsentence = sentence.trim().toUpperCase();\r\n\t\t\r\n\t\tfor (int i = 0; i < sentence.length(); i++) {\r\n\t\t\tif (sentence.charAt(i) <'A' || sentence.charAt(i) > 'Z' ) {\r\n\t\t\t\tsentence = sentence.replace(\"\"+sentence.charAt(i), \"/\");\r\n//\t\t\t\tSystem.out.println(sentence);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString[] word = sentence.split(\"/\") ;\r\n\t\t\r\n\t\tint total = 0;\r\n\t\tif (word.length < 1) {\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\r\n\t\t\tHashMap hMap = new HashMap();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (word[0].length() > 0) {\r\n\t\t\t\thMap.put(word[0].length(), 1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (int i = 1; i < word.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < i; j++) {\r\n\t\t\t\t\tif (word[i].length() == word[j].length()) {\r\n\t\t\t\t\t\tint cnt = (int) hMap.get(word[i].length());\r\n\t//\t\t\t\t\tSystem.out.println(\"cnt==>\"+cnt);\r\n\t\t\t\t\t\thMap.put(word[i].length(),++cnt);\r\n\t\t\t\t\t\t\t\r\n\t//\t\t\t\t\tSystem.out.println(word[i].length()+\"==>\"+hMap.get(word[i].length()));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (j == (i-1)){\r\n\t\t\t\t\t\t\thMap.put(word[i].length(), 1);\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\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSet<Integer> keys1 = hMap.keySet();\r\n\t\r\n\t\t\tfor(int key:keys1) {\r\n\t\t\t\tif (key !=0) {\r\n\t\t\t\t\tSystem.out.println(hMap.get(key)+\" \"+key +\" letter words\");\r\n\t\t\t\t\ttotal += (int)hMap.get(key);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(total+\" total words\");\r\n\t\t\r\n\t}", "public static void main(String[] args) throws IOException {\n\n String file = \"C:/Java Projects/java-web-dev-exercises/src/exercises/CountingCharsSentence.txt\";\n Path path = Paths.get(file);\n List<String> lines = Files.readAllLines(path);\n Object[] string = lines.toArray();\n String string2 = Arrays.toString(string);\n\n String[] wordsInString = string2.toLowerCase().split(\"\\\\W+\");\n String rejoinedString = String.join(\"\", wordsInString);\n char[] charactersInString = rejoinedString.toCharArray();\n\n HashMap<Character, Integer> letterMap = new HashMap<>();\n\n\n for (char letter : charactersInString) {\n if (!letterMap.containsKey(letter)) {\n int letterCount = 1;\n letterMap.put(letter, letterCount);\n } else if (letterMap.containsKey(letter)) {\n letterMap.put(letter, letterMap.get(letter) + 1);\n }\n }\n\n\n System.out.println(letterMap);\n }", "@Override //old methd for letter count\n public Integer letterCount(String inputString) {\n char[] characterArray = inputString.toCharArray();\n Map<Character, Integer> wordFrequencyMap = new HashMap<Character, Integer>();\n\n for (char character : characterArray) {\n if (wordFrequencyMap.containsKey(character)) {\n\n Integer wordCount = (Integer) wordFrequencyMap.get(character);\n wordFrequencyMap.put(character, wordCount + 1);\n\n } else {\n wordFrequencyMap.put(character, 1);\n\n }\n }\n return null; //iterateWordCount(wordFrequencyMap);\n }", "void Create(){\n map = new TreeMap<>();\r\n\r\n // Now we split the words up using punction and spaces\r\n String wordArray[] = wordSource.split(\"[{ \\n\\r.,]}}?\");\r\n\r\n // Now we loop through the array\r\n for (String wordArray1 : wordArray) {\r\n String key = wordArray1.toLowerCase();\r\n // If this word is not present in the map then add it\r\n // and set the word count to 1\r\n if (key.length() > 0){\r\n if (!map.containsKey(map)){\r\n map.put(key, 1);\r\n }\r\n else {\r\n int wordCount = map.get(key);\r\n wordCount++;\r\n map.put(key, wordCount);\r\n }\r\n }\r\n } // end of for loop\r\n \r\n // Get all entries into a set\r\n // I think that before this we just have key-value pairs\r\n entrySet = map.entrySet();\r\n \r\n }", "private List<Tuple> charCountMap(Tuple input) {\n \n String[] words = input.snd().replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase().split(\"\\\\s+\");\n \n List<Tuple> output = new ArrayList<Tuple>();\n \n for(String word : words) {\n Integer chars = word.length();\n output.add(new Tuple(chars.toString(),\"1\"));\n }\n \n lolligag();\n \n //<charCount, 1>, <charCount, 1> ...\n return output;\n }", "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}", "private void RecalculateCharDistribution() {\r\n\t\tMap<Character, Integer> temp = new HashMap<>();\r\n\t\tfor (String s : sameWordLength) {\r\n\t\t\tfor (int i = 0; i < s.length(); i++) {\r\n\r\n\t\t\t\tchar ch = s.charAt(i);\r\n\t\t\t\tif (guessedCharacter.contains(ch)) {\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (!temp.containsKey(ch)) {\r\n\t\t\t\t\t\ttemp.put(ch, 1);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tint t = temp.get(ch) + 1;\r\n\t\t\t\t\t\ttemp.put(ch, t);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tcharCount = temp;\r\n\r\n\t}", "public static void cuentaLetras(char[] c)\n{\n for(int k=0; k < c.length; k++)\n {\n char currentChar = c[k]; \n //to check that currentChar is not in map, if not will add 1 count for firsttime\n if(map1.get(currentChar) == null){\n map1.put(currentChar, 1); \n } \n /*If it is repeating then simply we will increase the count of that key(character) by 1*/\n else {\n map1.put(currentChar, map1.get(currentChar) + 1);\n }\n } //todo el parrafo\n\n}", "private static Map<Character, Integer> countChars(char[] characters) {\n\t\t/**\n\t\t * creating hashMap called map for storing the character along with count\n\t\t */\n\t\tMap<Character, Integer> map = new HashMap<>();\n\t\t/**\n\t\t * using for as outerloop to take each character for checking\n\t\t */\n\t\tfor (int i = 0; i < characters.length; i++) {\n\t\t\t/**\n\t\t\t * declaring count variable to keep count of repeated characters\n\t\t\t */\n\t\t\tint count = 0;\n\t\t\t/**\n\t\t\t * inner loop for checking the character with particular character\n\t\t\t */\n\t\t\tfor (int j = 0; j < characters.length; j++) {\n\t\t\t\t/**\n\t\t\t\t * if both the character are equal increment the count\n\t\t\t\t */\n\t\t\t\tif (characters[i] == characters[j]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/**\n\t\t\t * checking if the character already exists in map to remove duplicates\n\t\t\t */\n\t\t\tif (!(map.containsKey(characters[i]))) {\n\t\t\t\t/**\n\t\t\t\t * adding the character and the character count into the map\n\t\t\t\t */\n\t\t\t\tmap.put(characters[i], count);\n\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * returning the map\n\t\t */\n\t\treturn map;\n\t}", "public void doCount(ArrayList<String> liste){\n\t\tint j;\n\t\t\n\t\tfor (int i = 0; i < liste.size(); i++) {\n\t\t\t// check if string already exists\n\t\t\tif(!map.containsKey(liste.get(i))){\n\t\t\t\t// check frequency of the given string\n\t\t\t\tj = Collections.frequency(liste, liste.get(i));\t\n\t\t\t\t\n\t\t\t\t// underscore instead of blank space\n\t\t\t\tif(liste.get(i).equals(\" \"))\n\t\t\t\t\tmap.put(\"_\", j);\t\n\t\t\t\telse\n\t\t\t\t\tmap.put(liste.get(i), j);\t// (char, frequency)\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t\n\t\t//return map;\n\t}", "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}", "public Map<String, Integer> findUnicalWord(ArrayList<Word> text)\n {\n String[] words=new String[text.size()];\n for(int i=0; i<text.size(); i++){\n words[i]=text.get(i).toString();\n }\n HashMap<String, Integer> myWordsCount = new HashMap<>();\n for (String s : words){\n if (myWordsCount.containsKey(s)) myWordsCount.replace(s, myWordsCount.get(s) + 1);\n else myWordsCount.put(s, 1);\n }\n\n Map<String, Integer> newWordsCount = myWordsCount\n .entrySet()\n .stream()\n .sorted(Collections.reverseOrder(Map.Entry.comparingByValue()))\n .collect(\n toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e2,\n LinkedHashMap::new));\n\n return newWordsCount;\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tString s = \"asdfasdfafk asd234asda\";\n\t //Map<Character, Integer> charMap = new HashMap<Character, Integer>();\n\t \n\t Map<Character,Integer> map = new HashMap<Character,Integer>();\n\t for (int i = 0; i < s.length(); i++) {\n\t char c = s.charAt(i);\n\t System.out.println(c);\n\t //if (Character.isAlphabetic(c)) {\n\t if (map.containsKey(c)) {\n\t int cnt = map.get(c);\n\t System.out.println(cnt);\n\t map.put(c,++cnt);\n\t } else {\n\t map.put(c, 1);\n\t }\n\t \n\t }\n\t // }\n\t System.out.println(map);\n\t \n\t \n\t /* char[] arr = str.toCharArray();\n\t System.out.println(arr);\n\t \n\n\t\t\n\t\tfor (char value: arr) {\n\t\t \n\t\t if (Character.isAlphabetic(value)) { \n\t\t\t if (charMap.containsKey(value)) {\n\t\t charMap.put(value, charMap.get(value) + 1);\n\t\t \n\t\t } \n\t\t\t else { charMap.put(value, 1); \n\t\t } \n\t\t\t } \n\t\t }\n\t\t \n\t\t System.out.println(charMap);*/\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t \n \t}", "public static int duplicateCount(String text) {\n \r\n int count=0; \r\n \r\n \r\n \r\n int l=text.length(); int index=0; String s1=\"\"; char [] c= new\r\n char [text.length()] ; for (int i=0;i <text.length();i++) {\r\n c[i]=text.toLowerCase().charAt(index++);\r\n \r\n System.out.println(\"Character at c[\"+i+\"] is\"+c[i]);\r\n \r\n }\r\n \r\n System.out.println(\"Character array is \"+Arrays.toString(c));\r\n \r\n int charSize=c.length; int index2=1;\r\n \r\n HashMap h =new HashMap();\r\n for (int i=0;i<charSize;i++)\r\n {\r\n for(int j=i+1;j<charSize;j++)\r\n {\r\n if (c[i]==c[j])\r\n {\r\n count++;\r\n //s1=s1+c[j];\r\n \r\n h.put(c[j],count);\r\n }\r\n }\r\n }\r\n \r\n \r\n System.out.println(h);\r\n \r\n int hsize= h.size();\r\n \r\n return hsize;\r\n }", "public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }", "HashMap<Character, Integer> countCharacter(char[] array) {\n\t\tHashMap<Character, Integer> hm = new HashMap<Character, Integer>();\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (hm.containsKey(array[i]))\n\t\t\t\thm.put(array[i], hm.get(array[i]) + 1);\n\n\t\t\telse\n\t\t\t\thm.put(array[i], 1);\n\t\t}\n\t\treturn hm;\n\n\t}", "private static void wordCountWithMap() throws FileNotFoundException {\n Map<String, Integer> wordCounts = new HashMap<String, Integer>();\n\n Scanner input = new Scanner(new File(fileLocation));\n while (input.hasNext()) {\n String word = input.next();\n if (!wordCounts.containsKey(word)) {\n wordCounts.put(word, 1);\n } else {\n int oldValue = wordCounts.get(word);\n wordCounts.put(word, oldValue + 1);\n }\n }\n\n String term = \"test\";\n System.out.println(term + \" occurs \" + wordCounts.get(term));\n\n // loop over the map\n for (String word : wordCounts.keySet()) {\n int count = wordCounts.get(word);\n if (count >= 500) {\n System.out.println(word + \", \" + count + \" times\");\n }\n }\n\n }", "public static Map<Character,Integer> countFreq(String string){\n\n\n\n Map<Character,Integer> results = new HashMap<Character,Integer>();\n for (int i = 0; i < string.length(); i++) {\n Character temp = string.charAt(i);\n Integer count;\n// System.out.println(temp);\n if (results.containsKey(temp)){\n count=results.get(temp);\n count++;\n results.replace(temp,count);\n }\n else\n results.put(temp,1);\n\n }\n\n return results;\n }", "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 }", "private void initiateWordCount(){\n for(String key: DataModel.bloomFilter.keySet()){\n WordCountHam.put(key, 0);\n WordCountSpam.put(key, 0);\n }\n }", "public void getCounts() {\t\r\n\t\t\r\n\t\tfor(int i = 0; i < 4; i++)\r\n\t\t\tfor(int j = 0; j < 3; j++)\r\n\t\t\t\tthecounts[i][j] = 0;\r\n\t\t\r\n\t\tfor(int i=0;i<maps.length-1;i++) {\r\n\t\t\tif(maps.Array1.charAt(i) == 'H' && maps.Array1.charAt(i+1) == 'E')\r\n\t\t\t\tthecounts[0][0]++;\r\n\t\t\telse if(maps.Array1.charAt(i) == 'E' && maps.Array1.charAt(i+1) =='-') \r\n\t\t\t\tthecounts[0][1]++;\r\n\t\t\telse if(maps.Array1.charAt(i) == '-' && maps.Array1.charAt(i+1) == 'H')\r\n\t\t\t\tthecounts[0][2]++;\r\n\t\t\tif(maps.Array2.charAt(i) == 'H' && maps.Array2.charAt(i+1) == 'E')\r\n\t\t\t\tthecounts[1][0]++;\r\n\t\t\telse if(maps.Array2.charAt(i) == 'E' && maps.Array2.charAt(i+1) == '-') \r\n\t\t\t\tthecounts[1][1]++;\r\n\t\t\telse if(maps.Array2.charAt(i) == '-' && maps.Array2.charAt(i+1) == 'H')\r\n\t\t\t\tthecounts[1][2]++;\r\n\t\t\tif(maps.Array3.charAt(i) == 'H' && maps.Array3.charAt(i+1) == 'E')\r\n\t\t\t\tthecounts[2][0]++;\r\n\t\t\telse if(maps.Array3.charAt(i) == 'E' && maps.Array3.charAt(i+1) == '-') \r\n\t\t\t\tthecounts[2][1]++;\r\n\t\t\telse if(maps.Array3.charAt(i) == '-' && maps.Array3.charAt(i+1) == 'H')\r\n\t\t\t\tthecounts[2][2]++;\r\n\t\t\tif(maps.Array4.charAt(i) == 'H' && maps.Array4.charAt(i+1) == 'E')\r\n\t\t\t\tthecounts[3][0]++;\r\n\t\t\telse if(maps.Array4.charAt(i) == 'E'&&maps.Array4.charAt(i+1) == '-') \r\n\t\t\t\tthecounts[3][1]++;\r\n\t\t\telse if(maps.Array4.charAt(i) == '-' && maps.Array1.charAt(i+1) == 'H')\r\n\t\t\t\tthecounts[3][2]++;\r\n\t\t}\r\n\t\t\r\n\t\t//Getting transition value between 1 and 0\r\n\t\tfor(int i=0;i<4;i++) {\r\n\t\t\tfor(int j=0;j<3;j++) {\r\n\t\t\t\tthecounts[i][j]/=maps.length;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Displaying the obtained values\r\n\t\tSystem.out.println(\"\\nTRANSITION\");\r\n\t\tSystem.out.println(\"HYDROPHOBICITY: 1->2: \" + thecounts[0][0] + \" 2->3: \" + thecounts[0][1] + \" 3->1: \" + thecounts[0][2]);\r\n\t\tSystem.out.println(\"POLARIZABILITY: 1->2: \" + thecounts[1][0] + \" 2->3: \" + thecounts[1][1] + \" 3-1: \" + thecounts[1][2]);\r\n\t\tSystem.out.println(\"POLARITY: 1->2: \" + thecounts[2][0] + \" 2->3: \" + thecounts[2][1] + \" 3->1: \" + thecounts[2][2]);\r\n\t\tSystem.out.println(\"VAN DER WALLS VOLUME: 1->2: \" + thecounts[3][0] + \" 2->3: \" + thecounts[3][1] + \" 3->1: \" + thecounts[3][2]);\r\n\t\t\r\n\t}", "private Map<Character, Double> getStrFrequencyTable(String str) {\n str = str.toLowerCase(Locale.ENGLISH);\n\n Map<Character, Double> frequencyTable = new HashMap<>(26);\n int[] countArr = countLetters(str);\n int numOfLetters = Arrays.stream(countArr).sum();\n\n for (char alphabet = 'a'; alphabet <= 'z'; alphabet++) {\n double frequency = 0.0;\n if (numOfLetters != 0) {\n frequency = countArr[alphabet-'a'] / (double) numOfLetters;\n }\n frequencyTable.put(alphabet, frequency);\n }\n\n return frequencyTable;\n }", "public static void main (String[] args) throws IOException {\n String word=readFile(\"src/org/launchcode/java/studios/countingcharacters/Studiothingy.txt\");\n\n char[] searchArray= word.toLowerCase().toCharArray();\n\n HashMap<Character, Integer> mapOutput = new HashMap<>();\n\n for (char c : searchArray) {\n if (Character.isLetter(c)) {\n if (!mapOutput.containsKey(c)) {\n mapOutput.put(c, 1);\n } else {\n mapOutput.put(c, mapOutput.get(c)+1);\n }\n }\n }\n System.out.println(mapOutput);\n }", "private static void createMap(Map<Character, Integer> map) {\n Scanner scanner = new Scanner(System.in); // create scanner\n System.out.println(\"Enter a string:\"); // prompt for user input\n String input = scanner.nextLine();\n\n char[] chars = input.replace(\" \", \"\").toCharArray();\n\n for (Character chr : chars) {\n if (map.containsKey(chr)) {\n int count = map.get(chr); // get current count\n map.put(chr, count + 1); // increment count\n } else\n map.put(chr, 1); // add new char with a count of 1 to map\n }\n }", "public Map<String, Integer> wordCount(String[] strings) {\n Map <String, Integer> map = new HashMap();\n int counter = 1;\n for (String s: strings){\n if (map.containsKey(s)){\n counter = map.get(s);\n map.put(s, counter + 1);\n }else{\n counter = 1;\n map.put(s, counter);\n }\n }\n return map;\n}", "Alphabet(String chars) {\n char[] newChars = chars.toCharArray();\n Map<Character, Integer> map = new HashMap<>();\n for (char c : newChars) {\n if (map.containsKey(c)) {\n int counter = map.get(c);\n map.put(c, ++counter);\n } else {\n map.put(c, 1);\n }\n }\n\n for (char c : map.keySet()) {\n if (map.get(c) > 1) {\n throw new EnigmaException(\"Duplicates Found\");\n } else {\n _letters = chars;\n }\n }\n }", "private Map<Character, Long> map(final String text) {\n Map<Character, Long> result = new HashMap<>();\n for (char c : text\n .replaceAll(validCharsRegex, \"\")\n .toLowerCase()\n .toCharArray()) {\n result.put(c, result.getOrDefault(c, 0L) + 1);\n }\n return result;\n }", "private void countWords(String text, String ws) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8))));\n String line;\n\n // Get words and respective count\n while (true) {\n try {\n if ((line = reader.readLine()) == null)\n break;\n String[] words = line.split(\"[ ,;:.?!“”(){}\\\\[\\\\]<>']+\");\n for (String word : words) {\n word = word.toLowerCase();\n if (\"\".equals(word)) {\n continue;\n }\n if (lista.containsKey(word)){\n lista.get(word).add(ws);\n }else{\n HashSet<String> temp = new HashSet<>();\n temp.add(ws);\n lista.put(word, temp);\n }\n\n /*if (!countMap.containsKey(word)) {\n countMap.put(word, 1);\n }\n else {\n countMap.put(word, countMap.get(word) + 1);\n }*/\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n // Close reader\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Display words and counts\n /*for (String word : countMap.keySet()) {\n if (word.length() >= 3) { // Shall we ignore small words?\n //System.out.println(word + \"\\t\" + countMap.get(word));\n }\n }*/\n }", "public Map<String, Integer> wordCount(String[] strings) {\n\n\n Map<String, Integer> mojaMapa = new HashMap<String, Integer>();\n\n for (String element : strings) {\n if (mojaMapa.containsKey(element)) {\n Integer iloscWystapienElementu = mojaMapa.get(element);\n mojaMapa.put(element, iloscWystapienElementu + 1);\n } else {\n mojaMapa.put(element, 1);\n }\n\n\n }\n return mojaMapa;\n }", "public HashMap<String, Integer> getHashMap(){\n\t\tHashMap <String, Integer> hm1 = new HashMap <String, Integer>();\n\t\t//get each line of the book and store it as an arrayList\n\t\twords = wordData.getLines();\n\t \n\t\tfor(int i =0; i<words.size(); i++){\n\t\t\t \n\t\t\tString[] aLine = words.get(i).split(\" \");\n\t\t\t\n\t\t\tfor(int j = 0; j<aLine.length; j++){\n\t\t\t\t\n\t\t\t\t// convert all upper case to lower case & remove all non-alphabetic symbols;\n\t\t\t\t\t\n\t\t\t\tsparsedWords.add(aLine[j].toLowerCase().replaceAll(\"[^\\\\w]\", \"\"));\n\t\t\t}\n\t\t}\n\t\t//put in key and value in hashmap\n\t\tfor(int key = 0; key < sparsedWords.size(); key++){\n\t\t\t\n\t\t\tif (hm1.containsKey(sparsedWords.get(key))){\n\t\t\t\tint count = hm1.get(sparsedWords.get(key));\n\t\t\t\thm1.put(sparsedWords.get(key), count + 1);\n\t\t\t}else{\n\t\t\t\thm1.put(sparsedWords.get(key), 1);\n\t\t\t}\n\t\t}\n\t\treturn hm1;\n\t\t \t\n\t\t}", "public void computeWords(){\n\n loadDictionary();\n\n CharacterGrid characterGrid = readCharacterGrid();\n\n Set<String> wordSet = characterGrid.findWordMatchingDictionary(dictionary);\n\n System.out.println(wordSet.size());\n for (String word : wordSet) {\n\t System.out.println(word);\n }\n\n // System.out.println(\"Finish scanning character grid in \" + (System.currentTimeMillis() - startTime) + \" ms\");\n }", "public static void main(String[] args) {\n\r\n\t\tString str = \"Learning is a a this automation this is a fun\";\r\n\t\t\r\n\t\tString words[] = str.split(\" \");\r\n\t\tHashMap<String,Integer> hmap = new HashMap<String,Integer>();\r\n\t\t\r\n\t\tfor(String i : words) {\r\n\t\t\tif(hmap.containsKey(i)) {\r\n\t\t\t\thmap.put(i, hmap.get(i)+1);\r\n\t\t\t}\r\n\t\t\telse hmap.put(i, 1);\r\n\t\t}\r\n\t\tSystem.out.println(hmap);\r\n\t}", "private static Map<String, Integer> getWords(){\n\t\tMap<String, Integer> map = new HashMap<String, Integer>();\n\t\t\n\t\tfor(Status status : statusList){\n\t\t\tStringTokenizer tokens = new StringTokenizer(status.getText());\n\t\t\twhile(tokens.hasMoreTokens()){\n\t\t\t\tString token = tokens.nextToken();\n\t\t\t\tif(!token.equals(\"RT\")){\n\t\t\t\t\tif(map.containsKey(token)){\n\t\t\t\t\t\tint count = map.get(token);\n\t\t\t\t\t\tmap.put(token, ++count);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmap.put(token, 1);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn map;\n\t}", "public static Map<String,Integer> getCounts(ArrayList<String> words) {\r\n HashMap<String, Integer> map = new HashMap<String, Integer>();\r\n ArrayList<String> uniqueWords = new ArrayList<String>();\r\n for(String word: words) {\r\n if(!uniqueWords.contains(word)) {\r\n map.put(word, Collections.frequency(words, word));\r\n uniqueWords.add(word);\r\n }\r\n }\r\n return map;\r\n }", "public static void main(String[] args) {\n\t\tint[] i = new int[100];\n\t\tint unique = 0;\n\t\tfloat ratio = 0;\n\t\tList<String> inputWords = new ArrayList<String>();\n\t\tMap<String,List<String>> wordcount = new HashMap<String,List<String>>();\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"/Users/huziyi/Documents/NLP file/Assignment1/Twitter messages.txt\"));\n\t\t\tString str;\n\t\t\twhile((str = in.readLine())!=null){\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\t\n\t\t\t\tString[] words = str.split(\"\\\\s+\");\n\t\t\t\t\n\t\t\t//\tSystem.out.println(words);\n\t\t\t//\tSystem.out.println(\"1\");\n\t\t\t\tfor(String word:words){\n\t\t\t\t\t\n\t\t\t//\t\tString word = new String();\n\t\t\t\t\t\n\t\t\t\t\tword = word.replaceAll(\"[^a-zA-Z]\", \"\");\n\t\t\t\t\tinputWords.add(word);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tfor(int k=0;k<inputWords.size()-1;k++){\n\t\t\tString thisWord = inputWords.get(k);\n\t\t\tString nextWord = inputWords.get(k+1);\n\t\t\tif(!wordcount.containsKey(thisWord)){\n\t\t\t\twordcount.put(thisWord, new ArrayList<String>());\n\t\t\t}\n\t\t\twordcount.get(thisWord).add(nextWord);\n\t\t}\n\t\t for(Entry e : wordcount.entrySet()){\n\t// System.out.println(e.getKey());\n\t\tMap<String, Integer>count = new HashMap<String, Integer>();\n List<String>words = (List)e.getValue();\n for(String s : words){\n if(!count.containsKey(s)){\n count.put(s, 1);\n }\n else{\n count.put(s, count.get(s) + 1);\n }\n }\n \t\n // for(Entry e1 : wordcount.entrySet()){\n for(Entry f : count.entrySet()){\n \n // \tint m = 0;\n //\tint[] i = new int[100];\n //\ti[m] = (Integer) f.getValue();\n \tint n = (Integer) f.getValue();\n \tn = (Integer) f.getValue();\n // \tList<String> values = new ArrayList<String>();\n \t\t// values.addAll(count.g());\n \tif(n>=120){\n \tif(!(e.getKey().equals(\"\"))&&!(f.getKey().equals(\"\"))){\n //\t\t int a = (Integer) f.getValue();\n //\t\t Arrays.sort(a);\n System.out.println(e.getKey()+\" \"+f.getKey() + \" : \" + f.getValue());\n \n \t}\n \t}\n //\tm++;\n \t }\n\t\t }\n\t\t \n\t\n\t\t \n\t\t// Arrays.sort(i);\n\t\t //System.out.println(i[0]+i[1]);\n/*\n\t\t ArrayList<String> values = new ArrayList<String>();\n\t\t values.addAll(count.values());\n\n\t\t Collections.sort(values, Collections.reverseOrder());\n\n\t\t int last_i = -1;\n\n\t\t for (Integer i : values.subList(0, 99)) { \n\t\t if (last_i == i) \n\t\t continue;\n\t\t last_i = i;\n\n\n\n\n\t\t for (String s : wordcount.keySet()) { \n\n\t\t if (wordcount.get(s) == i)\n\t\t \n\t\t \tSystem.out.println(s+ \" \" + i);\n\n\t\t }\n\t\t \n\t\t\t}*/\n\t}", "private static HashMap<String, Integer> generateWordIndex()\n\t{\n\t\tHashMap<String, Integer> wordIndex = new HashMap<String, Integer>();\n\t\tint currIndex = 0;\n\t\tStringBuffer combinedHeaders;\n\t\tfor (MP mp : Capone.getInstance().getParliament().getMPList())\n\t\t{\n\t\t\tfor (Speech sp : mp.returnSpeeches())\n\t\t\t{\n\t\t\t\tcombinedHeaders = new StringBuffer();\n\t\t\t\tcombinedHeaders.append(sp.getHeader1());\n\t\t\t\tcombinedHeaders.append(sp.getHeader2());\n\t\t\t\tfor (String str : combinedHeaders.toString().split(\" \"))\n\t\t\t\t{\n\t\t\t\t\tif (!wordIndex.containsKey(str))\n\t\t\t\t\t{\n\t\t\t\t\t\twordIndex.put(str, currIndex);\n\t\t\t\t\t\tcurrIndex++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn wordIndex;\n\t}", "public Map<String, Integer> wordCount(String string) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tString foundword = \"\";\n\t\tstring = string.replaceAll(\"\\n\",\"\");\n\t\tMap<String, Integer> WordCountMap = new HashMap<>();\n\t\tList<String> stringList = new ArrayList<String>();\n\t\tfor(int i = 0; i < string.length(); i++) {\n\t\t\t//System.out.println(string.charAt(i));\n\t\t\t\n\t\t\tif(string.charAt(i) == ' ') {\n\t\t\t\tstringList.add(foundword);\n\t\t\t\tfoundword = \"\";\n\t\t\t}\n\t\t\telse if(string.charAt(i) == ',') {\n\t\t\t\tstringList.add(foundword);\n\t\t\t\tfoundword = \"\";\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tfoundword = foundword + string.charAt(i);\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tstringList.add(foundword);\n\t\t\n\t\tfor(String name: stringList) {\n\t\t\tif(WordCountMap.containsKey(name)) {\n\t\t\t\t//The frequencyMap already contains the count for this name;\n\t\t\t\t//So we want to increase that count by 1\n\t\t\t\tint currentCount = WordCountMap.get(name);\n\t\t\t\tWordCountMap.put(name, currentCount+1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tWordCountMap.put(name, 1); //Track the name with a count of 1 if we haven't seen it before\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn WordCountMap;\n\t}", "public Map<String, Integer> wordCount(String string) {\n\t\t//Split the input string by into individual words. Takes out the spaces, commas, apostrophes\n\t\tString[] splitWords = string.split(\"[\\\\s',]\");\n\t\t//Initiate the hashmap to store unique words as keys and incrementing values with repeated keys\n\t\tMap<String, Integer> wordCount = new HashMap<>();\n\t\tfor(int i = 0; i < splitWords.length; i++ ) {\n\t\t\t//increment word count if the word is already in the hashmap. Make a new entry if word is unique to the map.\n\t\t\tif (wordCount.containsKey(splitWords[i])) {\n\t\t\t\twordCount.put(splitWords[i], wordCount.get(splitWords[i])+1);\n\t\t\t}else {\n\t\t\t\twordCount.put(splitWords[i], 1);\n\t\t\t}\t\t\n\t\t}\n\t\t//Remove the empty spaces from the map (to satisfy a test case)\n\t\twordCount.remove(\"\");\n\t\treturn wordCount;\n\t}", "public static void main(String[] args) \r\n\t{\n\t\tString str=\"pizzapan\";\r\n\t\t//int c=0;\r\n\t\t\r\n\t\tHashMap<Character,Integer> hm=new HashMap<>();\r\n\t\t\r\n\t\tchar s[]=str.toCharArray();\r\n\t\t\r\n\t\t//for(int i=0;i<=s.length;i++)\r\n\t\t\r\n\t\tfor(char var:s)\r\n\t\t{\r\n\t\t\t//c++;\r\n\t\t\tif(hm.containsKey(var))\r\n\t\t\t{\r\n\t\t\t\t//System.out.println( hm.get(var));\r\n\t\t\t\thm.put(var, hm.get(var)+1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\thm.put(var, 1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(hm);\r\n\t\t\r\n\t\tSet<Entry<Character, Integer>>en=hm.entrySet();\r\n\t\t\r\n\t\tIterator<Entry<Character, Integer>>itr=en.iterator();\r\n\t\twhile(itr.hasNext())\r\n\t\t{\r\n\t\t\r\n\t\t\tMap.Entry<Character, Integer> data=itr.next();\r\n\t\t\tchar ch=data.getKey();\r\n\t\t\tint occ=data.getValue();\r\n\t\t\tSystem.out.println(ch+\" \"+occ);\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String args[]){\n String str = \"aabcadceklmeb\";\n\n HashMap<Character, Integer> map = new HashMap<>();\n\n\n for(int i = 0; i < str.length();i++){\n if(!map.containsKey(str.charAt(i))){\n map.put(str.charAt(i), 1);\n }else{\n int value = map.get(str.charAt(i));\n value++;\n map.put(str.charAt(i), value);\n }\n }\n\n for( char c : map.keySet()){\n if(map.get(c) == 2){\n System.out.println(c);\n }\n }\n \n }", "void hashLexicons(Email email) {\n for (String s : email.processedMessage.keySet()) {\n int tempCount = email.processedMessage.get(s);\n \n if(email.ec==EmailClass.ham)\n {\n totalNumberOfWordsInHamDocuments= totalNumberOfWordsInHamDocuments+tempCount;\n }\n else\n {\n totalNumberOfWordsInSpamDocuments = totalNumberOfWordsInSpamDocuments +tempCount;\n }\n //totalNumberOfWords = totalNumberOfWords + tempCount;\n if (words.containsKey(s)) {\n LexiconCount lc = words.get(s);\n long hc = lc.numberOfOccurencesInHamDocuments;\n long sc = lc.numberOfOccurencesInSpamDocuments;\n\n if (email.ec == EmailClass.ham) {\n hc = hc + tempCount;\n } else {\n sc = sc + tempCount;\n }\n words.put(s, new LexiconCount(hc, sc));\n } else {\n long hc=0,sc=0;\n if(email.ec==EmailClass.ham)\n {\n hc=tempCount;\n }\n else\n {\n sc=tempCount;\n }\n words.put(s, new LexiconCount(hc,sc));\n }\n }\n }", "private static void charCount(String str) {\n\t\t\n\t\tHashMap<Character, Integer> mp = new HashMap<Character, Integer>();\n\t\t\n\t\tchar[] cr=str.toCharArray();\n\t\t\n\t\tSystem.out.println(cr);\n\t\t\n\t\tfor(char c: cr) {\n\t\t\t\n\t\t\tif(mp.containsKey(c)) {\n\t\t\t\tmp.put(c, mp.get(c)+1);\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tmp.put(c, 1);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(Map.Entry<Character, Integer> ent: mp.entrySet()) {\n\t\t\tSystem.out.println(ent.getKey() + \" \" + ent.getValue());\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tHashMap <Character, Integer> lhmap = new LinkedHashMap<Character, Integer>();\n\t\t\n\t\t\tString nom = \"Javier del Moral Asensio\";\n\t\t\tchar[] myName= nom.toLowerCase().toCharArray();\n\t\t\n\t\t//for loop to check characters one by one and sum it if are repeated\n\t\t\t\t\n\t\t\tfor(int c=0; c < nom.length(); c++) {\n\t\t\t\n\t\t\t\tint value=1;\n\t\t\n\t\t//if the char is new store it\n\t\t\t\t\n\t\t\t\tif(lhmap.containsKey(myName[c]) == false) {\n\t\t\t\t\tlhmap.put(myName[c], value);\n\t\t\t\t\t\n\t\t//if is not +1 to the original char\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tvalue = lhmap.get(myName[c]);\n\t\t\t\t\tlhmap.put(myName[c], value+1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\tSystem.out.println(lhmap);\t\t\n\n\t}", "public static void main(String[] args) {\n\n\t\tString str = \"Better Butter\";\n\t\t// char[] chararray=s.toCharArray();\n\n\t\tHashMap<Character, Integer> map = new HashMap<>();\n\n\t\t// if(hm.containsKey(s.charAt(index)))\n\n\t\tfor (int i = str.length() - 1; i >= 0; i--) {\n\n\t\t\tif (map.containsKey(str.charAt(i))) {\n\n\t\t\t\tif (str.charAt(i) == '\\0') {\n\t\t\t\t\t++i;\n\t\t\t\t}\n\t\t\t\tint count = map.get(str.charAt(i));\n\t\t\t\tmap.put(str.charAt(i), ++count);\n\t\t\t\tSystem.out.println(map);\n\t\t\t} else {\n\t\t\t\tmap.put(str.charAt(i), 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(map);\n\t}", "public void countWordsWithoutSplit(String str){\n\t\t\n\t\tMap<String, Integer> map = new HashMap<String, Integer>();\n\t\tint value = 0;\n\t\t//char[] charArray = str.toCharArray();\n\t\tList<String> list = new ArrayList<String>();\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tif(str.trim().charAt(i)!=' '){\n\t\t\t\tsb.append(str.charAt(i));\n\t\t\t}\n\t\t\telse if(sb.length()>0 || i==str.length()){\n\t\t\t\tlist.add(sb.toString());\n\t\t\t\tsb.setLength(0);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor(String s:list){\n\t\t\tif(map.containsKey(s)){\n\t\t\t\tvalue = map.get(s);\n\t\t\t\tmap.put(s, ++value);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmap.put(s, 1);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(map);\n\t\t\n\t}", "public Map<String, Integer> countWordsComputeIfPresent(String passage, String... strings) {\n\n Map<String, Integer> wordCounts = new HashMap<>();\n Arrays.stream(strings).forEach(s -> wordCounts.put(s, 0));\n Arrays.stream(passage.split(\" \")).forEach(word ->\n wordCounts.computeIfPresent(word, (key, val) -> val + 1));//word,\n return wordCounts;\n\n }", "private void getWordCounts() {\n Map<String, List<String>> uniqueWordsInClass = new HashMap<>();\n List<String> uniqueWords = new ArrayList<>();\n\n for (ClassificationClass classificationClass : classificationClasses) {\n uniqueWordsInClass.put(classificationClass.getName(), new ArrayList<>());\n }\n\n for (Document document : documents) {\n String[] terms = document.getContent().split(\" \");\n\n for (String term : terms) {\n if (term.isEmpty()) {\n continue;\n }\n if (!uniqueWords.contains(term)) {\n uniqueWords.add(term);\n }\n\n for (ClassificationClass docClass : document.getClassificationClasses()) {\n if (!uniqueWordsInClass.get(docClass.getName()).contains(term)) {\n uniqueWordsInClass.get(docClass.getName()).add(term);\n }\n if (totalWordsInClass.containsKey(docClass.getName())) {\n this.totalWordsInClass.put(docClass.getName(), this.totalWordsInClass.get(docClass.getName()) + document.getFeatures().get(term));\n } else {\n this.totalWordsInClass.put(docClass.getName(), document.getFeatures().get(term));\n }\n }\n }\n }\n\n this.totalUniqueWords = uniqueWords.size();\n }", "public static void main(String[] args) {\n HashMap<Character, Integer> finalChar = new HashMap<>();\n int charCount = 1;\n\n String str = \"If the product of two terms is zero then common sense says at least one of the two terms has to be zero to start with. \" +\n \"So if you move all the terms over to one side, \" +\n \"you can put the quadratics into a form that can be factored allowing that side of the equation to equal zero. \" +\n \"Once you’ve done that, it’s pretty straightforward from there.\";\n\n // convert String to char[] array\n char[] charInString = str.toCharArray();\n\n // iterate over charInString[] array using enhanced for loop\n for (char charName : charInString) {\n\n if (finalChar.containsKey(charName)) {\n finalChar.put(charName, finalChar.get(charName) + 1);\n } else {\n finalChar.put(charName, 1);\n }\n\n }\n System.out.println(finalChar);\n }", "public static void main(String[] args) {\n int validPhrases = 0;\n\n // get filepath for the puzzle input\n System.out.print(\"Please provide the filepath of the text document containing the puzzle input: \");\n String filePath = new Scanner(System.in).nextLine();\n\n try {\n // attempt to read each line in the file into a list\n List<String> lines = Files.readAllLines(Paths.get(filePath));\n\n /// PART 1\n for (String line : lines) {\n List<String> usedWords = new ArrayList<>();\n boolean validPassphrase = true;\n\n for (String word : line.split(\" \")) {\n if (usedWords.contains(word)) {\n validPassphrase = false;\n break;\n } else {\n usedWords.add(word);\n }\n }\n\n if (validPassphrase) {\n validPhrases++;\n }\n }\n\n System.out.println(\"The solution to part 1 is: \" + validPhrases);\n validPhrases = 0;\n\n /// PART 2\n for (String line : lines) {\n // this time around each word will be a dictionary mapping every character in the word, to how many\n // times that character is used in the word\n List<Map<Character, Integer>> usedWords = new ArrayList<>();\n boolean validPassphrase = true;\n\n for (String word : line.split(\" \")) {\n Map<Character, Integer> charMap = new HashMap<>();\n for (char c : word.toCharArray()) {\n // if the character has already been used, increment it's value, otherwise add it to the dict\n if (charMap.containsKey(c)) {\n charMap.put(c, charMap.get(c) + 1);\n } else {\n charMap.put(c, 1);\n }\n }\n\n // now we check if the word we're looking at is an anagram of any we've seen before on this line\n for (Map<Character, Integer> usedWord : usedWords) {\n // no need to check characters if the char maps are a different size\n if (usedWord.keySet().size() == charMap.keySet().size()) {\n boolean hasDifferingValues = false;\n for (char c : charMap.keySet()) {\n // we can short circuit checking every single character by breaking as soon as we see\n // any difference between the two words\n if (!usedWord.containsKey(c) || usedWord.get(c) != charMap.get(c)) {\n hasDifferingValues = true;\n break;\n }\n }\n\n if (!hasDifferingValues) {\n validPassphrase = false;\n break;\n }\n }\n }\n\n // we don't need to check the rest of the words if we already know the line is invalid\n if (!validPassphrase)\n break;\n usedWords.add(charMap);\n }\n\n if (validPassphrase) {\n validPhrases++;\n }\n }\n\n System.out.println(\"The solution to part 2 is: \" + validPhrases);\n } catch (Exception ex) {\n System.out.println(\"An error occurred attempting to read your input file.\");\n }\n }", "static int countCharacters(String[] words, String chars) {\n int ans = 0;\n int[] letters = new int[26];\n char[] arr = chars.toCharArray();\n for (char a : arr) {\n letters[a-'a']++;\n }\n for (String s : words) {\n char[] charArray = s.toCharArray();\n int[] temp = new int[26];\n int i = 0;\n for (;i<charArray.length;i++) {\n if (letters[charArray[i]-'a'] > 0) {\n letters[charArray[i]-'a']--;\n temp[charArray[i]-'a']++;\n } else {\n break;\n }\n }\n if (i == charArray.length) {\n ans += s.length();\n }\n i=0;\n for (;i<temp.length;i++) {\n letters[i] += temp[i];\n }\n }\n return ans;\n }", "static int countCharacters2(String[] words, String chars) {\n int count = 0;\n int[] seen = new int[26];\n //Count char of Chars String\n for (char c : chars.toCharArray())\n seen[c - 'a']++;\n // Comparing each word in words\n for (String word : words) {\n // simple making copy of seen arr\n int[] tSeen = Arrays.copyOf(seen, seen.length);\n int Tcount = 0;\n for (char c : word.toCharArray()) {\n if (tSeen[c - 'a'] > 0) {\n tSeen[c - 'a']--;\n Tcount++;\n }\n }\n if (Tcount == word.length())\n count += Tcount;\n }\n return count;\n }", "private static HashMap<String, Integer> makeMap(String[] words) {\n HashMap<String, Integer> map = new HashMap();\n for (int i = 0; i < words.length; i++) {\n map.merge(words[i], 1, Integer::sum);\n }\n return map;\n}", "private Map<Character, Integer> getFreqs(String input) {\n\t\tMap<Character, Integer> freqMap = new HashMap<>();\n\t\tfor (char c : input.toCharArray()) {\n\t\t\tif (freqMap.containsKey(c)) {\n\t\t\t\tfreqMap.put(c, freqMap.get(c) + 1);\n\t\t\t} else {\n\t\t\t\tfreqMap.put(c, 1);\n\t\t\t}\n\t\t}\n\t\treturn freqMap;\n\t}", "public static void main(String[] args) {\n\t\tHashMap<Character, Integer> map = new HashMap<>();\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString word = scanner.next();\n\t\tint cnt = 0;\n\t\tfor(int i = 0 ; i < word.length() ; i++) {\n\t\t\tchar tmp = Character.toUpperCase(word.charAt(i));\n\t\t\tif(map.containsKey(tmp) == true) { // 대문자로 바꿔 알파벳 있으면 char : value++ 해주기\n\t\t\t\tmap.put(tmp,map.get(tmp)+1 );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmap.put(tmp, 1);\n\t\t\t}\n\t\t}\n\t\tint maxValue = Collections.max(map.values());\n\t\tIterator values = map.values().iterator();\n\t\twhile(values.hasNext()) {\n\t\t\tif((int)values.next() == maxValue)\n\t\t\t\tcnt++;\n\t\t}\n\t\tif(cnt == 1) {\n\t\t\tIterator it = map.keySet().iterator();\n\t\t\twhile(it.hasNext()) {\n\t\t\t\tCharacter key = (Character) it.next();\n\t\t\t\tif(maxValue == map.get(key)) {\n\t\t\t\t\tSystem.out.println(key);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"?\");\n\t\t}\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t}", "private void buildFreqMap() {\n\t\toriginalFreq = new HashMap<String, WordOccurence>();\n\n\t\tfor (ListIterator<Caption> itr = original.captionIterator(0); itr\n\t\t\t\t.hasNext();) {\n\t\t\tfinal Caption currentCap = itr.next();\n\t\t\tfinal String[] words = currentCap.getCaption().split(\"\\\\s+\");\n\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\tfinal String lowerCasedWord = words[i].toLowerCase();\n\t\t\t\tif (originalFreq.containsKey(lowerCasedWord)) {\n\t\t\t\t\toriginalFreq.get(lowerCasedWord).addOccurence(\n\t\t\t\t\t\t\t(int) currentCap.getTime());\n\t\t\t\t} else {\n\t\t\t\t\tfinal WordOccurence occ = new WordOccurence(\n\t\t\t\t\t\t\t(int) currentCap.getTime());\n\t\t\t\t\toriginalFreq.put(lowerCasedWord, occ);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < identified.size(); i++) {\n\t\t\tResultChunk curretResult = identified.get(i);\n\t\t\tfinal String[] words = curretResult.getDetectedString().split(\n\t\t\t\t\t\"\\\\s+\");\n\t\t\tint identifiedAt = curretResult.getDetectedAt();\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tString currentWord = words[j].toLowerCase();\n\t\t\t\tif (originalFreq.containsKey(currentWord)) {\n\t\t\t\t\tint detectedAt = (int) (identifiedAt - (words.length - j)\n\t\t\t\t\t\t\t* AVG_WORD_TIME);\n\t\t\t\t\toriginalFreq.get(currentWord).addVoiceDetection(detectedAt);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Map<String, Integer> putIntoDictinary(String body) {\n String[] words = body.split(\"[(0-9)@#£$%\\\\-\\\\d\\\\#\\\\t\\\\s\\n\\\\,\\\\;\\\\:\\\\<\\\\>\\\\(\\\\)\\\\[\\\\]\\\\!\\\\?\\\"\\\\'\\\\{\\\\}\\\\_\\\\+\\\\=\\\\/\\\\*]+\");\n Map<String, Integer> res = new HashMap<>();\n for(String word : words) {\n if(word.equals(\"\") || word.length() == 1)\n continue;\n word = word.toLowerCase();\n if(res.get(word) == null) {\n res.put(word, 1);\n } else {\n res.put(word, res.get(word) + 1);\n }\n }\n return res;\n }", "private static Map<Character, Set<Character>> genLessMap(String[] words) throws Exception {\n Map<Character, Set<Character>> map = new HashMap<>();\n for (int i = 1; i < words.length; i ++) {\n String a = words[i - 1];\n String b = words[i];\n boolean allEqual = true;\n for (int j = 0; j < a.length() && j < b.length(); j ++) {\n if (a.charAt(j) == b.charAt(j))\n continue;\n allEqual = false;\n Set<Character> sb = map.get(a.charAt(j));\n if (sb == null) {\n sb = new HashSet<Character>();\n map.put(a.charAt(j), sb);\n }\n sb.add(b.charAt(j));\n break;\n }\n if (allEqual && a.length() > b.length())\n throw new Exception(\"Invalid.\");\n }\n return map;\n }", "@org.junit.Test\n public void testTables() {\n Set<Character> letters = new HashSet<>();\n\n for (int i = 0; i < Vigenere.alphabet.length(); i++) {\n letters.add(Vigenere.alphabet.charAt(i));\n }\n\n Assert.assertEquals(\"26 letters expected\", 26, letters.size());\n\n double total = 0.0;\n\n for (Map.Entry<Character, Double> e : Vigenere.freqs.entrySet()) {\n boolean wasPresent = letters.remove(e.getKey());\n Assert.assertTrue(\"letter duplicated\", wasPresent);\n total += e.getValue();\n }\n\n Assert.assertTrue(Math.abs(total - 100.0) < 1.0);\n\n String example = \"DITDITQQQQ\";\n total = 0.0;\n Map<Character, Double> res = Vigenere.calculateFrequencies(example);\n for (Map.Entry<Character, Double> e : res.entrySet()) {\n total += e.getValue();\n }\n Assert.assertTrue(Math.abs(total - 100.0) < 1.0);\n }", "public void count(String dataFile) {\n\t\tScanner fileReader;\n\t\ttry {\n\t\t\tfileReader= new Scanner(new File(dataFile));\n\t\t\twhile(fileReader.hasNextLine()) {\n\t\t\t\tString line= fileReader.nextLine().trim(); \n\t\t\t\tString[] data= line.split(\"[\\\\W]+\");\n\t\t\t\tfor(String word: data) {\n\t\t\t\t\tthis.wordCounter= map.get(word);\n\t\t\t\t\tthis.wordCounter= (this.wordCounter==null)?1: ++this.wordCounter;\n\t\t\t\t\tmap.put(word, this.wordCounter);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n\t\tcatch(FileNotFoundException fnfe) {\n\t\t\tSystem.out.println(\"File\" +dataFile+ \"can not be found.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public void countWordLengthsWithIsLettermethod(FileResource resource, int[] counts) {\r\n for (String word : resource.words()) {\r\n String trim = word.trim();\r\n int wordSize = trim.length();\r\n char firstChar = trim.charAt(0);\r\n char endChar = trim.charAt(trim.length()-1);\r\n if (!Character.isLetter(firstChar) && !Character.isLetter(endChar)) {\r\n wordSize -= 2;\r\n } else \r\n if (!Character.isLetter(firstChar) || !Character.isLetter(endChar)) {\r\n wordSize -= 1;\r\n }\r\n if(wordSize>=counts.length) {\r\n counts[counts.length-1] += 1; \r\n } else\r\n //right algorithm\r\n if( wordSize> 0 && counts[wordSize] != 0 ) {\r\n counts[wordSize] += 1;\r\n \r\n } else if ( wordSize> 0) {\r\n counts[wordSize] = 1;\r\n }\r\n }\r\n \r\n //test\r\n for(int i : counts) {\r\n System.out.println(i);\r\n }\r\n }", "public static HashMap<String, Integer> countOccurences(ArrayList<String> arr) {\n arr = toSortedString(arr);\n HashMap<String, Integer> hash = new HashMap();\n for(String str :arr){\n if(hash.containsKey(str)){\n hash.replace(str, hash.get(str)+1);\n }\n else{\n hash.put(str,1);\n }\n }\n return hash;\n }", "public void tempArray() {\n for (int i = 0; i < newWord.length(); i++) {\n for (String c : keySetNewWord) {\n if(String.valueOf(newWord.charAt(i)).equals(c)) {\n int p = mapNewWord.get(c) + 1;\n mapNewWord.put(c, p);\n }\n }\n }\n }", "public void calculate() {\n int result = 0;\n hashMap.clear();\n numOfLetters.clear(); // numOfLetters contains number of letters from the line\n controlList.clear(); // controlList contains the unique number of letters\n\n findNumberOfLetters();\n\n for (int count : numOfLetters) {\n for (int i = count; i > 0 ; i--) { // starting the count of first letter, control the controlList elements\n if(controlList.contains(i)) { // if controlList contains the number, that means we must delete one letter\n result++; // we increment result while deleting letter\n }\n else {\n controlList.add(i); // if the controlList does not contain the number, we dont need delete letter\n break; // when we find the number that controlList does not contain, it means we find the unique number for a letter.\n }\n }\n }\n\n System.out.println(lineNumber + \"- \" + result); // print the result\n lineNumber++;\n }", "private String getWordStatsFromList(List<String> wordList) {\n\t\tif (wordList != null && !wordList.isEmpty()) {\n\t\t\tList<String> wordsUsedCaps = new ArrayList<>(); \n\t\t\tList<String> wordsExcludedCaps = new ArrayList<>(); \n\t\t\tListIterator<String> iterator = wordList.listIterator();\n\t\t\tMap<String, Integer> wordToFreqMap = new HashMap<>();\n\t\t\t// iterate on word List using listIterator to enable edits and removals\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tString origWord = iterator.next();\n\t\t\t\t// remove quotes from word e.g. change parents' to parents; \n\t\t\t\t// change children's to children; change mark'd to mark\n\t\t\t\tString curWord = stripQuotes(origWord);\n\t\t\t\tif (!curWord.equals(origWord)) {\n\t\t\t\t\titerator.set(curWord);\n\t\t\t\t}\n\t\t\t\tString curWordCaps = curWord.toUpperCase();\n\t\t\t\t// remove words previously used (to prevent duplicates) or previously\n\t\t\t\t// excluded (compare capitalized version)\n\t\t\t\tif (wordsExcludedCaps.contains(curWordCaps)) {\n\t\t\t\t\titerator.remove();\n\t\t\t\t}\n\t\t\t\telse if (wordsUsedCaps.contains(curWordCaps)) {\n\t\t\t\t\t// if word was previously used then update wordToFreqMap to increment\n\t\t\t\t\t// its usage frequency\n\t\t\t\t\tSet<String> wordKeys = wordToFreqMap.keySet();\n\t\t\t\t\tfor (String word : wordKeys) {\n\t\t\t\t\t\tif (curWord.equalsIgnoreCase(word)) {\n\t\t\t\t\t\t\twordToFreqMap.put(word, wordToFreqMap.get(word).intValue() + 1);\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\titerator.remove();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// invoke checkIfEligible() with algorithm described in Challenge 2 to see if word not\n\t\t\t\t\t// previously used/excluded should be kept. If kept in list \n\t\t\t\t\t// then add to wordsUsedCaps list; if not qualified then add to\n\t\t\t\t\t// wordsExcludedCaps list to prevent checkIfEligible() having to be \n\t\t\t\t\t// called again\n\t\t\t\t\tif (checkIfEligible(curWordCaps)) {\n\t\t\t\t\t\twordsUsedCaps.add(curWordCaps);\n\t\t\t\t\t\twordToFreqMap.put(curWord, 1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\twordsExcludedCaps.add(curWordCaps);\n\t\t\t\t\t\titerator.remove();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// sort words in list in order of length\n\t\t\twordList.sort(Comparator.comparingInt(String::length));\n\t\t\t// sort wordToFreqMap by value (frequency) and choose the last sorted map element\n\t\t\t// to get most frequently used word\n\t\t\tList<Map.Entry<String, Integer>> mapEntryWtfList = new ArrayList<>(wordToFreqMap.entrySet());\n\t\t\tmapEntryWtfList.sort(Map.Entry.comparingByValue());\n\t\t\tMap<String, Integer> sortedWordToFreqMap = new LinkedHashMap<>();\n\t\t\tsortedWordToFreqMap.put(mapEntryWtfList.get(mapEntryWtfList.size()-1).getKey(), mapEntryWtfList.get(mapEntryWtfList.size()-1).getValue());\t\n\t\t\t// set up Json object to be returned as string\n\t\t\t// the code below is self-explaining\n\t\t\tJSONObject json = new JSONObject();\n\t\t\ttry {\n\t\t\t\tjson.put(\"remaining words ordered by length\", wordList);\n\t\t\t\tjson.put(\"most used word\", mapEntryWtfList.get(mapEntryWtfList.size()-1).getKey());\n\t\t\t\tjson.put(\"number of uses\", mapEntryWtfList.get(mapEntryWtfList.size()-1).getValue());\n\t\t\t} catch(JSONException je) {\n\t\t\t\tje.printStackTrace();\n\t\t\t}\n\t\t\treturn json.toString();\n\t\t\t\n\t\t}\n\t\treturn \"\";\n\t}", "public WordDictionary() {\n letters = new WordDictionary[26];\n }", "@Override\n\tpublic Map<String, Integer> parseWordCountMap(String text, List<String> delimeter) {\n\t\treturn new HashMap<>();\n\t}", "public void createHashTable() {\n\n String[] tempArray = new String[words.size()];\n\n for (int i = 0; i < words.size(); i++) {\n char[] word = words.get(i).toCharArray(); // char[] snarf\n Arrays.sort(word); // char[] afnrs\n tempArray[i] = toString(word); // String afnrs\n }\n\n for (int i = 0; i < words.size(); i++) {\n String word = tempArray[i];\n hashTable.put(word.substring(0, 4), i); // plocka bort bokstav nr 5\n String subString4 = (word.substring(0, 3) + word.substring(4, 5)); // plocka bort bokstav nr 4\n hashTable.put(subString4, i);\n String subString3 = (word.substring(0, 2) + word.substring(3, 5)); // plocka bort bokstav nr 3\n hashTable.put(subString3, i);\n String subString2 = (word.substring(0, 1) + word.substring(2, 5)); // plocka bort bokstav nr 2\n hashTable.put(subString2, i);\n hashTable.put(word.substring(1, 5), i); // plocka bort bokstav nr 1\n }\n }", "private void count(Entry curr)\n {\n \t//Increase Prefix count if any word is found.\n \tif (curr.EndOfWord == true)\n \t\tprefixCnt += 1;\n \t\n \tfor (HashMap.Entry<Character, Entry> entry : curr.child.entrySet())\n \t{\n \t\tcount(entry.getValue());\n \t}\n }", "public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter a word:\");\n String word = scan.next();\n System.out.println(\"Enter character:\");\n char character = scan.next().charAt(0);\n\n int count=0; //count frequency of character\n for (int i =0; i<word.length(); i++) {\n char each = word.charAt(i); //each character by given string word\n\n if (each == character) { //if each character in str is matching with ch\n count++; //count increase the frequency of ch by 1\n\n }\n }\n System.out.println(count);\n\n System.out.println(\"===========================\");\n\n\n\n }", "public Map<String, Map<String, Integer>> countWordsPerSentence(Map<String, String> data) {\n Map<String, Map<String, Integer>> result = new LinkedHashMap<>();\n if (data == null || data.size() == 0) {\n return result;\n }\n\n for (Map.Entry<String, String> entry : data.entrySet()) {\n result.put(entry.getKey(), getWordCountPerSentenceMap(getSentences(entry.getValue().trim())));\n }\n return result;\n }", "public static void main(String[] args) {\n List<String> words = new ArrayList<>();\n try (BufferedReader br = new BufferedReader(new FileReader(\"google-10000-english-no-swears.txt\"))) {\n while (br.ready()) {\n words.add(br.readLine().toLowerCase());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n //send a message to rose with the word cookie and your team name to get the next clue\n List<String> cipherWords = new ArrayList<>(Arrays.asList(cipher.split(\" \")));\n\n\n HashMap<Character, List<String>> charOccurrences = new HashMap<>();\n //Add all words where a character occurs to a list then map that list to the character\n for (String cipherWord : cipherWords) {\n for (Character ch : cipherWord.toCharArray()) {\n for (String cipherWord2 : cipherWords) {\n if (cipherWord2.contains(ch.toString())) {\n if (charOccurrences.get(ch) == null) {\n charOccurrences.put(ch, (new ArrayList<>(Collections.singletonList(cipherWord2))));\n } else {\n if (!charOccurrences.get(ch).contains(cipherWord2)) {\n charOccurrences.get(ch).add(cipherWord2);\n }\n }\n }\n }\n }\n }\n HashMap<Character, List<Character>> possibleChars = new HashMap<>();\n //Map all characters to a list of all characters which it could possibly be\n for (Map.Entry<Character, List<String>> entry : charOccurrences.entrySet()) {\n Character key = entry.getKey();\n List<String> value = entry.getValue();\n\n List<List<Character>> lists = new ArrayList<>();\n\n for (String string : value) {\n List<Character> characterList = new ArrayList<>();\n for (String patternMatch : getMatches(string, words)) {\n if (!characterList.contains(patternMatch.charAt(string.indexOf(key)))) {\n characterList.add(patternMatch.charAt(string.indexOf(key)));\n }\n }\n lists.add(characterList);\n }\n possibleChars.put(key, findDupes(lists));\n }\n\n HashMap<Character, Character> keyMap = new HashMap<>();\n\n removeCharacter(possibleChars, keyMap, true);\n\n\n //Loop a bunch of times to eliminate things that characters cant be\n for (int x = 0; x < 10; x++) {\n HashMap<Character, List<Character>> tempMap = new HashMap<>(possibleChars);\n possibleChars.clear();\n for (Map.Entry<Character, List<String>> entry : charOccurrences.entrySet()) {\n Character key = entry.getKey();\n List<String> value = entry.getValue();\n\n List<List<Character>> lists = new ArrayList<>();\n\n for (String string : value) {\n List<Character> characterList = new ArrayList<>();\n for (String patternMatch : getMatchesWithLetters(string, keyMap, tempMap, words)) {\n if (!characterList.contains(patternMatch.charAt(string.indexOf(key)))) {\n characterList.add(patternMatch.charAt(string.indexOf(key)));\n }\n }\n lists.add(characterList);\n }\n possibleChars.put(key, findDupes(lists));\n }\n\n keyMap.clear();\n\n removeCharacter(possibleChars, keyMap, true);\n\n }\n\n System.out.println(cipher);\n //print with a lil bit of frequency analysis to pick most common word if word has multiple possible results\n for (String str : cipherWords) {\n String temp = \"\";\n List<String> matchedWords = getMatchesWithLetters(str, keyMap, possibleChars, words);\n if (matchedWords.size() > 1) {\n int highest = 0;\n for (int x = 1; x < matchedWords.size(); x++) {\n if (words.indexOf(matchedWords.get(highest)) > words.indexOf(matchedWords.get(x))) {\n highest = x;\n }\n }\n temp = matchedWords.get(highest);\n }\n\n if (matchedWords.size() == 1) { //if there only 1 possibility print it.\n System.out.print(matchedWords.get(0));\n System.out.print(\" \");\n } else { //if there's more than 1 print the most common one.\n System.out.print(temp);\n System.out.print(\" \");\n }\n }\n }", "public static HashMap<String,Integer> counter(ArrayList<String> arr){\n\t\tHashMap<String,Integer> map = new HashMap<String,Integer>();\n\t\t\tfor(String s : arr){\n\t\t\t\tif (map.keySet().contains(s)){\n\t\t\t\t\tmap.put(s, map.get(s)+1);\n\t\t\t\t}else{\n\t\t\t\t\tmap.put(s, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn map;\t\n\t}", "public static Map<Character, Integer> findDuplicateCharactersInAString(final String input){\n\n Map<Character, Integer> charCountMap= null;\n if(input !=null && input.length() > 0)\n {\n if(input.length() ==1){\n return charCountMap;\n }\n charCountMap = new LinkedHashMap<Character, Integer>();\n String inputString = input;\n // In case if the program need not consider capital and small letters,\n // if want to consider comment out below line\n inputString = inputString.toLowerCase();\n char [] inputChars = inputString.toCharArray();\n\n for(Character c : inputChars) {\n\n if (charCountMap.containsKey(c)) {\n charCountMap.put(c, charCountMap.get(c) + 1);\n } else {\n charCountMap.put(c, 1);\n }\n }\n }\n else{\n throw new IllegalArgumentException(\"Invalid input\");\n }\n return charCountMap;\n }", "static HashMap runLengthEncoding(List<Character> list){\r\n\t\t\r\n\t\tHashMap<Character,Integer> map=new HashMap<>();\r\n\t\t\r\n\t\tfor(char a:list)\r\n\t\t{\r\n\t\tif(map.get(a)==null)\r\n\t\t{\r\n\t\t\tmap.put(a, 1);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tmap.put(a, map.get(a)+1);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}\r\n\t\treturn map;\r\n\t\r\n\t}", "public int count(){\r\n\t\tint sum = 0;\r\n for(Integer value: words.values()){\r\n sum += value;\r\n }\r\n return sum;\r\n\t}", "private Map<String, Integer> getWordCountPerSentenceMap(List<String> sentences) {\n Map<String, Integer> wordCountPerSentenceMap = new LinkedHashMap<>();\n sentences.stream().forEach(sentence -> wordCountPerSentenceMap.put(sentence.trim(), sentence.trim().split(\" \").length));\n return wordCountPerSentenceMap;\n }", "public int calWord() {\n for(int i = 0; i < newWord.length(); i++) {\n for (String c : keySetPoint) {\n if(String.valueOf(newWord.charAt(i)).equals(c)) {\n point += mapPoint.get(c);\n }\n }\n }\n\n return point;\n }", "public static void main(String[] args) \r\n\t{\r\n\t\tMap<String, String> voting=new HashMap<String, String>();\r\n\t\tvoting.put(\"101\", \"BJP\");\r\n\t\tvoting.put(\"102\", \"ShivSena\");\r\n\t\tvoting.put(\"103\", \"NCP\");\r\n\t\tvoting.put(\"104\", \"Congress\");\r\n\t\tvoting.put(\"105\", \"Other\");\r\n\t\tvoting.put(\"106\", \"BJP\");\r\n\t\tvoting.put(\"107\", \"ShivSena\");\r\n\t\tvoting.put(\"108\", \"NCP\");\r\n\t\tvoting.put(\"109\", \"Congress\");\r\n\t\tvoting.put(\"110\", \"Other\");\r\n\t\tvoting.put(\"111\", \"BJP\");\r\n\t\tvoting.put(\"112\", \"ShivSena\");\r\n\t\tvoting.put(\"113\", \"NCP\");\r\n\t\tvoting.put(\"114\", \"Congress\");\r\n\t\tvoting.put(\"115\", \"Other\");\r\n\t\tvoting.put(\"116\", \"Other\");\r\n\t\tvoting.put(\"117\", \"Other\");\r\n\t\tvoting.put(\"118\", \"BJP\");\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(voting);\r\n\t\t\r\n\t\tMap<String, Integer> countVoting=new HashMap();\r\n\t\t\r\n\t\tfor(Map.Entry<String, String> mapitr:voting.entrySet())\r\n\t\t{\r\n\t\t\t//System.out.println(mapitr.getValue());\r\n\t\t\t\r\n\t\t\tint count=1;\r\n\t\t\t\r\n\t\t\tif(countVoting.containsKey(mapitr.getValue()))\r\n\t\t\t{\r\n\t\t\t\tcount=countVoting.get(mapitr.getValue());\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\tcountVoting.put(mapitr.getValue(),count);\r\n\t\t\t//System.out.println(countVoting);\r\n\t\t}\r\n\t\tSystem.out.println(countVoting);\r\n\t\t\r\n\t}", "static int makeAnagram(String a, String b) {\n \n \tchar arr[] = a.toCharArray();\n char brr[] = b.toCharArray();\n Arrays.sort(arr);\n Arrays.sort(brr);\n Map<Character, Integer> aMap = new HashMap<>();\n Map<Character, Integer> bMap = new HashMap<>();\n for(int i =0 ;i <arr.length;i++){\n \tif(!aMap.containsKey(arr[i])){\n \t\taMap.put(arr[i], 1);\n \t}else{\n \t\taMap.put(arr[i], aMap.get(arr[i])+1);\n \t}\n }\n for(int i =0 ;i <brr.length;i++){\n \tif(!bMap.containsKey(brr[i])){\n \t\tbMap.put(brr[i], 1);\n \t}else{\n \t\tbMap.put(brr[i], bMap.get(brr[i])+1);\n \t}\n }\n int removeCharCount = 0;\n \n for(char ch = 'a'; ch<='z';ch++){\n \tif(aMap.containsKey(ch) && bMap.containsKey(ch)){\n \t\tif(aMap.get(ch) > bMap.get(ch)){\n \t\t\tint count = aMap.get(ch) - bMap.get(ch);\n \t\t\tremoveCharCount+=count;\n \t\t\taMap.put(ch, aMap.get(ch) - count);\n \t\t}else if(aMap.get(ch) < bMap.get(ch)){\n \t\t\tint count = bMap.get(ch) - aMap.get(ch);\n \t\t\tremoveCharCount+=count;\n \t\t\taMap.put(ch, bMap.get(ch) - count);\n \t\t}\n \t}else if(aMap.containsKey(ch) && !bMap.containsKey(ch)){\n \t\tint count = aMap.get(ch);\n \t\tremoveCharCount+=count;\n \t\taMap.remove(ch);\n \t}else if(!aMap.containsKey(ch) && bMap.containsKey(ch)){\n \t\tint count = bMap.get(ch);\n \t\tremoveCharCount+=count;\n \t\tbMap.remove(ch);\n \t}\n }\n /* if(removeCharCount == Math.min(arr.length, brr.length)){\n \treturn 0;\n }*/\n return removeCharCount;\n }", "public Map<String, Integer> wordCount(String string) {\n\t\tMap<String, Integer> map = new HashMap<String, Integer>();\n\t\tString[] p = string.split(\"[\\\\W\\\\s]\");\n\t\tfor (String s : p) {\n\t\t\tif (!s.equals(\"\")) {\n\t\t\t\tif (map == null || !map.containsKey(s))\n\t\t\t\t\tmap.put(s, 1);\n\t\t\t\telse\n\t\t\t\t\tmap.replace(s, map.get(s) + 1);\n\t\t\t}\n\t\t}\n\t\treturn map;\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException {\n \n \n File textBank = new File(\"textbank/\");\n Hashtable<Integer,Integer> frequency;\n Hashtable<Integer, String> table;\n table = new Hashtable<>();\n frequency = new Hashtable<>();\n Scanner input = new Scanner(new File(\"stoplist.txt\"));\n int max=0;\n while (input.hasNext()) {\n String next;\n next = input.next();\n if(next.length()>max)\n max=next.length();\n table.put(next.hashCode(), next); //to set up the hashmap with the wordsd\n \n }\n \n System.out.println(max);\n \n Pattern p0=Pattern.compile(\"[\\\\,\\\\=\\\\{\\\\}\\\\\\\\\\\\\\\"\\\\_\\\\+\\\\*\\\\#\\\\<\\\\>\\\\!\\\\`\\\\-\\\\?\\\\'\\\\:\\\\;\\\\~\\\\^\\\\&\\\\%\\\\$\\\\(\\\\)\\\\]\\\\[]\") \n ,p1=Pattern.compile(\"[\\\\.\\\\,\\\\@\\\\d]+(?=(?:\\\\s+|$))\");\n \n \n \n wor = new ConcurrentSkipListMap<>();\n \n ConcurrentMap<String , Map<String,Integer>> wordToDoc = new ConcurrentMap<String, Map<String, Integer>>() {\n @Override\n public Map<String, Integer> putIfAbsent(String key, Map<String, Integer> value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean remove(Object key, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean replace(String key, Map<String, Integer> oldValue, Map<String, Integer> newValue) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Map<String, Integer> replace(String key, Map<String, Integer> value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public int size() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean isEmpty() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean containsKey(Object key) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean containsValue(Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Map<String, Integer> get(Object key) {\n return wor.get((String)key);//To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Map<String, Integer> put(String key, Map<String, Integer> value) {\n wor.put(key, value); // this saving me n \n //if(frequency.get(key.hashCode())== null)\n \n //frequency.put(key.hashCode(), )\n return null;\n }\n\n @Override\n public Map<String, Integer> remove(Object key) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public void putAll(Map<? extends String, ? extends Map<String, Integer>> m) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public void clear() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Set<String> keySet() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Collection<Map<String, Integer>> values() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Set<Map.Entry<String, Map<String, Integer>>> entrySet() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n };\n totalFiles = textBank.listFiles().length;\n for (File textFile : textBank.listFiles()) {\n totalReadFiles++;\n //checking whether file has txt extension and file size is higher than 0\n if(textFile.getName().contains(\".txt\") && textFile.length() > 0){\n docName.add(textFile.getName().replace(\".txt\", \".stp\"));\n StopListHandler sp = new StopListHandler(textFile, table,System.currentTimeMillis(),p0,p1,wordToDoc);\n sp.setFinished(() -> {\n \n tmp++;\n \n if(tmp==counter)\n //printTable(counter);\n \n if(totalReadFiles == totalFiles)\n {\n printTable(counter);\n }\n \n });\n \n sp.start();\n counter ++;}\n \n \n }\n System.out.println(counter);\n //while(true){if(tmp==counter-1) break;}\n System.out.println(\"s\");\n \n }", "public void addToMap(){\n\t\tInteger hc = currentQuery.hashCode();\n\t\tif (!hmcache.containsKey(hc)) {\n\t\t\thmcache.put(hc, 0);\n\t\t}else{\n\t\t\tInteger val = hmcache.get(hc) + (currentQuery.getWords().size());\n\t\t\thmcache.put(hc, val);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tString s =\"hhpddlnnsjfoyxpciioigvjqzfbpllssuj\";\r\n\t\tint noOfChange=0;\r\n\t\r\n\t\t\r\n\t\tif(s.length()%2!=0){\r\n\t\t\t\r\n\t\t\tnoOfChange=-1;\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tString sub1=s.substring(0, (s.length()/2));\r\n\t\t\tString sub2=s.substring((s.length()/2), (s.length()));\r\n\t\t\tHashMap<Character, Integer>map = new HashMap<Character,Integer>();\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<sub1.length();i++){\r\n\t\t\t\tif(map.containsKey(sub1.charAt(i))){\r\n\t\t\t\t\t\r\n\t\t\t\t\tint count =map.get(sub1.charAt(i));\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t\tmap.put(sub1.charAt(i), count);\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\t\t\t\t\t\r\n\t\t\t\t\tmap.put(sub1.charAt(i), 1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(sub1);\r\n\t\t\tSystem.out.println(sub2);\r\n\t\t\tfor(int i=0;i<map.size();i++){\r\n\t\t\t\r\n\t\t\t\tif(map.containsKey(sub2.charAt(i))){\r\n\t\t\t\t\tint count =map.get(sub2.charAt(i));\r\n\t\t\t\t\tcount--;\r\n\t\t\t\t\tif(count<0){\r\n\t\t\t\t\t\tnoOfChange++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmap.put(sub2.charAt(i), count);\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tnoOfChange++;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(noOfChange);\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tString character = \"fsdkjfklsdjfksdlkjdsfoweiopriewfklsdkfldksaflkdsafldkfsieoirwpoiroewofkdsfksldkf\";\n\t\tMap<Character,Integer> map = new HashMap<Character, Integer>();\n\t\tmap = countChars(character);\n\t\tSortMap(map);\n\t}", "private static String hashWord(String word) {\n int[] counts = new int[26];\n for (char c : word.toCharArray()) { // O(c)\n counts[(int)c-97]++;\n }\n StringBuilder sb = new StringBuilder();\n for (int i : counts) { // O(26)\n sb.append(Integer.toString(i));\n }\n return sb.toString();\n }", "public static void countWords(String text, HashMap<String, Integer> counts){\n\t\tStringTokenizer st = new StringTokenizer(text);\n\t\tString currWord = null;\n\t\twhile(st.hasMoreTokens()){\n\t\t\tcurrWord = st.nextToken();\n\t\t\tif(counts.containsKey(currWord)){\n\t\t\t\tcounts.put(currWord, counts.get(currWord)+1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcounts.put(currWord, 1);\n\t\t\t}\n\t\t}\n\t}", "int getLettersCount();", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter String :\");\n\t\tString str = sc.nextLine();\n\t\tint cnt = 0;\n Map<Character, Integer> map = new HashMap<Character, Integer>();\n for (int i =0;i<str.length();i++)\n {\n \tif (map.containsKey(str.charAt(i)))\n \t{\n \t\tint count = map.get(str.charAt(i));\n \t\tcount++;\n \t\tmap.put(str.charAt(i), count);\n \t}\n \telse\n \t{\n \t\tmap.put(str.charAt(i), 1);\n \t}\n \n }\n for (Map.Entry<Character,Integer> entry : map.entrySet())\n {\n \tif (entry.getValue()>1 && entry.getKey()!=' ')\n \t{\n \t\t\n \t \n \t\tSystem.out.println(entry.getKey() + \" \" +entry.getValue());\n \t}\n }\n \n }", "int[] buildFrequencyTable(String s)\n{\n int[] table = new int [Character.getNumericValue('z') - Character.getNumericValue('a') + 1];\n for (char c : s.toCharArray())\n {\n int x = getCharNumber(c);\n if (x != -1) table[x]++;\n }\n return table;\n}", "public void sortCount() {\n\t\tfor(Entry<String, TreeMap<String, Integer>> entry:map.entrySet()){\r\n\t\t\tTreeMap<String, Integer> tmap = entry.getValue();\r\n\t\t\tList<Entry<String, Integer>> sorttmap = MapSort.sortMapByIntegerValue(tmap);\r\n\t\t\t int flag=0;\r\n for(Entry<String, Integer> word:sorttmap){ \r\n \tflag++;\r\n \tkeyword.add(word.getKey());\r\n// System.out.println(mapping.getKey()+\":\"+mapping.getValue()); \r\n \tif(flag==5)\r\n \t\tbreak;\r\n } \r\n\t\t}\r\n\t\r\n\t}", "public static void main(String[] args) {\n\t\tchar[] characters = { 'a', 'b', 'a', 'c', 'd', 'b' };\n\t\t/*\n\t\t * calling the method countChars\n\t\t * @param characters[]\n\t\t */\n\t\tMap<Character, Integer> countCharacters = countChars(characters);\n\t\t/*\n\t\t * displaying the hashMap\n\t\t */\n\t\tSystem.out.println(countCharacters);\n\t}", "public void countWord() {\n\t\tiniStorage();\n\t\tWordTokenizer token = new WordTokenizer(\"models/jvnsensegmenter\",\n\t\t\t\t\"data\", true);\n\t\t// String example =\n\t\t// \"Nếu bạn đang tìm kiếm một chiếc điện thoại Android? Đây là, những smartphone đáng để bạn cân nhắc nhất. Thử linh tinh!\";\n\t\t// token.setString(example);\n\t\t// System.out.println(token.getString());\n\n\t\tSet<Map.Entry<String, String>> crawlData = getCrawlData().entrySet();\n\t\tIterator<Map.Entry<String, String>> i = crawlData.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tMap.Entry<String, String> pageContent = i.next();\n\t\t\tSystem.out.println(pageContent.getKey());\n\t\t\tPageData pageData = gson.fromJson(pageContent.getValue(),\n\t\t\t\t\tPageData.class);\n\t\t\ttoken.setString(pageData.getContent().toUpperCase());\n\t\t\tString wordSegment = token.getString();\n\t\t\tString[] listWord = wordSegment.split(\" \");\n\t\t\tfor (String word : listWord) {\n\t\t\t\taddToDictionary(word, 1);\n\t\t\t\tDate date;\n\t\t\t\ttry {\n\t\t\t\t\tdate = simpleDateFormat.parse(pageData.getTime().substring(\n\t\t\t\t\t\t\t0, 10));\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\taddToStatByDay(date, word, 1);\n\t\t\t}\n\t\t}\n\t}", "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}", "private static void printTable(int numberOfDocs) {\n \n Gson gs = new Gson();\n String json = gs.toJson(wor);\n // System.out.println(json);\n \n List<String> queryWords = new ArrayList();\n //to test it for other query word you can change the following two words\n //queryWords.add(\"carpet\");\n //queryWords.add(\"hous\");\n queryWords.add(\"the\");\n queryWords.add(\"crystallin\");\n queryWords.add(\"len\");\n queryWords.add(\"vertebr\");\n queryWords.add(\"includ\");\n \n \n FrequencySummary frequencySummary = new FrequencySummary();\n frequencySummary.getSummary(json,docName, queryWords);\n \n System.exit(0);\n \n Hashtable<Integer,Integer> g = new Hashtable<>();\n \n /* wor.entrySet().forEach((wordToDocument) -> {\n String currentWord = wordToDocument.getKey();\n Map<String, Integer> documentToWordCount = wordToDocument.getValue();\n freq.set(0);\n df.set(0);\n documentToWordCount.entrySet().forEach((documentToFrequency) -> {\n String document = documentToFrequency.getKey();\n Integer wordCount = documentToFrequency.getValue();\n freq.addAndGet(wordCount);\n System.out.println(\"Word \" + currentWord + \" found \" + wordCount +\n \" times in document \" + document);\n \n if(g.getOrDefault(currentWord.hashCode(), null)==null){\n g.put(currentWord.hashCode(),1);\n \n }else {\n System.out.println(\"Hello\");\n \n int i = g.get(currentWord.hashCode());\n System.out.println(\"i \"+i);\n g.put(currentWord.hashCode(), i++);\n }\n // System.out.println(currentWord+\" \"+ g.get(currentWord.hashCode()));\n // g.put(currentWord.hashCode(), g.getOrDefault(currentWord.hashCode(), 0)+wordCount);\n \n });\n // System.out.println(freq.doubleValue());\n \n // System.out.println(\"IDF for this word: \"+Math.log10( (double)(counter/freq.doubleValue())));\n });\n // System.out.println(g.get(\"plai\".hashCode()));\n //System.out.println(\"IDF for this word: \"+Math.log10( (double)(counter/(double)g.get(\"plai\".hashCode()))));\n */\n }", "private void initialize() {\n\t\tfor(String key: count_e_f.keySet()){\n\t\t\tcount_e_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\tfor(Integer key: total_f.keySet()){\n\t\t\ttotal_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\t//This code is not efficient.\n//\t\tfor(Entry<String, Integer> german : mainIBM.gerWordsIdx.entrySet()){\n//\t\t\tfor(Entry<String, Integer> english : mainIBM.engWordsIdx.entrySet()){\n//\t\t\t\tcount_e_f.put(english.getValue() + \"-\" + german.getValue(), 0.0);\n//\t\t\t}\n//\t\t\ttotal_f.put(german.getValue(), 0.0);\n//\t\t}\t\n\n\t}", "public void updateWordPoints() {\n for (String word: myList.keySet()) {\n int wordValue = 0;\n for (int i = 0; i < word.length(); i++) {\n // gets individual characters from word and\n // from that individual character get the value from scrabble list\n int charValue = scrabbleList.get(word.toUpperCase().charAt(i));\n // add character value gotten from character key from scrabble map to word value\n wordValue = wordValue + charValue;\n }\n\n // update the value of the word in myList map\n myList.put(word, wordValue);\n }\n }", "public Map<Character, Integer> buildDictionary(char c, Map<Character, Integer> dictionary){\n \n \n if(dictionary.containsKey(c)) {\n //String charString = Character.toString(c);\n //Integer val = dictionary.get(theCharacter);\n //System.out.println(dictionary.get(theCharacter));\n dictionary.put(c, dictionary.get(c) + 1);\n }\n else{\n Integer i = 1;\n dictionary.put(c, i);\n }\n return dictionary;\n }", "private int getUseOfLetter(String word) {\n int result = 0;\n for (int i = 0; i < word.length(); i++) {\n result |= tables[word.charAt(i)];\n }\n return result;\n }", "static int makeAnagram1(String a, String b) {\n int count = 0;\n Map<Character, Integer> mapA = initMap(a);\n Map<Character, Integer> mapB = initMap(b);\n\n Iterator<Character> it = mapA.keySet().iterator();\n while (it.hasNext()) {\n char c = it.next();\n int frequencyA = mapA.get(c);\n if (mapB.containsKey(c)) {\n int frequencyB = mapB.get(c);\n count += Math.abs(frequencyA - frequencyB);\n int min = Math.min(frequencyA, frequencyB);\n mapA.put(c, min);\n mapB.put(c, min);\n } else {\n count += frequencyA;\n }\n }\n\n it = mapB.keySet().iterator();\n while (it.hasNext()) {\n char c = it.next();\n int frequencyB = mapB.get(c);\n if (mapA.containsKey(c)) {\n int frequencyA = mapA.get(c);\n count += Math.abs(frequencyA - frequencyB);\n int min = Math.min(frequencyA, frequencyB);\n mapA.put(c, min);\n mapB.put(c, min);\n } else {\n count += frequencyB;\n }\n }\n return count;\n }", "int countByExample(WdWordDictExample example);" ]
[ "0.7561892", "0.75055605", "0.73935217", "0.731312", "0.72560513", "0.72281796", "0.70620346", "0.704621", "0.6995493", "0.69933885", "0.69471055", "0.69167846", "0.6878205", "0.68456197", "0.68102", "0.68005294", "0.6795247", "0.6779665", "0.6777981", "0.6758456", "0.675245", "0.6705074", "0.66636586", "0.6656981", "0.66533285", "0.6633839", "0.6576143", "0.6561541", "0.65317917", "0.65065086", "0.64978385", "0.6470826", "0.6469845", "0.6447939", "0.644628", "0.6426577", "0.6400522", "0.63946146", "0.6393785", "0.6388463", "0.6377763", "0.63678247", "0.63589966", "0.6356892", "0.6348351", "0.63407075", "0.62968284", "0.6287333", "0.62634695", "0.625891", "0.6248703", "0.624415", "0.62423533", "0.62337816", "0.62324286", "0.62321", "0.6194374", "0.61917084", "0.6182954", "0.61370426", "0.61349034", "0.61345065", "0.6132153", "0.613051", "0.61181766", "0.61084706", "0.610503", "0.6101741", "0.6099675", "0.60905457", "0.60905194", "0.608669", "0.60858434", "0.60718656", "0.6068095", "0.6062407", "0.606057", "0.60576", "0.60541266", "0.604795", "0.6045938", "0.6045702", "0.6032879", "0.60276616", "0.60086924", "0.600595", "0.600594", "0.59895813", "0.59819394", "0.59794074", "0.597536", "0.59681505", "0.5967582", "0.59639853", "0.59626824", "0.595621", "0.59525216", "0.59512573", "0.5948826", "0.59446204" ]
0.8094241
0
defined by IBolt. Analogous to open() in ISpout. Prepare resources such as database connections during bolt initializations. here saves a reference to the OutputCollector object
public void prepare(Map config, TopologyContext context, OutputCollector collector){ this.collector = collector; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void open(Map arg0, TopologyContext arg1, SpoutOutputCollector outputCollector) {\n\t\t\n\t\tthis.collector = outputCollector;\n\t}", "@Override\n public void open(Map conf, TopologyContext topologyContext, SpoutOutputCollector collector) {\n this.collector = collector;\n }", "public void open(Map conf, TopologyContext context, SpoutOutputCollector collector) {\n\t\t_collector = collector;\n\t}", "@SuppressWarnings(\"rawtypes\")\n @Override\n public void open(Map conf, TopologyContext context, SpoutOutputCollector collector) {\n this.collector = collector;\n this.context = context; \n \n // log.debug(getExecutorId() + \" Starting URL Spout\");\t\t\t\t\t\n }", "public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) {\n\t\tthis.collector = collector;\n\n\t}", "private void setupCollector() {\n outList = new ArrayList<>();\n }", "public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) {\n\t\tthis.collector = collector;\n\t}", "public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) {\r\n this.conf = stormConf;\r\n this.context = context;\r\n this.collector = collector;\r\n }", "public void prepare(Map config, TopologyContext context, OutputCollector collector){\n\t\tjedis = new Jedis(jcNodes.split(\":\")[0],Integer.valueOf(jcNodes.split(\":\")[1]));\n\t\tthis.collector = collector;\n\t\tlogger.info(\"------DataCleaning open-----\");\n\t\n\t}", "@Override\n\tpublic void prepare(Map stormConf, TopologyContext context,\n\t\t\tOutputCollector collector) {\n\t\tthis.collector=collector;\n\t\tGlobalVar.numberOfNodes = Integer.parseInt(stormConf.get(\"numberOfNodes\").toString());\n\t\tthis.fileName = stormConf.get(\"wordsFile\").toString();\n\t\t\n\t}", "@Override\r\n public void prepare(Map topoConf, TopologyContext context, OutputCollector collector) {\r\n // TODO Auto-generated method stub\r\n super.prepare(topoConf, context, collector);\r\n try {\r\n this.collector = collector;\r\n\r\n //fh = new FileHandler(\"/public/home/abrar/loger/Mylog2.log\");\r\n //logger.addHandler(fh);\r\n //SimpleFormatter formatter = new SimpleFormatter();\r\n //fh.setFormatter(formatter);\r\n }\r\n catch (Exception e){\r\n\r\n }\r\n\r\n }", "public abstract void internalPrepare(\n OutputCollector collector,\n IMetadataChangeNotifyService metadataManager,\n Config config, TopologyContext context);", "protected void doPrepare(final Map stormConf, final TopologyContext context, final OutputCollector collector) {\n }", "@SuppressWarnings(\"rawtypes\")\n\tpublic void prepare(Map map, TopologyContext context, OutputCollector collector) {\n\t\tthis.outputCollector = collector;\n\t\ttry {\n\t\t\tMqttConnectOptions conn = DAGUtils.connectToMqtt();\n\t\t\tmqtt = new MqttClient(DAGUtils.mqttconnect, MqttClient.generateClientId());\n\t\t\tmqtt.setCallback(this);\n\t\t\tmqtt.connect(conn);\n\t\t\tmqtt.subscribe(controlTopic, 2);\n\t\t\tlong tid = Thread.currentThread().getId();\n\t\t\t//System.out.println(\"OPMW_SS,\" + System.currentTimeMillis() + \",BT,bolt-\" + boltID + \",\" + pause + \",\" + forward);\n\t\t\t//System.out.println(\"WORKER_PORT,\"+context.getThisWorkerPort()+\",COMPONENT,\" + context.getThisComponentId() + \",TASK,\" + context.getThisTaskId() + \",BOLT_ID,bolt-\" + boltID + \",TT_ID,\"+tid);\n\t\t\t\n\t\t\t\n\t\t} catch(MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private ReportRepository() {\n ConnectionBD BD = ConnectionBD.GetInstance();\n this.con = BD.GetConnection();\n this.itemInfoFactory = ItemInfoFactory.GetInstance();\n }", "@Override\n public void initialize() {\n // TODO Auto-generated method stub\n String name = (String)getConfigParameterValue(\"OutputPath\");\n File file = new File(name);\n try {\n bout = new BufferedWriter(new FileWriter(file));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n throw new UIMARuntimeException(e);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n throw new UIMARuntimeException(e);\n }\n output = new HashSet<String>();\n }", "private void openStreams() {\n\t\ttry {\n\t\t\t// mostramos un log\n\t\t\tthis.getLogger().debug(\"Opening streams..\");\n\t\t\t// abrimos el stream de salida\n\t\t\tthis.setOutputStream(new ObjectOutputStream(this.getConnection().getOutputStream()));\n\t\t\t// abrimos el stream de entrada\n\t\t\tthis.setInputStream(new ObjectInputStream(this.getConnection().getInputStream()));\n\t\t} catch (final IOException e) {}\n\t}", "public final void prepare(Map conf, TopologyContext topologyContext, OutputCollector collector){\n this.writeLock = new Object();\n if (this.syncPolicy == null) throw new IllegalStateException(\"SyncPolicy must be specified.\");\n if (this.rotationPolicy == null) throw new IllegalStateException(\"RotationPolicy must be specified.\");\n if (this.fsUrl == null) {\n throw new IllegalStateException(\"File system URL must be specified.\");\n }\n\n this.collector = collector;\n this.fileNameFormat.prepare(conf, topologyContext);\n this.hdfsConfig = new Configuration();\n Map<String, Object> map = (Map<String, Object>)conf.get(this.configKey);\n if(map != null){\n for(String key : map.keySet()){\n this.hdfsConfig.set(key, String.valueOf(map.get(key)));\n }\n }\n\n try{\n HdfsSecurityUtil.login(conf, hdfsConfig);\n doPrepare(conf, topologyContext, collector);\n this.currentFile = createOutputFile();\n\n } catch (Exception e){\n throw new RuntimeException(\"Error preparing HdfsBolt: \" + e.getMessage(), e);\n }\n\n if(this.rotationPolicy instanceof TimedRotationPolicy){\n long interval = ((TimedRotationPolicy)this.rotationPolicy).getInterval();\n this.rotationTimer = new Timer(true);\n TimerTask task = new TimerTask() {\n @Override\n public void run() {\n try {\n rotateOutputFile();\n } catch(IOException e){\n LOG.warn(\"IOException during scheduled file rotation.\", e);\n }\n }\n };\n this.rotationTimer.scheduleAtFixedRate(task, interval, interval);\n }\n }", "@Override\n\tpublic void prepare(Map arg0, TopologyContext arg1, OutputCollector arg2) {\n\t\tthis.outputCollector = arg2;\n\n\n\t\tvertx = Vertx.vertx();\n\t\tbroker_config = new RabbitMQOptions();\n\t\tbroker_config.setHost(\"localhost\");\n// broker_config.setPort(broker_port);\n// broker_config.setVirtualHost(broker_vhost);\n// broker_config.setUser(username);\n// broker_config.setPassword(password);\n\t\tbroker_config.setConnectionTimeout(6000);\n\t\tbroker_config.setRequestedHeartbeat(60);\n\t\tbroker_config.setHandshakeTimeout(6000);\n\t\tbroker_config.setRequestedChannelMax(5);\n\t\tbroker_config.setNetworkRecoveryInterval(500);\n\n\t\tclient = RabbitMQClient.create(vertx, broker_config);\n\t\tclient.start(start_handler -> {\n\t\t\tif (start_handler.succeeded()) {\n\n\t\t\t\tLog.info(\"vertx RabbitMQ client started successfully!\");\n\t\t\t}\n\t\t});\n\n//\t\tthis.invalidMessageCounter=new HashMap<>();\n\t}", "public Pool() {\n\t\t// inicializaDataSource();\n\t}", "protected void open () {\n\t\tif (this.container==null)\n\t\t\ttry {\n\t\t\t\tmigrateOnDemand();\n\t\t\t\topenFiles();\n\t\t\t\tthis.blockSize = metaData.readInt();\n\t\t\t\tthis.size = metaData.readInt();\n\t\t\t}\n\t\t\tcatch (IOException ie) {\n\t\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t\t}\n\t}", "public void open(Map conf, TopologyContext arg1, SpoutOutputCollector collector) {\n\t\tSystem.out.println(\"WordReader.open(Map conf, TopologyContext arg1, SpoutOutputCollector collector)\");\n\t\t String fileName = conf .get(\"fileName\").toString();\n InputStream inputStream=WordReader.class.getClassLoader().getResourceAsStream(fileName);\n reader =new BufferedReader(new InputStreamReader(inputStream ));\n this.collector = collector;\n\t\t\n\t}", "private Output() {}", "public MongoWriter() {\n\t\tmongoClient = new MongoClient(\"localhost\");\n\t\tMongoDatabase database = mongoClient.getDatabase(\"ai\");\n\t\tminPathsCollection = database.getCollection(\"min_paths\");\n\t\tedgesCollection = database.getCollection(\"edges\");\n\t\t// clear before starting\n\t\tminPathsCollection.drop();\n\t\tedgesCollection.drop();\n\t}", "private DataService() {\n\t\tusers = new LinkedHashSet<>();\n\t\tlists = new LinkedHashSet<>();\n\t\ttasks = new LinkedHashMap<>();\n\t\tdbManager = DBManager.getInstance();\n\t\tdbManager.initialize();\n\t\tusers = dbManager.getUsers();\n\n\t\toutputFile = System.getProperty(\"user.dir\")+\"/output/\"+Calendar.getInstance().getTimeInMillis()+\"_Output.txt\";\n\t}", "private Connection() {\n\t\tSystem.out.println(\"--Connection Created--\");\n\t}", "@Override\n public void prepare() {\n //Caching as file resource.\n File file = this.getResource().file;\n logger.info(\"Preparing {} streams for file: {}\", this.getTransferType(), file.getName());\n\n if (this.getTransferType() == ResourceTransferType.OUTBOUND) {\n //Sending\n try {\n buffer = new byte[BUFFER_SIZE];\n sent = 0;\n inputChannel = new FileInputStream(file).getChannel();\n inputBuffer = inputChannel.map(FileChannel.MapMode.READ_ONLY, 0, inputChannel.size());\n } catch (FileNotFoundException e) { //File doesn't exist.\n //Calling a transfer error.\n callError(e);\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else {\n //Receiving\n //Checking if file already exists.\n written = 0;\n saved = 0;\n if (getResource().isLocal()) {\n getResource().calcNetworkId();\n if (getResource().getNetworkID().equals(getTunnel().getDestination())) {\n //The file is already stored locally.\n getTunnel().sendMessage(new ResourceTransferControlMessage(this.getTransferId(), -2));\n this.close();\n return;\n }\n }\n\n //Creating or replacing the file.\n buffer = new byte[BUFFER_SIZE * 16];\n if (file.exists()) {\n file.delete();\n }\n try { //Creating new file.\n file.createNewFile();\n outputStream = new FileOutputStream(file);\n } catch (IOException e) {\n //Calling a transfer error.\n callError(e);\n return;\n }\n\n //Requesting the first chunk.\n getTunnel().sendMessage(new ResourceTransferControlMessage(this.getTransferId(), 0));\n }\n }", "@Override\n\tpublic void construct() {\n\t\tSystem.out.println(\"Getting a MySQL Database Connection\");\n\n\t}", "private ConnectionPool() {\r\n\t\tResourceManagerDB resourceManager = ResourceManagerDB.getInstance();\r\n\t\tthis.driver = resourceManager.getValue(ParameterDB.DRIVER_DB);\r\n\t\tthis.url = resourceManager.getValue(ParameterDB.URL_DB);\r\n\t\tthis.user = resourceManager.getValue(ParameterDB.USER_DB);\r\n\t\tthis.password = resourceManager.getValue(ParameterDB.PASSWORD_DB);\r\n\t\tthis.poolsize = Integer.parseInt(resourceManager.getValue(ParameterDB.POOLSIZE_DB));\r\n\t}", "public OutputBufferMap () {\n }", "public interface OutputStrategy {\n\n\tpublic OutputStream getOutputStream(Config config);\n\tpublic void close();\n}", "public CopySink() {}", "@Override\r\n\tpublic synchronized void initialize(OperatorContext context) throws Exception {\r\n\t\tsuper.initialize(context);\r\n\t\t/*\r\n\t\t * Set appropriate variables if the optional error output port is\r\n\t\t * specified. Also set errorOutputPort to the output port at index 0\r\n\t\t */\r\n\t\tif (context.getNumberOfStreamingOutputs() == 2) {\r\n\t\t\thasErrorPort = true;\r\n\t\t\terrorOutputPort = getOutput(1);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif (checkConnection) {\r\n\t\t\tstartCheckConnection(context);\r\n\t\t}\r\n\r\n\t\tif (idleSessionTimeOutMinute > 0) {\r\n\t\t\tstartidleSessionTimeOutThread(context);\r\n\t\t}\r\n\t\t\r\n\t\t// set the data output port\r\n\t\tdataOutputPort = getOutput(0);\r\n\r\n\t\t// Initiate parameter sqlStatusAttr\r\n\t\tinitSqlStatusAttr();\r\n\r\n\t\t// Initiate PreparedStatement\r\n\t\tinitPreparedStatement();\r\n\r\n\t\t// initialize metrics\r\n\t\tinitMetrics(context);\r\n\t}", "public Persistence() {\n\t\tconn = dbConnection();\n\t}", "public File getOutputDb();", "default void init() {\n System.out.println(\"Init connector object...\");\n }", "<R> Streamlet<R> newSource(IRichSpout spout);", "private void openOutputStream() {\n\t\tPrintStreamManagement.openOutputStream();\n\t}", "public ResultHandlerDaoFactory(DataSource datasource, ItemWriter itemWriter, String outputFilePath) {\n setDatasource(datasource);\n setItemWriter(itemWriter);\n setOutputFilePath(outputFilePath);\n }", "abstract AbstractStreamingAnalyticsConnection createStreamsConnection()\n throws IOException;", "@Override\n\t\tpublic void prepare(Map conf, TopologyContext context, OutputCollector collector) {\n\t\t\ttry {\n\t\t\t\tcluster = Cluster.builder().addContactPoint(\"192.168.2.10\").build(); //vagrant cassandra cluster\n\t\t\t\tsession = cluster.connect(); \n\t\t\t}catch(NoHostAvailableException et){\n\t\t\t\ttry{\n\t\t\t\t\tcluster = Cluster.builder().addContactPoint(\"127.0.0.1\").build(); //localhost\n\t\t\t\t\tsession = cluster.connect();\n\t\t\t\t}catch(NoHostAvailableException et1){\n\t\t\t\t\t//can't get to a cassandra cluster bug out\n\t\t\t\t\treturn;\n\n\t\t\t\t}\n\t\t\t} \n\t\t\tKeyspaces kp = new Keyspaces();\n\t\t\tkp.SetUpKeySpaces(cluster);\n\t\t\tInsertStatement = session.prepare(\"insert into mzMLKeyspace.mzml (name,scan,mzarray,intensityarray)\" +\n\t\t\t\t\t\" VALUES (?, ?, ?,?);\");\n\t\t\t_collector = collector;\n\t\t\tComponentId=context.getThisComponentId();\n\t\t}", "protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }", "public interface ObjectOutput extends DataOutput, AutoCloseable {\n /**\n * Write an object to the underlying storage or stream. The class that implements this interface\n * defines how the object is written.\n *\n * @param obj the object to be written\n * @exception IOException Any of the usual Input/Output related exceptions.\n */\n public void writeObject(Object obj) throws IOException;\n\n /**\n * Writes a byte. This method will block until the byte is actually written.\n * \n * @param b the byte\n * @exception IOException If an I/O error has occurred.\n */\n public void write(int b) throws IOException;\n\n /**\n * Writes an array of bytes. This method will block until the bytes are actually written.\n * \n * @param b the data to be written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[]) throws IOException;\n\n /**\n * Writes a sub array of bytes.\n * \n * @param b the data to be written\n * @param off the start offset in the data\n * @param len the number of bytes that are written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[], int off, int len) throws IOException;\n\n /**\n * Flushes the stream. This will write any buffered output bytes.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void flush() throws IOException;\n\n /**\n * Closes the stream. This method must be called to release any resources associated with the\n * stream.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void close() throws IOException;\n}", "@Override\n public void spool(OutputContext outputContext) throws IOException {\n // spool properties\n super.spool(outputContext);\n // spool data\n try {\n OutputStream out = outputContext.getOutputStream();\n if (out != null && exists()) {\n getRepositorySession().exportSystemView(item.getPath(), out, false, true);\n }\n } catch (PathNotFoundException e) {\n log.error(\"Error while spooling resource content: \" + e.getMessage());\n } catch (RepositoryException e) {\n log.error(\"Error while spooling resource content: \" + e.getMessage());\n }\n }", "@Override\n public void init(Map<String, String> config) {\n>>>>>>> DpStarterKit-fs:starter/src/main/java/com/datapipeline/starter/ConsoleOutputSinkPipe.java\n config.forEach((k, v) -> System.out.println(\"Key: \" + k + \" / Value: \" + v));\n String host = config.get(\"host\");\n String port = config.get(\"port\");\n MongoDBHelper.INSTANCE.getMongoClient(host, Integer.valueOf(port));\n }", "StreamConnectionIO(Mux mux, OutputStream out, InputStream in) {\n\tsuper(mux);\n\tthis.out = out;\n//\tthis.out = new BufferedOutputStream(out);\n\tthis.in = in;\n\n\toutChannel = newChannel(out);\n\tinChannel = newChannel(in);\n sendQueue = new LinkedList<Buffer>();\n }", "protected void init() {\n\t\tout = new StringWriter();\n\t\ttry {\n\t\t\twriter = XMLOutputFactory.newInstance().createXMLEventWriter(out);\n\t\t} catch (XMLStreamException xmlStrExp) {\n\t\t\tthrow new GrobidException(\"An error occured while creating the Stax event readers: \" + xmlStrExp.toString());\n\t\t} catch (FactoryConfigurationError factCongExp) {\n\t\t\tthrow new GrobidException(\"An error occured while creating the Stax event readers: \" + factCongExp.toString());\n\t\t}\n\t}", "DataStreams createDataStreams();", "private void setupStreams() throws IOException {\n\t\toutput = new ObjectOutputStream(Connection.getOutputStream());\n\t\toutput.flush();\n\t\tinput = new ObjectInputStream(Connection.getInputStream()); \n\t\tshowMessage(\"\\n Streams have successfully connected.\");\n\t}", "@Override\n public void populateDAG(DAG dag, Configuration conf)\n {\n SampleInput input = new SampleInput();\n Collector collector = new Collector();\n StreamFactory.fromInput(input, input.beanOutput, name(\"input\"))\n .addCompositeStreams(new PlaysForWord())\n .print(name(\"console\"))\n .endWith(collector, collector.input, name(\"Collector\"))\n .populateDag(dag);\n\n }", "private DatabaseHandler(){\n createConnection();\n }", "private DataConnection() {\n \tperformConnection();\n }", "@Override\n public void init() throws Exception {\n // allocate a new logger\n Logger logger = Logger.getLogger(\"processinfo\");\n\n // add some extra output channels, using mask bit 6\n try {\n outputStream = new FileOutputStream(filename);\n logger.addOutput(new PrintWriter(outputStream), new BitMask(MASK.APP));\n } catch (Exception e) {\n LoggerFactory.getLogger(TcpdumpReporter.class).error(e.getMessage());\n }\n\n }", "private void initiliaze() {\r\n\t\tthis.inputFile = cd.getInputFile();\r\n\t\tthis.flowcell = cd.getFlowcell();\r\n\t\tthis.totalNumberOfTicks = cd.getOptions().getTotalNumberOfTicks();\r\n\t\tthis.outputFile = cd.getOutputFile();\r\n\t\tthis.statistics = cd.getStatistic();\r\n\t}", "private void initializeIOStreams() {\n try {\n inputStream = new ObjectInputStream(new BufferedInputStream(socket.getInputStream()));\n outputStream = new ObjectOutputStream(new BufferedOutputStream(socket.getOutputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }", "protected abstract Output initializeOutput(final int imageWidth,\n\t\t\tfinal int imageHeight);", "public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }", "public DefaultOutputWriter() {\n\t\tpublications = null;\n\t\tauthors = null;\n\t\ttopics = null;\n\t}", "public SRWDatabasePool() {\n }", "private Connection() {\n\t\tSystem.out.println(\">> Connection Object Constructed at \"+this);\n\t}", "@Override\n public void release() {\n output = null;\n super.release();\n }", "public DBPoolImpl()\n {\n }", "@Override\n public void populateDAG(DAG dag, Configuration conf)\n {\n DummyOutputOperator combinedConsole = dag.addOperator(\"console\", new DummyOutputOperator());\n \n FileInputReaderWithShutDown inputOp = dag.addOperator(\"inputWordsReader\", new FileInputReaderWithShutDown());\n inputOp.setDirectory(\"/media/isha/apex-samples/sampleInput1\");\n dag.addStream(\"stream1\", inputOp.output, combinedConsole.input1);\n \n FileInputReaderWithoutShutDownException inputOp1 = dag.addOperator(\"inputTextReader1\", new FileInputReaderWithoutShutDownException());\n inputOp1.setDirectory(\"/media/isha/apex-samples/sampleInput2\");\n dag.addStream(\"stream2\", inputOp1.output, combinedConsole.input2);\n }", "private static void writeDataBase() throws IOException{\n \t\n \t// Write variables and class labels\n \tFileSystem fs = FileSystem.get(Mediator.getConfiguration());\n\t ObjectOutputStream objectOutputStream = new ObjectOutputStream(fs.create(new Path(Mediator.getHDFSLocation()+\"/\"+Mediator.getLearnerDatabasePath())));\n\t objectOutputStream.writeObject(Mediator.getVariables());\n\t objectOutputStream.writeObject(Mediator.getClassLabels());\n\t objectOutputStream.close();\n\t fs.close();\n \t\n }", "@Override\n\tpublic void prepare(Map arg0, TopologyContext arg1, OutputCollector collector) {\n\t\tthis.collector = collector;\n\t\tbucket = new ConcurrentHashMap<>();\n\t\ttop_value = new TreeMap<>(Collections.reverseOrder());\n\t\ttimer = new Timer();\n\t\ttimer.scheduleAtFixedRate(new java.util.TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// your code here\n\t\t\t\temit_top();\n\t\t\t}\n\t\t}, 10000, 8000);\n\t\tbucketID = 1;\n\t\tbucketSize = 500;\n\t\tthreshold = 0;\n\t}", "protected IBDS()\r\n {\r\n \tthis.modifyBuffer = new StringBuffer(300); // all update operations belong to this only\r\n this.nodeList = new ArrayList<int []>(50);\r\n this.lastUpdated = System.nanoTime();\r\n //this.objectArray = new ArrayList();\r\n }", "public BusinessLogic()\n\t{\n\t\tcreateConnection();\n\t}", "public ORBDataParserImpl(ORB paramORB, DataCollector paramDataCollector) {\n/* 405 */ super(ParserTable.get().getParserData());\n/* 406 */ this.orb = paramORB;\n/* 407 */ this.wrapper = ORBUtilSystemException.get(paramORB, \"orb.lifecycle\");\n/* 408 */ init(paramDataCollector);\n/* 409 */ complete();\n/* */ }", "public SQLCMDMeta(ConnectionFactory connector) {\r\n super();\r\n this.connector = connector;\r\n }", "public void init () throws IOException , GateException {\n conn = getConnection(db); \n Gate.init();\n\n String query = \"SELECT \" + db.idcol + ',' + db.textcol + \" FROM \" + db.table;\n if(db.where != null && !\"\".equals(db.where)){\n query = query + \" WHERE \" + db.where;\n }\n log.debug(\"attempting to prepare query: \"+ query);\n\n // fetch a resultset \n try{\n PreparedStatement stmt = conn.prepareStatement(query);\n rs = stmt.executeQuery();\n } catch(SQLException e){\n log.error(\"Problem running SQL query\", e);\n System.exit(5);\n }\n }", "public DatabaseConnector() {\n String dbname = \"jdbc/jobs\";\n\n try {\n ds = (DataSource) new InitialContext().lookup(\"java:comp/env/\" + dbname);\n } catch (NamingException e) {\n System.err.println(dbname + \" is missing: \" + e.toString());\n }\n }", "@PostConstruct\n\tpublic void init() {\n\t\tSystem.out.println(\"Opened Resource\");\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-03 14:59:52.264 -0400\", hash_original_method = \"994F669A59E4B3A0EE398298B336F810\", hash_generated_method = \"2BEECC6B96D4108E92CF5063E98986E9\")\n \npublic ProxyOutputStream(OutputStream proxy) {\r\n super(proxy);\r\n // the proxy is stored in a protected superclass variable named 'out'\r\n }", "protected StreamsApp() {\n this.streamsConfig = new KafkaStreamsConfig().fromConfig(config);\n this.rocksDbReporter = new RocksDbMetricsReporter(this);\n }", "public ProcessDataMapper() {\t}", "public FlowEventDump() {\n data = new FlowEventDumpDataImpl();\n }", "private DatabaseRepository() {\n try {\n // connect to database\n\n DB_URL = \"jdbc:sqlite:\"\n + this.getClass().getProtectionDomain()\n .getCodeSource()\n .getLocation()\n .toURI()\n .getPath().replaceAll(\"[/\\\\\\\\]\\\\w*\\\\.jar\", \"/\")\n + \"lib/GM-SIS.db\";\n connection = DriverManager.getConnection(DB_URL);\n mapper = ObjectRelationalMapper.getInstance();\n mapper.initialize(this);\n }\n catch (SQLException | URISyntaxException e) {\n System.out.println(e.toString());\n }\n }", "private ExecutableReader() {}", "void executionOver() {\n this.reporter = null;\n this.options = null;\n this.executorEngine = null;\n this.progressSuppressingEventHandler = null;\n this.outputService = null;\n this.buildActionMap = null;\n this.completedAndResetActions = null;\n this.lostDiscoveredInputsMap = null;\n this.actionCacheChecker = null;\n this.outputDirectoryHelper = null;\n }", "private void initializeBuffers(){\n if(isDiskBufferEnabled){\n this.persistenceService = PersistenceService.getService();\n this.synonymyBuffer = persistenceService.getMapDatabase(WIKIDATA_SYNONYMY_BUFFER);\n this.hypernymyBuffer = persistenceService.getMapDatabase(WIKIDATA_HYPERNYMY_BUFFER);\n this.askBuffer = persistenceService.getMapDatabase(WIKIDATA_ASK_BUFFER);\n } else {\n this.synonymyBuffer = new ConcurrentHashMap<>();\n this.hypernymyBuffer = new ConcurrentHashMap<>();\n this.askBuffer = new ConcurrentHashMap<>();\n }\n }", "public Connector()\n\t{\n\t\tconn = null;\n\t}", "public void initializeIOBuffers(){\n for(int i=0; i<outputBuffer.length; i++){\n outputBuffer[i] = new LinkedBlockingQueue();\n inputBuffer[i] = new LinkedBlockingQueue();\n }\n }", "public interface DBConnector {\n\n /**\n * Initializer for storage driver\n */\n default void init() {\n System.out.println(\"Init connector object...\");\n }\n\n /**\n * Connect with data-storage\n * @return true if connected, false if not connected\n */\n boolean connect();\n\n /**\n * Disconnect from data-storage\n */\n void disconnect();\n}", "protected Connection getConnection() {\r\n\t\treturn getProcessor().getConnection();\r\n\t}", "public PoolNYCH() {\n\t\tinicializarDataSource();\n\t}", "public InternalConnectionHandler() {\r\n\t\tthis.setPacketProcessor(InternalPacketProcessor.getInstance());\r\n\t}", "private void constructorPostProcessing()\n {\n prepareNextRequest();\n fetchNextBatch();\n advanceObjectSummary();\n }", "void registerOutputConnector(String name, OutputConnector out);", "public DataConnection() {\n\t\ttry {\n\t\t\tString dbClass = \"com.mysql.jdbc.Driver\";\n\t\t\tClass.forName(dbClass).newInstance();\n\t\t\tConnection con = DriverManager.getConnection(DIR_DB, USER_DB, PASS_DB);\n\t\t\tstatement = con.createStatement();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected GaConnector() {\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public void initialize() throws Exception {\n sampleVertex = null;\n sampleMap = null;\n\n // Reset static variables cleared for avoiding OOM.\n new JVMReuseImpl().cleanupStaticData();\n\n // Set an empty reporter for now. Once we go to Tez 0.8\n // which adds support for mapreduce like progress (TEZ-808),\n // we need to call progress on Tez API\n PhysicalOperator.setReporter(new ProgressableReporter());\n\n UserPayload payload = getContext().getUserPayload();\n conf = TezUtils.createConfFromUserPayload(payload);\n SpillableMemoryManager.getInstance().configure(conf);\n PigContext.setPackageImportList((ArrayList<String>) ObjectSerializer\n .deserialize(conf.get(\"udf.import.list\")));\n Properties log4jProperties = (Properties) ObjectSerializer\n .deserialize(conf.get(PigImplConstants.PIG_LOG4J_PROPERTIES));\n if (log4jProperties != null) {\n PropertyConfigurator.configure(log4jProperties);\n }\n\n // To determine front-end in UDFContext\n conf.set(MRConfiguration.JOB_APPLICATION_ATTEMPT_ID, getContext().getUniqueIdentifier());\n\n // For compatibility with mapreduce. Some users use these configs in their UDF\n // Copied logic from the tez class - org.apache.tez.mapreduce.output.MROutput\n // Currently isMapperOutput is always false. Setting it to true produces empty output with MROutput\n boolean isMapperOutput = conf.getBoolean(MRConfig.IS_MAP_PROCESSOR, false);\n TaskAttemptID taskAttemptId = org.apache.tez.mapreduce.hadoop.mapreduce.TaskAttemptContextImpl\n .createMockTaskAttemptID(getContext().getApplicationId().getClusterTimestamp(),\n getContext().getTaskVertexIndex(), getContext().getApplicationId().getId(),\n getContext().getTaskIndex(), getContext().getTaskAttemptNumber(), isMapperOutput);\n conf.set(JobContext.TASK_ATTEMPT_ID, taskAttemptId.toString());\n conf.set(JobContext.TASK_ID, taskAttemptId.getTaskID().toString());\n conf.setBoolean(JobContext.TASK_ISMAP, isMapperOutput);\n conf.setInt(JobContext.TASK_PARTITION,\n taskAttemptId.getTaskID().getId());\n conf.set(JobContext.ID, taskAttemptId.getJobID().toString());\n if (conf.get(PigInputFormat.PIG_INPUT_LIMITS) != null) {\n // Has Load and is a root vertex\n conf.setInt(JobContext.NUM_MAPS, getContext().getVertexParallelism());\n } else {\n conf.setInt(JobContext.NUM_REDUCES, getContext().getVertexParallelism());\n }\n\n conf.set(PigConstants.TASK_INDEX, Integer.toString(getContext().getTaskIndex()));\n UDFContext.getUDFContext().addJobConf(conf);\n UDFContext.getUDFContext().deserialize();\n\n String execPlanString = conf.get(PLAN);\n execPlan = (PhysicalPlan) ObjectSerializer.deserialize(execPlanString);\n SchemaTupleBackend.initialize(conf);\n PigMapReduce.sJobContext = HadoopShims.createJobContext(conf, new org.apache.hadoop.mapreduce.JobID());\n\n // Set the job conf as a thread-local member of PigMapReduce\n // for backwards compatibility with the existing code base.\n PigMapReduce.sJobConfInternal.set(conf);\n\n Utils.setDefaultTimeZone(conf);\n\n boolean aggregateWarning = \"true\".equalsIgnoreCase(conf.get(\"aggregate.warning\"));\n PigStatusReporter pigStatusReporter = PigStatusReporter.getInstance();\n pigStatusReporter.setContext(new TezTaskContext(getContext()));\n pigHadoopLogger = PigHadoopLogger.getInstance();\n pigHadoopLogger.setReporter(pigStatusReporter);\n pigHadoopLogger.setAggregate(aggregateWarning);\n PhysicalOperator.setPigLogger(pigHadoopLogger);\n\n LinkedList<TezTaskConfigurable> tezTCs = PlanHelper.getPhysicalOperators(execPlan, TezTaskConfigurable.class);\n for (TezTaskConfigurable tezTC : tezTCs){\n tezTC.initialize(getContext());\n }\n }", "private interface OutputBuffer {\n String getName();\n\n String getOutput();\n\n PrintWriter getPrintWriter();\n }", "protected void initialize() {\n\t\t//System.out.println(\"Cube collector is spitting\");\n\t}", "private void initReportWriter() {\n\t\tfinal XMLOutputFactory xmlof = XMLOutputFactory.newInstance();\r\n\r\n\t\t// Create an XML stream writer\r\n\t\tfinal File reportFile = new File(getOutputDirectory(), \"report.xml\");\r\n\t\ttry {\r\n\t\t\treportWriter = xmlof.createXMLStreamWriter(new FileWriter(reportFile));\r\n\r\n\t\t} catch (final XMLStreamException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (final IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public DBAO(Connection connect) {\r\n\r\n this.connector = connect;\r\n }", "public BLFacadeImplementation() {\t\t\r\n\t\tSystem.out.println(\"Creating BLFacadeImplementation instance\");\r\n\t\tConfigXML c=ConfigXML.getInstance();\r\n\t\t\r\n\t\tif (c.getDataBaseOpenMode().equals(\"initialize\")) {\r\n\t\t\tDataAccess dbManager=new DataAccess(c.getDataBaseOpenMode().equals(\"initialize\"));\r\n\t\t\tdbManager.initializeDB();\r\n\t\t\tdbManager.close();\r\n\t\t\t}\r\n\t\t\r\n\t}", "@Override public boolean init() { Is the transform getting input?\n //\n List<TransformMeta> transform = getPipelineMeta().findPreviousTransforms( getTransformMeta() );\n data.hasInput = transform != null && transform.size() > 0;\n\n // Connect to Neo4j\n //\n if ( StringUtils.isEmpty( meta.getConnectionName() ) ) {\n log.logError( \"You need to specify a Neo4j connection to use in this transform\" );\n return false;\n }\n try {\n data.neoConnection = metadataProvider.getSerializer( NeoConnection.class ).load( meta.getConnectionName() );\n if ( data.neoConnection == null ) {\n log.logError( \"Connection '\" + meta.getConnectionName() + \"' could not be found in the metadata: \" + metadataProvider.getDescription() );\n return false;\n }\n data.neoConnection.initializeVariablesFrom( this );\n\n } catch ( HopException e ) {\n log.logError( \"Could not gencsv Neo4j connection '\" + meta.getConnectionName() + \"' from the metastore\", e );\n return false;\n }\n\n data.batchSize = Const.toLong( environmentSubstitute( meta.getBatchSize() ), 1 );\n\n try {\n createDriverSession();\n } catch ( Exception e ) {\n log.logError( \"Unable to get or create Neo4j database driver for database '\" + data.neoConnection.getName() + \"'\", e );\n return false;\n }\n\n return super.init();\n }", "private void setupWriter() {\n output = new StringWriter();\n writer = new PrintWriter(output);\n }", "public PipedOutputStream() {\n }" ]
[ "0.6724318", "0.65638936", "0.64631015", "0.61341685", "0.605392", "0.6043444", "0.60312134", "0.5886263", "0.58584577", "0.57273537", "0.5679687", "0.56356937", "0.56174004", "0.5523422", "0.5474054", "0.5462751", "0.5418631", "0.54124135", "0.540123", "0.5312726", "0.5296786", "0.52836764", "0.52618366", "0.5233161", "0.5221211", "0.52174515", "0.5188837", "0.5183367", "0.5166074", "0.51590097", "0.51336515", "0.5131826", "0.5100731", "0.51001626", "0.5088013", "0.5084439", "0.5058168", "0.50542074", "0.50367147", "0.50195104", "0.50137967", "0.5004354", "0.5001758", "0.49946374", "0.49885276", "0.49868613", "0.4982148", "0.4978653", "0.49704638", "0.49686852", "0.4964592", "0.4946605", "0.4933138", "0.492863", "0.49144396", "0.49095464", "0.4901434", "0.48948202", "0.48918474", "0.48867956", "0.48807728", "0.4880458", "0.48758876", "0.48692626", "0.48687774", "0.48684892", "0.48586485", "0.4854154", "0.48515156", "0.48489937", "0.4844865", "0.4840609", "0.4840247", "0.48341075", "0.48278874", "0.48224038", "0.48200986", "0.48086542", "0.48053315", "0.48046526", "0.47986934", "0.47882003", "0.47823524", "0.47800627", "0.47789776", "0.47773924", "0.47690713", "0.47651744", "0.4762596", "0.47577628", "0.47571465", "0.47537002", "0.47484097", "0.47410336", "0.4740999", "0.47402406", "0.47401407", "0.47375083", "0.47369125", "0.47349232" ]
0.5698265
10
defined by IBolt. called every time the bolt receives a tuple from a stream to which it subscribes here looks up the value of "sentence" field of incoming tuple as a string, splits the value into individual words emits a new tuple
public void execute(Tuple tuple){ String sentence = tuple.getStringByField("sentence"); String[] words = sentence.split(" "); for(String word: words){ this.collector.emit(new Values(word)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic final void execute(final Tuple input, final BasicOutputCollector collector) {\n\t\tfinal String sentence = (String) input.getValueByField(\"sentence\");\n\t\tfor (final String word : sentence.split(\" \")) {\n\t\t\tcollector.emit(new Values(word));\n\t\t}\n\t}", "public void execute(Tuple input, BasicOutputCollector collector) {\n String sentence = input.getString(0);\n String[] words = sentence.split(\"\\t\");\n collector.emit(new Values(words[1]));\n }", "@Override\n public void execute(Tuple tuple) {\n String word = tuple.getFields().get(0);\n String line = null;\n if(word.equals(\"word1\")){\n line = (String) tuple.getValueByField(\"word1\");\n }else if(word.equals(\"word2\")){\n line = (String) tuple.getValueByField(\"word2\");\n }\n System.out.println(line);\n }", "@Override\n public void flatMap(String value, Collector<Tuple2<String, Integer>> out) {\n String[] sentences = value.toLowerCase().split(\"(?<!\\\\w\\\\.\\\\w.)(?<![A-Z][a-z]\\\\.)(?<=\\\\.|\\\\?|\\\\!)\\\\s\");\n\n for(String sentence: sentences) {\n\n if (sentence.length() > 0) {\n // Remove any punctuation from the sentence\n String sanitized = sentence.replace(\".\", \"\")\n .replace(\"!\", \"\").replace(\"?\", \"\");\n\n // Split the sentence into words by using spaces\n String[] words = sanitized.split(\"\\\\W+\");\n\n if (words.length > 0) {\n String firstWord = words[0];\n\n // For each bigram, output the count 1\n for (int i = 1; i < words.length; i++) {\n out.collect(new Tuple2<>(firstWord+\" \"+words[i], 1));\n }\n }\n }\n }\n }", "@Override\n\tpublic void execute(Tuple tuple, BasicOutputCollector collector) {\n\t\tString sentence = tuple.getValue(0).toString();\n\t\ttry {\n\t\t\tsentence = new String(sentence.getBytes(),\"utf-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n collector.emit(new Values(sentence));\n List<DBObject> dbList = new ArrayList<DBObject>(); \n BasicDBObject doc1 = new BasicDBObject(); \n doc1.put(\"ywlog\", sentence);\n int left = sentence.indexOf(\"datetime\");\n if(sentence.contains(\"datetime\")){\n \tdoc1.put(\"datetime\", sentence.substring(left+11, left+30));\n }\n dbList.add(doc1); \n myCollection.insert(dbList);\n\t}", "public void execute(Tuple input) {\n String line= input.getStringByField(\"Line\");\r\n //int C= input.getInteger(1);\r\n //logger.info(\"Line is read bolt \"+ line + \" and emitted at time\");\r\n // String [] data= line.split(\",\");\r\n Long count= wordcount.get(line, (long) 0);//data[8]\r\n count++;\r\n wordcount.put(line, count);//data[8]\r\n //System.out.println(data[0]+\" \"+count);\r\n collector.ack(input);\r\n }", "public void execute(Tuple input) {\n\t\tString type = input.getStringByField(\"type\");\n\t\tString record = input.getStringByField(\"record\");\n\t\tfor (String word : record.split(\"\\\\s+\")) {\n\t\t\tcollector.emit(input, new Values(type, word));\n\t\t\tLOGGER.info(\"Word emmited: type = \" + type + \", word = \" + word);\n\t\t\tcollector.ack(input);\n\t\t}\n\t}", "public void nextTuple() {\n\t\t\n\t\tif(index < sentences.length){\n\t\t\tthis.collector.emit(new Values(sentences[index%sentences.length]));\n\t\t\tindex++;\n\t\t\tUtils.waitForMillis(1);\n\t\t}\n\t}", "@Override\n public void flatMap(String value, Collector<Tuple2<String, Integer>> out) {\n String[] tokens = value.toLowerCase().split(\"\\\\W+\");\n\n // emit the pairs\n for (String token : tokens) {\n if (token.length() > 0) {\n out.collect(new Tuple2<>(token, 1));\n }\n }\n }", "@Override\n public String getValueFromTuple(ITuple tuple) {\n return tuple.getStringByField(\"top_n_words\");\n\t\t// End\n }", "@Override\n public void execute(Tuple tuple) {\n \n String word = tuple.getString(0);\n Integer count = counts.get(word);\n if(count==null) count = 0;\n count++;\n counts.put(word, count);\n \n collector.emit(new Values(word, count));\n \n //Set the tuple as Acknowledge\n collector.ack(tuple);\n }", "Stream<CharSequence> toWords(CharSequence sentence);", "public void execute(Tuple input, BasicOutputCollector collector) {\n\t\tString word = (String)input.getValue(0);\r\n\t\tSystem.out.println(\"out = fuck the \" + word);\r\n\t}", "@Override\n\t\tprotected void map(Object key, Text value, Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tStringTokenizer str=new StringTokenizer(value.toString());\n//\t\t\tString[]str=new String(value.toString()).split(\"a\");\n\t\t\twhile(str.hasMoreTokens()){\n\t\t\t\tword.set(str.nextToken());\n\t\t\t\tcontext.write(word, one);\n\t\t\t\t}\n//\t\t\tfor(String b:str){\n//\t\t\t\tword.set(b);\n//\t\t\t\tcontext.write(word, one);\n//\t\t\t\t\n//\t\t\t}\n\t\t\t\n\t\t}", "@Override\n public void flatMap(String value, Collector<Tuple2<String, Integer>> out) throws Exception {\n if(jsonParser == null) {\n jsonParser = new ObjectMapper();\n }\n JsonNode jsonNode = jsonParser.readValue(value, JsonNode.class);\n boolean isEnglish = jsonNode.has(\"user\") && jsonNode.get(\"user\").has(\"lang\") && jsonNode.get(\"user\").get(\"lang\").getTextValue().equals(\"en\");\n boolean hasText = jsonNode.has(\"text\");\n if (isEnglish && hasText) {\n // message of tweet\n StringTokenizer tokenizer = new StringTokenizer(jsonNode.get(\"text\").getTextValue());\n\n // split the message\n while (tokenizer.hasMoreTokens()) {\n String result = tokenizer.nextToken().replaceAll(\"\\\\s*\", \"\").toLowerCase();\n\n if (!result.equals(\"\")) {\n out.collect(new Tuple2<>(result, 1));\n }\n }\n }\n }", "void onTranslation(Sentence sentence);", "public MyTuple<String, HashMap<String,String>> generateTags(String text){\n\t\t\n\t\tHashMap<String, String> wordsTags = new HashMap<String, String>();\n\t\tArrayList<String> filteredWords = new ArrayList<String>();\n\t\t\n\t\tStringReader sr = new StringReader(text);\n\t\tTokenStream ts = this.tokenStream(\"\", sr);\n\t\tCharTermAttribute term = ts.addAttribute(CharTermAttribute.class);\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\ttry{\n\t\t\tts.reset();\n\t\t\t while (ts.incrementToken()) {\n\t\t\t\t String toAdd = term.toString().replaceAll(\"[^A-za-z-']\", \"\");\n\t\t\t\t if(toAdd != \"\"){//if the word to add is valid, add it to list of filtered words and append it to the string builder\n\t\t\t\t\t filteredWords.add(toAdd);\n\t\t\t\t\t sb.append(toAdd + \" \");\n\t\t\t\t }\n\t\t }\n\t\t ts.end();\n\t\t} catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t} finally{\n\t\t\ttry {\n\t\t\t\tts.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\tString [] words = filteredWords.toArray(new String [filteredWords.size()]);\n\t\tString [] tags = tagger.tag(words);\n\t\t//populate the tagMap with the tags of the filtered words. \n\t\tfor(int i = 0; i< tags.length; i++){\n\t\t\twordsTags.put(words[i], tags[i]);\n\t\t}\n\t\t\n\t\tMyTuple<String, HashMap<String, String>> retVal = new MyTuple<>(sb.toString(), wordsTags);\n\t\t\n\t\treturn retVal;\n\t}", "@Override\n\tpublic void runFromSentence(TokenizedSentence sentence) \n\t{\n\t\t\n\t}", "protected void processTuple (\n \t\t\t Tuple inputTuple, int streamId)\n \tthrows ShutdownException, InterruptedException {\n \tTuple result;\n \t//If we haven't already picked up a template tuple,\n \t// copy this one.\n \tif (tupleDataSample == null)\n \t\ttupleDataSample = inputTuple;\n \t\t\t\n \tcount++;\n result = appendWindowId(inputTuple, streamId);\n putTuple(result, 0);\t \n \tif ((count % slide == 0) && (windowType == 0)) {\n \t\t//output a punctuation to say windowId_from is completed\t\t\t\n \t\tputTuple (createPunctuation (inputTuple, windowId_from), 0);\n \t} \t\t\n \n }", "@Override\n public void parse(String sentence) {\n String[] tmp = sentence.split(DELIM);\n if (tmp.length > 4) {\n mSvCount = parseStringToInt(tmp[3]);\n if (mSvCount == 0) {\n return;\n }\n int totalSentences = parseStringToInt(tmp[1]);\n int currSentence = parseStringToInt(tmp[2]);\n\n if (mSatsReady) {\n resetSats();\n mSatsReady = false;\n } else if ((currSentence == totalSentences) && !mSatsReady) {\n // tag data as dirty when we have parsed the last part\n mSatsReady = true;\n }\n int idx = 0;\n while ((currSentence <= totalSentences) && (idx < 4)) {\n int offset = idx << 2;\n int base_offset = (currSentence - 1) << 2;\n if (offset + 4 < tmp.length)\n mSvs[base_offset + idx] = parseStringToInt(tmp[4 + offset]);\n if (offset + 5 < tmp.length)\n mSvElevations[base_offset + idx] = parseStringToInt(tmp[5 + offset]);\n if (offset + 6 < tmp.length)\n mSvAzimuths[base_offset + idx] = parseStringToInt(tmp[6 + offset]);\n if (offset + 7 < tmp.length)\n mSnrs[base_offset + idx] = parseStringToInt(tmp[7 + offset]);\n idx++;\n }\n }\n }", "@Override\r\n\t\t\t\tpublic Tuple2<String, Integer> call(WordCount t) throws Exception {\n\t\t\t\t\treturn new Tuple2<>(t.getWord() , new Integer(t.getCount()));\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\tpublic void flatMap(String value, Collector<Tuple2<Cell, Integer>> out) {\n\t\t\tString[] tokens = value.split(\"\\\\s+\");\n//\t\t\tSystem.out.println(\"token0 \" + tokens[0]);\n//\t\t\tSystem.out.println(\"token1 \" + tokens[1]);\n\t\t\tout.collect(new Tuple2<Cell, Integer>( new Cell(Long.parseLong(tokens[0]),Long.parseLong(tokens[1])), 0));\n\t\t}", "public void test() throws IOException, SQLException\r\n\t{\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(\"src/result.txt\")));\r\n\t\tList<String> sents = new ArrayList<>();\r\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(\"src/test_tmp_col.txt\")));\r\n\t\tString line = \"\";\r\n\t\tString wordseq = \"\";\r\n\t\tList<List<String>> tokens_list = new ArrayList<>();\r\n\t\tList<String> tokens = new ArrayList<>();\r\n\t\twhile((line=br.readLine())!=null)\r\n\t\t{\r\n\t\t\tif(line.trim().length()==0)\r\n\t\t\t{\r\n\t\t\t\tsents.add(wordseq);\r\n\t\t\t\ttokens_list.add(tokens);\r\n\t\t\t\twordseq = \"\";\r\n\t\t\t\ttokens = new ArrayList<>();\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tString word = line.split(\"#\")[0];\r\n\t\t\t\twordseq += word;\r\n\t\t\t\ttokens.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbr.close();\r\n\t\tfor(String sent : sents)\r\n\t\t{\r\n\t\t\tString newsURL = null;\r\n\t\t\tString imgAddress = null;\r\n\t\t\tString newsID = null;\r\n\t\t\tString saveTime = null;\r\n\t\t\tString newsTitle = null;\r\n\t\t\tString placeEntity = null;\r\n\t\t\tboolean isSummary = false;\r\n\t\t\tPair<String, LabelItem> result = extractbysentence(newsURL, imgAddress, newsID, saveTime, newsTitle, sent, placeEntity, isSummary);\r\n\t\t\t\r\n\t\t\tif(result!=null)\r\n\t\t\t{\r\n\t\t\t\r\n//\t\t\t\tSystem.out.print(result.getSecond().eventType+\"\\n\");\r\n\t\t\t\tbw.write(sent+'\\t'+result.getSecond().triggerWord+\"\\t\"+result.getSecond().sourceActor+'\\t'+result.getSecond().targetActor+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tbw.write(sent+'\\n');\r\n\t\t\t}\r\n\t\t}\r\n\t\tbw.close();\r\n\t\t\r\n\t}", "@Override\n\tprotected List<Tuple> extractRecentlyProcessed(String relation,\n\t\t\tString string) {\n\t\treturn null;\n\t}", "public String getSentence(){\r\n\t\t return sentence;\r\n\t }", "public InputParser(String sentence) {\n this.words = sentence.split(\" \");\n }", "public synchronized void process() \n\t{\n\t\t// for each word in a line, tally-up its frequency.\n\t\t// do sentence-segmentation first.\n\t\tCopyOnWriteArrayList<String> result = textProcessor.sentenceSegmementation(content.get());\n\t\t\n\t\t// then do tokenize each word and count the terms.\n\t\ttextProcessor.tokenizeAndCount(result);\n\t}", "public String buildSentence() {\n\t\tSentence sentence = new Sentence();\n\t\t\n\t\t//\tLaunch calls to all child services, using Observables \n\t\t//\tto handle the responses from each one:\n\t\tList<Observable<Word>> observables = createObservables();\n\t\t\n\t\t//\tUse a CountDownLatch to detect when ALL of the calls are complete:\n\t\tCountDownLatch latch = new CountDownLatch(observables.size());\n\t\t\n\t\t//\tMerge the 5 observables into one, so we can add a common subscriber:\n\t\tObservable.merge(observables)\n\t\t\t.subscribe(\n\t\t\t\t//\t(Lambda) When each service call is complete, contribute its word\n\t\t\t\t//\tto the sentence, and decrement the CountDownLatch:\n\t\t\t\t(word) -> {\n\t\t\t\t\tsentence.add(word);\n\t\t\t\t\tlatch.countDown();\n\t\t }\n\t\t);\n\t\t\n\t\t//\tThis code will wait until the LAST service call is complete:\n\t\twaitForAll(latch);\n\n\t\t//\tReturn the completed sentence:\n\t\treturn sentence.toString();\n\t}", "@Override\n \t\tpublic void map(PactString url, Tuple docRecord, Collector<PactString, PactNull> out) {\n \t\t\t\n \t\t\t// FILTER\n \t\t\t// Only collect the document if all keywords are contained\n \t\t\tString docText = docRecord.getStringValueAt(1);\n \t\t\tboolean allContained = true;\n \t\t\tfor (String kw : KEYWORDS) {\n \t\t\t\tif (!docText.contains(kw)) {\n \t\t\t\t\tallContained = false;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (allContained) {\n \t\t\t\tout.collect(url, new PactNull());\n \t\t\t\t\n \t\t\t\tLOG.debug(\"Emit key: \"+url);\n \t\t\t}\n \t\t}", "@VTID(13)\r\n java.lang.String getTuple();", "public String[] ProcessLine(int phraseId, int\tsentenceId, String[] parts,int\tsentimentS){\n int sentiment=sentimentS;\n //phraseStat=new StringStat(phraseS);\n\n\n\n //Count words (uni-grams)\n HashMap<String,Integer> wordcounts=new HashMap<String,Integer>();\n for (int i = 0; i < parts.length; i++) {\n Integer count=wordcounts.get(parts[i]);\n if(count==null){\n wordcounts.put(parts[i],1);\n }\n else{\n count++;\n wordcounts.put(parts[i],count);\n }\n }\n\n /* //Count words (bi-grams)\n for (int i = 0; i < parts.length-1; i++) {\n String bigram=parts[i]+\" \"+parts[i+1];\n Integer count=wordcounts.get(bigram);\n if(count==null){\n wordcounts.put(bigram,1);\n }\n else{\n count++;\n wordcounts.put(bigram,count);\n }\n }*/\n\n //Calculate the frequency for each word\n HashMap<String,Double> wordfequncies=new HashMap<String,Double>();\n Double maxFrequncy=0.0;\n Iterator<String> itr=wordcounts.keySet().iterator();\n while(itr.hasNext()){\n String word=itr.next();\n Double fr=((double)(wordcounts.get(word))/(double)parts.length);\n maxFrequncy=Math.max(maxFrequncy,fr);\n wordfequncies.put(word,fr);\n }\n\n //Add to the word frequency\n itr=wordfequncies.keySet().iterator();\n while(itr.hasNext()) {\n String word = itr.next();\n WordStat ws=wordStats.get(word);\n if(ws==null){\n ws=new WordStat(word);\n }\n else{\n wordStats.remove(word);\n }\n ws.updateStat(sentiment,(0.5*wordfequncies.get(word))/maxFrequncy);\n wordStats.put(word,ws);\n }\n return parts;\n\n }", "@Override\n public void parse(String sentence) {\n String[] tmp = sentence.split(DELIM);\n if (tmp.length > 4) {\n // fits example 1\n updateTimeStamp(parseTimeToDate(tmp[5]));\n if (!\"A\".equals(tmp[6])) {\n return;\n }\n mFixLatitude = parseCoordinate(tmp[1], tmp[2]);\n mFixLongitude = parseCoordinate(tmp[3], tmp[4]);\n } else if (tmp.length > 3) {\n // fits example 2\n mFixLatitude = parseCoordinate(tmp[1], tmp[2]);\n mFixLongitude = parseCoordinate(tmp[3], tmp[4]);\n }\n }", "java.lang.String getNewSentence();", "@Override\n\tprotected Map<Object, Object> rawTextParse(CharSequence text) {\n\n\t\tStanfordCoreNLP pipeline = null;\n\t\ttry {\n\t\t\tpipeline = pipelines.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tAnnotation document = new Annotation(text.toString());\n\t\tpipeline.annotate(document);\n\t\tMap<Object, Object> sentencesMap = new LinkedHashMap<Object, Object>();//maintain sentence order\n\t\tint id = 0;\n\t\tList<CoreMap> sentences = document.get(CoreAnnotations.SentencesAnnotation.class);\n\n\t\tfor (CoreMap sentence : sentences) {\n\t\t\tStringBuilder processedText = new StringBuilder();\n\t\t\tfor (CoreLabel token : sentence.get(CoreAnnotations.TokensAnnotation.class)) {\n\t\t\t\tString word = token.get(CoreAnnotations.TextAnnotation.class);\n\t\t\t\tString lemma = token.get(CoreAnnotations.LemmaAnnotation.class);\n\t\t\t\tString pos = token.get(CoreAnnotations.PartOfSpeechAnnotation.class);\n\t\t\t\t//todo this should really happen after parsing is done, because using lemmas might confuse the parser\n\t\t\t\tif (config().isUseLowercaseEntries()) {\n\t\t\t\t\tword = word.toLowerCase();\n\t\t\t\t\tlemma = lemma.toLowerCase();\n\t\t\t\t}\n\t\t\t\tif (config().isUseLemma()) {\n\t\t\t\t\tword = lemma;\n\t\t\t\t}\n\t\t\t\tprocessedText.append(word).append(POS_DELIMITER).append(lemma).append(POS_DELIMITER).append(pos).append(TOKEN_DELIM);\n //inserts a TOKEN_DELIM at the end too\n\t\t\t}\n\t\t\tsentencesMap.put(id, processedText.toString().trim());//remove the single trailing space\n\t\t\tid++;\n\t\t}\n\t\ttry {\n\t\t\tpipelines.put(pipeline);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn sentencesMap;\n\t}", "void translate(Sentence sentence);", "@Override\n protected List<Term> segSentence(char[] sentence)\n {\n WordNet wordNetAll = new WordNet(sentence);\n ////////////////生成词网////////////////////\n generateWordNet(wordNetAll);\n ///////////////生成词图////////////////////\n// System.out.println(\"构图:\" + (System.currentTimeMillis() - start));\n if (HanLP.Config.DEBUG)\n {\n System.out.printf(\"粗分词网:\\n%s\\n\", wordNetAll);\n }\n// start = System.currentTimeMillis();\n List<Vertex> vertexList = viterbi(wordNetAll);\n// System.out.println(\"最短路:\" + (System.currentTimeMillis() - start));\n\n if (config.useCustomDictionary)\n {\n if (config.indexMode > 0)\n combineByCustomDictionary(vertexList, this.dat, wordNetAll);\n else combineByCustomDictionary(vertexList, this.dat);\n }\n\n if (HanLP.Config.DEBUG)\n {\n System.out.println(\"粗分结果\" + convert(vertexList, false));\n }\n\n // 数字识别\n if (config.numberQuantifierRecognize)\n {\n mergeNumberQuantifier(vertexList, wordNetAll, config);\n }\n\n // 实体命名识别\n if (config.ner)\n {\n WordNet wordNetOptimum = new WordNet(sentence, vertexList);\n int preSize = wordNetOptimum.size();\n if (config.nameRecognize)\n {\n PersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.translatedNameRecognize)\n {\n TranslatedPersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.japaneseNameRecognize)\n {\n JapanesePersonRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.placeRecognize)\n {\n PlaceRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (config.organizationRecognize)\n {\n // 层叠隐马模型——生成输出作为下一级隐马输入\n wordNetOptimum.clean();\n vertexList = viterbi(wordNetOptimum);\n wordNetOptimum.clear();\n wordNetOptimum.addAll(vertexList);\n preSize = wordNetOptimum.size();\n OrganizationRecognition.recognition(vertexList, wordNetOptimum, wordNetAll);\n }\n if (wordNetOptimum.size() != preSize)\n {\n vertexList = viterbi(wordNetOptimum);\n if (HanLP.Config.DEBUG)\n {\n System.out.printf(\"细分词网:\\n%s\\n\", wordNetOptimum);\n }\n }\n }\n\n // 如果是索引模式则全切分\n if (config.indexMode > 0)\n {\n return decorateResultForIndexMode(vertexList, wordNetAll);\n }\n\n // 是否标注词性\n if (config.speechTagging)\n {\n speechTagging(vertexList);\n }\n\n return convert(vertexList, config.offset);\n }", "public Map<String, String> partsOfSpeech(String input) {\n Map<String, String> output = new HashMap();\n // create an empty Annotation just with the given text\n document = new Annotation(input);\n // run all Annotators on this text\n pipeline.annotate(document);\n // traverse words in the document\n document.get(CoreAnnotations.TokensAnnotation.class).stream().forEach((token) -> {\n // this is the text of the token\n String word = token.get(CoreAnnotations.TextAnnotation.class);\n // this is the POS tag of the token\n String pos = token.get(CoreAnnotations.PartOfSpeechAnnotation.class);\n output.put(word, pos);\n });\n\n return output;\n }", "Stream<List<Term>> toSentences(List<Integer> intText, List<Term> termText);", "private void handleInputData(String relation) throws IOException {\n String fileName = \"clueweb12_parsed.txt\";\n BufferedReader br = new BufferedReader(new FileReader(fileName));\n String line;\n PrintWriter writer = new PrintWriter(\"extracted_pairs/extracted_pairs_\" + argumentType + \".txt\", \"UTF-8\");\n while ((line = br.readLine()) != null) {\n // Saves parsed string in array and continues.\n if (line.contains(\"[Text=\")) {\n parsedWords = line.split(\"] \");\n continue;\n }\n // Following lines takes the relation we're looking for and finds the corresponding lemma.\n if (line.contains(relation + \"(\")) {\n try {\n line = line.substring(relation.length());\n String[] stringPair = line.replaceAll(\"[^0-9-]\", \"\").substring(1).split(\"-\");\n int[] wordIndexPair = new int[2];\n wordIndexPair[0] = Integer.parseInt(stringPair[0]); wordIndexPair[1] = Integer.parseInt(stringPair[1]);\n String headWord = parsedWords[wordIndexPair[0] - 1]; String argumentWord = parsedWords[wordIndexPair[1] - 1];\n String[] splitHead = headWord.split(\" \"); headWord = splitHead[4].substring(6);\n String[] splitArgument = argumentWord.split(\" \"); argumentWord = splitArgument[4].substring(6);\n String headPartOfSpeech = splitHead[3].substring(13); String argumentPartOfSpeech = splitArgument[3].substring(13);\n writer.println(headWord.toLowerCase() + \" \" + argumentWord.toLowerCase() +\n \" \" + headPartOfSpeech.toLowerCase() + \" \" + argumentPartOfSpeech.toLowerCase());\n } catch (Exception e) { continue; }\n }\n }\n // Close buffered input stream.\n br.close();\n }", "private String getSentence(Context context) {\n HttpRequest httpRequest = HttpRequest.newBuilder()\n .GET()\n .uri(URI.create(ALBUM_SERVICE_URL + RANDOM.nextInt(100)))\n .setHeader(\"User-Agent\", \"Java 11 HttpClient Bot\")\n .timeout(Duration.ofMillis(1200))\n .build();\n\n try {\n HttpResponse<String> response = HTTP_CLIENT.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n if (response.statusCode() == HTTP_OK) {\n\n AlbumJson albumJson = ALBUM_JSON_PARSER.parse(response.body());\n return \", your sentence of the day: \" + albumJson.getTitle();\n }\n } catch (IOException | InterruptedException e) {\n final LambdaLogger logger = context.getLogger();\n logger.log(\"Error: \" + Arrays.toString(e.getStackTrace()));\n }\n return \"\";\n }", "private void splitWord(String wordField) {\n wordsArray = new String[wordField.length()];\n wordsArray = wordField.split(\", *\");\n System.out.println(\"chk1: wordsArray: \" + Arrays.toString(wordsArray));\n //wordMap(words);\n for (int i = 0; i < wordsArray.length; i++) {\n wordsArray[i] = wordsArray[i].toUpperCase();\n wordMap.put(\"word\" + i, new Word(wordsArray[i]));//convert each word to upperCase and add it to wordMap\n }\n\n }", "public interface SentenceMember {\n}", "default Stream<CharSequence> parseTextToWords(CharSequence text) {\n return toSentences(text).filter(s -> s.length() > 0).flatMap(this::toWords);\n }", "@Override\n\tpublic void map(Record record, Collector<Record> collector) {\n\n\t\tString document = record.getField(0, StringValue.class).toString();\n\t\tString docArray[] = document.split(\",\");\n\t\tString docIdString = docArray[0];\n\t\tInteger docId = Integer.parseInt(docIdString);\n\t\tStringBuilder text = new StringBuilder();\n\t\tfor (int i = 1; i < docArray.length; i++) {\n\t\t\ttext.append(docArray[i]);\n\t\t}\n\t\tString words = text.toString();\n\t\tHashMap<String, Integer> uniqWords = new HashMap<String, Integer>();\n\t\tHashSet<String> stopWords = Util.STOP_WORDS;\n\t\tfor (String word: words.split(\" \")) {\n\t\t\tif (word.matches(\"[\\\\w!.]+\") && !stopWords.contains(word)) {\n\t\t\t\tif (!uniqWords.containsKey(word)) {\n\t\t\t\t\tuniqWords.put(word, 1);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tInteger count = uniqWords.get(word);\n\t\t\t\t\tcount++;\n\t\t\t\t\tuniqWords.put(word, count);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String key : uniqWords.keySet()) {\n\t\t\tRecord emitRecord = new Record();\n\t\t\temitRecord.addField(new IntValue(docId));\n\t\t\temitRecord.addField(new StringValue(key));\n\t\t\temitRecord.addField(new IntValue(uniqWords.get(key)));\n\t\t\tcollector.collect(emitRecord);\n\t\t}\n\t\t\n\t}", "public List<Tokens> populateParserInfo(String inputSentence) {\n\t\t\n\t\t//Properties props = new Properties();\n\t\t// props.setProperty(\"annotators\", \"tokenize, ssplit, pos, lemma, ner, parse, dcoref\");\n\t\t//props.setProperty(\"annotators\", \"tokenize, ssplit, pos, lemma, ner, parse\");\n\t\t//StanfordCoreNLP pipeline = new StanfordCoreNLP(props);\n\t\tPipeline pipe = new Pipeline(true);\n\t\t//Annotation annotation;\n\t\t//annotation = new Annotation(inputSentence);\n\n\t\tAnnotation annotation = pipe.annotate(inputSentence);\n\t\tList<CoreMap> sentences = annotation.get(CoreAnnotations.SentencesAnnotation.class);\n\t\tint sentenceCount = 0;\n\t\tList<Tokens> tokenList = new ArrayList<Tokens>();\n\t\tfor (CoreMap sentence: sentences) {\n populateParserInfo(sentence, tokenList);\n\t\t}\n\t\treturn tokenList;\n\t}", "public void map(Object key, Text value, Context context\n ) throws IOException, InterruptedException {\n StringTokenizer itr = new StringTokenizer(value.toString(), \"\\n\");\n\n // Loop through all lines\n while (itr.hasMoreTokens()) {\n String filteredSentence;\n String sentence = itr.nextToken().toLowerCase(Locale.ROOT);\n\n // Remove all special characters from the word and replace them with *\n filteredSentence = sentence.replaceAll(\"[^a-zA-Z ]\", \"*\");\n // Add a space at the end of every line to also represent the end of the last word in the sentence in the bigrams\n filteredSentence += \" \";\n\n // Write every lineCount + a map of the bigram and frequency of 1 to the context\n for(int i = 0; i < filteredSentence.length() - 1; i++){\n String pair = filteredSentence.substring(i, i + 2);\n context.write(new IntWritable(lineCount), new StringDoubleWritable(pair, 1.0));\n }\n lineCount++;\n }\n }", "public void map(Document value,\n OutputCollector<String, Pair> output) {\n String content = value.content;\n int count = value.count;\n for (int i = 1; i <= content.length(); i++){\n String subContent = content.substring(0, i);\n output.collect(subContent, new Pair(content, count));\n }\n }", "@Override\n\tprotected void map(LongWritable key, Text value,Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tString line=value.toString();\n\t\t//String[] words=line.split(\" \");\n\t\tStringTokenizer tokenizer=new StringTokenizer(line); //another way better datastructure\n\t\twhile(tokenizer.hasMoreTokens()){\n\t\t\tString word = tokenizer.nextToken();\n\t\t\t\n\t\t\toutkey.set(word); //outkey value reset\n\t\t\tcontext.write(outkey,outvalue);\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n public void process(StreamingInput<Tuple> stream, Tuple tuple) throws Exception {\n \t\n \t// Collect fields to add to JSON output.\n\t\tStreamSchema schema = tuple.getStreamSchema();\n \tSet<String> attributeNames = schema.getAttributeNames();\n \tJSONObject jsonFields = new JSONObject();\n\t \n\tfor (String attributeName : attributeNames) {\n\t\tif (schema.getAttribute(attributeName).getType().getMetaType() == Type.MetaType.RSTRING) {\n\t\t\tjsonFields.put(attributeName, tuple.getObject(attributeName).toString());\n\t\t} else {\n\t\t\tjsonFields.put(attributeName, tuple.getObject(attributeName));\n\t\t}\n\t}\n \n \t// Add timestamp, if specified, for time-based queries.\n \tif (timestampName != null) {\n \t\tDateFormat df = new SimpleDateFormat(\"yyyy'-'MM'-'dd'T'HH':'mm':'ss.SSSZZ\");\n \t\t\n \t\tif (attributeNames.contains(timestampName) && schema.getAttribute(timestampName).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(timestampName).equals(\"\")) {\n \t\t\tString timestampToInsert = tuple.getString(timestampName);\n \t\t\tjsonFields.put(timestampName, df.format(timestampToInsert));\n \t\t} else {\n \t\t\tjsonFields.put(timestampName, df.format(new Date(System.currentTimeMillis())));\n \t\t}\n \t}\n \t\n \t// Get index name/type/id specified inside tuple (default: from params).\n \tString indexToInsert = index;\n \tString typeToInsert = type;\n \tString idToInsert = null;\n \t\n \tif (attributeNames.contains(index) && schema.getAttribute(index).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(index).equals(\"\")) {\n \t\tindexToInsert = tuple.getString(index);\n \t}\n \t\n \tif (attributeNames.contains(type) && schema.getAttribute(type).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(type).equals(\"\")) {\n \t\ttypeToInsert = tuple.getString(type);\n \t}\n\n \tif (id != null && attributeNames.contains(id) && schema.getAttribute(id).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(id).equals(\"\")) {\n \t\tidToInsert = tuple.getString(id);\n \t}\n \t\n \tif (connectedToElasticsearch(indexToInsert, typeToInsert)) {\n \t\n \t\t// Add jsonFields to bulkBuilder.\n \tString source = jsonFields.toString();\n \t\n \tif (idToInsert != null) {\n \t\tbulkBuilder.addAction(new Index.Builder(source).index(indexToInsert).type(typeToInsert).id(idToInsert).build());\n \t} else {\n \t\tbulkBuilder.addAction(new Index.Builder(source).index(indexToInsert).type(typeToInsert).build());\n \t}\n \t\n \tcurrentBulkSize++;\n \t\n \t// If bulk size met, output jsonFields to Elasticsearch.\n \tif(currentBulkSize >= bulkSize) {\n\t \tBulk bulk = bulkBuilder.build();\n\t \tBulkResult result;\n\t \t\n\t \ttry {\n\t\t \tresult = client.execute(bulk);\n\t \t} catch (NoHttpResponseException e) {\n\t \t\t_trace.error(e);\n\t \t\treturn;\n\t \t}\n\t \t\n \t\t\tif (result.isSucceeded()) {\n \t\t\t\tlong currentNumInserts = numInserts.getValue();\n \t\t\t\tnumInserts.setValue(currentNumInserts + bulkSize);\n \t\t\t\tcurrentBulkSize = 0;\n \t\t\t} else {\n \t\t\t\tfor (BulkResultItem item : result.getItems()) {\n \t\t\t\t\tif (item.error != null) {\n \t\t\t\t\t\tnumInserts.increment();\n \t\t\t\t\t} else {\n \t\t\t\t\t\ttotalFailedRequests.increment();\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t// Clear bulkBuilder. Gets recreated in connectedToElasticsearch().\n \t\t\tbulkBuilder = null;\n \t\t\t\n \t\t\t// Get size metrics for current type.\n \t\t\tif (sizeMetricsEnabled && mapperSizeInstalled) {\n\t \t\t\tString query = \"{\\n\" +\n\t \t \" \\\"query\\\" : {\\n\" +\n\t \t \" \\\"match_all\\\" : {}\\n\" +\n\t \t \" },\\n\" +\n\t \t \" \\\"aggs\\\" : {\\n\" +\n\t \t \" \\\"size_metrics\\\" : {\\n\" +\n\t \t \" \\\"extended_stats\\\" : {\\n\" +\n\t \t \" \\\"field\\\" : \\\"_size\\\"\\n\" +\n\t \t \" }\\n\" +\n\t \t \" }\\n\" +\n\t \t \" }\\n\" +\n\t \t \"}\";\n\t \t\t\t\n\t \t Search search = new Search.Builder(query)\n\t \t .addIndex(indexToInsert)\n\t \t .addType(typeToInsert)\n\t \t .build();\n\t \t \n\t \t SearchResult searchResult = client.execute(search);\n\t \t \n\t \t if (searchResult.isSucceeded()) {\n\t\t \t ExtendedStatsAggregation sizeMetrics = searchResult.getAggregations().getExtendedStatsAggregation(\"size_metrics\");\n\t\t \t\t\t\n\t\t \t if (sizeMetrics != null) {\n\t\t \t \tif (sizeMetrics.getAvg() != null) {\n\t\t\t\t \t\t\tavgInsertSizeBytes.setValue(sizeMetrics.getAvg().longValue());\n\t\t \t \t}\n\t\t \t \tif (sizeMetrics.getMax() != null) {\n\t\t \t \t\tmaxInsertSizeBytes.setValue(sizeMetrics.getMax().longValue());\n\t\t \t \t}\n\t\t \t \tif (sizeMetrics.getMin() != null) {\n\t\t \t \t\tminInsertSizeBytes.setValue(sizeMetrics.getMin().longValue());\n\t\t \t \t}\n\t\t \t \tif (sizeMetrics.getSum() != null) {\n\t\t \t \t\tsumInsertSizeBytes.setValue(sizeMetrics.getSum().longValue());\n\t\t \t \t}\n\t\t \t }\n\t \t }\n \t\t\t}\n \t\t}\n \t}\n }", "public void nextTuple() {\n\t\tif(isFirst) {\n\t\t\ttry {\n\t\t\t\tFileReader in = new FileReader(\"query_stream_comp_\"+qSize);\n\t\t\t\tBufferedReader br = new BufferedReader(in);\t\n//\t\t\t\tbr.readLine();\n\t\t\t\tfor(int i=0; i<num; i++) {\n//\t\t\t\t\tUtils.sleep(100);\n\t\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\t\tint edges = Integer.valueOf(br.readLine());\n//\t\t\t\t\tsb.append(edges+\"\\n\");\n//\t\t\t\t\tint edges = br.read();\n\t\t\t\t\tfor(int j=0; j< edges; j++) {\n\t\t\t\t\t\t\n\t//\t\t\t\t\tString edge[] = br.readLine().split(\" \");\n\t\t\t\t\t\tsb.append(br.readLine()+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\t_collector.emit(\"qstream\", new Values(sb.toString()));\n\t\t\t\t}\n\t\t\t\tisFirst = !isFirst;\n\t\t\t\tSystem.out.println(\"QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}else {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000000);\n\t\t\t\tSystem.exit(0);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n public void transform(KeyValue<LongWritable, Text> input, Emitter<StructuredRecord> emitter) throws Exception {\n emitter.emit(StructuredRecord.builder(OUTPUT_SCHEMA)\n .set(\"position\", input.getKey().get())\n .set(\"text\", input.getValue().toString())\n .build()\n );\n }", "public void nextTuple() {\n\t\tif (csvRecordsItr.hasNext()) {\n\t\t\t// Get the next record from input file\n\t\t\tCSVRecord csvRecord = null;\n\t\t\ttry {\n\t\t\t\tcsvRecord = csvRecordsItr.next();\n\t\t\t\tString groupName = csvRecord.get(\"GROUP_NAME\");\n\t\t\t\tString eventName = csvRecord.get(\"EVENT_NAME\");\n\t\t\t\tString eventStatus = csvRecord.get(\"EVENT_STATUS\");\n\t\t\t\tString eventCity = csvRecord.get(\"EVENT_CITY\");\n\t\t\t\tString eventCountry = csvRecord.get(\"EVENT_COUNTRY\");\n\n\t\t\t\t// Emit the record as a tuple\n\t\t\t\tspoutOutputCollector.emit(new Values(groupName, eventName,\n\t\t\t\t\t\teventStatus, eventCity, eventCountry));\n\t\t\t} catch (NoSuchElementException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void parse(String sentence) {\n String[] tmp = sentence.split(DELIM);\n if (tmp.length > 3) {\n updateTimeStamp(parseTimeToDate(tmp[1]));\n if (!\"A\".equals(tmp[2])) {\n return;\n }\n mFixLatitude = parseCoordinate(tmp[3], tmp[4]);\n mFixLongitude = parseCoordinate(tmp[5], tmp[6]);\n mFixSpeed = parseSpeedInKnots(tmp[7]);\n mFixBearing = parseStringToFloat(tmp[8]);\n }\n }", "@Test\n void step() {\n Fb2ConverterStateMachine state = new Fb2ConverterStateMachine();\n StringBuilder sb = new StringBuilder();\n WordsTokenizer wt = new WordsTokenizer(getOriginalText());\n while (wt.hasMoreTokens()) {\n String word = wt.nextToken();\n if (state.step(word)) {\n sb.append(word).append(\" \");\n }\n }\n assertEquals(\"test 1 . text- 2 text 0 text 6111 222 \", sb.toString());\n }", "private static void processText(String line, BufferedWriter wrtr)\n\t\t\tthrows JSONException, IOException {\n\t\tJSONObject topicModel = TopicModelTemplateUtil\n\t\t\t\t.getJSONFromTemplate(line);\n\t\t// populate the WORD vector for the current topic model\n\t\tTopicModelTemplateUtil.geTopicModelFromTemplate(topicModel).forEach(\n\t\t\t\ttpm -> {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tLuceneNLPUtil.getRemovedStopAndStem(tpm.getWord(),\n\t\t\t\t\t\t\t\tLuceneNLPUtil.getDefaultEnglishStopWordList())\n\t\t\t\t\t\t\t\t.forEach(word -> {\n\t\t\t\t\t\t\t\t\tif (VOCABULARY_MAP.containsKey(word)) {\n\t\t\t\t\t\t\t\t\t\tVOCABULARY_MAP.replace(word, 1);\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} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t// dump it to the file\n\t\tdumpTextLine(topicModel.getString(ConfigConstant.JSON_FIELD.BUSINESS_ID\n\t\t\t\t.getFieldName()), wrtr);\n\t}", "@Override\r\n\tpublic void execute(Tuple input) {\n\t\tString author = input.getStringByField(\"author\");\r\n\t\tString text = input.getStringByField(\"text\");\r\n\t\tLong retweetCount = input.getLongByField(\"retweetCount\");\r\n\t\tString hashtag = input.getStringByField(\"hashtag\");\r\n//\t\tString[] tags = (String[]) input.getValueByField(\"hashtagEntities\");\r\n\t\t\r\n\t\tString[] tags = readHastagFilters();\r\n\t\t\r\n\t\t\t\r\n\t\t\tif (checkifExistsTag(hashtag , tags)) { \r\n\t\t\t\tlogger.info(\"@\" + author + \" got \" + String.valueOf(retweetCount) + \" retweets for : \" + text + \" hashtag : \" + hashtag);\r\n\t\t\t} else { \r\n\t\t\t\tlogger.info(\"@\" + author + \" got \" + String.valueOf(retweetCount) + \" retweets for : \" + text + \" ***Do not show on hashtags*** \");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\tcollector.ack(input);\r\n\t}", "@Override\n public void populateDAG(DAG dag, Configuration conf)\n {\n SampleInput input = new SampleInput();\n Collector collector = new Collector();\n StreamFactory.fromInput(input, input.beanOutput, name(\"input\"))\n .addCompositeStreams(new PlaysForWord())\n .print(name(\"console\"))\n .endWith(collector, collector.input, name(\"Collector\"))\n .populateDag(dag);\n\n }", "public abstract void handleTuple(ITuple tuple);", "public String generateSentence() {\n // If our map is empty return the empty string\n if (model.size() == 0) {\n return \"\";\n }\n\n ArrayList<String> startWords = model.get(\"_begin\");\n ArrayList<String> endWords = model.get(\"_end\");\n\n // Retrieve a starting word to begin our sentence\n int rand = ThreadLocalRandom.current().nextInt(0, startWords.size());\n\n String currentWord = startWords.get(rand);\n StringBuilder sb = new StringBuilder();\n\n while (!endWords.contains(currentWord)) {\n sb.append(currentWord + \" \");\n ArrayList<String> nextStates = model.get(currentWord);\n\n if (nextStates == null) return sb.toString().trim() + \".\\n\";\n\n rand = ThreadLocalRandom.current().nextInt(0, nextStates.size());\n currentWord = nextStates.get(rand);\n }\n\n sb.append(currentWord);\n\n return sb.toString() + \"\\n\";\n\n\n }", "private SXTriple summarize(Edge edge, List<String> sentence) {\n return new SXTriple(edge.getSymbol(), edge.getBegin(), sentence.size() - edge.getEnd());\n }", "static ArrayList<String> tag(ArrayList<String> rawWords){\n\t\tArrayList<String> outSentence = new ArrayList<String>();\n\t\t//String[][] chart = new String[rawWords.size()][rawWords.size()];\n\t\tfor(int i = 0; i<rawWords.size(); i++){\n\t\t\tString[] entry = rawWords.get(i).split(\"\\\\s+\");\n\t\t\tString word = entry[0];\n\t\t\tString pos = entry[1];\n\t\t\tSystem.out.println(word);\n\t\t\tif((pos.equals(\"NNP\")||word.equals(\"tomorrow\"))&&rawWords.get(i-1).split(\"\\\\s+\")[0].equals(\"due\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tint j = i+1;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"NN\")||next.equals(\"NNP\")||next.equals(\"NNS\")||next.equals(\"NNPS\")||next.equals(\"CD\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}\n\t\t\telse if (pos.equals(\"CD\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\tint j = i+1;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tif((rawWords.get(j).split(\"\\\\s\")[1].equals(\"CC\")&&rawWords.get(j-1).split(\"\\\\s\")[1].equals(\"CD\")&&rawWords.get(j+1).split(\"\\\\s\")[1].equals(\"CD\"))||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NN\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNP\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNPS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"CD\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"CD\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"%\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tif(rawWords.get(j).split(\"\\\\s\")[0].equals(\"to\")&&rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"up\")){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if(rawWords.get(j).split(\"\\\\s\")[1].equals(\"#\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"PRP$\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJ\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJR\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"$\")){\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t}\n\t\t\t\t\telse if(rawWords.get(j).split(\"\\\\s\")[1].equals(\"POS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"DT\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"approximately\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"around\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"almost\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"about\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[0].equals(\"as\")&&(rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"many\")||rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"much\"))&&rawWords.get(j-2).split(\"\\\\s\")[0].equals(\"as\")){\n\t\t\t\t\t\tbeginning-=3;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[1].equals(\"VBN\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"RB\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[1].equals(\"VBN\")&&j>1&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\")&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"RB\")))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if((rawWords.get(j).split(\"\\\\s\")[1].equals(\"RBR\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"not\"))&&rawWords.get(j+1).split(\"\\\\s+\")[1].equals(\"JJ\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse{\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\n\t\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t\t}\n\t\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t\t}\n\t\t\t\t\ti=ending;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*else if(pos.equals(\"CD\")&&rawWords.get(i-1).split(\"\\\\s+\")[0].equals(\"$\")&&rawWords.get(i-2).split(\"\\\\s+\")[1].equals(\"IN\")){\n\t\t\t\tint beginning=i;\n\t\t\t\tint ending = i;\n\t\t\t\tint j=i+1;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"CD\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tString prior=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tString priorWord = rawWords.get(j).split(\"\\\\s\")[0];\n\t\t\t\t\tif(prior.equals(\"$\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s+\")[0].equals(\"as\")&&rawWords.get(j-1).split(\"\\\\s+\")[0].equals(\"much\")&&rawWords.get(j-2).split(\"\\\\s+\")[0].equals(\"as\")){\n\t\t\t\t\t\tbeginning -=3;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t\tj -=3;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"IN\")){\n\t\t\t\t\t\tbeginning --;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\telse\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}*/\n\t\t\t//else if(pos.equals(arg0))\n\t\t\telse if(pos.equals(\"PRP\")||pos.equals(\"WP\")||word.equals(\"those\")||pos.equals(\"WDT\")){\n\t\t\t\tint beginning = i;\n\t\t\t\t//int ending = i;\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t}\n\t\t\telse if(word.equals(\"anywhere\")&&rawWords.get(i+1).split(\"\\\\s+\")[0].equals(\"else\")){\n\t\t\t\toutSentence.add(\"anywhere\\tB-NP\");\n\t\t\t\toutSentence.add(\"else\\tI-NP\");\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t/*else if (word.equals(\"same\")&&rawWords.get(i-1).split(\"\\\\s\")[0].equals(\"the\")){\n\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\tString nounGroupLine = \"the\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tnounGroupLine = \"same\\tI-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t}*/\n\t\t\telse if(pos.equals(\"NN\")||pos.equals(\"NNS\")||pos.equals(\"NNP\")||pos.equals(\"NNPS\")||pos.equals(\"CD\")/*||pos.equals(\"PRP\")*/||pos.equals(\"EX\")||word.equals(\"counseling\")||word.equals(\"Counseling\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tboolean endFound = false;\n\t\t\t\tint j = i+1;\n\t\t\t\twhile(!endFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"NN\")||next.equals(\"NNS\")||next.equals(\"NNP\")||next.equals(\"NNPS\")||next.equals(\"CD\")||(next.equals(\"CC\")&&rawWords.get(j-1).split(\"\\\\s\")[1].equals(rawWords.get(j+1).split(\"\\\\s\")[1]))){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendFound = true;\n\t\t\t\t}\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tString[] pArray = rawWords.get(j).split(\"\\\\s+\");\n\t\t\t\t\tString prior = pArray[1];\n\t\t\t\t\tif(j>2 &&prior.equals(rawWords.get(j-2).split(\"\\\\s+\")[1])&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"CC\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\"))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if(prior.equals(\"JJ\")||prior.equals(\"JJR\")||prior.equals(\"JJS\")||prior.equals(\"PRP$\")||prior.equals(\"RBS\")||prior.equals(\"$\")||prior.equals(\"RB\")||prior.equals(\"NNP\")||prior.equals(\"NNPS\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBN\")&&j>1&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\")&&(rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"RB\")))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBN\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"RB\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBG\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if((prior.equals(\"RBR\")||pArray[0].equals(\"not\"))&&rawWords.get(j+1).split(\"\\\\s+\")[1].equals(\"JJ\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if((pArray[0].equals(\"Buying\")||pArray[0].equals(\"buying\"))&&rawWords.get(j+1).split(\"\\\\s+\")[0].equals(\"income\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if(pArray[0].equals(\"counseling\")||pArray[0].equals(\"Counseling\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tif(rawWords.get(j).split(\"\\\\s+\")[1].equals(\"NN\")){\n\t\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\t\tj--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (prior.equals(\"DT\")||prior.equals(\"POS\")){\n\t\t\t\t\t\t//j--;\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tif(!rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\"))\n\t\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tString outLine = word+\"\\tO\";\n\t\t\t\toutSentence.add(outLine);\n\t\t\t}\n\t\t}\n\t\toutSentence.remove(0);\n\t\toutSentence.remove(outSentence.size()-1);\n\t\toutSentence.add(\"\");\n\t\treturn outSentence;\n\t}", "public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String[] token = value.toString().split(\"\\t\");\n String[] pair = new String[2];\n if(token.length < 2) return;\n String[] data = token[1].split(\",\");\n\n for (String d : data) {\n pair[0] = token[0];\n pair[1] = d;\n if(Integer.parseInt(pair[0])<Integer.parseInt(pair[1]))\n keyPair.set(\"<\"+pair[0]+\",\"+pair[1]+\">\");\n else\n keyPair.set(\"<\"+pair[1]+\",\"+pair[0]+\">\");\n\n friend.set(token[1]); // set word as each input keyword\n context.write(keyPair, friend); // create a pair <keyword, 1>\n }\n }", "public Collection<ConceptLabel> processSentence(Sentence sentence, List messages) {\n\t\t// long time = System.currentTimeMillis();\n\t\t// search in lexicon\n\t\tList<Concept> keys = lookupConcepts(sentence);\n\t\t\t\n\t\t// filter out overlapping numbers\n\t\tfilterNumbers(keys);\n\t\tfilterOverlap(keys);\t\t\t\n\t\t\n\t\t// take out concepts that overlap with new concepts\n\t\tList<ReportConcept> reparsedConcepts = new ArrayList<ReportConcept>();\n\t\tfor (ReportConcept c : concepts) {\n\t\t\t// if existing concept intersects this sentence\n\t\t\tif (intersects(c,sentence.getSpan())) {\n\t\t\t\treparsedConcepts.add(c);\n\t\t\t}\n\t\t}\n\n\t\t// take out concepts that will be reparsed anyway\n\t\tconcepts.removeAll(reparsedConcepts);\n\n\t\t// process phrase\n\t\tList<ConceptLabel> labels = new ArrayList<ConceptLabel>();\n\n\t\tfor (Concept concept : keys) {\n\t\t\t// create new labels\n\t\t\tCollection<ConceptLabel> lbl = createConceptLabels(concept,sentence.getCharOffset());\n\t\t\tlabels.addAll(lbl);\n\n\t\t\t// get entry or create it\n\t\t\tReportConcept entry = createReportConcept(concept);\n\t\t\tentry.addLabels(lbl);\n\n\t\t\t// add to all concepts\n\t\t\tconcepts.add(entry);\n\t\t\t// negatedConcepts.remove(entry);\n\n\t\t\t// process numbers\n\t\t\tfor (ConceptLabel l : lbl)\n\t\t\t\tprocessNumericValues(entry, l);\n\t\t}\n\n\t\t// take care of negation\n\t\tnegex.clear();\n\t\tnegex.process(sentence, keys);\n\t\tlabels.addAll(processNegation(negex, messages));\n\n\t\t// backup concepts so that concepts that were merged outside of parsed\n\t\t// sentence could be removed after processing\n\t\tList<ReportConcept> backup = new ArrayList<ReportConcept>(concepts);\n\t\tbackup.removeAll(reparsedConcepts);\n\t\t\n\t\t// compact concepts to more specific constructs\n\t\tprocessConcepts(concepts);\n\t\n\t\t// at this point we can potentially have a situation where\n\t\t// one concept from this sentence subsumed another from the previous or next \n\t\t// sentence\n\t\tfor(ReportConcept c: backup){\n\t\t\tif(!concepts.contains(c))\n\t\t\t\tremovedConcepts.add(c);\n\t\t}\n\t\t\n\t\t// remove dangling digits and units, cause they are likely to be junk\n\t\tremoveDanglingAttributes();\t\t\n\t\t\n\t\t// now that we may have reparsed some concepts, lets\n\t\t// see if we can retain some of the old data\n\t\tfor (ReportConcept rc : reparsedConcepts) {\n\t\t\t// reparsed concept is in the list, then retain its data, if not\n\t\t\t// then it should be removed\n\t\t\tReportConcept nc = TextHelper.get(concepts, rc);\n\t\t\tif (nc != null) {\n\t\t\t\tnc.setConceptEntry(rc.getConceptEntry());\n\t\t\t} else {\n\t\t\t\tremovedConcepts.add(rc);\n\t\t\t}\n\t\t}\n\n\t\t// negate concepts and proces numbers\n\t\tfor (ReportConcept e : negatedConcepts) {\n\t\t\tReportConcept n = TextHelper.get(concepts, e);\n\t\t\tif (n != null) {\n\t\t\t\tn.setNegation(e.getNegation());\n\t\t\t}\n\t\t}\n\n\t\t// clear negation\n\t\tnegatedConcepts.clear();\n\n\t\t// do eggs\n\t\tEggs.processText(sentence.getOriginalString());\n\t\n\t\t// sync to interface\n\t\tsync();\n\t\t\n\t\treturn labels;\n\t}", "public interface ILinguisticFilter {\n \n \n /**\n * each filter gets a sentence (Tokens) and returns a list of candidates (list of strings)\n * @param pSentence\n * @return\n */\n public List<String> getCandidates(LinkedList<Token> pSentence);\n \n \n \n}", "protected String dalsiSlovo() {\n\t\treturn parser.nextWord();\n\t}", "public ExtractedSummarySentence() {}", "public static void main(String[] args) {\n\t\tSparkConf sparkConf = JavaRDDSparkContextMain.sparkConf(\"Spark Streaming Cient\", \"local[*]\");\n\t JavaStreamingContext streamingContext = new JavaStreamingContext(sparkConf, new Duration(1000));\n\t\tSystem.out.println(\"-----streamingContext: \" + streamingContext);\n\t\t\n\t\t// need linux install nc command\n\t\t// CentOS: yum -y install nmap-ncat; nc -lk 9999 \n\t\t// input string streaming to Iterator<String>\n\t\tJavaReceiverInputDStream<String> streamingLine = streamingContext.socketTextStream(\"192.168.1.105\", 9999);\n\t\t\n\t\tJavaDStream<String> streamingWords = streamingLine.flatMap(input -> {\n\t\t\tString[] wordArray = input.split(\" \");\n\t\t\tList<String> wordList = Arrays.asList(wordArray);\n\t\t\treturn wordList.iterator();\n\t\t});\n\t\t\n\t\tSystem.out.println(\"-----print streamingWords: \");\n\t\tstreamingWords.print();\n\t\t\n\t\t// \n\t\tJavaPairDStream<String, Integer> wordTuple = streamingWords.mapToPair(word -> {\n\t\t\tTuple2<String, Integer> tuple2 = new Tuple2<String, Integer>(word, 1);\n\t\t\treturn tuple2;\n\t\t});\n\t\tSystem.out.println(\"-----wordTuple count: \" + wordTuple.count() + \", wordTuple: \" + wordTuple);\n\t\twordTuple.print();\n\t\t\n\t\t// work count \n\t\tJavaPairDStream<String, Integer> wordCount = wordTuple.reduceByKey((v1, v2) -> {\n\t\t\treturn v1 + v2;\n\t\t});\n\t\tSystem.out.println(\"-----wordCount count: \" + wordCount.count() + \", wordCount: \" + wordCount);\n\t\twordCount.print();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"-----streamingWords: \" + streamingWords.toString());\n\t\tstreamingContext.start();\n\t\t\n\t\t\n\t\ttry{\n\t\t\t// streamingContext.awaitTermination();\n\t\t\t\n\t\t\tThread.sleep(1000 * 30);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tstreamingContext.stop();\n\t\tstreamingContext.close();\n\n\t}", "private Iterator tokenize(FreeTTSSpeakable speakable) {\n\treturn new FreeTTSSpeakableTokenizer(speakable).iterator();\n }", "public interface SortingSentence {\n\n SentenceElement whoIsWho (String applicant, boolean isStartSent);\n}", "public interface InputSentenceFormatter<T extends Token> {\n\n\t/**\n\t * Returns true if the input source has any more sentences to be parsed.\n\t * \n\t * @return True if there are more sentences remaining; false otherwise\n\t */\n\tpublic boolean hasNext();\n\n\t/**\n\t * Returns the next sentence to be parsed as an array of tokens.\n\t * \n\t * @return the next sentence to be parsed\n\t */\n\tpublic T[] next();\n}", "@Override\n\tpublic void map(Object key, Text value, Context context)\n\tthrows IOException, InterruptedException {\n\tString[] words = value.toString().split(\"[ \\t]+\");\n\tfor(String originalWord:words)\n\t{\n\t\t//Remove all alphanumeric characters\n\t\toriginalWord = originalWord.replaceAll(\"[^a-zA-Z0-9]\",\"\");\n\t\t\n\t\t//Convert the words to lower case\n\t\t//word = word.toLowerCase();\n\t\n\t\tchar[] chars = originalWord.toCharArray();\n\t\tArrays.sort(chars);\n\t\tString sortedWord= new String(chars);\n\t\tcontext.write(new Text(sortedWord), new Text(originalWord));\n\t\tSystem.err.println(\"RKUMLOG:This is a mapper.\");\n\t}\n\t}", "private String getStemming(String line) throws IOException {\n\t\treturn line;\n\t\t// return Stemmer.processTweets(line);\n\t}", "public Sentence(){\n\t\tsentence = new ArrayList<TWord>();\n\t}", "@Override\n\tpublic void execute(TridentTuple tuple, TridentCollector collector) {\n\t\tfinal String beacon = tuple.getString(0);\n\t\t\n\t\tGson gsonSerializer = new Gson();\n\t\t\n\t\tBeacon convetedBeacon = gsonSerializer.fromJson(beacon,Beacon.class);\n\t\tSystem.out.println(convetedBeacon.getDate());\n\t\tString jsonBeacon = gsonSerializer.toJson(beacon);\n\t\t\n\t\tValues value = new Values();\n//\t\tMap<String,Long> tmpMap = (Map<String, Long>)JSONValue.parse(jsonBeacon);\n//\t\tMap<String,Long> inputMap = null;\n\t\t/*for(Map.Entry<String, Long> tmp: tmpMap.entrySet()){\n\t\t\tif(tmp.getKey() == \"accuracy\"){\n\t\t\t\tinputMap.put(tmp.getKey(), tmp.getValue());\n\t\t\t}\n\t\t}*/\n//\t\tHashMap<String,Object> tmpMap = new HashMap<String, Object>();\n//\t\t\n//\t\tSimpleDateFormat sdf = new SimpleDateFormat();\n//\t\tDate date = new Date();\n//\t\ttry {\n//\t\t\tdate = sdf.parse(convetedBeacon.getDate());\n//\t\t} catch (ParseException e) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\te.printStackTrace();\n//\t\t}\n\t\t\n\t\t\n\t\t\n\t\t//\t\ttmpMap.put( convetedBeacon.getAccuracy());\n//\t\tLong tmpLong = Long.parseLong();\n\t\t\n\t\tcollector.emit(new Values(convetedBeacon.getDate(),convetedBeacon.getAccuracy()));\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n String line = value.toString().toLowerCase();\n line = line.replaceAll(regex, \" \");\n\n StringTokenizer itr = new StringTokenizer(line);\n while (itr.hasMoreTokens()) {\n word.set(itr.nextToken());\n context.write(word, one);\n }\n }", "@Override\n public void map(InductionChart chart) throws Exception {\n try {\n Sentence sent = chart.sentence;\n for (int i = 0; i < sent.length_noP() - 1; i++) {\n POS curT = sent.getNP(i).tag();\n POS nextT = sent.getNP(i + 1).tag();\n if (!Tagset.CONJ(nextT) && (!Tagset.CONJ(curT) || i == 0)) {\n if (tagsToInduce.contains(curT)) {\n if (!grammar.LexCats.containsKey(nextT))\n System.err.println(nextT);\n grammar.LexCats.get(nextT).keySet().stream().filter(R -> !useCFG(R)).forEach(R -> induceRight(curT, R));\n }\n if (tagsToInduce.contains(nextT)) {\n grammar.LexCats.get(curT).keySet().stream().filter(L -> !useCFG(L) || Tagset.CONJ(nextT)).forEach(L -> induceLeft(L, nextT));\n }\n }\n }\n } catch (Exception e) {\n System.err.println(\"Failed to Induce \" + chart.sentence.asTags());\n throw e;\n }\n }", "@Override\n\tprotected void map(LongWritable key, Text value,\n\t\t\tContext context)\n\t\t\tthrows IOException, InterruptedException {\n\t\t\n\t\tString line = value.toString();\n\t\tStringTokenizer st = new StringTokenizer(line,\" \");\n\t\t\n\t\twhile(st.hasMoreTokens()){\n\t\t\tSystem.out.println(\"in\");\n\t\t\tword.set(st.nextToken().toString());\n\t\t\tcontext.write(new Text(\"kk\"),word);\n\t\t\t \n\t\t\t//System.out.println(\"mapper\"+st.nextToken());\n\t\t}\n\t\t\n\t}", "static private void printSentenceTokens( final String documentId, final Iterable<String> tokenizedSentences ) {\n System.out.println( \"=========================== \" + documentId + \" ===========================\" );\n for ( String tokenizedSentence : tokenizedSentences ) {\n System.out.println( tokenizedSentence );\n }\n }", "@Override\n public void parse(String sentence) {\n String[] tmp = sentence.split(DELIM);\n if (tmp.length >= 16) {\n if (\"1\".equals(tmp[2])) {\n // return invalid location or invalid sentence\n return;\n }\n for (int i = 3; i < 15; i++) {\n // tag sats used for fix\n int sat = parseStringToInt(tmp[i]);\n if (sat > 0)\n mSvMasks[USED_FOR_FIX_MASK] |= (1 << (sat - 1));\n }\n if (tmp.length > 15)\n PDOP = parseStringToFloat(tmp[15]);\n if (tmp.length > 16)\n HDOP = parseStringToFloat(tmp[16]);\n if (tmp.length > 17)\n VDOP = parseStringToFloat(tmp[17]);\n }\n }", "@Override\n public void parse(String sentence) {\n String[] tmp = sentence.split(DELIM);\n if (tmp.length > 5) {\n try {\n\n Date btTime = timeFormatter.parse(tmp[1]);\n\n // Timezone code\n /*\n * int timeZone = parseStringToInt(tmp[5]); int\n * offSetMinutes; if (timeZone < 0) { offSetMinutes =\n * timeZone*60 - parseStringToInt(tmp[6]); } else {\n * offSetMinutes = timeZone*60 + parseStringToInt(tmp[6]); }\n * TimeZone myGPSTimezone = TimeZone.getTimeZone(\"UTC\");\n * myGPSTimezone.setRawOffset(offSetMinutes*60*1000);\n */\n GPSCalendar.setTimeInMillis(btTime.getTime());\n GPSCalendar.set(parseStringToInt(tmp[4]), parseStringToInt(tmp[3]),\n parseStringToInt(tmp[2]));\n\n updateTimeStamp(GPSCalendar.getTimeInMillis());\n if (!\"A\".equals(tmp[6])) {\n return;\n }\n } catch (ParseException e) {\n Log.e(TAG, \"Could not parse: \" + tmp[1]);\n return;\n }\n }\n }", "@Override\n public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String[] words = value.toString().replaceAll(\" \", \"\").split(\",\");\n\n // Valid input\n if (words.length == 3) {\n // Get words\n String w1 = words[0];\n String w2 = words[1];\n String w3 = words[2];\n\n // Get word lengths\n int first = words[0].length();\n int second = words[1].length();\n int third = words[2].length();\n String lineNum = key.toString();\n\n // Conditions 1,2,4\n\n // One longest word\n // Longest word at front\n if (first > second && first > third) {\n context.write(new Text(w2), new Text(lineNum + \",\" + w1));\n context.write(new Text(w3), new Text(lineNum + \",\" + w1));\n }\n // Longest word in middle\n else if (second > first && second > third) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w2));\n context.write(new Text(w3), new Text(lineNum + \",\" + w2));\n }\n // Longest word at end\n else if (third > first && third > second) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w3));\n context.write(new Text(w2), new Text(lineNum + \",\" + w3));\n }\n\n // Two longest words\n // 1st and 2nd are the same length and longest\n if (first == second && first > third) {\n context.write(new Text(w3), new Text(lineNum + \",\" + w1));\n context.write(new Text(w3), new Text(lineNum + \",\" + w2));\n }\n // 1st and 3rd are the same length and longest\n else if (first == third && first > second) {\n context.write(new Text(w2), new Text(lineNum + \",\" + w1));\n context.write(new Text(w2), new Text(lineNum + \",\" + w3));\n }\n // 2nd and 3rd are same length and longest\n else if (second == third && second > first) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w2));\n context.write(new Text(w1), new Text(lineNum + \",\" + w3));\n }\n } \n }", "@Override\n public void execute(Tuple tuple) {\n\t String word = tuple.getStringByField(\"word\");\n\t Integer count = tuple.getIntegerByField(\"count\");\n\n\t if (_topNMap.size() < _n) {\n\t \t//add word and count if less than N elements in top N\n\t \t_topNMap.put(word, count);\n\t } else {//if (_topNMap.size() > _n) {\n\t\tfor (String w : _topNMap.keySet()) {\n\t\t\tInteger c = _topNMap.get(w);\n\t\t\tif (_topNTreeMap.get(c) == null || _topNTreeMap.get(c).compareTo(w) < 0) {\n\t\t\t\t_topNTreeMap.put(c, w);\n\t\t\t}\n\t\t}\n\t\tInteger minCount = _topNTreeMap.firstKey();\n\t\tString minWord = _topNTreeMap.get(minCount);\n\t \tif (count > minCount) {\n\t\t\t_topNMap.remove(minWord);\n\t\t\t_topNMap.put(word, count);\n\t\t} else if (count == minCount && word.compareTo(minWord) > 0) {\n\t\t\t_topNMap.remove(minWord);\n\t\t\t_topNMap.put(word, count);\n\t\t}\n\t\t_topNTreeMap.clear();\n\t\t \n\t\tString topNList = \"\";\n\t\tint c = 0;\n\t \tfor (String key : _topNMap.keySet()) {\n\t\t\ttopNList += key + \", \";\n\t\t\tc++;\n\t \t}\n\t \ttopNList = topNList.substring(0, topNList.length() - 2);\n\t \tif (c == _n) {\n\t \t\tcollector.emit(new Values(\"top-N\", topNList));\n\t \t}\n\t }\n }", "@Override\n\tpublic void execute(Tuple tuple) {\n\t\tString key = tuple.getStringByField(\"key\");\n\t\tdouble tweet_senti = tuple.getDoubleByField(\"senti_score\");\n\t\tif (!bucket.containsKey(key)) {\n\t\t\tBucketEntity entity = new BucketEntity(key, 1, (bucketID - 1));\n\t\t\tentity.setTweets_senti(tweet_senti);\n\t\t\tbucket.put(key, entity);\n\t\t} else {\n\t\t\tBucketEntity prev_entity = bucket.get(key);\n\t\t\tprev_entity.setFrequency(prev_entity.getFrequency() + 1);\n\t\t\tprev_entity.setTweets_senti(tweet_senti);\n\t\t\tbucket.put(key, prev_entity);\n\t\t}\n\t\tif (!top_value.containsKey(bucket.get(key).getFrequency())) {\n\t\t\tHashSet<String> temp = new HashSet<>();\n\t\t\ttemp.add(bucket.get(key).getEntity());\n\t\t\ttop_value.put(bucket.get(key).getFrequency(), temp);\n\t\t} else {\n\t\t\tSet<String> temp = top_value.get(bucket.get(key).getFrequency());\n\t\t\tif (top_value.containsKey(bucket.get(key).getFrequency() - 1)) {\n\t\t\t\tSet<String> prev_temp = top_value.get(bucket.get(key).getFrequency() - 1);\n\t\t\t\tprev_temp.remove(bucket.get(key).getEntity());\n\t\t\t\ttop_value.put(bucket.get(key).getFrequency() - 1, prev_temp);\n\t\t\t}\n\t\t\ttemp.add(bucket.get(key).getEntity());\n\t\t\ttop_value.put(bucket.get(key).getFrequency(), temp);\n\t\t}\n\t\tthreshold++;\n\t\tSystem.out.println(\"bucket id:\" + bucketID + \"\\t threshold:\" + threshold);\n\n\t\tif (threshold % bucketSize == 0) {\n\n\t\t\tfor (String hshtg : bucket.keySet()) {\n\t\t\t\tBucketEntity temp = bucket.get(hshtg);\n\t\t\t\t// System.out.println(\"Checking before emitting:\"+hshtg+\"\\t\n\t\t\t\t// frequency:\"+temp.getFrequency());\n\t\t\t\tif (temp.getFrequency() + temp.getDelta() <= bucketID) {\n\t\t\t\t\tSet<String> temp_tag = top_value.get(temp.getFrequency());\n\t\t\t\t\ttemp_tag.remove(temp.getEntity());\n\t\t\t\t\ttop_value.put(temp.getFrequency(), temp_tag);\n\t\t\t\t\tbucket.remove(hshtg);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbucketID++;\n\t\t}\n\t}", "@Override\n public void nextTuple() {\n final Random rand = new Random();\n int instanceRandom = rand.nextInt(MAX_RANDOM);\n if(instanceRandom == referenceRandom){\n collector.emit(new Values(\"Hello World\"));\n } else {\n collector.emit(new Values(\"Other Random Word\"));\n }\n }", "@Test\n\tpublic void testSyntheticStreamTupleBuilder() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.SYNTHETIC_STREAM);\n\n\t\tfinal Tuple tuple = tupleBuilder.buildTuple(SYNTHETIC_STREAM_TEST_LINE);\n\n\t\tAssert.assertNotNull(tuple);\n\t\tAssert.assertEquals(\"2so3r7lmmlt2204\", tuple.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(23.000566996237414,23.000566996237414,\n\t\t\t\t17.782247471059588,17.782247471059588,33.20003060813562,33.20003060813562,\n\t\t\t\t96.82571259235081,96.82571259235081);\n\n\t\tAssert.assertEquals(exptectedBox, tuple.getBoundingBox());\n\t\tAssert.assertEquals(\"y9ucczzo53\", new String(tuple.getDataBytes()));\n\t}", "public abstract int getSentenceID();", "@Override\n public void onNext(String value) {\n\n }", "public interface SentenceProvider {\r\n\r\n\tpublic void init();\r\n\tpublic boolean isInit();\r\n\tpublic String getNextSentence();\r\n\tpublic boolean hasNextSentence();\r\n\tpublic void shutdown();\r\n}", "@Override\r\n\tprotected void getIntentWord() {\n\t\tsuper.getIntentWord();\r\n\t}", "public ArrayList<String> makeSentences(String text) {\n \t\t/*\n \t\t * Quick check so we're not trying to split up an empty\n \t\t * String. This only happens right before the user types\n \t\t * at the end of a document and we don't have anything to\n \t\t * split, so return.\n \t\t */\n \t\tif (text.equals(\"\")) {\n \t\t\tArrayList<String> sents = new ArrayList<String>();\n \t\t\tsents.add(\"\");\n \t\t\treturn sents;\n \t\t}\n \t\t\n \t\t/**\n \t\t * Because the eosTracker isn't initialized until the TaggedDocument is,\n \t\t * it won't be ready until near the end of DocumentProcessor, in which\n \t\t * case we want to set it to the correct\n \t\t */\n \t\tthis.eosTracker = main.editorDriver.taggedDoc.eosTracker;\n \t\tthis.editorDriver = main.editorDriver;\n \t\t\n \t\tArrayList<String> sents = new ArrayList<String>(ANONConstants.EXPECTED_NUM_OF_SENTENCES);\n \t\tArrayList<String> finalSents = new ArrayList<String>(ANONConstants.EXPECTED_NUM_OF_SENTENCES);\n \t\tboolean mergeNext = false;\n \t\tboolean mergeWithLast = false;\n \t\tboolean forceNoMerge = false;\n \t\tint currentStart = 1;\n \t\tint currentStop = 0;\n \t\tString temp;\n \n \t\t/**\n \t\t * replace unicode format characters that will ruin the regular\n \t\t * expressions (because non-printable characters in the document still\n \t\t * take up indices, but you won't know they're there untill you\n \t\t * \"arrow\" though the document and have to hit the same arrow twice to\n \t\t * move past a certain point. Note that we must use \"Cf\" rather than\n \t\t * \"C\". If we use \"C\" or \"Cc\" (which includes control characters), we\n \t\t * remove our newline characters and this screws up the document. \"Cf\"\n \t\t * is \"other, format\". \"Cc\" is \"other, control\". Using \"C\" will match\n \t\t * both of them.\n \t\t */\n \t\ttext = text.replaceAll(\"\\u201C\",\"\\\"\");\n \t\ttext = text.replaceAll(\"\\u201D\",\"\\\"\");\n \t\ttext = text.replaceAll(\"\\\\p{Cf}\",\"\");\n \n \t\tint lenText = text.length();\n \t\tint index = 0;\n \t\tint buffer = editorDriver.sentIndices[0];\n \t\tString safeString = \"\";\n \t\tMatcher abbreviationFinder = ABBREVIATIONS_PATTERN.matcher(text);\n \t\t\n \t\t//================ SEARCHING FOR ABBREVIATIONS ================\n \t\twhile (index < lenText-1 && abbreviationFinder.find(index)) {\n \t\t\tindex = abbreviationFinder.start();\n \t\t\t\n \t\t\ttry {\n \t\t\t\tint abbrevLength = index;\n \t\t\t\twhile (text.charAt(abbrevLength) != ' ') {\n \t\t\t\t\tabbrevLength--;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (ABBREVIATIONS.contains(text.substring(abbrevLength+1, index+1))) {\n \t\t\t\t\teosTracker.setIgnore(index+buffer, true);\n \t\t\t\t}\n \t\t\t} catch (Exception e) {}\n \t\t\t\n \t\t\tindex++;\n \t\t}\t\t\n \t\t\n \t\tMatcher sent = EOS_chars.matcher(text);\n \t\tboolean foundEOS = sent.find(currentStart); // xxx TODO xxx take this EOS character, and if not in quotes, swap it for a permanent replacement, and create and add an EOS to the calling TaggedDocument's eosTracker.\n \t\t\n \t\t/*\n \t\t * We want to check and make sure that the EOS character (if one was found) is not supposed to be ignored. If it is, we will act like we did not\n \t\t * find it. If there are multiple sentences with multiple EOS characters passed it will go through each to check, foundEOS will only be true if\n \t\t * an EOS exists in \"text\" that would normally be an EOS character and is not set to be ignored.\n \t\t */\n \t\t\n \t\tindex = 0;\n \t\tif (foundEOS) {\t\n \t\t\ttry {\n \t\t\t\twhile (index < lenText-1 && sent.find(index)) {\n \t\t\t\t\tindex = sent.start();\n \t\t\t\t\tif (!eosTracker.sentenceEndAtIndex(index+buffer)) {\n \t\t\t\t\t\tfoundEOS = false;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tfoundEOS = true;\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\tindex++;\n \t\t\t\t}\n \t\t\t} catch (IllegalStateException e) {}\n \t\t}\n \t\t//We need to reset the Matcher for the code below\n \t\tsent = EOS_chars.matcher(text);\n \t\tsent.find(currentStart);\n \t\t\n \t\tMatcher sentEnd;\n \t\tMatcher citationFinder;\n \t\tboolean hasCitation = false;\n \t\tint charNum = 0;\n \t\tint lenTemp = 0;\n \t\tint lastQuoteAt = 0;\n \t\tint lastParenAt = 0;\n \t\tboolean foundQuote = false;\n \t\tboolean foundParentheses = false;\n \t\tboolean isSentence;\n \t\tboolean foundAtLeastOneEOS = foundEOS;\n \t\t\n \t\t/**\n \t\t * Needed otherwise when the user has text like below:\n \t\t * \t\tThis is my sentence one. This is \"My sentence?\" two. This is the last sentence.\n \t\t * and they begin to delete the EOS character as such:\n \t\t * \t\tThis is my sentence one. This is \"My sentence?\" two This is the last sentence.\n \t\t * Everything gets screwed up. This is because the operations below operate as expected only when there actually is an EOS character\n \t\t * at the end of the text, it expects it there in order to function properly. Now usually if there is no EOS character at the end it wouldn't\n \t\t * matter since the while loop and !foundAtLeastOneEOS conditional are executed properly, BUT as you can see the quotes, or more notably the EOS character inside\n \t\t * the quotes, triggers this initial test and thus the operation breaks. This is here just to make sure that does not happen.\n \t\t */\n \t\tString trimmedText = text.trim();\n \t\tint trimmedTextLength = trimmedText.length();\n \n \t\t//We want to make sure that if there is an EOS character at the end that it is not supposed to be ignored\n \t\tboolean EOSAtSentenceEnd = true;\n \t\tif (trimmedTextLength != 0) {\n \t\t\tEOSAtSentenceEnd = EOS.contains(trimmedText.substring(trimmedTextLength-1, trimmedTextLength)) && eosTracker.sentenceEndAtIndex(editorDriver.sentIndices[1]-1);\n \t\t} else {\n \t\t\tEOSAtSentenceEnd = false;\n \t\t}\n \t\t\n \t\t//Needed so that if we are deleting abbreviations like \"Ph.D.\" this is not triggered.\n \t\tif (!EOSAtSentenceEnd && (editorDriver.taggedDoc.watchForEOS == -1))\n \t\t\tEOSAtSentenceEnd = true;\n \n \t\twhile (foundEOS == true) {\n \t\t\tcurrentStop = sent.end();\n \t\t\t\n \t\t\t//We want to make sure currentStop skips over ignored EOS characters and stops only when we hit a true EOS character\n \t\t\ttry {\n \t\t\t\twhile (!eosTracker.sentenceEndAtIndex(currentStop+buffer-1) && currentStop != lenText) {\n \t\t\t\t\tsent.find(currentStop+1);\n \t\t\t\t\tcurrentStop = sent.end();\n \t\t\t\t}\n \t\t\t} catch (Exception e) {}\n \n \t\t\ttemp = text.substring(currentStart-1,currentStop);\n \t\t\tlenTemp = temp.length();\n \t\t\tlastQuoteAt = 0;\n \t\t\tlastParenAt = 0;\n \t\t\tfoundQuote = false;\n \t\t\tfoundParentheses = false;\n \t\t\t\n \t\t\tfor(charNum = 0; charNum < lenTemp; charNum++){\n \t\t\t\tif (temp.charAt(charNum) == '\\\"') {\n \t\t\t\t\tlastQuoteAt = charNum;\n \t\t\t\t\t\n \t\t\t\t\tif (foundQuote == true)\n \t\t\t\t\t\tfoundQuote = false;\n \t\t\t\t\telse\n \t\t\t\t\t\tfoundQuote = true;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (temp.charAt(charNum) == '(') {\n \t\t\t\t\tlastParenAt = charNum;\n \t\t\t\t\t\n \t\t\t\t\tif (foundParentheses)\n \t\t\t\t\t\tfoundParentheses = false;\n \t\t\t\t\telse\n \t\t\t\t\t\tfoundParentheses = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (foundQuote == true && ((temp.indexOf(\"\\\"\",lastQuoteAt+1)) == -1)) { // then we found an EOS character that shouldn't split a sentence because it's within an open quote.\n \t\t\t\tif ((currentStop = text.indexOf(\"\\\"\",currentStart +lastQuoteAt+1)) == -1) {\n \t\t\t\t\tcurrentStop = text.length(); // if we can't find a closing quote in the rest of the input text, then we assume the author forgot to put a closing quote, and act like it's at the end of the input text.\n \t\t\t\t}\n \t\t\t\telse{\n \t\t\t\t\tcurrentStop +=1;\n \t\t\t\t\tmergeNext=true;// the EOS character we are looking for is not in this section of text (section being defined as a substring of 'text' between two EOS characters.)\n \t\t\t\t}\n \t\t\t}\n \t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\n \t\t\tif (foundParentheses && ((temp.indexOf(\")\", lastParenAt+1)) == -1)) {\n \t\t\t\tif ((currentStop = text.indexOf(\")\", currentStart + lastParenAt + 1)) == -1)\n \t\t\t\t\tcurrentStop = text.length();\n \t\t\t\telse {\n \t\t\t\t\tcurrentStop += 1;\n \t\t\t\t\tmergeNext = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \n \t\t\tif (foundQuote) {\n \t\t\t\tsentEnd = SENTENCE_QUOTE.matcher(text);\t\n \t\t\t\tisSentence = sentEnd.find(currentStop-2); // -2 so that we match the EOS character before the quotes (not -1 because currentStop is one greater than the last index of the string -- due to the way substring works, which is includes the first index, and excludes the end index: [start,end).)\n \n \t\t\t\tif (isSentence == true) { // If it seems that the text looks like this: He said, \"Hello.\" Then she said, \"Hi.\" \n \t\t\t\t\t// Then we want to split this up into two sentences (it's possible to have a sentence like this: He said, \"Hello.\")\n \t\t\t\t\tcurrentStop = text.indexOf(\"\\\"\",sentEnd.start())+1;\n \t\t\t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\t\tforceNoMerge = true;\n \t\t\t\t\tmergeNext = false;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (foundParentheses) {\n \t\t\t\tsentEnd = SENTENCE_PARENTHESES.matcher(text);\n \t\t\t\tisSentence = sentEnd.find(currentStop-2);\n \t\t\t\t\n \t\t\t\tif (isSentence == true) {\n \t\t\t\t\tcurrentStop = text.indexOf(\")\", sentEnd.start()) + 1;\n \t\t\t\t\tsafeString = text.substring(currentStart-1, currentStop);\n \t\t\t\t\tforceNoMerge = true;\n \t\t\t\t\tmergeNext = false;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t// now check to see if there is a CITATION after the sentence (doesn't just apply to quotes due to paraphrasing)\n \t\t\t// The rule -- at least as of now -- is if after the EOS mark there is a set of parenthesis containing either one word (name) or a name and numbers (name 123) || (123 name) || (123-456 name) || (name 123-456) || etc..\n \t\t\tcitationFinder = CITATION.matcher(text.substring(currentStop));\t\n \t\t\thasCitation = citationFinder.find(); // -2 so that we match the EOS character before the quotes (not -1 because currentStop is one greater than the last index of the string -- due to the way substring works, which is includes the first index, and excludes the end index: [start,end).)\n \t\t\t\n \t\t\tif (hasCitation == true) { // If it seems that the text looks like this: He said, \"Hello.\" Then she said, \"Hi.\" \n \t\t\t\t// Then we want to split this up into two sentences (it's possible to have a sentence like this: He said, \"Hello.\")\n \t\t\t\tcurrentStop = text.indexOf(\")\",citationFinder.start()+currentStop)+1;\n \t\t\t\tsafeString = text.substring(currentStart-1,currentStop);\n \t\t\t\tmergeNext = false;\n \t\t\t}\t\n \t\t\t\n \t\t\tif (mergeWithLast) {\n \t\t\t\tmergeWithLast=false;\n \t\t\t\tString prev=sents.remove(sents.size()-1);\n \t\t\t\tsafeString=prev+safeString;\n \t\t\t}\n \t\t\t\n \t\t\tif (mergeNext && !forceNoMerge) {//makes the merge happen on the next pass through\n \t\t\t\tmergeNext=false;\n \t\t\t\tmergeWithLast=true;\n \t\t\t} else {\n \t\t\t\tforceNoMerge = false;\n \t\t\t\tfinalSents.add(safeString);\n \t\t\t}\n \t\t\n \t\t\tsents.add(safeString);\n \t\t\t\n \t\t\t//// xxx xxx xxx return the safeString_subbedEOS too!!!!\n \t\t\tif (currentStart < 0 || currentStop < 0) {\n \t\t\t\tLogger.logln(NAME+\"Something went really wrong making sentence tokens.\", LogOut.STDERR);\n \t\t\t\tErrorHandler.fatalProcessingError(null);\n \t\t\t}\n \n \t\t\tcurrentStart = currentStop+1;\n \t\t\tif (currentStart >= lenText) {\n \t\t\t\tfoundEOS = false;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tfoundEOS = sent.find(currentStart);\n \t\t}\n \n \t\tif (!foundAtLeastOneEOS || !EOSAtSentenceEnd) {\n \t\t\tArrayList<String> wrapper = new ArrayList<String>(1);\n \t\t\twrapper.add(text);\n \t\t\treturn wrapper;\n \t\t}\n \t\t\n \t\treturn finalSents;\n \t}", "@Override\n public void onChanged(@Nullable final List<Word> words) {\n\n for (Word word: words) {\n strWords += word.getWord();\n System.out.println(word.getWord());\n }\n\n textView.setText(strWords);\n }", "public static void main(String[] args){\n \tString tempStringLine;\n\n\t\t /* SCANNING IN THE SENTENCE */\n // create a queue called sentenceQueue to temporary store each line of the text file as a String.\n MyLinkedList sentenceList = new MyLinkedList();\n\n // integer which keeps track of the index position for each new sentence string addition.\n int listCount = 0;\n\n // create a new file by opening a text file.\n File file2 = new File(\"testEmail2.txt\");\n try {\n\n \t// create a new scanner 'sc' for the newly allocated file.\n Scanner sc = new Scanner(file2);\n\n // while there are still lines within the file, continue.\n while (sc.hasNextLine()) {\n\n \t// save each line within the file to the String 'tempStringLine'.\n \ttempStringLine = sc.nextLine();\n\n \t// create a new BreakIterator called 'sentenceIterator' to break the 'tempStringLine' into sentences.\n BreakIterator sentenceIterator = BreakIterator.getSentenceInstance();\n\n // Set a new text string 'tempStringLine' to be scanned.\n sentenceIterator.setText(tempStringLine);\n\n // save the first index boundary in the integer 'start'.\n // The iterator's current position is set to the first text boundary.\n int start = sentenceIterator.first();\n\n // save the boundary following the current boundary in the integer 'end'.\n for(int end = sentenceIterator.next();\n\n \t// while the end integer does not equal 'BreakIterator.DONE' or the end of the boundary.\n \tend != BreakIterator.DONE;\n\n \t// set the start integer equal to the end integer. Set the end integer equal to the next boundary.\n \tstart = end, end = sentenceIterator.next()){\n\n \t// create a substring of tempStringLine of the start and end boundsries, which are just Strings of\n \t// each sentence.\n \tsentenceList.add(listCount,tempStringLine.substring(start, end));\n\n \t// add to the count.\n \tlistCount++;\n }\n }\n\n // close the scanner 'sc'.\n sc.close(); \n\n // if the file could not be opened, throw a FileNotFoundException.\n }catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n\t\tsentenceProcessor one = new sentenceProcessor(sentenceList);\n\t\tString[] names = one.findNames();\n System.out.println(\"Speaker \" + names[0]);\n System.out.println(\"Subject \" + names[1]);\n\t}", "protected void updateSentence() {\n int iVariable = 0;\n for ( Iterator<Widget> iter = widgets.iterator(); iter.hasNext(); ) {\n Widget wid = iter.next();\n if ( wid instanceof DSLVariableEditor ) {\n sentence.getValues().set( iVariable++,\n ( (DSLVariableEditor) wid ).getSelectedValue() );\n }\n }\n this.setModified( true );\n }", "@Override\r\n\tpublic Tuple nextTuple() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tTuple tuple = null;\r\n\t\ttry{\r\n\t\t\tString s = br.readLine();\r\n\t\t\tif(s==null) return null;\r\n\t\t\ttuple = new Tuple(s);\r\n\t\t}catch(IOException e){\r\n\t\t\tSystem.out.print(\"No more tuples!\");\r\n\t\t}\r\n\t\treturn tuple;\r\n\t}", "public String phraseWords(String input) {\n document = new Annotation(input);\n // run all Annotators on this text\n pipeline.annotate(document);\n String pos = document.get(CoreAnnotations.PhraseWordsTagAnnotation.class);\n\n return pos;\n }", "@Override\n public void emitTuples() {\n\n Statement query = queryToRetrieveData();\n logger.debug(String.format(\"select statement: %s\", query.toString()));\n RecordSet rs;\n try {\n rs = store.getClient().query(null, query);\n while(rs.next()){\n Record rec = rs.getRecord();\n T tuple = getTuple(rec);\n outputPort.emit(tuple);\n }\n }\n catch (Exception ex) {\n store.disconnect();\n DTThrowable.rethrow(ex);\n }\n }", "private void processArticle(String rawArticleText, Article article, Context context) throws IOException, InterruptedException {\n if (!rawArticleText.trim().isEmpty()) {\n String[] splitSentences = rawArticleText.split(\"\\\\.\\\\s\");\n PriorityQueue<Sentence> sortedSentences = new PriorityQueue<>();\n\n for (int sentenceIndex = 0; sentenceIndex < splitSentences.length; sentenceIndex++) {\n String rawSentence = splitSentences[sentenceIndex];\n Double sentenceTfIdf = getSentenceTfIdf(rawSentence, article);\n sortedSentences.add(new Sentence(sentenceTfIdf, rawSentence, sentenceIndex));\n }\n\n String summary = topOrderedSentences(sortedSentences);\n context.write(new IntWritable(article.id), new Text(summary));\n }\n }", "@Override\n protected void map(\n \t\tLongWritable key, // input key type\n Text value, // input value type\n Context context) throws IOException, InterruptedException {\n\n \t\t//Create array with the words from input, splitted by space character\n String[] words = value.toString().split(\"\\\\s+\");\n \n for (String string : words) {\n \t//Remove not alphabetic characters\n \tString cleanWord = string.replaceAll(\"[^\\\\p{Alpha}]\", \"\");\n \t//Export lowercased word along with the name of the file the word comes from \n \tif (!cleanWord.isEmpty()) {\n\t\t\t\t\tcontext.write(new Text(cleanWord.toLowerCase()),new Text(((FileSplit)context.getInputSplit()).getPath().getName()));\n\t\t\t\t}\n\t\t\t}\n }", "@Override\n\tpublic Integer visitSentence(SentenceContext ctx) {\n\t\tint total = 0;\n\t\t\n\t\tList<ParseTree> children = ctx.children;\n\t\tint size = children.size();\n\t\tif (size == 3) {\n\t\t\t//just the single number and word\n\t\t\ttotal += Integer.parseInt(children.get(0).getText());\n\t\t\tbuilder.append(total).append(\" \");\n\t\t\tbuilder.append(children.get(1).getText());\n\t\t} else {\n\t\t\t//iterate over almost all of them.\n\t\t\tfor (int i = 0; i < size - 3; i++) {\n\t\t\t\ttotal += visit(children.get(i));\n\t\t\t}\n\t\t\tString lastNum = children.get(size - 3).getText();\n\t\t\tString lastWord = children.get(size - 2).getText();\n\t\t\ttotal += Integer.parseInt(lastNum);\n\t\t\tbuilder.append(\"and \").append(lastNum).append(\" \");\n\t\t\tbuilder.append(lastWord);\n\t\t}\n\t\t\n\t\tSystem.out.println(builder.toString());\n\t\treturn total;\n\t}", "public static ArrayList<String> getSentence(BasicDBObject dbObject) {\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor (Object temp : (BasicDBList) dbObject.get(\"tokens\")) {\n\t\t\tBasicDBObject token = (BasicDBObject) temp;\n\t\t\tString word = token.getString(\"lemma\");\n\t\t\tlist.add(word);\n\t\t}\n\t\treturn list;\n\n\t}" ]
[ "0.6990247", "0.6366095", "0.629179", "0.6111097", "0.6048461", "0.6034504", "0.6006213", "0.58862966", "0.5868394", "0.5746152", "0.569477", "0.56553286", "0.54842037", "0.5406658", "0.53844064", "0.5358011", "0.5283616", "0.5265065", "0.5253782", "0.5223647", "0.5200936", "0.5190552", "0.5151157", "0.5103396", "0.50973946", "0.4999325", "0.4983119", "0.49826983", "0.49667814", "0.49420744", "0.49220216", "0.49197647", "0.4886697", "0.4876893", "0.4875797", "0.4870959", "0.48637137", "0.4858494", "0.4836787", "0.48319417", "0.48258185", "0.4820028", "0.4800377", "0.47880414", "0.47721052", "0.47712755", "0.47611532", "0.4740408", "0.47366062", "0.4729014", "0.47279853", "0.47270587", "0.4726495", "0.4722069", "0.4714997", "0.46725023", "0.46689907", "0.4667968", "0.46672913", "0.4660806", "0.46573144", "0.46430317", "0.46379852", "0.4634548", "0.46062744", "0.46005988", "0.4594939", "0.45944682", "0.45939878", "0.4583904", "0.45826125", "0.45825174", "0.45746598", "0.45674178", "0.4565165", "0.45645875", "0.45617187", "0.4559913", "0.4553668", "0.45514503", "0.45493507", "0.45433116", "0.45428234", "0.45406878", "0.45397654", "0.45367303", "0.4531487", "0.45314205", "0.45298958", "0.45272678", "0.4527146", "0.4522184", "0.45182374", "0.45175564", "0.4511804", "0.44963998", "0.44948143", "0.44923258", "0.44885898", "0.44857165" ]
0.7316992
0
declares a single stream of tuples, each containing one field "word"
public void declareOutputFields(OutputFieldsDeclarer declarer){ declarer.declare(new Fields("word")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void flatMap(String value, Collector<Tuple2<String, Integer>> out) {\n String[] tokens = value.toLowerCase().split(\"\\\\W+\");\n\n // emit the pairs\n for (String token : tokens) {\n if (token.length() > 0) {\n out.collect(new Tuple2<>(token, 1));\n }\n }\n }", "@Override\n public void execute(Tuple tuple) {\n String word = tuple.getFields().get(0);\n String line = null;\n if(word.equals(\"word1\")){\n line = (String) tuple.getValueByField(\"word1\");\n }else if(word.equals(\"word2\")){\n line = (String) tuple.getValueByField(\"word2\");\n }\n System.out.println(line);\n }", "public MyTuple<String, HashMap<String,String>> generateTags(String text){\n\t\t\n\t\tHashMap<String, String> wordsTags = new HashMap<String, String>();\n\t\tArrayList<String> filteredWords = new ArrayList<String>();\n\t\t\n\t\tStringReader sr = new StringReader(text);\n\t\tTokenStream ts = this.tokenStream(\"\", sr);\n\t\tCharTermAttribute term = ts.addAttribute(CharTermAttribute.class);\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\ttry{\n\t\t\tts.reset();\n\t\t\t while (ts.incrementToken()) {\n\t\t\t\t String toAdd = term.toString().replaceAll(\"[^A-za-z-']\", \"\");\n\t\t\t\t if(toAdd != \"\"){//if the word to add is valid, add it to list of filtered words and append it to the string builder\n\t\t\t\t\t filteredWords.add(toAdd);\n\t\t\t\t\t sb.append(toAdd + \" \");\n\t\t\t\t }\n\t\t }\n\t\t ts.end();\n\t\t} catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t} finally{\n\t\t\ttry {\n\t\t\t\tts.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\tString [] words = filteredWords.toArray(new String [filteredWords.size()]);\n\t\tString [] tags = tagger.tag(words);\n\t\t//populate the tagMap with the tags of the filtered words. \n\t\tfor(int i = 0; i< tags.length; i++){\n\t\t\twordsTags.put(words[i], tags[i]);\n\t\t}\n\t\t\n\t\tMyTuple<String, HashMap<String, String>> retVal = new MyTuple<>(sb.toString(), wordsTags);\n\t\t\n\t\treturn retVal;\n\t}", "Stream<CharSequence> toWords(CharSequence sentence);", "public void execute(Tuple input) {\n\t\tString type = input.getStringByField(\"type\");\n\t\tString record = input.getStringByField(\"record\");\n\t\tfor (String word : record.split(\"\\\\s+\")) {\n\t\t\tcollector.emit(input, new Values(type, word));\n\t\t\tLOGGER.info(\"Word emmited: type = \" + type + \", word = \" + word);\n\t\t\tcollector.ack(input);\n\t\t}\n\t}", "@Override\r\n\t\t\t\tpublic Tuple2<String, Integer> call(WordCount t) throws Exception {\n\t\t\t\t\treturn new Tuple2<>(t.getWord() , new Integer(t.getCount()));\r\n\t\t\t\t\t\r\n\t\t\t\t}", "public void execute(Tuple tuple){\n\t\tString sentence = tuple.getStringByField(\"sentence\");\n\t\tString[] words = sentence.split(\" \");\n\t\tfor(String word: words){\n\t\t\tthis.collector.emit(new Values(word));\n\t\t}\n\t}", "@Override\n public void flatMap(String value, Collector<Tuple2<String, Integer>> out) {\n String[] sentences = value.toLowerCase().split(\"(?<!\\\\w\\\\.\\\\w.)(?<![A-Z][a-z]\\\\.)(?<=\\\\.|\\\\?|\\\\!)\\\\s\");\n\n for(String sentence: sentences) {\n\n if (sentence.length() > 0) {\n // Remove any punctuation from the sentence\n String sanitized = sentence.replace(\".\", \"\")\n .replace(\"!\", \"\").replace(\"?\", \"\");\n\n // Split the sentence into words by using spaces\n String[] words = sanitized.split(\"\\\\W+\");\n\n if (words.length > 0) {\n String firstWord = words[0];\n\n // For each bigram, output the count 1\n for (int i = 1; i < words.length; i++) {\n out.collect(new Tuple2<>(firstWord+\" \"+words[i], 1));\n }\n }\n }\n }\n }", "@Override\n\t\tpublic void flatMap(String value, Collector<Tuple2<Cell, Integer>> out) {\n\t\t\tString[] tokens = value.split(\"\\\\s+\");\n//\t\t\tSystem.out.println(\"token0 \" + tokens[0]);\n//\t\t\tSystem.out.println(\"token1 \" + tokens[1]);\n\t\t\tout.collect(new Tuple2<Cell, Integer>( new Cell(Long.parseLong(tokens[0]),Long.parseLong(tokens[1])), 0));\n\t\t}", "public void nextTuple() {\n\t\t\n\t\tif(index < sentences.length){\n\t\t\tthis.collector.emit(new Values(sentences[index%sentences.length]));\n\t\t\tindex++;\n\t\t\tUtils.waitForMillis(1);\n\t\t}\n\t}", "@Override\n public String getValueFromTuple(ITuple tuple) {\n return tuple.getStringByField(\"top_n_words\");\n\t\t// End\n }", "public Iterator<String> words();", "public void nextTuple() {\n\t\tif(isFirst) {\n\t\t\ttry {\n\t\t\t\tFileReader in = new FileReader(\"query_stream_comp_\"+qSize);\n\t\t\t\tBufferedReader br = new BufferedReader(in);\t\n//\t\t\t\tbr.readLine();\n\t\t\t\tfor(int i=0; i<num; i++) {\n//\t\t\t\t\tUtils.sleep(100);\n\t\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\t\tint edges = Integer.valueOf(br.readLine());\n//\t\t\t\t\tsb.append(edges+\"\\n\");\n//\t\t\t\t\tint edges = br.read();\n\t\t\t\t\tfor(int j=0; j< edges; j++) {\n\t\t\t\t\t\t\n\t//\t\t\t\t\tString edge[] = br.readLine().split(\" \");\n\t\t\t\t\t\tsb.append(br.readLine()+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\t_collector.emit(\"qstream\", new Values(sb.toString()));\n\t\t\t\t}\n\t\t\t\tisFirst = !isFirst;\n\t\t\t\tSystem.out.println(\"QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}else {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000000);\n\t\t\t\tSystem.exit(0);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n\tpublic final void execute(final Tuple input, final BasicOutputCollector collector) {\n\t\tfinal String sentence = (String) input.getValueByField(\"sentence\");\n\t\tfor (final String word : sentence.split(\" \")) {\n\t\t\tcollector.emit(new Values(word));\n\t\t}\n\t}", "@Override\n\t\tprotected void map(Object key, Text value, Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tStringTokenizer str=new StringTokenizer(value.toString());\n//\t\t\tString[]str=new String(value.toString()).split(\"a\");\n\t\t\twhile(str.hasMoreTokens()){\n\t\t\t\tword.set(str.nextToken());\n\t\t\t\tcontext.write(word, one);\n\t\t\t\t}\n//\t\t\tfor(String b:str){\n//\t\t\t\tword.set(b);\n//\t\t\t\tcontext.write(word, one);\n//\t\t\t\t\n//\t\t\t}\n\t\t\t\n\t\t}", "@Override\r\n\tpublic Tuple nextTuple() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tTuple tuple = null;\r\n\t\ttry{\r\n\t\t\tString s = br.readLine();\r\n\t\t\tif(s==null) return null;\r\n\t\t\ttuple = new Tuple(s);\r\n\t\t}catch(IOException e){\r\n\t\t\tSystem.out.print(\"No more tuples!\");\r\n\t\t}\r\n\t\treturn tuple;\r\n\t}", "private static Stream<String> createBadWordsDetectingStream(String text, \n List<String> badWords) {\n\t \treturn Arrays.stream(text.split(\" \")).filter(el -> !badWords.contains(el)).distinct().sorted().collect(Collectors.toList()).stream();\n\t }", "public void apply(GlobalWindow window, Iterable<String> values, \n Collector<Tuple2<String,Integer>> out) throws Exception {\n \t HashMap <String,Integer> countWord = new HashMap<String,Integer>();\n \n for (String value : values) {\n \t \n \t String[] tokens = value.toLowerCase().split(\"\\\\W+\");\n \t for (String token : tokens)\n \t {\t if (token.length() >0) {\n \t\t if (countWord.get(token) != null)\n { countWord.put(token, countWord.get(token)+1);}\n else\n {countWord.put(token, 1);}\n \t }\n \t\t \n \t }\n }\n \n \n //Comparator to sort in reverse\n \t\t\tComparator<String> comparator = new Comparator<String>() {\n \t\t\t public int compare(String o1, String o2) {\n \t\t\t return countWord.get(o1).compareTo(countWord.get(o2));\n \t\t\t }\n \t\t\t};\n\n \t\t\tArrayList<String> words = new ArrayList<String>();\n \t\t\twords.addAll(countWord.keySet());\n\n \t\t\tCollections.sort(words,comparator);\n \t\t\tCollections.reverse(words);\n \t\t\t\n// System.out.println(Arrays.asList(words));\n \t\t\tSystem.out.println(\"10 most frequent words per stream\");\n System.out.println(\"-----------\");\n \n for(int i = 0; i < 10; i++) {\n \tSystem.out.println(words.get(i) + \" : \" + countWord.get(words.get(i)));\n }\n \n \n System.out.println(\"\\n\");\n \n }", "private static List<Pair<String, Integer>> splitWords(String line) {\n // This is kinda silly: we read and parse the stop words file once for each chunk, but this is the way the book\n // does it, so better stay in line with that.\n Set<String> stopWords = Arrays.stream(readFile(\"../stop_words.txt\").split(\",\")).\n collect(Collectors.toCollection(HashSet::new));\n return Arrays.stream(line.replaceAll(\"[^a-zA-Z\\\\d\\\\s]\", \" \").toLowerCase().split(\" \")).\n filter(w -> w.length() >= 2 && !stopWords.contains(w)).\n map(w -> new Pair<>(w, 1)).\n collect(Collectors.toList());\n }", "private Token makeOneToken(String word) {\n Tokenizer tokenizer = new Tokenizer(new StringReader(word), keywords);;\n return tokenizer.next();\n }", "@Override\n \t\tpublic void map(PactString url, Tuple docRecord, Collector<PactString, PactNull> out) {\n \t\t\t\n \t\t\t// FILTER\n \t\t\t// Only collect the document if all keywords are contained\n \t\t\tString docText = docRecord.getStringValueAt(1);\n \t\t\tboolean allContained = true;\n \t\t\tfor (String kw : KEYWORDS) {\n \t\t\t\tif (!docText.contains(kw)) {\n \t\t\t\t\tallContained = false;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (allContained) {\n \t\t\t\tout.collect(url, new PactNull());\n \t\t\t\t\n \t\t\t\tLOG.debug(\"Emit key: \"+url);\n \t\t\t}\n \t\t}", "@Override\n public void execute(Tuple tuple) {\n \n String word = tuple.getString(0);\n Integer count = counts.get(word);\n if(count==null) count = 0;\n count++;\n counts.put(word, count);\n \n collector.emit(new Values(word, count));\n \n //Set the tuple as Acknowledge\n collector.ack(tuple);\n }", "public WordPairList(String[] words) {\n allPairs = new ArrayList<>();\n for (int i = 0; i < words.length; i++) {\n for (int j = i+1; j < words.length; j++) {\n allPairs.add(new WordPair(words[i], words[j]));\n }\n }\n }", "default Stream<CharSequence> parseTextToWords(CharSequence text) {\n return toSentences(text).filter(s -> s.length() > 0).flatMap(this::toWords);\n }", "public void execute(Tuple input, BasicOutputCollector collector) {\n\t\tString word = (String)input.getValue(0);\r\n\t\tSystem.out.println(\"out = fuck the \" + word);\r\n\t}", "protected void processTuple (\n \t\t\t Tuple inputTuple, int streamId)\n \tthrows ShutdownException, InterruptedException {\n \tTuple result;\n \t//If we haven't already picked up a template tuple,\n \t// copy this one.\n \tif (tupleDataSample == null)\n \t\ttupleDataSample = inputTuple;\n \t\t\t\n \tcount++;\n result = appendWindowId(inputTuple, streamId);\n putTuple(result, 0);\t \n \tif ((count % slide == 0) && (windowType == 0)) {\n \t\t//output a punctuation to say windowId_from is completed\t\t\t\n \t\tputTuple (createPunctuation (inputTuple, windowId_from), 0);\n \t} \t\t\n \n }", "@Override\n\tpublic void reduce(TwoWords key, Iterable<Text> values, Context context)\n\t\t\tthrows IOException, InterruptedException {\n\n\t\tString prev = null;\n\t\tint runningCount = 0;\n\t\tPriorityQueue<WCTuple> pq = new PriorityQueue<WCTuple>();\n\t\tfor(Text t: values)\n\t\t{\n\t\t\tString word = t.toString();\n//\t\t\tSystem.out.println(\"Val: \" + word);\n\t\t\tif(prev == null)\n\t\t\t{\n\t\t\t\tprev = word;\n\t\t\t\trunningCount = 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif(prev.equals(word))\n\t\t\t{\n\t\t\t\trunningCount += 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tWCTuple wc = new WCTuple(word, runningCount);\n\t\t\twc.addToList(pq);\n\t\t\tprev = word;\n\t\t\trunningCount = 1;\n\t\t}\n\t\tif(prev != null)\n\t\t{\n\t\t\tWCTuple wc = new WCTuple(prev, runningCount);\n\t\t\twc.addToList(pq);\n\t\t}\n\n\t\tString output = \"\";\n\n\t\twhile(!pq.isEmpty())\n\t\t{\n\t\t\tWCTuple wc = pq.remove();\n\t\t\toutput = wc.getWord() + \",\" + output;\n//\t\t\tSystem.out.println(\"output: \" + output);\n\t\t}\n\n\t\tcontext.write(new Text(key.getPK()), new Text(output));\n\t}", "public void execute(Tuple input, BasicOutputCollector collector) {\n String sentence = input.getString(0);\n String[] words = sentence.split(\"\\t\");\n collector.emit(new Values(words[1]));\n }", "Stream<List<Term>> toSentences(List<Integer> intText, List<Term> termText);", "@Override\n\tpublic void map(Record record, Collector<Record> collector) {\n\n\t\tString document = record.getField(0, StringValue.class).toString();\n\t\tString docArray[] = document.split(\",\");\n\t\tString docIdString = docArray[0];\n\t\tInteger docId = Integer.parseInt(docIdString);\n\t\tStringBuilder text = new StringBuilder();\n\t\tfor (int i = 1; i < docArray.length; i++) {\n\t\t\ttext.append(docArray[i]);\n\t\t}\n\t\tString words = text.toString();\n\t\tHashMap<String, Integer> uniqWords = new HashMap<String, Integer>();\n\t\tHashSet<String> stopWords = Util.STOP_WORDS;\n\t\tfor (String word: words.split(\" \")) {\n\t\t\tif (word.matches(\"[\\\\w!.]+\") && !stopWords.contains(word)) {\n\t\t\t\tif (!uniqWords.containsKey(word)) {\n\t\t\t\t\tuniqWords.put(word, 1);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tInteger count = uniqWords.get(word);\n\t\t\t\t\tcount++;\n\t\t\t\t\tuniqWords.put(word, count);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String key : uniqWords.keySet()) {\n\t\t\tRecord emitRecord = new Record();\n\t\t\temitRecord.addField(new IntValue(docId));\n\t\t\temitRecord.addField(new StringValue(key));\n\t\t\temitRecord.addField(new IntValue(uniqWords.get(key)));\n\t\t\tcollector.collect(emitRecord);\n\t\t}\n\t\t\n\t}", "private static SortingMachine<Pair<String, Integer>> sortWords(\n Map<String, Integer> words, int numberOfWords) {\n AlphabeticalComparator stringComp = new AlphabeticalComparator();\n IntComparator intComp = new IntComparator();\n\n SortingMachine<Pair<String, Integer>> intMachine = new SortingMachine1L<>(\n intComp);\n SortingMachine<Pair<String, Integer>> stringMachine = new SortingMachine1L<>(\n stringComp);\n\n for (Map.Pair<String, Integer> pair : words) {\n intMachine.add(pair);\n }\n\n intMachine.changeToExtractionMode();\n\n for (int i = 0; i < numberOfWords; i++) {\n Pair<String, Integer> pair = intMachine.removeFirst();\n System.out.println(pair);\n stringMachine.add(pair);\n }\n\n stringMachine.changeToExtractionMode();\n\n return stringMachine;\n }", "public Stream<Tuple<Instance,Document>> instanceStream() {\n\t\treturn docs.stream()\n\t\t\t\t.map((doc)->{\n\t\t\t\t\tInstance instance = asInstance(doc);\n\t\t\t\t\treturn new Tuple<>(instance,doc);\n\t\t\t\t});\n\t}", "private List<Tuple> charCountMap(Tuple input) {\n \n String[] words = input.snd().replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase().split(\"\\\\s+\");\n \n List<Tuple> output = new ArrayList<Tuple>();\n \n for(String word : words) {\n Integer chars = word.length();\n output.add(new Tuple(chars.toString(),\"1\"));\n }\n \n lolligag();\n \n //<charCount, 1>, <charCount, 1> ...\n return output;\n }", "private static List<String> induceSynonims(String word) {\n\t\treturn null;\n\t}", "List<T> getWord();", "@SuppressWarnings(\"unused\")\n\tprivate static int[] pureStreamStrategy(String word) {\n\t\treturn word.codePoints()\n\t\t\t\t.filter(Character::isLetter)\n\t\t\t\t.map(Character::toUpperCase)\n\t\t\t\t.boxed()\n\t\t\t\t.collect(\n\t\t\t\t\tCollectors.groupingBy(\n\t\t\t\t\t\tcp -> cp,\n\t\t\t\t\t\tTreeMap::new,\n\t\t\t\t\t\tCollectors.summingInt(cp -> 1)\n\t\t\t\t\t)\n\t\t\t\t).entrySet().stream()\n\t\t\t\t.flatMap(e -> Stream.of(e.getKey(), e.getValue()))\n\t\t\t\t.mapToInt(i -> i)\n\t\t\t\t.toArray()\n\t\t;\n\t}", "static Stream<String> splitIntoWords(String str) \r\n\t{\r\n\t\treturn Arrays.stream(str.split(\"\\\\W+\")).filter(s -> s.length() > 0);\r\n\t}", "@Override\n public void flatMap(String value, Collector<Tuple2<String, Integer>> out) throws Exception {\n if(jsonParser == null) {\n jsonParser = new ObjectMapper();\n }\n JsonNode jsonNode = jsonParser.readValue(value, JsonNode.class);\n boolean isEnglish = jsonNode.has(\"user\") && jsonNode.get(\"user\").has(\"lang\") && jsonNode.get(\"user\").get(\"lang\").getTextValue().equals(\"en\");\n boolean hasText = jsonNode.has(\"text\");\n if (isEnglish && hasText) {\n // message of tweet\n StringTokenizer tokenizer = new StringTokenizer(jsonNode.get(\"text\").getTextValue());\n\n // split the message\n while (tokenizer.hasMoreTokens()) {\n String result = tokenizer.nextToken().replaceAll(\"\\\\s*\", \"\").toLowerCase();\n\n if (!result.equals(\"\")) {\n out.collect(new Tuple2<>(result, 1));\n }\n }\n }\n }", "public void test() throws IOException, SQLException\r\n\t{\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(\"src/result.txt\")));\r\n\t\tList<String> sents = new ArrayList<>();\r\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(\"src/test_tmp_col.txt\")));\r\n\t\tString line = \"\";\r\n\t\tString wordseq = \"\";\r\n\t\tList<List<String>> tokens_list = new ArrayList<>();\r\n\t\tList<String> tokens = new ArrayList<>();\r\n\t\twhile((line=br.readLine())!=null)\r\n\t\t{\r\n\t\t\tif(line.trim().length()==0)\r\n\t\t\t{\r\n\t\t\t\tsents.add(wordseq);\r\n\t\t\t\ttokens_list.add(tokens);\r\n\t\t\t\twordseq = \"\";\r\n\t\t\t\ttokens = new ArrayList<>();\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tString word = line.split(\"#\")[0];\r\n\t\t\t\twordseq += word;\r\n\t\t\t\ttokens.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbr.close();\r\n\t\tfor(String sent : sents)\r\n\t\t{\r\n\t\t\tString newsURL = null;\r\n\t\t\tString imgAddress = null;\r\n\t\t\tString newsID = null;\r\n\t\t\tString saveTime = null;\r\n\t\t\tString newsTitle = null;\r\n\t\t\tString placeEntity = null;\r\n\t\t\tboolean isSummary = false;\r\n\t\t\tPair<String, LabelItem> result = extractbysentence(newsURL, imgAddress, newsID, saveTime, newsTitle, sent, placeEntity, isSummary);\r\n\t\t\t\r\n\t\t\tif(result!=null)\r\n\t\t\t{\r\n\t\t\t\r\n//\t\t\t\tSystem.out.print(result.getSecond().eventType+\"\\n\");\r\n\t\t\t\tbw.write(sent+'\\t'+result.getSecond().triggerWord+\"\\t\"+result.getSecond().sourceActor+'\\t'+result.getSecond().targetActor+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tbw.write(sent+'\\n');\r\n\t\t\t}\r\n\t\t}\r\n\t\tbw.close();\r\n\t\t\r\n\t}", "@Override\n\tpublic void execute(Tuple tuple, BasicOutputCollector collector) {\n\t\tString sentence = tuple.getValue(0).toString();\n\t\ttry {\n\t\t\tsentence = new String(sentence.getBytes(),\"utf-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n collector.emit(new Values(sentence));\n List<DBObject> dbList = new ArrayList<DBObject>(); \n BasicDBObject doc1 = new BasicDBObject(); \n doc1.put(\"ywlog\", sentence);\n int left = sentence.indexOf(\"datetime\");\n if(sentence.contains(\"datetime\")){\n \tdoc1.put(\"datetime\", sentence.substring(left+11, left+30));\n }\n dbList.add(doc1); \n myCollection.insert(dbList);\n\t}", "public static HashMap<String,String> nextWord(){\r\n\t\t \r\n\t\tString q1 = \"paple\";\r\n\t\tString a1 = \"apple\";\r\n\t\tString q2 = \"roange\";\r\n\t\tString a2 = \"orange\";\r\n\t\t\r\n\t\tHashMap<String, String> hm = new HashMap<>();\r\n\t\thm.put(q1, a1);\r\n\t\thm.put(q2,a2);\r\n\t\treturn hm;\r\n\t}", "public void nextTuple() {\n\t\tif (csvRecordsItr.hasNext()) {\n\t\t\t// Get the next record from input file\n\t\t\tCSVRecord csvRecord = null;\n\t\t\ttry {\n\t\t\t\tcsvRecord = csvRecordsItr.next();\n\t\t\t\tString groupName = csvRecord.get(\"GROUP_NAME\");\n\t\t\t\tString eventName = csvRecord.get(\"EVENT_NAME\");\n\t\t\t\tString eventStatus = csvRecord.get(\"EVENT_STATUS\");\n\t\t\t\tString eventCity = csvRecord.get(\"EVENT_CITY\");\n\t\t\t\tString eventCountry = csvRecord.get(\"EVENT_COUNTRY\");\n\n\t\t\t\t// Emit the record as a tuple\n\t\t\t\tspoutOutputCollector.emit(new Values(groupName, eventName,\n\t\t\t\t\t\teventStatus, eventCity, eventCountry));\n\t\t\t} catch (NoSuchElementException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "public void countWords(Stream<String> strStream) {\n\t\tOptional<Long> num = strStream.map((String x) -> (1L)).reduce((Long y, Long z) -> Math.addExact(y, z));\r\n\t\tnum.ifPresent(System.out::println);\r\n\t\t//Collectors.toList();\r\n\t\t\r\n\r\n\t}", "public abstract Tuple parseFrom(byte[] bytes) throws Exception;", "public Cursor getWords() \n\t{\n\t\tString query = String.format(_select, getDate()) +\n\t\t\t\t\t\t_havingDataContraint +\n\t\t\t\t\t\t\" ORDER BY \" + DBConstants.WordTable.WORD_KEY;\n\t\t\n\t\treturn _db.rawQuery(query, null);\t\n }", "public static List<List<String>> breakIntoWords(String longWord, Collection<String> dict) {\n List<List<String>>[] words = new ArrayList[longWord.length() + 1];\n // words[i] = list of matching words at longWord length i\n // words[longWord.length()] is answer\n Arrays.stream(words).forEach((wl) -> wl = null);\n // contains empty list of lists\n // the first element contains an emtpty list of strings\n words[0] = new ArrayList<List<String>>();\n\n int beginIndx = -1;\n while (beginIndx < longWord.length()) {\n // beginIndx starts from 0 and goes up to length of the word -1\n // start with -1 and first index where the words[beginIndx] != null is 0\n // last value for beingIndx is wordlength -1\n while ((words[++beginIndx] == null) && (beginIndx < longWord.length())) ;\n // non null List of Lists of String\n // for index 0 it will be empty. For subsequent indices it may be non empty\n List<List<String>> beginIndxLists = words[beginIndx];\n // if beginIndx has not reached the end of the word\n // last value of beingIndx is longWord.length-1\n // need to compare the last character for which substring(wordlength-1, wordlength)\n if (beginIndx < longWord.length()) {\n // beginIdx is the start of the word, end Indx is end\n // last value for endIndx is longWord.length\n for (int endIndx = beginIndx + 1; endIndx <= longWord.length(); endIndx++) {\n String matchW = longWord.substring(beginIndx, endIndx);\n if ((matchW != null) && (!matchW.isEmpty())) {\n if (dict.contains(matchW)) {\n // list of list of Strings for getting to the endIndx\n List<List<String>> mwordsList = words[endIndx];\n if (mwordsList == null) {\n mwordsList = new ArrayList<List<String>>();\n }\n if((beginIndxLists==null)||(beginIndxLists.isEmpty())) {\n mwordsList.add(new ArrayList(Arrays.asList(matchW)));\n }\n // words[endIndx] has list of list initialized\n // there is a list at beginIndx\n // get the list of words at begingIndx. It contains at least one empty list\n else {\n for (List<String> beginList : beginIndxLists) {\n // at the matched word in the list at beginIndx and then copy it to mwordsList at endIndx\n beginList.add(matchW);\n mwordsList.add(beginList);\n }\n }\n words[endIndx] = mwordsList;\n }\n }\n }\n\n }\n\n }\n return words[longWord.length()];\n }", "private void addWordsToBuffer(String [] words) {\r\n\t\tfor(String s : words) {\r\n\t\t\tbuffer.add(s);\r\n\t\t}\r\n \r\n }", "public void execute(Tuple input) {\n String line= input.getStringByField(\"Line\");\r\n //int C= input.getInteger(1);\r\n //logger.info(\"Line is read bolt \"+ line + \" and emitted at time\");\r\n // String [] data= line.split(\",\");\r\n Long count= wordcount.get(line, (long) 0);//data[8]\r\n count++;\r\n wordcount.put(line, count);//data[8]\r\n //System.out.println(data[0]+\" \"+count);\r\n collector.ack(input);\r\n }", "@Override\n public Tuple next() {\n return nonDistinctNext();\n }", "java.lang.String getWord();", "private Tuple charCountReduce(List<Tuple> input) {\n String chars = input.get(0).fst();\n Integer count = input.size();\n \n // output <charCount, # of words with that charCount>\n return new Tuple(chars, count.toString());\n }", "public void putNext(Tuple tuple) throws IOException {\n\t\tint sqlPos = 1;\n\t\ttry {\n\t\t\tint size = tuple.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tObject field = tuple.get(i);\n\t\t\t\t\tif(field != null){\n\t\t\t\t\t\tif(\"\\\\N\".equalsIgnoreCase(field.toString())){\n\t\t\t\t\t\t\tfield = null;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t\tswitch (DataType.findType(field)) {\n\t\t\t\t\tcase DataType.NULL:\n\t\t\t\t\t\tps.setNull(sqlPos, java.sql.Types.VARCHAR);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.BOOLEAN:\n\t\t\t\t\t\tps.setBoolean(sqlPos, (Boolean) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.INTEGER:\n\t\t\t\t\t\tps.setInt(sqlPos, (Integer) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.LONG:\n\t\t\t\t\t\tps.setLong(sqlPos, (Long) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.FLOAT:\n\t\t\t\t\t\tps.setFloat(sqlPos, (Float) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.DOUBLE:\n\t\t\t\t\t\tps.setDouble(sqlPos, (Double) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.DATETIME:\n\t\t\t\t\t\tps.setTimestamp(sqlPos, new Timestamp(((DateTime) field).getMillis()));\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.BYTEARRAY:\n\t\t\t\t\t\tbyte[] b = ((DataByteArray) field).get();\n\t\t\t\t\t\tps.setBytes(sqlPos, b);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DataType.CHARARRAY:\n\t\t\t\t\t\tps.setString(sqlPos, (String) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DataType.BYTE:\n\t\t\t\t\t\tps.setByte(sqlPos, (Byte) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.MAP:\n\t\t\t\t\tcase DataType.TUPLE:\n\t\t\t\t\tcase DataType.BAG:\n\t\t\t\t\t\tthrow new RuntimeException(\"Cannot store a non-flat tuple \"\n\t\t\t\t\t\t\t\t+ \"using DbStorage\");\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow new RuntimeException(\"Unknown datatype \"\n\t\t\t\t\t\t\t\t+ DataType.findType(field));\n\n\t\t\t\t\t}\n\n\t\t\t\t} catch (ExecException ee) {\n\t\t\t\t\tthrow new RuntimeException(ee);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tps.addBatch();\n\t\t\tcount++;\n\t\t\tif (count > batchSize) {\n\t\t\t\tcount = 0;\n\t\t\t\tps.executeBatch();\n\t\t\t\tps.clearBatch();\n\t\t\t\tps.clearParameters();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\ttry {\n\t\t\t\tlog\n\t\t\t\t.error(\"Unable to insert record:\" + tuple.toDelimitedString(\"\\t\"),\n\t\t\t\t\t\te);\n\t\t\t} catch (ExecException ee) {\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t\tif (e.getErrorCode() == 1366) {\n\t\t\t\t// errors that come due to utf-8 character encoding\n\t\t\t\t// ignore these kind of errors TODO: Temporary fix - need to find a\n\t\t\t\t// better way of handling them in the argument statement itself\n\t\t\t} else {\n\t\t\t\tthrow new RuntimeException(\"JDBC error\", e);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic Tuple next(){\n currTupleInd++;\n if (currTupleInd >= numOfTuples) return null;\n return tuples.get(currTupleInd);\n\t}", "protected Query analyzeMultiPhrase(String field, TokenStream stream, int slop)\n throws IOException {\n MultiPhraseQuery.Builder mpqb = newMultiPhraseQueryBuilder();\n mpqb.setSlop(slop);\n\n TermToBytesRefAttribute termAtt = stream.getAttribute(TermToBytesRefAttribute.class);\n\n PositionIncrementAttribute posIncrAtt = stream.getAttribute(PositionIncrementAttribute.class);\n int position = -1;\n\n List<Term> multiTerms = new ArrayList<>();\n stream.reset();\n while (stream.incrementToken()) {\n int positionIncrement = posIncrAtt.getPositionIncrement();\n\n if (positionIncrement > 0 && multiTerms.size() > 0) {\n if (enablePositionIncrements) {\n mpqb.add(multiTerms.toArray(new Term[0]), position);\n } else {\n mpqb.add(multiTerms.toArray(new Term[0]));\n }\n multiTerms.clear();\n }\n position += positionIncrement;\n multiTerms.add(new Term(field, termAtt.getBytesRef()));\n }\n\n if (enablePositionIncrements) {\n mpqb.add(multiTerms.toArray(new Term[0]), position);\n } else {\n mpqb.add(multiTerms.toArray(new Term[0]));\n }\n return mpqb.build();\n }", "private void splitWord(String wordField) {\n wordsArray = new String[wordField.length()];\n wordsArray = wordField.split(\", *\");\n System.out.println(\"chk1: wordsArray: \" + Arrays.toString(wordsArray));\n //wordMap(words);\n for (int i = 0; i < wordsArray.length; i++) {\n wordsArray[i] = wordsArray[i].toUpperCase();\n wordMap.put(\"word\" + i, new Word(wordsArray[i]));//convert each word to upperCase and add it to wordMap\n }\n\n }", "public Word (String word){\n this.word = word;\n count = 0;\n }", "public void reduce(Text word, Iterable<Text> value,\n Context context) throws IOException, InterruptedException\n {String sum=\"\";\n for (Text count : value) {\n if(sum.equals(\"\")){\n sum=count.toString();\n }\n else\n sum =sum+\",\"+ count.toString();\n }//System.out.println(sum);\n context.write(word, new Text(sum));\n }", "SList evenWords();", "private Tuples() {}", "public void getWord() {\n\t\t\n\t}", "public String buildAggStream(Triple triple, Stream strm){\n\t\tString str = \"\";\n\t\tString grpVar = \"\";\n\t\tString wid = \"wid\";\n\t\tString ontopString = \"\";\n\t\tList<String> subStreams = new ArrayList<String>();\n\t\tif(triple.getSubject().getsType() == StarqlVarType.VALUE){\n\t\t\tgrpVar += triple.getSubject().toStringSQL() +\", \";\n\t\t}\n\t\tSet<IndexedTriple> trples = new HashSet<IndexedTriple>();\n\t\tSet<Triple> varTriples = new HashSet<Triple>();\n\t\tSet<String> setString = new HashSet<String>();\n\t\tstr += genTableStr + strm.getName()+triple.getAgg().getName()+\" AS WCACHE\\r\\n\";\n\t\tstr += \"SELECT \"+wid+\", \"+grpVar+triple.getAgg().getAggType()+\"(\"+triple.getAgg().getColumns().toString().substring(1, triple.getAgg().getColumns().toString().length()-1)+\") as \"+triple.getAgg().getName()+\"\\r\\nFROM \" +strm.getName()+ \"_having\";\n\t\t\n\t\t/*trples.add(strm.getWhere());\n\t\tif (strm.getHvg() != null)\t\n\t\t\ttrples.addAll(strm.getHvg().getLowerIndTriples(false));\n\t\tfor(String var : triple.getAgg().getColumns()){\n\t\t\tStarqlVar sVar = new StarqlVar(StarqlVarType.VALUE, var.substring(1));\n\t\t\tfor(IndexedTriple iTriple : trples)\n\t\t\t\tvarTriples.addAll(iTriple.getVarTriple(sVar));\n\t\t}\n\t\tfor(Triple trple : varTriples){\n\t\t\ttry {\n\t\t\t\tTreeBuilder treeBuilder = new TreeBuilder(getUnf().unfoldDirect(trple, true, strm.getFrom().getList()).replaceAll(\"(?m)^\", \"\\t\"), strm.getName()+ \"_sub_ontop\" + ontopStrm);\n\t\t\t\tsubStreams.add(treeBuilder.getMadisStreamQuery());\n\t\t\t} catch (JSQLParserException e) {\n\t\t\t\t//system.out.println(\"Unable to rewrite: \" + getUnf().unfoldDirect(trple, true, strm.getFrom().getList()).replaceAll(\"(?m)^\", \"\\t\"));\n\t\t\t\tthrow new RuntimeException(\"UNABLE TO REWRITE ONTOP RESULT: \" + getUnf().unfoldDirect(trple, true, strm.getFrom().getList()).replaceAll(\"(?m)^\", \"\\t\"));\n\t\t\t}\n\t\t\tsetString.add(\"(\" + \"SELECT * FROM \"+strm.getName()+\"_sub_ontop\" + ontopStrm++ + \") SUB_TRIPLE\");\n\t\t}\n\t\tstr += \"(\\r\\n \" + HelperFunctions.getSetAsString(setString, true, \"\\r\\nNATURAL JOIN\\r\\n\") + \"\\r\\n) SUB_FROM\";\n\t\t*/\n\t\t\n\t\tstr += \"\\r\\n GROUP BY wid\";\n\t\tif(!grpVar.isEmpty())\n\t\t\tstr += \", \"+triple.getSubject().toStringSQL();\n\t\tstr +=\";\\r\\n\";\n\t\tontopString = HelperFunctions.getSetAsString(subStreams, true, \"\\r\\n\");\n\t\treturn ontopString + str;\n\t}", "@Override\n\t\tpublic Tuple exec(Tuple input) throws IOException {\n\t\t\tfor (Tuple t : (DataBag) input.get(0)) {\n\t\t\t\treturn wrap(t, getSign());\t\n\t\t\t}\n\t\t\t// Odd.\n\t\t\treturn tf.newTuple(bf.newDefaultBag());\n\t\t}", "@VTID(13)\r\n java.lang.String getTuple();", "public ArrayList<ArrayList> simpleQuery(String word)\n {\n ArrayList<ArrayList> data = new ArrayList();\n\n IndexObject obj = myIndex.get(word.hashCode());\n if(obj == null)\n {\n errorMsg();\n return null;\n }\n data.add(new ArrayList<Document>(obj.getDocuments()));\n data.add(new ArrayList<Double>(obj.getRelevance()));\n data.add(new ArrayList<Integer>(obj.getOccurrence()));\n data.add(new ArrayList<Integer>(obj.getPopularity()));\n return data;\n }", "private static MultiItemTerminal toMultiItemTerminal(ByteBuffer... values)\n {\n return new Tuples.Value(values);\n }", "public ArrayList<String> playWord(){\n\t\tSystem.out.println(myField.getNewWords());\n\t\tArrayList<String> words;\n\t\tif(myField.getNewWords().size() != 0){\n\t\t\t words = myWC.checkWords(myPC.createWords(myField.getTiles(), myField.getNewWords()), myField.getNewWords(), myField.getTiles(), getfirstWord());\n\t\t}\n\t\telse{\n\t\t\twords = new ArrayList<String>();\n\t\t\twords.add(\"You have not placed any stones\");\n\t\t\treturn words;\n\t\t}\n\t\tSystem.out.println(words);\n\t\t\n\t\tif(words.size() == 0){\n\t\t\t\n\t\t\tplayDB();\n\t\t\treturn null;\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tmyField.updateField(id);\n\t\t\treturn words;\n\t\t}\n\t\t\n\t}", "private static List<Pair<String, Integer>> countWords(List<Pair<String, Integer>> wordGroup) {\n return wordGroup.stream().\n collect(\n Collectors.toMap(\n Pair::first,\n p -> p,\n (p1, p2) -> new Pair<>(p1.first(), p1.second() + p2.second())\n )\n ).\n entrySet().stream().\n map(Map.Entry::getValue).\n collect(Collectors.toList());\n }", "public Tuple next() throws RelationException;", "Tuple extract(int[] pos) {\n Tuple results = new Tuple();\n\n for (int i : pos)\n results.add(elements.set(i, null));\n\n return results;\n }", "public WordGraph(Iterator<Word> words) {\n wordSet = new HashSet<>();\n wordMap = new HashMap<>();\n while(words.hasNext())\n wordSet.add(words.next());\n \n for(Word word : wordSet) {\n for(int i = 0; i < word.length(); i++) {\n Word w = word.deleteLetter(i);\n if(wordSet.contains(w)) {\n addToMap(word, w);\n addToMap(w, word);\n }\n }\n }\n }", "public String getWord(){\n return this.word;\n }", "public Word getWordFromLine(String line) {\n Word objWord = null;\n\n try {\n String[] data = line.split(\" \");\n String subj = data[colSubj].split(\"=\")[1];\n // Ignoring Len (colLen)\n String word = data[colWord].split(\"=\")[1];\n String pos = data[colPos].split(\"=\")[1];\n String stemmed = data[colStemmed].split(\"=\")[1];\n String polarity = data[colPolarity].split(\"=\")[1];\n\n objWord = new Word(word, Word.strToSubjectivity(subj),\n Word.strToPosition(pos), Word.strToStemmed(stemmed),\n Word.strToPolarity(polarity));\n } catch (Exception e) {\n System.err.println(\"Error when parsing line for a word\");\n e.printStackTrace();\n System.exit(1);\n }\n\n return objWord;\n }", "public abstract T getTuple(Record record);", "private void fillSet() {\r\n\t\tString regex = \"\\\\p{L}+\";\r\n\t\tMatcher matcher = Pattern.compile(regex).matcher(body);\r\n\t\twhile (matcher.find()) {\r\n\t\t\tif (!matcher.group().isEmpty()) {\r\n\t\t\t\twords.add(matcher.group());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Cursor getWord(String word) {\n\n\t\tString query = String.format(_select, getDate()) +\n\t\t\t\t\t\t\" WHERE \" + DBConstants.WordTable.WORD_KEY + \" = '\" + word + \"'\";\n\t\t\n\t\treturn _db.rawQuery(query, null);\t\t\n }", "SList oddWords();", "public WordGenerator()\n {\n adjective1a = new ArrayList<String>();\n adjective1b = new ArrayList<String>();\n adjective1c = new ArrayList<String>();\n adjective2a = new ArrayList<String>();\n adjective2b = new ArrayList<String>();\n adjective2c = new ArrayList<String>();\n fillAdjectives();\n noun = \"\";\n adj1 = \"\";\n adj2 = \"\";\n }", "public Iterator<IPosition> positions(String word) throws WordException;", "public Vector mapDocument(MultiSet<String> bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.iterator();\n String term = null;\n int index = 0;\n int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n tf = bow.getFrequency(term);\n tfIdf = (float) (log2(tf)) * Iidf[index];\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "protected java.lang.String readWord() throws java.io.IOException {\n char c = readCharWord();\n java.lang.StringBuilder result = new java.lang.StringBuilder();\n do {\n result.append(c);\n c = next();\n } while (!java.lang.Character.isWhitespace(c));\n return result.toString();\n }", "public void parseWord(String line){\r\n String[] tokens = line.split(\"\\\\t|/|<|>|\\\\?|=%3C|%3E|=%3C|&=%3C|&|=| \");\r\n// for(String word: tokens){\r\n//\r\n// keys.add(word);\r\n// }\r\n int n = tokens.length-2;//to ignore the the word GET from the string.\r\n if(n>0){\r\n for(int i=1;i<n;i++){\r\n if(!tokens[i].equals(\"\")){\r\n this.keys.add(tokens[i]);\r\n }\r\n\r\n }\r\n }\r\n\r\n }", "private void wordSearch(String word, HashMap<String, SearchResult> resultMap, ArrayList<SearchResult> words) {\n\t\tfor (String path : index.get(word).keySet()) {\n\t\t\tint frequency = index.get(word).get(path).size();\n\t\t\tint initialPosition = index.get(word).get(path).first();\n\t\t\t\n\t\t\tif (!resultMap.containsKey(path)) {\n\t\t\t\tresultMap.put(path, new SearchResult(frequency, initialPosition, path));\n\t\t\t\twords.add(resultMap.get(path));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSearchResult searchResult = resultMap.get(path);\n\t\t\t\tsearchResult.addToFrequency(frequency);\n\t\t\t\tsearchResult.updateInitialPosition(initialPosition);\n\t\t\t}\n\t\t}\n\t}", "public Tuple nextTuple() {\n\t\ttry {\n\t\t\treturn tr.read();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "private String pairsToWord(List<Pair> pairs){\n String result=\"\";\n for(Pair pair : pairs){\n result=result+pair.getLetter();\n }\n return result;\n }", "@Override\n\t\tpublic void reduce(Text key, Iterator<Text> value,\n\t\t\t\tOutputCollector<Text, Text> output, Reporter reporter)\n\t\t\t\tthrows IOException {\n\t\t\tint i = 0;\n\t\t\tStringBuffer outval = new StringBuffer();\n\t\t\twhile (value.hasNext()) {\n\t\t\t\toutval.append(\"\\n\\t\" + value.next().toString());\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (i == words.length) {\n\t\t\t\toutput.collect(key, new Text(outval.toString()));\n\t\t\t}\n\t\t}", "public String getWord() {\n return this.word;\n }", "private Token nextTokenWithWhites() throws IOException {\n\t\tString lexemaActual = \"\";\n\t\t// Si hay lexemas en el buffer, leemos de ahi\n\t\tif (!bufferLocal.esVacia()) {\n\t\t\treturn bufferLocal.extraer();\n\t\t} else {\n\t\t\t// Si no, leemos del Stream\t\t\t\t\t\n\t\t\tint lexema = tokens.nextToken();\n\t\t\tswitch (lexema) {\n\t\t\t\tcase StreamTokenizer.TT_WORD: \n\t\t\t\t\tlexemaActual = tokens.sval; \n\t\t\t\t\tbreak;\n\t\t\t\tcase StreamTokenizer.TT_EOF:\n\t\t\t\t\tlexemaActual = \"fin\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tlexemaActual = String.valueOf((char)tokens.ttype);\n\t\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t\t// Sumamos una linea en caso de haber salto de linea\n\t\t\tif (lexemaActual.equals(\"\\n\")) \n\t\t\t\tnumeroLinea++;\t\t\t\n\t\t}\n\t\treturn new Token(lexemaActual,this.numeroLinea);\n\t}", "public Word getWord() {\n return word;\n }", "private static Runnable makeStreamGang(String[] wordList, TestsToRun choice) {\n\t\tswitch (choice) {\n\t\tcase SEQUENTIAL_STREAM:\n\t\t\treturn new SearchWithSequentialStream(wordList, mInputStrings);\n\t\tcase PARALLEL_STREAM:\n\t\t\treturn new SearchWithParallelStream(wordList, mInputStrings);\n\t\t}\n\t\treturn null;\n\t}", "TupleLiteralPart createTupleLiteralPart();", "@Override\n\tpublic void apply(TokenStream stream) throws TokenizerException {\n\t\tcreateList();\n\t\tstream.reset();\n\t\twhile(stream.hasNext()){\n\t\t\tString ans=stream.next();\n\t\t\tans=ans.trim();\n\t\t\tif(ans.matches(\"\")){\n\t\t\t\tstream.previous();\n\t\t\t\tstream.remove();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tObject[] key=tokens.keySet().toArray();\n\t\t\tfor(int i=0 ;i<tokens.size(); i++){\n\t\t\t\tif(ans.contains(key[i].toString())){\n\t\t\t\t\tans=ans.replaceAll(key[i].toString(), tokens.get(key[i].toString()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstream.previous();\n\t\t\tstream.set(ans);\n\t\t\tstream.next();\n\n\t\t}\n\t\t//stream.reset();\n\t}", "@Override\n public void execute(Tuple tuple) {\n\t String word = tuple.getStringByField(\"word\");\n\t Integer count = tuple.getIntegerByField(\"count\");\n\n\t if (_topNMap.size() < _n) {\n\t \t//add word and count if less than N elements in top N\n\t \t_topNMap.put(word, count);\n\t } else {//if (_topNMap.size() > _n) {\n\t\tfor (String w : _topNMap.keySet()) {\n\t\t\tInteger c = _topNMap.get(w);\n\t\t\tif (_topNTreeMap.get(c) == null || _topNTreeMap.get(c).compareTo(w) < 0) {\n\t\t\t\t_topNTreeMap.put(c, w);\n\t\t\t}\n\t\t}\n\t\tInteger minCount = _topNTreeMap.firstKey();\n\t\tString minWord = _topNTreeMap.get(minCount);\n\t \tif (count > minCount) {\n\t\t\t_topNMap.remove(minWord);\n\t\t\t_topNMap.put(word, count);\n\t\t} else if (count == minCount && word.compareTo(minWord) > 0) {\n\t\t\t_topNMap.remove(minWord);\n\t\t\t_topNMap.put(word, count);\n\t\t}\n\t\t_topNTreeMap.clear();\n\t\t \n\t\tString topNList = \"\";\n\t\tint c = 0;\n\t \tfor (String key : _topNMap.keySet()) {\n\t\t\ttopNList += key + \", \";\n\t\t\tc++;\n\t \t}\n\t \ttopNList = topNList.substring(0, topNList.length() - 2);\n\t \tif (c == _n) {\n\t \t\tcollector.emit(new Values(\"top-N\", topNList));\n\t \t}\n\t }\n }", "com.google.protobuf.ByteString\n getWordBytes();", "@Override\n public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String[] words = value.toString().replaceAll(\" \", \"\").split(\",\");\n\n // Valid input\n if (words.length == 3) {\n // Get words\n String w1 = words[0];\n String w2 = words[1];\n String w3 = words[2];\n\n // Get word lengths\n int first = words[0].length();\n int second = words[1].length();\n int third = words[2].length();\n String lineNum = key.toString();\n\n // Conditions 1,2,4\n\n // One longest word\n // Longest word at front\n if (first > second && first > third) {\n context.write(new Text(w2), new Text(lineNum + \",\" + w1));\n context.write(new Text(w3), new Text(lineNum + \",\" + w1));\n }\n // Longest word in middle\n else if (second > first && second > third) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w2));\n context.write(new Text(w3), new Text(lineNum + \",\" + w2));\n }\n // Longest word at end\n else if (third > first && third > second) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w3));\n context.write(new Text(w2), new Text(lineNum + \",\" + w3));\n }\n\n // Two longest words\n // 1st and 2nd are the same length and longest\n if (first == second && first > third) {\n context.write(new Text(w3), new Text(lineNum + \",\" + w1));\n context.write(new Text(w3), new Text(lineNum + \",\" + w2));\n }\n // 1st and 3rd are the same length and longest\n else if (first == third && first > second) {\n context.write(new Text(w2), new Text(lineNum + \",\" + w1));\n context.write(new Text(w2), new Text(lineNum + \",\" + w3));\n }\n // 2nd and 3rd are same length and longest\n else if (second == third && second > first) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w2));\n context.write(new Text(w1), new Text(lineNum + \",\" + w3));\n }\n } \n }", "public static Map<String, String> pairWords(String file, SimpleReader in,\n Queue<String> terms, Queue<String> def, Queue<String> wordsAndDef,\n Map<String, String> dictionary) {\n String definition = \"\";\n if (wordsAndDef.length() > 0) {\n String word = wordsAndDef.dequeue();\n terms.enqueue(word);//adding terms to queue\n definition = getDefinition(wordsAndDef);\n dictionary.add(word, definition);\n pairWords(file, in, terms, def, wordsAndDef, dictionary);\n\n }\n return dictionary;\n }", "@Override\n public PCollection<KV<String, Long>> expand(PCollection<String> lines) {\n PCollection<String> words = lines.apply(ParDo.of(new ExtractWordsFn()));\n\n // Count the number of times each word occurs.\n return words.apply(Count.perElement());\n }", "public static Vector<String> getTokenizeDoc(String[] words) {\n\t\t// 0th position is where all the labels are so we need to look from 1\n\t\t// create a arrayList to keep all the words\n\t\tVector<String> wordList = new Vector<String>();\n\t\tfor(int i = 1; i< words.length; i++){\n\t\t\twords[i] = words[i].replaceAll(\"\\\\W\",\"\");\n\t\t\tif(words[i].length() > 0)wordList.add(words[i]);\n\t\t}\n\t\treturn wordList;\n\t}", "public void process(int length) {\n\t\t//the result HashMap contains the word and its parts\n\t\tHashMap<String, List<String>> result = new HashMap<>();\n\t\t// retrieve a list of all tokens with the given length from the dictionary\n\t\tList<String> wordsToProcess = getDict().getWordsByLength(length);\n\t\t\n\t\t// if not empty, process it\n\t\tif (!wordsToProcess.isEmpty()) {\n\t\t\tfor (String word : wordsToProcess) {\n\t\t\t\tfor (int cut = 1; cut < length - 1; cut++) {\n\t\t\t\t\tString firstWord = word.substring(0, cut);\n\t\t\t\t\tString secondWord = word.substring(cut);\n\n\t\t\t\t\tif (dict.contains(firstWord) && dict.contains(secondWord)) {\n\t\t\t\t\t\t// if we find a match, we add it to the results\n\t\t\t\t\t\tList<String> parts = new LinkedList<String>();\n\t\t\t\t\t\tparts.add(firstWord);\n\t\t\t\t\t\tparts.add(secondWord);\n\t\t\t\t\t\tresult.put(word, parts);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// result list is returned and can be used for further processing\n\t\tsetConcatWords(result);\n\t}", "public void map(Document value,\n OutputCollector<String, Pair> output) {\n String content = value.content;\n int count = value.count;\n for (int i = 1; i <= content.length(); i++){\n String subContent = content.substring(0, i);\n output.collect(subContent, new Pair(content, count));\n }\n }", "public String getWord(){\r\n\t\t return word;\r\n\t }", "private void addWords(Scanner scan) {\n while (scan.hasNext()) {\n add(scan.next());\n }\n }" ]
[ "0.5855785", "0.58221555", "0.5798775", "0.5615899", "0.5610196", "0.5609769", "0.5550674", "0.5440389", "0.54083186", "0.5350089", "0.5242768", "0.5224613", "0.5163296", "0.51232076", "0.5087295", "0.5055948", "0.50507426", "0.5049588", "0.5018507", "0.5016049", "0.501403", "0.501359", "0.50024503", "0.4993002", "0.49775654", "0.4973923", "0.4962449", "0.49586767", "0.49549553", "0.49501464", "0.4925194", "0.48970598", "0.48815665", "0.48539189", "0.48491853", "0.48490793", "0.48262468", "0.48216552", "0.48216173", "0.4810666", "0.47962546", "0.47848296", "0.47812968", "0.4781147", "0.47802797", "0.4774437", "0.47571525", "0.47439793", "0.47300288", "0.47192743", "0.4714817", "0.47094092", "0.47023606", "0.4695567", "0.468979", "0.46815017", "0.46769693", "0.46759626", "0.46759582", "0.4660512", "0.46526498", "0.46448684", "0.46379596", "0.46367702", "0.4635639", "0.46096757", "0.46088162", "0.46083316", "0.46054596", "0.46050823", "0.46031272", "0.46001738", "0.45886037", "0.45880544", "0.45868123", "0.45864213", "0.4583146", "0.45820534", "0.45709398", "0.4559573", "0.45576385", "0.4554373", "0.45502234", "0.4549123", "0.45454407", "0.45385057", "0.453525", "0.45347473", "0.45288053", "0.4525834", "0.45219424", "0.4520439", "0.4518977", "0.45174715", "0.4515856", "0.4511016", "0.44955453", "0.4490369", "0.4484159", "0.44740167", "0.44660127" ]
0.0
-1
The Factory for the model. It provides a create method for each nonabstract class of the model.
public interface QIntegratedLanguageEsamFactory extends EFactory { /** * The singleton instance of the factory. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @generated */ QIntegratedLanguageEsamFactory eINSTANCE = org.smeup.sys.il.esam.impl.IntegratedLanguageEsamFactoryImpl.init(); /** * Returns a new object of class '<em>Data Set Term</em>'. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @return a new object of class '<em>Data Set Term</em>'. * @generated */ QDataSetTerm createDataSetTerm(); /** * Returns a new object of class '<em>Display Term</em>'. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @return a new object of class '<em>Display Term</em>'. * @generated */ QDisplayTerm createDisplayTerm(); /** * Returns a new object of class '<em>Key List Term</em>'. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @return a new object of class '<em>Key List Term</em>'. * @generated */ QKeyListTerm createKeyListTerm(); /** * Returns a new object of class '<em>Print Term</em>'. * <!-- begin-user-doc * --> <!-- end-user-doc --> * @return a new object of class '<em>Print Term</em>'. * @generated */ QPrintTerm createPrintTerm(); /** * Returns the package supported by this factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the package supported by this factory. * @generated */ QIntegratedLanguageEsamPackage getIntegratedLanguageEsamPackage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "TestModelFactory getTestModelFactory();", "public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public SqliteModelFactoryImpl()\n {\n super();\n }", "public PetrinetmodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "ModelsFactory getModelsFactory();", "public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}", "protected abstract IModel<T> createModel(T object);", "public interface ConfigModelFactory\n{\n\t/**\n\t * Create an instance of the <code>ConfigModel</code>\n\t *\n\t * @return an instance of the configuration model\n\t */\n\tConfigModel createInstanceOfConfigModel();\n\n\t/**\n\t * Create an instance of the <code>InstanceModel</code>\n\t *\n\t * @return an instance of the instance model\n\t */\n\tInstanceModel createInstanceOfInstanceModel();\n\n\t/**\n\t * Create an instance of the <code>CsticModel</code>\n\t *\n\t * @return an instance of the characteristic model\n\t */\n\tCsticModel createInstanceOfCsticModel();\n\n\t/**\n\t * Create an instance of the <code>CsticValueModel</code>\n\t *\n\t * @param valueType\n\t * The containing Cstic value type\n\t * @return an instance of the characteristic value model\n\t */\n\tCsticValueModel createInstanceOfCsticValueModel(int valueType);\n\n\t/**\n\t * Create an instance of the <code>CsticGroupModel</code>\n\t *\n\t * @return an instance of the characteristic group model\n\t */\n\tCsticGroupModel createInstanceOfCsticGroupModel();\n\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel createInstanceOfPriceModel();\n\n\t/**\n\t * Create an instance of the <code>SolvableConflictModel</code>\n\t *\n\t * @return an instance of the Solvable Conflict Model\n\t */\n\tSolvableConflictModel createInstanceOfSolvableConflictModel();\n\n\t/**\n\t * Create an instance of the <code>ConflictingAssumptionModel</code>\n\t *\n\t * @return an instance of the Conflicting Assumption Model\n\t */\n\tConflictingAssumptionModel createInstanceOfConflictingAssumptionModel();\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel getZeroPriceModel();\n\n\t/**\n\t * Create an instance of the <code>PriceSummaryModel</code>\n\t *\n\t * @return an instance of the price summary model\n\t */\n\tPriceSummaryModel createInstanceOfPriceSummaryModel();\n\n\t/**\n\t * @return a builder to construct {@link ProductConfigMessage} objects\n\t */\n\tdefault ProductConfigMessageBuilder createProductConfigMessageBuilder()\n\t{\n\t\treturn new ProductConfigMessageBuilder();\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t * uses the <code>DEFAULT</code> ProductConfigMessageSourceSubType\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tdefault ProductConfigMessage createInstanceOfProductConfigMessage(final String message, final String key,\n\t\t\tfinal ProductConfigMessageSeverity severity, final ProductConfigMessageSource source)\n\t{\n\t\treturn createInstanceOfProductConfigMessage(message, key, severity, source, ProductConfigMessageSourceSubType.DEFAULT);\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @param subType\n\t * optional sub type of the message source\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tProductConfigMessage createInstanceOfProductConfigMessage(String message, String key, ProductConfigMessageSeverity severity,\n\t\t\tProductConfigMessageSource source, ProductConfigMessageSourceSubType subType);\n\n\n\t/**\n\t * Create an instance of the <code>VariantConditionModel</code>\n\t *\n\t * @return an instance of the variant condition model\n\t */\n\tVariantConditionModel createInstanceOfVariantConditionModel();\n\n\t/**\n\t * @return class name of the {@link PriceSummaryModel} implementation\n\t */\n\tString getTargetClassNamePriceSummaryModel();\n\n\n\t/**\n\t * @return class name of the {@link PriceModel} implementation\n\t */\n\tString getTargetClassNamePriceModel();\n\n\t/**\n\t * @return class name of the {@link CsticGroupModel} implementation\n\t */\n\tString getTargetClassNameCsticGroupModel();\n\n\t/**\n\t * @return class name of the {@link CsticValueModel} implementation\n\t */\n\tString getTargetClassNameCsticValueModel();\n\n\t/**\n\t * @return class name of the {@link CsticModel} implementation\n\t */\n\tString getTargetClassNameCsticModel();\n\n\t/**\n\t * @return class name of the {@link InstanceModel} implementation\n\t */\n\tString getTargetClassNameInstanceModel();\n\n\t/**\n\t * @return class name of the {@link ConfigModel} implementation\n\t */\n\tString getTargetClassNameConfigModel();\n\n\t/**\n\t * @return class name of the {@link SolvableConflictModel} implementation\n\t */\n\tString getTargetClassNameSolvableConflictModel();\n\n\t/**\n\t * @return class name of the {@link ConflictingAssumptionModel} implementation\n\t */\n\tString getTargetClassNameConflictingAssumptionModel();\n\n\t/**\n\t * @return class name of the {@link VariantConditionModel} implementation\n\t */\n\tString getTargetClassNameVariantConditionModel();\n}", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "public Factory() {\n\t\tsuper();\n\t}", "public interface ModelFactory <ModelObject> {\n public void createElement(ModelObject object);\n}", "EisModel createEisModel();", "BehaviouralModelFactory getBehaviouralModelFactory();", "CsticModel createInstanceOfCsticModel();", "public abstract void create();", "InstanceModel createInstanceOfInstanceModel();", "public M create(P model);", "void create(Model model) throws Exception;", "public void create(){}", "public static MusicModel createModel() {\n return new MusicModelImpl();\n }", "public interface AbstractFactory {\n /**\n * Create cpu cpu.\n *\n * @return the cpu\n */\n Cpu createCpu();\n\n /**\n * Create main board main board.\n *\n * @return the main board\n */\n MainBoard createMainBoard();\n}", "public Model createBaseModel() {\n return ModelFactory.createDefaultModel();\n }", "public interface AbstractFactory<T> {\n /**\n * Create a new Object of type T\n * @return the created object\n */\n T create();\n}", "private ConcreteFactory() {}", "DataModel createDataModel();", "public Factory() {\n\t\tclassMap = new TreeMap<String,Class<T> >();\n\t}", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }", "public interface Factory<T> {\n T create();\n}", "T create();", "T create();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "public static SqliteModelFactory init()\n {\n try\n {\n SqliteModelFactory theSqliteModelFactory = (SqliteModelFactory)EPackage.Registry.INSTANCE.getEFactory(SqliteModelPackage.eNS_URI);\n if (theSqliteModelFactory != null)\n {\n return theSqliteModelFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new SqliteModelFactoryImpl();\n }", "interface Factory {\r\n /**\r\n * Create an instance of an agenda view model with the given saved\r\n * instance state.\r\n *\r\n * @param savedInstanceState previously saved state of the view model\r\n * @return the created agenda view model\r\n */\r\n AgendaViewModel create(Bundle savedInstanceState);\r\n }", "private EntityFactory() {}", "Klassenstufe createKlassenstufe();", "public interface Factory {\n Product create();\n}", "public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }", "@Override\n\tpublic void create() {\n\n\t}", "public abstract void create(T t);", "For createFor();", "CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }", "public static Factory factory() {\n return ext_dbf::new;\n }", "public interface Factory {\r\n}", "PriceModel createInstanceOfPriceModel();", "ZenModel createZenModel();", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public interface Creator<T> {\n\t\tpublic T create() throws APIException;\n\n\t\tpublic void destroy(T t);\n\n\t\tpublic boolean isValid(T t);\n\n\t\tpublic void reuse(T t);\n\t}", "public EntityFactoryImpl() {\n\t\tsuper();\n\t}", "DomainModel createDomainModel();", "@Override\n\tpublic void create () {\n\n\t}", "public interface Factory {\n LeiFeng createLeiFeng();\n}", "public void create() {\n\t\t\n\t}", "public static QuinzicalModel createInstance() throws Exception {\n\t\tif (instance == null) {\n\t\t\tinstance = new QuinzicalModel();\n\t\t}\n\t\treturn instance;\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static PetrinetmodelFactory init() {\r\n\t\ttry {\r\n\t\t\tPetrinetmodelFactory thePetrinetmodelFactory = (PetrinetmodelFactory)EPackage.Registry.INSTANCE.getEFactory(PetrinetmodelPackage.eNS_URI);\r\n\t\t\tif (thePetrinetmodelFactory != null) {\r\n\t\t\t\treturn thePetrinetmodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new PetrinetmodelFactoryImpl();\r\n\t}", "protected abstract ENTITY createEntity();", "public static UsermodelFactory init() {\r\n\t\ttry {\r\n\t\t\tUsermodelFactory theUsermodelFactory = (UsermodelFactory)EPackage.Registry.INSTANCE.getEFactory(UsermodelPackage.eNS_URI);\r\n\t\t\tif (theUsermodelFactory != null) {\r\n\t\t\t\treturn theUsermodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new UsermodelFactoryImpl();\r\n\t}", "ConfigModel createInstanceOfConfigModel();", "public abstract T create(T obj);", "public static Factory factory() {\n return ext_h::new;\n }", "public interface DebuggerModelFactory\n\t\textends ExtensionPoint, ConfigurableFactory<DebuggerObjectModel> {\n\n\t/**\n\t * Get the priority for selecting this factory by default for the given program\n\t * \n\t * <p>\n\t * A default factory is selected when the current factory and the last successful factory are\n\t * incompatible with the current program, or if this is the very first time connecting. Of those\n\t * factories compatible with the current program, the one with the highest priority (larger\n\t * numerical value) is selected. If none are compatible, then the current selection is left as\n\t * is.\n\t * \n\t * <p>\n\t * Note that negative priorities imply the factory is not compatible with the given program or\n\t * local system.\n\t * \n\t * @param program the current program, or null\n\t * @return the priority, higher values mean higher priority\n\t */\n\tdefault int getPriority(Program program) {\n\t\treturn 0;\n\t}\n\n\t/**\n\t * Check if this factory is compatible with the local system and given program.\n\t * \n\t * <p>\n\t * <b>WARNING:</b> Implementations should not likely override this method. If one does, it must\n\t * behave in the same manner as given in this default implementation: If\n\t * {@link #getPriority(Program)} would return a non-negative result for the program, then this\n\t * factory is compatible with that program. If negative, this factory is not compatible.\n\t * \n\t * @param program the current program, or null\n\t * @return true if compatible\n\t */\n\tdefault boolean isCompatible(Program program) {\n\t\treturn getPriority(program) >= 0;\n\t}\n}", "public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }", "public interface IFactory {\n IUser createUser();\n IDepartment createDepartment();\n}", "public static ParsedmodelFactory init() {\n\t\ttry {\n\t\t\tParsedmodelFactory theParsedmodelFactory = (ParsedmodelFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://parsedmetadata/1.0\"); \n\t\t\tif (theParsedmodelFactory != null) {\n\t\t\t\treturn theParsedmodelFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ParsedmodelFactoryImpl();\n\t}", "public interface SerializerFactory<T> {\n\t\n\t/** the method creates a new MessageSerializer.\n\t * \n\t * @return new object that implements the MessageSerializer interface. \n\t */\n MessageSerializer<T> create();\n}", "public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "Factory<? extends T> buildPersonFactory(String type);", "public PedidoFactoryImpl() {\n\t\tsuper();\n\t}", "public ProyectoFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public interface Creator {\n public abstract Item factoryMethod();\n public abstract Item factoryMethod(String name);\n public abstract Item factoryMethod(String name, List<Flower> flowerList);\n}", "public abstract ProductFactory getFactory();", "public Model() {\n\t}", "public Model() {\n\t}", "public LanterneFactoryImpl() {\n\t\tsuper();\n\t}", "public interface Factory {\n Animal createAnimal();\n}", "public interface AbstractFactory {\n Bmw produceBmw();\n Benz produceBenz();\n}", "public MystFactoryImpl()\r\n {\r\n super();\r\n }", "public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }", "public interface IFactory<T extends MaterialCastingRecipe> {\n T create(ResourceLocation id, String group, @Nullable Ingredient cast, int itemCost, IMaterialItem result,\n boolean consumed, boolean switchSlots);\n }", "private VegetableFactory() {\n }", "protected MoneyFactory() {\n\t}", "public EnotationFactoryImpl() {\n\t\tsuper();\n\t}", "public Model() {\n this(DSL.name(\"model\"), null);\n }", "public EcoreFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public TypeAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = TypePackage.eINSTANCE;\n\t\t}\n\t}", "interface Create {}", "public GameDomainFactory() {\r\n\t\t\r\n\t\tCreateGameDomain = new HashMap<String, GameDomainFactory.gameDomainCreator>();\r\n\t\tCreateGameDomain.put(\"TicTacToe\" , new ticTacToeCreator());\r\n\t\tCreateGameDomain.put(\"Reversi\", new CreatorReversi());\r\n\t}", "public abstract <T> T create(Object object, Class<T> clazz);", "public EcoreFactoryImpl() {\n super();\n }", "public static Factory factory() {\n return text::new;\n }", "public FvFactoryImpl() {\n\t\tsuper();\n\t}", "public abstract Product productFactory(String type);" ]
[ "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.70742077", "0.7051943", "0.6983852", "0.69748455", "0.6965496", "0.69568366", "0.69481784", "0.6860293", "0.6811446", "0.6807123", "0.6756206", "0.6694741", "0.6656823", "0.6654312", "0.6640736", "0.6595195", "0.6580549", "0.65715563", "0.6555794", "0.6534009", "0.648342", "0.64748156", "0.6450784", "0.6445946", "0.64300567", "0.6421489", "0.64043415", "0.6400982", "0.63907266", "0.63907266", "0.6368747", "0.6349325", "0.63468486", "0.6345672", "0.63069546", "0.6302681", "0.6292132", "0.6289528", "0.6275873", "0.6264616", "0.6250081", "0.623463", "0.62291795", "0.62248415", "0.6222761", "0.6219561", "0.62143695", "0.62126905", "0.62034976", "0.61920136", "0.61674654", "0.61650974", "0.6154887", "0.61427796", "0.61426824", "0.6140671", "0.61348015", "0.6117416", "0.6079516", "0.6065549", "0.60619617", "0.60616994", "0.6044366", "0.60355604", "0.60280776", "0.6026859", "0.6021375", "0.60200113", "0.60140157", "0.60013527", "0.5987638", "0.5981197", "0.59794974", "0.59472996", "0.59472996", "0.59399843", "0.5938128", "0.59361154", "0.59327817", "0.59254813", "0.59222776", "0.5919654", "0.59025806", "0.5900669", "0.5895235", "0.5894421", "0.5892311", "0.5877348", "0.58726925", "0.5863833", "0.58636236", "0.5861607", "0.585989", "0.58558" ]
0.0
-1
Returns a new object of class 'Data Set Term'.
QDataSetTerm createDataSetTerm();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TermData(String term)\n\t{\n\t\tthis.term = term;\n\t}", "GeneralTerm createGeneralTerm();", "TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }", "SingleTerm(Term t)\n {\n term = t;\n }", "public Terms() {}", "public Object clone() {\n \t\treturn new Term(this);\n \t}", "public Term(String t) {\n this.t = t;\n \n RepCheck();\n }", "QuoteTerm createQuoteTerm();", "public VocabularyTerms() {}", "QuoteTermAttribute createQuoteTermAttribute();", "protected Term createTermFrom(String tag) {\n\t\tTerm tmp = terms.getOrDefault(tag, new Term(tag, this, terms.size()));\n\t\tterms.put(tag, tmp);\n\t\t// termCounts.put(tmp, termCounts.getOrDefault(tmp,0)+1);\n\t\ttermsInCorpus += 1;\n\t\treturn tmp;\n\t}", "Term getTerm();", "public void set(Term t) {\n \t\ttry {\n \t\t\tsetFunctor(t.functor);\n \t\t\tterms = t.getDeepCopyOfTerms();\n \t\t} catch (Exception e) {\n \t\t\tSystem.err.println(\"Error setting value for term \");\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "abstract public TermDocs termDocs(Term t) throws IOException;", "public String getTerm() {\n return term;\n }", "public Term[] getTerms() { return terms; }", "public String getTerm(){\n return this.term;\n }", "public int getTermIndex() {return termIndex;}", "public AcademicTerm(int termIndex, Term term) {\n this.termIndex = termIndex;\n this.term = term;\n }", "private CategoryDataset createDataset( )\n\t {\n\t final DefaultCategoryDataset dataset = \n\t new DefaultCategoryDataset( ); \n\t \n\t dataset.addValue(23756.0, \"余杭\", \"闲林\");\n\t dataset.addValue(29513.5, \"余杭\", \"良渚\");\n\t dataset.addValue(25722.2, \"余杭\", \"瓶窑\");\n\t dataset.addValue(19650.9, \"余杭\", \"星桥\");\n\t dataset.addValue(19661.6, \"余杭\", \"崇贤\");\n\t dataset.addValue(13353.9, \"余杭\", \"塘栖\");\n\t dataset.addValue(25768.9, \"余杭\", \"勾庄\");\n\t dataset.addValue(12682.8, \"余杭\", \"仁和\");\n\t dataset.addValue(22963.1, \"余杭\", \"乔司\");\n\t dataset.addValue(19695.6, \"余杭\", \"临平\");\n\t \n\t return dataset; \n\t }", "public Term clone() {\n\t\treturn new Term(this.coefficient, this.exponent);\n\t}", "public synchronized static ComputeTermFrequencies createComputeAndPrintTermFrequency() \n\t{\n\t\treturn new ComputeTermFrequencies();\n\t}", "TermType getTermType();", "static TermVectorEntry of(TermsEnum te) throws IOException {\n Objects.requireNonNull(te);\n\n String termText = BytesRefUtils.decode(te.term());\n\n List<TermVectorEntry.TermVectorPosition> tvPositions = new ArrayList<>();\n PostingsEnum pe = te.postings(null, PostingsEnum.OFFSETS);\n pe.nextDoc();\n int freq = pe.freq();\n for (int i = 0; i < freq; i++) {\n int pos = pe.nextPosition();\n if (pos < 0) {\n // no position information available\n continue;\n }\n TermVectorPosition tvPos = TermVectorPosition.of(pos, pe);\n tvPositions.add(tvPos);\n }\n\n return new TermVectorEntry(termText, te.totalTermFreq(), tvPositions);\n }", "public static Term create(long termId) {\n\t\treturn getPersistence().create(termId);\n\t}", "private ASTQuery() {\r\n dataset = Dataset.create();\r\n }", "public Expression getTerm() {\n return term;\n }", "private void parseTerm() throws IOException {\r\n\t\tString line;\r\n\t\tTerm newTerm = new Term();\r\n\t\twhile((line=next(0))!=null) {\r\n\t\t\tif(line.startsWith(\"[\"))\r\n\t\t\t\t{\r\n\t\t\t\tthis.buffer=line;\r\n\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tint colon=line.indexOf(':');\r\n\t\t\tif(colon==-1) continue;\r\n\t\t\tif(line.startsWith(\"id:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.id = line.substring(colon+1).trim();\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"name:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.name=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"namespace:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.namespace=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\telse if(line.startsWith(\"def:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.def=nocomment(line.substring(colon+1));\r\n\t\t\t\tterms.addTerm(newTerm);\r\n\t\t\t\tif (newTerm.namespace.equals(\"molecular_function\")){\r\n\t\t\t\t\tdagMF.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"biological_process\")){\r\n\t\t\t\t\tdagBP.addVertex(newTerm);\t\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"cellular_component\")){\r\n\t\t\t\t\tdagCC.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"TERM WAS NOT ADDED, NO NAMESPACE!\");\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "ArrayList<Term> getTerms() {\n ArrayList<Term> terms = new ArrayList<>();\n String[] columns = {\"id\", \"name\", \"start_date\", \"end_date\"};\n Cursor cursor = db.query(\"term\", columns, null, null, null, null, null);\n while (cursor.moveToNext()) {\n Term term = new Term();\n term.setId(cursor.getInt(0));\n term.setName(cursor.getString(1));\n term.setStartDate(cursor.getString(2));\n term.setEndDate(cursor.getString(3));\n terms.add(term);\n }\n return terms;\n }", "public TermParser(){\n\t\tvar_map = new HashMap <String, Double>();\n\t\tvar_map.put(\"pi\", Math.PI);\n\t\tvar_map.put(\"e\", Math.E);\n\t\tclear();\n\t}", "abstract public TermEnum terms() throws IOException;", "abstract public TermEnum terms(Term t) throws IOException;", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\t\tresult.setValue(\"Linux\", 29);\n\t\tresult.setValue(\"Mac\", 20);\n\t\tresult.setValue(\"Windows\", 51);\n\t\treturn result;\n\n\t}", "public StreamTerm term() {\n return term;\n }", "public ComputeTermFrequencies() { super(); }", "public Token(String text, int start, int end, String typ) {\n termText = text;\n startOffset = start;\n endOffset = end;\n type = typ;\n }", "private Terms(){\n\t\t //this prevents even the native class from calling this ctor as well :\n\t\t throw new AssertionError();\n\t\t }", "public Value.Builder setTerm(java.lang.Integer value) {\n validate(fields()[14], value);\n this.term = value;\n fieldSetFlags()[14] = true;\n return this;\n }", "public AcademicHistory() {\n listOfTerms = new ArrayList<Term>();\n }", "@Override\n public String toString() {\n return \"ModelTerm{\" +\n \"termTitle='\" + termTitle + '\\'' +\n \", termStartDate=\" + termStartDate +\n \", termEndDate=\" + termEndDate +\n '}';\n }", "public abstract DataType<T> newInstance();", "public Token(String text, int start, int end) {\n termText = text;\n startOffset = start;\n endOffset = end;\n }", "public String getTermText() {\n return termText;\n }", "@JsonProperty(\"data_type\")\n public Term getDataType() {\n return dataType;\n }", "public java.lang.Integer getTerm() {\n return term;\n }", "public hu.blackbelt.epsilon.runtime.model.test1.data.DataModel build() {\n final hu.blackbelt.epsilon.runtime.model.test1.data.DataModel _newInstance = hu.blackbelt.epsilon.runtime.model.test1.data.DataFactory.eINSTANCE.createDataModel();\n if (m_featureNameSet) {\n _newInstance.setName(m_name);\n }\n if (m_featureEntitySet) {\n _newInstance.getEntity().addAll(m_entity);\n } else {\n if (!m_featureEntityBuilder.isEmpty()) {\n for (hu.blackbelt.epsilon.runtime.model.test1.data.util.builder.IDataBuilder<? extends hu.blackbelt.epsilon.runtime.model.test1.data.Entity> builder : m_featureEntityBuilder) {\n _newInstance.getEntity().add(builder.build());\n }\n }\n }\n return _newInstance;\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "public void setTerms(Term[] terms) { this.terms = terms; }", "public DataSet() {\n labels = new HashMap<>();\n locations = new HashMap<>();\n counter= new AtomicInteger(0);\n }", "public TreeItem(Symbol term) {\n\t\tsuper(term);\n\t\tdecideNorm = true;\n\t\tisNorm = true;\n\t}", "public Keyword() {\n\t}", "public java.lang.Integer getTerm() {\n return term;\n }", "public WordDictionary() {\n root = new TreeNode();\n }", "public static CategoryDataset createDataset() {\r\n DefaultCategoryDataset dataset = new DefaultCategoryDataset();\r\n dataset.addValue(1.0, \"First\", \"C1\");\r\n dataset.addValue(4.0, \"First\", \"C2\");\r\n dataset.addValue(3.0, \"First\", \"C3\");\r\n dataset.addValue(5.0, \"First\", \"C4\");\r\n dataset.addValue(5.0, \"First\", \"C5\");\r\n dataset.addValue(7.0, \"First\", \"C6\");\r\n dataset.addValue(7.0, \"First\", \"C7\");\r\n dataset.addValue(8.0, \"First\", \"C8\");\r\n dataset.addValue(5.0, \"Second\", \"C1\");\r\n dataset.addValue(7.0, \"Second\", \"C2\");\r\n dataset.addValue(6.0, \"Second\", \"C3\");\r\n dataset.addValue(8.0, \"Second\", \"C4\");\r\n dataset.addValue(4.0, \"Second\", \"C5\");\r\n dataset.addValue(4.0, \"Second\", \"C6\");\r\n dataset.addValue(2.0, \"Second\", \"C7\");\r\n dataset.addValue(1.0, \"Second\", \"C8\");\r\n dataset.addValue(4.0, \"Third\", \"C1\");\r\n dataset.addValue(3.0, \"Third\", \"C2\");\r\n dataset.addValue(2.0, \"Third\", \"C3\");\r\n dataset.addValue(3.0, \"Third\", \"C4\");\r\n dataset.addValue(6.0, \"Third\", \"C5\");\r\n dataset.addValue(3.0, \"Third\", \"C6\");\r\n dataset.addValue(4.0, \"Third\", \"C7\");\r\n dataset.addValue(3.0, \"Third\", \"C8\");\r\n return dataset;\r\n }", "public PersistentObject newPersistentObject() {\r\n return new Chm62edtHabitatSyntaxaPersist();\r\n }", "private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}", "public TermSet run() {\n\t\treturn new UCP(onset, new IE(offset, new CDS(onset, offset, \n\t\t\t\tsocial.getSocialHeuristic(), interactivity).run()).run()).run();\n\t}", "public LongTermTest()\r\n {\r\n super(new LongTermStorage());\r\n }", "private Morpheme() {\n syntacticCategory = null;\n features = ImmutableSortedSet.of();\n attributes = getAttributeSet(features);\n hashcode = Objects.hash(features, syntacticCategory);\n }", "public DataSet() {\r\n \r\n }", "protected Caret createCaret() {\n return new BasicCaret();\n }", "Set createSet();", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "private final Field makeField(String data) {\n Field result = null;\n\n if (termVector == null) {\n result = new Field(label, data, store, index);\n }\n else {\n result = new Field(label, data, store, index, termVector);\n }\n\n return result;\n }", "public String getTermCode() {\n return termCode;\n }", "public Concept getConcept(Term term) {\r\n String n = term.getName();\r\n Concept concept = concepts.get(n);\r\n if (concept == null)\r\n concept = new Concept(term, this); // the only place to make a new Concept\r\n return concept;\r\n }", "public TerminalSymbolFact(String name, ITokenizer tkz) {\r\n\t\tsuper(name, tkz);\r\n\t}", "public void makeInstance() {\n\t\t// Create the attributes, class and text\n\t\tFastVector fvNominalVal = new FastVector(2);\n\t\tfvNominalVal.addElement(\"ad1\");\n\t\tfvNominalVal.addElement(\"ad2\");\n\t\tAttribute attribute1 = new Attribute(\"class\", fvNominalVal);\n\t\tAttribute attribute2 = new Attribute(\"text\",(FastVector) null);\n\t\t// Create list of instances with one element\n\t\tFastVector fvWekaAttributes = new FastVector(2);\n\t\tfvWekaAttributes.addElement(attribute1);\n\t\tfvWekaAttributes.addElement(attribute2);\n\t\tinstances = new Instances(\"Test relation\", fvWekaAttributes, 1); \n\t\t// Set class index\n\t\tinstances.setClassIndex(0);\n\t\t// Create and add the instance\n\t\tInstance instance = new Instance(2);\n\t\tinstance.setValue(attribute2, text);\n\t\t// Another way to do it:\n\t\t// instance.setValue((Attribute)fvWekaAttributes.elementAt(1), text);\n\t\tinstances.add(instance);\n \t\tSystem.out.println(\"===== Instance created with reference dataset =====\");\n\t\tSystem.out.println(instances);\n\t}", "public Element compileTerm() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tString varName;\n\n\t\tElement termParent = document.createElement(\"term\");\n\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\ttokenType = jTokenizer.tokenType();\n\n\t\t// Case 1: ( expression )\n\n\t\tif (token.equals(\"(\")) {\n\t\t\t// (\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t\t// exp\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t// )\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t}\n\n\t\t// Case 2: unaryOp term\n\t\telse if (token.matches(\"\\\\-|~\")) {\n\n\t\t\t// unary op\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tString op = jTokenizer.returnTokenVal();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t\n\t\t\t//Since it is postfix, the term comes first\n\t\t\t\n\t\t\t// term\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileTerm());\n\n\t\t\t// appending the op\n\t\t\tif (op.equals(\"~\")) {\n\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t} else {\n\t\t\t\twriter.writeArithmetic(\"neg\");\n\t\t\t}\n\n\t\t}\n\t\t\n\t\t// Any constant or keyword\n\t\telse if (tokenType.matches(\"keyword|integerConstant|stringConstant\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t//pushing an integer constant\n\t\t\tif (tokenType.equals(\"integerConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", Integer.parseInt(token));\t\n\t\t\t}\n\t\t\t//For string, have to iterate along the length of the string and call string.append\n\t\t\telse if (tokenType.equals(\"stringConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", token.length());\n\t\t\t\twriter.writeCall(\"String.new\", 1);\n\n\t\t\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\t\t\twriter.writePush(\"constant\", (int) token.charAt(i));\n\t\t\t\t\twriter.writeCall(\"String.appendChar\", 2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t//Pushing the keyword onto the stack, depending on what it is\n\t\t\telse if (tokenType.equals(\"keyword\")) {\n\t\t\t\tif (token.equals(\"true\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t\t} else if (token.equals(\"this\")) {\n\t\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\t} else if (token.equals(\"false\") || token.equals(\"null\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Variable, Variable[expression] or subroutineCall\n\t\telse if (tokenType.equals(\"identifier\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\tvarName = jTokenizer.returnTokenVal();\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.returnTokenVal();\n\n\t\t\t// Case 1: Array dereferencing\n\t\t\tif (token.equals(\"[\")) {\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// push base id\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\n\t\t\t\t// Exp\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t\t// ]\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// base + offset\n\t\t\t\twriter.writeArithmetic(\"add\");\n\n\t\t\t\t// pop into that\n\t\t\t\twriter.writePop(\"pointer\", 1);\n\t\t\t\t// push value into stack\n\t\t\t\twriter.writePush(\"that\", 0);\n\t\t\t}\n\n\t\t\t// Case 2: variable/class.subroutine call\n\t\t\telse if (token.equals(\".\")) {\n\n\t\t\t\tboolean method = false;\n\n\t\t\t\t// .\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// subroutine name\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tString subName = jTokenizer.returnTokenVal();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\tString firstName = varName;\n\t\t\t\t//Similar to the compileDo method, have to distinguish between\n\t\t\t\t//method and function\n\t\t\t\tif (symTable.lookup(firstName) != null) {\n\t\t\t\t\tmethod = true;\n\t\t\t\t\twriter.writePush(symTable.lookup(firstName).kind, symTable.lookup(firstName).index);\n\t\t\t\t\tvarName = symTable.lookup(firstName).type;\n\t\t\t\t}\n\t\t\t\t// expressionList\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement compileExpression = compileExpressionList();\n\t\t\t\tint nArgs = compileExpression.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(compileExpression);\n\n\t\t\t\t// Checking if method or function\n\t\t\t\tif (method) {\n\t\t\t\t\tnArgs++;\n\t\t\t\t}\n\t\t\t\twriter.writeCall(varName + \".\" + subName, nArgs);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\t\t\t}\n\n\t\t\t// Case 3: function call\n\t\t\telse if (token.equals(\"(\")) {\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// expression list\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement node = compileExpressionList();\n\t\t\t\tint nArgs = node.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(node);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// Writing the VML for a method call\n\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\twriter.writeCall(className + \".\" + varName, ++nArgs);\n\t\t\t}\n\t\t\t// Case 4: Variable name.\n\t\t\telse {\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\t\t\t}\n\t\t}\n\t\treturn termParent;\n\t}", "protected Query newTermQuery(Term term, float boost) {\n Query q = new TermQuery(term);\n if (boost == DEFAULT_BOOST) {\n return q;\n }\n return new BoostQuery(q, boost);\n }", "public RelevanceSet() {\r\n \tinitComponents();\r\n //updateData();\r\n }", "public Value.Builder clearTerm() {\n term = null;\n fieldSetFlags()[14] = false;\n return this;\n }", "TD createTD();", "private LineDataSet createSet(){\n LineDataSet set = new LineDataSet(null, \"SPL Db\");\n set.setDrawCubic(true);\n set.setCubicIntensity(0.2f);\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n set.setColor(ColorTemplate.getHoloBlue());\n set.setLineWidth(2f);\n set.setCircleSize(4f);\n set.setFillAlpha(65);\n set.setFillColor(ColorTemplate.getHoloBlue());\n set.setHighLightColor(Color.rgb(244,117,177));\n set.setValueTextColor(Color.WHITE);\n set.setValueTextSize(10f);\n\n return set;\n }", "protected DTDSubset() { }", "public SemanticAnalyzer() {\n\t\tTab.currentScope.addToLocals(new Obj(Obj.Type, \"bool\", boolType));\n\n\t\t// CHR metoda\n\t\tcurrentMethod = Tab.chrObj;\n\t\tTab.openScope();\n\n\t\tObj varNode = Tab.insert(Obj.Var, \"i\", Tab.intType);\n\t\tcurrentMethod.setLevel(1);\n\t\tvarNode.setLevel(1);\n\t\tvarNode.setFpPos(0);\n\n\t\tTab.chainLocalSymbols(currentMethod);\n\t\tTab.closeScope();\n\t\treturnFound = false;\n\t\tcurrentMethod = null;\n\n\t\t// ORD metoda\n\t\tcurrentMethod = Tab.ordObj;\n\t\tTab.openScope();\n\n\t\tvarNode = Tab.insert(Obj.Var, \"ch\", Tab.charType);\n\t\tcurrentMethod.setLevel(1);\n\t\tvarNode.setLevel(1);\n\t\tvarNode.setFpPos(0);\n\n\t\tTab.chainLocalSymbols(currentMethod);\n\t\tTab.closeScope();\n\t\treturnFound = false;\n\t\tcurrentMethod = null;\n\t\t\n\t\t// LEN metoda\n\t\tcurrentMethod = Tab.lenObj;\n\t\tTab.openScope();\n\n\t\tvarNode = Tab.insert(Obj.Var, \"arr\", new Struct(Struct.Array, Tab.noType));\n\t\tcurrentMethod.setLevel(1);\n\t\tvarNode.setLevel(1);\n\t\tvarNode.setFpPos(0);\n\n\t\tTab.chainLocalSymbols(currentMethod);\n\t\tTab.closeScope();\n\t\treturnFound = false;\n\t\tcurrentMethod = null;\n\t}", "public Token(String terme, int tf) {\r\n\t\t\r\n\t\tthis.Terme = terme;\r\n\t\tthis.tf = tf;\r\n\t}", "@Override\n\tprotected void generateTerms() {\t\t\n\t\tString[] terms = this.data.substring(this.semiColonIndex+6,this.data.length()).split(\"(?=-|\\\\+)\"); // splits string by \"-\" or \"+\" into array of terms\n\t\t\n\t\tfor (String numeric_term : terms) {\n \t\t \n\t\t\tint power;\n \t try {\n \t\t power = Integer.parseInt(numeric_term.charAt(numeric_term.length()-1) + \"\");\n \t } catch (NumberFormatException e) {\n \t\t power = 1; // to the power of 1 same as having no power\n \t }\n \t \n \t\t int multiplier;\n \t try {\n \t\t multiplier = Integer.parseInt(numeric_term.substring(1,3)); // works if 2 digit multiplier\n \t } catch (NumberFormatException e) {\n \t\t multiplier = Integer.parseInt(numeric_term.charAt(1) + \"\"); // works if 1 digit multiplier\n \t }\n \t\t \n \t\t String action = numeric_term.charAt(0) + \"\";\n \t\t \n \t\t Term term = new Term(power, multiplier, action);\n \t\t equation.addTerm(term); // add terms to equation object \n\t\t} \n\n\t}", "public AnalysisDatasets() {\n }", "public void setTerm(Expression term) {\n this.term = term;\n }", "public PTreeCredalSet getInstance(Vector vars){\n return new PTreeCredalSet(vars);\n }", "public DataModelBuilder but() {\n DataModelBuilder _builder = create();\n _builder.m_featureEntitySet = m_featureEntitySet;\n _builder.m_entity = m_entity;\n _builder.m_featureEntityBuilder = m_featureEntityBuilder;\n _builder.m_featureNameSet = m_featureNameSet;\n _builder.m_name = m_name;\n return _builder;\n }", "public void setTerm(String value) {\r\n setAttributeInternal(TERM, value);\r\n }", "public List<CodeDefinitionSet> getTermdefinitionsList()\n {\n return termdefinitions;\n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tpublic Data(String table) throws EmptyDatasetException, SQLException, EmptySetException, NoValueException{\r\n\t\tTableData tableData = new TableData(new DbAccess());\r\n\t\tdata = tableData.getDistinctTransazioni(table);\r\n\t\t\r\n\t\tTableSchema tableSchema = new TableSchema(new DbAccess(),table);\r\n\t\tnumberOfExamples=data.size();\r\n\t\t\r\n\t\tQUERY_TYPE min,max;\r\n\t\tmin = QUERY_TYPE.MIN;\r\n\t\tmax = QUERY_TYPE.MAX;\r\n\t\t\r\n\t\tfor (int i=0;i<tableSchema.getNumberOfAttributes();i++) {\r\n\t\t\tif(!tableSchema.getColumn(i).isNumber()) {\r\n\t\t\t\texplanatorySet.add((T) new DiscreteAttribute(tableSchema.getColumn(i).getColumnName(),i,(TreeSet)tableData.getDistinctColumnValues(table, tableSchema.getColumn(i))));\r\n\t\t\t}else {\r\n\t\t\t\texplanatorySet.add((T) new ContinuousAttribute(tableSchema.getColumn(i).getColumnName(),i,(float)tableData.getAggregateColumnValue(table,tableSchema.getColumn(i),min),(float)tableData.getAggregateColumnValue(table,tableSchema.getColumn(i),max)));\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "public WordList() {\t\t//Default constructor\n\t}", "public Term getRandomTerm (String table) {\n // Select Query\n String selectQuery = \"SELECT * FROM \" + table + \" WHERE \" + KEY_TERM + \" NOT NULL AND \" +\n \"LENGTH(\" + KEY_TERM + \") <= 16 \" + \"ORDER BY RANDOM() LIMIT 1\";\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n if (cursor != null) { cursor.moveToFirst(); }\n\n Term term = new Term(Integer.parseInt(cursor.getString(0)), cursor.getString(1), cursor.getString(2), cursor.getString(3),\n cursor.getString(4), cursor.getString(5), Integer.parseInt(cursor.getString(6)));\n\n // return term\n return term;\n }", "public CLPObjective setTerm(double value) {\n\t\t_solver.setObjectiveOffset(value);\n\t\treturn this;\n\t}", "protected void parseTermData()\n {\n for (int i = 0; i < data.length; i++)\n {\n data[i] = Cdata[i];\n }\n }", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public QuestionTF() {}", "public RandomizedSet() {\n data = new ArrayList<>();\n val2Index = new HashMap<>();\n }", "public FrameBodyTPOS()\n {\n setObjectValue(DataTypes.OBJ_TEXT_ENCODING, TextEncoding.ISO_8859_1);\n setObjectValue(DataTypes.OBJ_TEXT, new PartOfSet.PartOfSetValue());\n }", "SemanticFactory getSemanticFactory();", "public DataTable() {\n\n\t\t// In this application, we use HashMap data structure defined in\n\t\t// java.util.HashMap\n\t\tdc = new HashMap<String, DataColumn>();\n\t}", "public boolean isTerm() {\n\t\treturn isTerm;\n\t}", "public static Term fetchByPrimaryKey(long termId) {\n\t\treturn getPersistence().fetchByPrimaryKey(termId);\n\t}", "DT createDT();" ]
[ "0.71153146", "0.67485887", "0.63501185", "0.63425463", "0.6321637", "0.61981595", "0.61591715", "0.6132942", "0.60764295", "0.60320634", "0.5997613", "0.58961976", "0.5753505", "0.5743068", "0.5743048", "0.5713974", "0.56812054", "0.56677794", "0.56181115", "0.56161296", "0.55844784", "0.55716157", "0.5521451", "0.5509522", "0.55088246", "0.5504158", "0.5479082", "0.5471845", "0.54613596", "0.54297954", "0.53888476", "0.53590715", "0.53371334", "0.5323573", "0.53122294", "0.529903", "0.5286267", "0.52848727", "0.5284685", "0.5284664", "0.52727324", "0.5217618", "0.52175635", "0.5204409", "0.51681775", "0.5157294", "0.51569504", "0.515684", "0.51523083", "0.5151239", "0.5142164", "0.51349086", "0.5131574", "0.51265544", "0.51165515", "0.5112709", "0.51125014", "0.51084805", "0.5105363", "0.5103887", "0.51025885", "0.5090862", "0.5089312", "0.50846255", "0.50722945", "0.50704545", "0.5067867", "0.50636923", "0.50461614", "0.5039603", "0.5035491", "0.50307953", "0.50280017", "0.50279546", "0.5026875", "0.50229955", "0.50149137", "0.50134397", "0.5003904", "0.4990774", "0.49873242", "0.49608496", "0.49604195", "0.49547368", "0.49509597", "0.49492118", "0.49473274", "0.4936677", "0.49338952", "0.49236113", "0.4922585", "0.4919684", "0.49188232", "0.49167696", "0.4912701", "0.491205", "0.48969144", "0.4886304", "0.48846844", "0.4879368" ]
0.8028396
0
Returns a new object of class 'Display Term'.
QDisplayTerm createDisplayTerm();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }", "Term getTerm();", "QPrintTerm createPrintTerm();", "GeneralTerm createGeneralTerm();", "public JPanel_Terminal() {\n // initialize components\n initComponents();\n\n // initialize JTerm\n JTermInputProcessor termProcessor = (String command, JTerm console) -> {\n if (jShellTransport == null) {\n updateShellTransport();\n }\n if (jShellTransport != null) {\n try {\n console.remove(command.length());\n jShellTransport.write(command);\n } catch (IOException ex) {\n jShellTransport = null;\n Log.log(Level.SEVERE, \"ShellTransportWrite\", ex);\n }\n }\n };\n\n jTerm = new JTerm(jTextPane_Jterm, termProcessor, Color.BLACK, Color.GREEN, new Font(Font.MONOSPACED, Font.BOLD, 12));\n }", "public ABLTextLCD TextLCD() {\r\n\t\treturn new ABLTextLCD(BrickFinder.getDefault().getTextLCD());\t \r\n\t}", "public TermsPanel()\n\t\t{\n\t\t\tsetLayout(new BorderLayout());\n\t\t\tcurTerm = 2;\n\t\t\tterm = new String(\"\");\n\t\t\tpicTerm = new String(\"\");\n\t\t\tgetTerm();\n\t\t\t\n\t\t\t//Initializing JTextArea sci with term\n\t\t\tsci = new JTextArea(term);\n\t\t\tFont sciFont = new Font(\"Serif\", Font.PLAIN, 30);\n\t\t\tsci.setFont(sciFont);\n\t\t\tsci.setLineWrap(true);\n\t\t\tsci.setWrapStyleWord(true);\n\t\t\tsci.setBackground(bCol);\n\t\t\tsci.setEditable(false);\n\t\t\t\n\t\t\t//Initializing JButtons next and previous\n\t\t\tnex = new JButton(\"NEXT\");\n\t\t\tprev = new JButton(\"PREVIOUS\");\n\t\t\tnex.addActionListener(this);\n\t\t\tprev.addActionListener(this);\n\t\t\t\n\t\t\t//Initializing JLabel pic with image\n\t\t\tpic = new JLabel();\n\t\t\tpic.setBackground(bCol);\n\t\t\tpic.setOpaque(true);\n\t\t\tpic.setHorizontalAlignment(JLabel.CENTER);\n\t\t\tpic.setVerticalAlignment(JLabel.CENTER);\n\t\t\timg = new ImageIcon(picTerm);\n\t\t\tpic.setIcon(img);\n\t\n\t\t\tadd(sci, BorderLayout.SOUTH);\n\t\t\tadd(nex, BorderLayout.EAST);\n\t\t\tadd(prev, BorderLayout.WEST);\n\t\t\tadd(pic, BorderLayout.CENTER);\n\t\t}", "public void printTerm(){\n\n // print fac node\n this.fac.printFac();\n\n // check selection\n if (this.selection == 2) {\n\n // print \"*\"\n System.out.print(\" * \");\n\n // print term node\n this.term.printTerm();\n\n }\n\n }", "public HelpDisplay build() {\n return new HelpDisplay(commands, delimiter);\n }", "public Console() {\n instance = this;\n\n this.setPrefViewportHeight(300);\n lb = new Label();\n lb.setWrapText(true);\n instance.setContent(lb);\n\n }", "public abstract Display getDisplay();", "public Object clone() {\n \t\treturn new Term(this);\n \t}", "public FontDisplay()\r\n\t{\r\n\t\t// Get all Fonts from the System\r\n\t\tGraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\r\n\t\tFont[] fonts = ge.getAllFonts();\r\n\r\n\t\t// Build a list of styled Font Names\r\n\t\tStringBuilder sb = new StringBuilder(\"<html><body style='font-size: 18px'>\");\r\n\t\tfor (Font font : fonts)\r\n\t\t{\r\n\t\t\tsb.append(\"<p style='font-family: \");\r\n\t\t\tsb.append(font.getFontName());\r\n\t\t\tsb.append(\"'>\");\r\n\t\t\tsb.append(font.getFontName());\r\n\t\t\tsb.append(\"</p>\");\r\n\t\t}\r\n\r\n\t\t// Add built list to EditorPane\r\n\t\tJEditorPane fontEP = new JEditorPane();\r\n\t\tfontEP.setMargin(new Insets(10, 10, 10, 10));\r\n\t\tfontEP.setContentType(\"text/html\");\r\n\t\tfontEP.setText(sb.toString());\r\n\t\tfontEP.setEditable(false);\r\n\r\n\t\t// Add EditorPane to ScrollPane\r\n\t\tJScrollPane scrollPane = new JScrollPane(fontEP);\r\n\t\tscrollPane.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));\r\n\r\n\t\t// Create a Label for the EditorPane\r\n\t\tJLabel titleLabel = new JLabel(\"Available Fonts on System\",\r\n SwingConstants.CENTER);\r\n\t\ttitleLabel.setFont(new Font(titleLabel.getFont().getName(), Font.BOLD, 17));\r\n\t\ttitleLabel.setForeground(new Color(21, 149, 211));\r\n\r\n\t\tImageIcon logo = new ImageIcon(\"Snowbound_Software_logo_full_2012.png\");\r\n\t\tJLabel logoLabel = new JLabel();\r\n\t\tlogoLabel.setIcon(logo);\r\n\t\tJPanel logoPane = new JPanel();\r\n\t\tlogoPane.setLayout(new BoxLayout(logoPane, BoxLayout.X_AXIS));\r\n\t\tlogoPane.add(logoLabel);\r\n\t\tlogoPane.add(Box.createHorizontalStrut(12));\r\n\t\tlogoPane.add(new JSeparator(JSeparator.VERTICAL));\r\n\t\tlogoPane.add(Box.createHorizontalStrut(6));\r\n\t\t// Add Label to Panel\r\n\t\tJPanel labelPane = new JPanel(new BorderLayout(0, 10));\r\n\t\tlabelPane.setBorder(BorderFactory.createEmptyBorder(12, 12, 0, 12));\r\n\t\tlabelPane.add(logoPane, BorderLayout.WEST);\r\n\t\tlabelPane.add(titleLabel, BorderLayout.CENTER);\r\n\t\tlabelPane.add(new JSeparator(), BorderLayout.SOUTH);\r\n\r\n\t\t// Add Panels to Frame\r\n\t\tthis.getContentPane().setLayout(new BorderLayout());\r\n\t\tthis.add(labelPane, BorderLayout.NORTH);\r\n\t\tthis.add(scrollPane, BorderLayout.CENTER);\r\n\r\n\t\t// Initialize Frame\r\n\t\tthis.setTitle(\"Snowbound Software :: Font Display\");\r\n\t\tthis.setSize(500, 650);\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t}", "public TextDisplay(){\n // Default values for all TextDisplays \n fontSize = 20.0f;\n fontColor = new Color(0, 0, 0);\n fieldWidth = 100;\n fieldHeight = 30;\n drawStringX = 0;\n drawStringY = 15;\n input = \"\";\n hasBackground = false;\n \n // TextDisplays' TextArea specifics\n borderWidth = 5;\n borderHeight = 5;\n borderColor = new Color(0, 0, 0, 128);\n backgroundColor = new Color (255, 255, 255, 128);\n }", "JTextArea getDisplay();", "QuoteTerm createQuoteTerm();", "public View create(Element elem)\n {\n if(isTextEval) {\n return new bluej.debugmgr.texteval.TextEvalSyntaxView(elem);\n }\n else {\n return new MoeSyntaxView(elem, errorMgr);\n }\n }", "public synchronized static ComputeTermFrequencies createComputeAndPrintTermFrequency() \n\t{\n\t\treturn new ComputeTermFrequencies();\n\t}", "public String getTerm() {\n return term;\n }", "public String getTerm(){\n return this.term;\n }", "public void displayWord() {\n System.out.println(String.valueOf(display));\n }", "@SuppressWarnings (\"unchecked\")\r\n\t@Override\r\n\tpublic <T> T create ()\r\n\t{\r\n\t\tFxCharmView fxView = new FxCharmView ();\r\n\t\tfxView.registerSpecialType (IntValueView.class, new FxIntDisplayFactory ());\r\n\t\tfxView.registerSpecialType (BooleanView.class, new FxBooleanDisplayFactory ());\r\n\t\tnew Stylesheet (\"skin/platform/tooltip.css\").applyToParent (fxView.getNode ());\r\n\t\treturn (T) fxView;\r\n\t}", "private void applyTermOptions() {\n\tif (term == null)\n\t return;\n\n term.setFixedFont(true);\n term.setFont(termOptions().getFont());\n\n\tterm.setBackground(termOptions().getBackground());\n\tterm.setForeground(termOptions().getForeground());\n\tterm.setHighlightColor(termOptions().getSelectionBackground());\n\tterm.setHistorySize(termOptions().getHistorySize());\n\tterm.setTabSize(termOptions().getTabSize());\n\n\tterm.setClickToType(termOptions().getClickToType());\n\tterm.setScrollOnInput(termOptions().getScrollOnInput());\n\tterm.setScrollOnOutput(termOptions().getScrollOnOutput());\n\tterm.setHorizontallyScrollable(!termOptions().getLineWrap());\n\n\t// If we change the font from smaller to bigger, the size\n\t// calculations go awry and the last few lines are forever hidden. \n\t//\n\t// One usually uses 'pack()' but it doesn't work because it\n\t// applies only to JFrames an under vulcan in MDI mode it had\n\t// catastrophic results (the whole window gets maximized, etc.)\n\t//\n\t// The following is a workaround used in the Rtc windows' \n\t// componentShown() as a fix for\n\t// 4652678 (Memory Usage window and Access Errors window are ...)\n\n\tsetSize(getPreferredSize());\n\tvalidate();\n }", "public Terminal() {\n initComponents();\n }", "private AbstractTerminal()\n\t{\n\t\tio = new SwingTextTerminal();\n\t}", "public ABLTextLCD TextLCD2(ABLFont f) {\r\n\t\treturn new ABLTextLCD(BrickFinder.getDefault().getTextLCD(f.inner));\r\n\t\r\n\t}", "@AutoEscape\n\tpublic String getDisplay();", "protected abstract String display();", "public abstract String display();", "public String display();", "TermType getTermType();", "public String getTermText() {\n return termText;\n }", "public static void display() {\n\n\t\tSystem.out.println(\"************************************************************\");\n\t\tSystem.out.println(\"* Omar Oraby\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* 900133379\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* Salma Talaat *\");\n\t\tSystem.out.println(\"* 900161560\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* Ahmed Elshafey *\");\n\t\tSystem.out.println(\"* 900131045 *\");\n\t\tSystem.out.println(\"* Programming in Java *\");\n\t\tSystem.out.println(\"* (2018 Fall) *\");\n\t\tSystem.out.println(\"************************************************************\");\n\t\tSystem.out.println();\n }", "Term getCurrentTerm() {\n return currentTerm;\n }", "public static HelpDisplayBuilder builder() {\n return new HelpDisplayBuilder();\n }", "String getDisplayText();", "public static TextField createTextField() {\t\t\n\t\tTextField text = new TextField();\n\t\ttext.setPrefWidth(200);\n\t\ttext.setPrefHeight(30);\n\t\treturn text;\n\t}", "public RtfEditorPane() {\r\n\t\tsetEditorKit(new SimpleRtfEditorKit(this));\r\n\t}", "OperationDisplay display();", "protected Display getDisplay() {\n return display;\n }", "SingleTerm(Term t)\n {\n term = t;\n }", "@Override\n public String toString() {\n return \"ModelTerm{\" +\n \"termTitle='\" + termTitle + '\\'' +\n \", termStartDate=\" + termStartDate +\n \", termEndDate=\" + termEndDate +\n '}';\n }", "@Override\r\n public final void display() {\r\n System.out.println(\"\\n\\t===============================================================\");\r\n System.out.println(\"\\tEnter the letter associated with one of the following commands:\");\r\n \r\n for (String[] menuItem : HelpMenuView.menuItems) {\r\n System.out.println(\"\\t \" + menuItem[0] + \"\\t\" + menuItem[1]);\r\n }\r\n System.out.println(\"\\t===============================================================\\n\");\r\n }", "private List<Turtle> createActiveDisplay() {\n\t\tactiveListDisplay = new FlowPane();\n\t\tactiveListDisplay.setPrefWrapLength(turtleView.getWidth());\n\t\tif (tManager != null) {\n\t\t\tactiveTurtles = tManager.getActiveTurtles();\n\t\t\tfor(Turtle turtle: activeTurtles) {\n\t\t\t\tLabel currentTurtle = new Label(Double.toString(turtle.getID()));\n\t\t\t\tturtleView.getChildren().add(currentTurtle);\n\t\t\t\tlabels.add(currentTurtle);\n\t\t\t\ttoggleTurtle(currentTurtle, turtle);\n\t\t\t}\n\t\t\treturn activeTurtles;\n\t\t}\n\t\treturn null;\n\t}", "public Terms() {}", "com.google.ads.googleads.v6.resources.SearchTermView getSearchTermView();", "public StreamTerm term() {\n return term;\n }", "public Display getDisplay() {\n return display;\n }", "public Object showDiscreteEditor() throws Exception {\n \t\treturn showEditor(EditorDisplayer.getEditor(this, EditorType.DISCRETE));\n \t}", "public Term(String t) {\n this.t = t;\n \n RepCheck();\n }", "TextField getTf();", "public static DisplayInput getInstance() {\n\t\tif (input == null) {\n\t\t\tsynchronized (DisplayInput.class) {\n\t\t\t\tif (input == null) {\n\t\t\t\t\tinput = new DisplayInput();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn input;\n\t}", "public Element compileTerm() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tString varName;\n\n\t\tElement termParent = document.createElement(\"term\");\n\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\ttokenType = jTokenizer.tokenType();\n\n\t\t// Case 1: ( expression )\n\n\t\tif (token.equals(\"(\")) {\n\t\t\t// (\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t\t// exp\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t// )\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t}\n\n\t\t// Case 2: unaryOp term\n\t\telse if (token.matches(\"\\\\-|~\")) {\n\n\t\t\t// unary op\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tString op = jTokenizer.returnTokenVal();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t\n\t\t\t//Since it is postfix, the term comes first\n\t\t\t\n\t\t\t// term\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileTerm());\n\n\t\t\t// appending the op\n\t\t\tif (op.equals(\"~\")) {\n\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t} else {\n\t\t\t\twriter.writeArithmetic(\"neg\");\n\t\t\t}\n\n\t\t}\n\t\t\n\t\t// Any constant or keyword\n\t\telse if (tokenType.matches(\"keyword|integerConstant|stringConstant\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t//pushing an integer constant\n\t\t\tif (tokenType.equals(\"integerConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", Integer.parseInt(token));\t\n\t\t\t}\n\t\t\t//For string, have to iterate along the length of the string and call string.append\n\t\t\telse if (tokenType.equals(\"stringConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", token.length());\n\t\t\t\twriter.writeCall(\"String.new\", 1);\n\n\t\t\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\t\t\twriter.writePush(\"constant\", (int) token.charAt(i));\n\t\t\t\t\twriter.writeCall(\"String.appendChar\", 2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t//Pushing the keyword onto the stack, depending on what it is\n\t\t\telse if (tokenType.equals(\"keyword\")) {\n\t\t\t\tif (token.equals(\"true\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t\t} else if (token.equals(\"this\")) {\n\t\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\t} else if (token.equals(\"false\") || token.equals(\"null\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Variable, Variable[expression] or subroutineCall\n\t\telse if (tokenType.equals(\"identifier\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\tvarName = jTokenizer.returnTokenVal();\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.returnTokenVal();\n\n\t\t\t// Case 1: Array dereferencing\n\t\t\tif (token.equals(\"[\")) {\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// push base id\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\n\t\t\t\t// Exp\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t\t// ]\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// base + offset\n\t\t\t\twriter.writeArithmetic(\"add\");\n\n\t\t\t\t// pop into that\n\t\t\t\twriter.writePop(\"pointer\", 1);\n\t\t\t\t// push value into stack\n\t\t\t\twriter.writePush(\"that\", 0);\n\t\t\t}\n\n\t\t\t// Case 2: variable/class.subroutine call\n\t\t\telse if (token.equals(\".\")) {\n\n\t\t\t\tboolean method = false;\n\n\t\t\t\t// .\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// subroutine name\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tString subName = jTokenizer.returnTokenVal();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\tString firstName = varName;\n\t\t\t\t//Similar to the compileDo method, have to distinguish between\n\t\t\t\t//method and function\n\t\t\t\tif (symTable.lookup(firstName) != null) {\n\t\t\t\t\tmethod = true;\n\t\t\t\t\twriter.writePush(symTable.lookup(firstName).kind, symTable.lookup(firstName).index);\n\t\t\t\t\tvarName = symTable.lookup(firstName).type;\n\t\t\t\t}\n\t\t\t\t// expressionList\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement compileExpression = compileExpressionList();\n\t\t\t\tint nArgs = compileExpression.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(compileExpression);\n\n\t\t\t\t// Checking if method or function\n\t\t\t\tif (method) {\n\t\t\t\t\tnArgs++;\n\t\t\t\t}\n\t\t\t\twriter.writeCall(varName + \".\" + subName, nArgs);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\t\t\t}\n\n\t\t\t// Case 3: function call\n\t\t\telse if (token.equals(\"(\")) {\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// expression list\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement node = compileExpressionList();\n\t\t\t\tint nArgs = node.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(node);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// Writing the VML for a method call\n\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\twriter.writeCall(className + \".\" + varName, ++nArgs);\n\t\t\t}\n\t\t\t// Case 4: Variable name.\n\t\t\telse {\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\t\t\t}\n\t\t}\n\t\treturn termParent;\n\t}", "public View(Controller controller) {\n\t\t// JTextEditor\n\t\tdoc = new DefaultStyledDocument();\n\t\teditor = new MyTextPane(this);\n\t\teditor.setBorder(new EtchedBorder());\n\t\teditor.setBorder(new EtchedBorder());\n\t\teditor.setDocument(doc);\n\t\teditor.addCaretListener(controller);\n\t\teditor.addMouseListener(controller);\n\t\tsetLayout(new BorderLayout());\n\t\tadd(new JScrollPane(editor), BorderLayout.CENTER);\n\t\t// Standard-Textdarstellung\n\t\tPLAIN = new SimpleAttributeSet();\n\t\tStyleConstants.setFontFamily(PLAIN, Model.PLAINFONT.getFontName());\n\t\tStyleConstants.setFontSize(PLAIN, Model.PLAINFONT.getSize());\n\t\tStyleConstants.setBold(PLAIN, true);\n\n\t\t// function word\n\t\tSTYLE = new SimpleAttributeSet();\n\t\tStyleConstants.setFontFamily(STYLE, Model.PLAINFONT.getFontName());\n\t\tStyleConstants.setFontSize(STYLE, Model.PLAINFONT.getSize());\n\t\tStyleConstants.setBold(STYLE, true);\n\n\t\t// marked word\n\t\tMARKEDSTYLE = new SimpleAttributeSet();\n\t\tStyleConstants\n\t\t\t\t.setFontFamily(MARKEDSTYLE, Model.PLAINFONT.getFontName());\n\t\tStyleConstants.setFontSize(MARKEDSTYLE, Model.PLAINFONT.getSize());\n\t\tStyleConstants.setBackground(MARKEDSTYLE, Model.MARKEDTEXT);\n\t\tStyleConstants.setBold(MARKEDSTYLE, true);\n\n\t\t// formatiert den Text\n\t\t// formatText(Model.getChapter().getIllocutionUnits());\n\t\t// Auskommentiert, da es sonst sonst Probleme bei der Gestaltung\n\t\t// der einzelnen Elemente gibt.\n\t\tsetText(Model.getChapter().toString());\n\t}", "public static Display getDisplay(){\r\n return THIS;\r\n }", "public Component display() {\n\t\treturn new JLabel(\"3 ;)\");\n\t}", "public Display getDisplay () {\n return Display.getDisplay(this);\n }", "public Display getDisplay () {\n return Display.getDisplay(this);\n }", "public TerminalSymbolFact(String name, ITokenizer tkz) {\r\n\t\tsuper(name, tkz);\r\n\t}", "public ABLGraphicsLCD GraphicsLCD() {\r\n\t\treturn new ABLGraphicsLCD(BrickFinder.getDefault().getGraphicsLCD());\r\n\t}", "public Etf() {\n\t}", "private Painter newPlainText() {\r\n\t\treturn p.textOutline(text, surface, fontSize, bold, italic, \r\n\t\t\t\tshade, null);\r\n\t}", "@SuppressWarnings(\"rawtypes\")\n\tpublic final TextTerminal getTerminal()\n\t{\n\t\treturn io;\n\t}", "QKeyListTerm createKeyListTerm();", "abstract public TermDocs termDocs(Term t) throws IOException;", "public AlleleFreq(FormCreator f) {\r\n\t\tsuper(f, name);\r\n\t\tpack();\r\n\t\tsetVisible(true);\r\n\t}", "public BubbleDisplay createBubbleDisplay()\n\t{\t\n\t\tbubbleDisplay = new BubbleDisplay();\n\t\treturn bubbleDisplay;\n\t}", "static TermVectorEntry of(TermsEnum te) throws IOException {\n Objects.requireNonNull(te);\n\n String termText = BytesRefUtils.decode(te.term());\n\n List<TermVectorEntry.TermVectorPosition> tvPositions = new ArrayList<>();\n PostingsEnum pe = te.postings(null, PostingsEnum.OFFSETS);\n pe.nextDoc();\n int freq = pe.freq();\n for (int i = 0; i < freq; i++) {\n int pos = pe.nextPosition();\n if (pos < 0) {\n // no position information available\n continue;\n }\n TermVectorPosition tvPos = TermVectorPosition.of(pos, pe);\n tvPositions.add(tvPos);\n }\n\n return new TermVectorEntry(termText, te.totalTermFreq(), tvPositions);\n }", "Astro namedTerm(String tagName, AstroArg args);", "public Display getDisplay() {\n return Display.getDisplay(this);\n }", "@Override\n\tpublic void display() {\n\t\t\n\t}", "@Override\n\tpublic void display() {\n\t\t\n\t}", "public void display() {\n\t\t\n\t}", "public void display() {\n\t\t\n\t}", "public void displayRequestedTermCollapsed(Term term, int position) {\n View collapsedTerm = getActivity().getLayoutInflater().inflate(R.layout.term_display_collapsed, null);\n ((TextView) collapsedTerm.findViewById(R.id.term_title_collapsed)).setText(term.getTitle()); // title\n\n String langage = term.getLangage();\n String category = term.getCategory();\n ((TextView) collapsedTerm.findViewById(R.id.term_type_langage_collapsed))\n .setText(\"\" + (category != null ? \", \" + category : \"\") + (langage != null ? \", \" + langage : \"\")); //category and langage if any\n\n StringBuilder builder = new StringBuilder();\n List<Domain> domains = term.getDomainList();\n for (int i = 0; i < domains.size(); i++) {\n builder.append(domains.get(i).getTitle().toUpperCase());\n if (i != domains.size() - 1 && domains.size() > 1) {\n builder.append(\" - \");\n }\n }\n List<Subdomain> subdomains = term.getSubdomainList();\n if (subdomains.size() > 1) { // so you dont add the separator\n builder.append(\" / \");\n }\n for (int i = 0; i < subdomains.size(); i++) {\n builder.append(subdomains.get(i).getTitle().toUpperCase());\n if (i != subdomains.size() - 1 && subdomains.size() > 1) {\n builder.append(\" - \");\n }\n }\n ((TextView) collapsedTerm.findViewById(R.id.term_domains_subdomains_collapsed)).setText(builder.toString());\n builder = new StringBuilder();\n\n if (term.getDefinition()!=null && term.getDefinition().length() > 40) {\n ((TextView) collapsedTerm.findViewById(R.id.term_definition_short_collapsed)).setText(term.getDefinition().substring(0, 40) + \"...\");\n } else {\n ((TextView) collapsedTerm.findViewById(R.id.term_definition_short_collapsed)).setText(term.getDefinition());\n }\n\n List<EquivalentTerm> equivalentTerms = term.getEquivalentTermList();\n for (int i = 0; i < equivalentTerms.size(); i++) {\n builder.append(equivalentTerms.get(i).getTitle());\n if (i != equivalentTerms.size() - 1 && equivalentTerms.size() > 1) {\n builder.append(\", \");\n }\n }\n ((TextView) collapsedTerm.findViewById(R.id.term_equivalents_collapsed)).setText(builder.toString());\n\n collapsedTerm.setOnClickListener(this);\n\n ViewUtil.addViewToParent((ViewGroup) view.findViewById(R.id.main_term_container), collapsedTerm, position);\n }", "public Entry() {\n this(GtkEntry.createEntry());\n }", "public Display()\n {\n phrase = \"0\";\n screen = new char[1];\n }", "public Expression getTerm() {\n return term;\n }", "protected JTextField makeTextField() {\n JTextField textField = new JTextField(textFieldWidth);\n textField.setFont(new Font(QuizAppUtilities.UI_FONT, Font.PLAIN, 24));\n\n return textField;\n }", "public boolean isTerm() {\n\t\treturn isTerm;\n\t}", "public VocabularyTerms() {}", "public String display(){\n return \"\\tId: \" + id + \"\\n\" +\n \"\\tName: \" + name + \"\\n\" +\n \"\\tDescription: \" + description + \"\\n\" +\n \"\\tTeacher(s): \" + teacherString() + \"\\n\";\n }", "public TextlineModel() {\n\t\tobox = new OrientedBox(0,0,0,0,0);\n\t\tocclusions = new ArrayList();\n\t\twordOffsets = new ArrayList();\n\t\tsetText(\"\");\n\t\ttextPointer = null;\n\t}", "public ViewFactory getViewFactory() {\n EditorKit kit = getEditorKit(editor);\n ViewFactory f = kit.getViewFactory();\n if (f != null) {\n return f;\n }\n return BasicTextUI.this;\n }", "public interface LCDDisplay {\n\n /**\n * Clears the display\n */\n public void clear();\n\n /**\n * Sets the cursor to the home position\n */\n public void cursorHome();\n\n /**\n * Outputs the given at the current cursor position\n * @param s string to output\n */\n public void print(String s);\n\n /**\n * Outputs a single character at the current cursor position\n * @param c character to output\n */\n public void putc(char c);\n\n /**\n * Sets the cursor to a given position\n * @param row row\n * @param col column\n */\n public void setCursor(int row, int col);\n \n /**\n * Moves the cursor to the left by one position\n */\n public void moveCursorLeft();\n \n /**\n * Moves the cursor to the right by one position\n */\n public void moveCursorRight();\n \n /**\n * Shifts left by one position\n */\n public void moveShiftLeft();\n \n /**\n * Shifts right by one position\n */\n public void moveShiftRight();\n\n /**\n * Disables cursor blinking\n */\n public void cursorBlinkOff();\n\n /**\n * Enables cursor blinking\n */\n public void cursorBlinkOn();\n\n /**\n * Disables the visual cursor\n */\n public void cursorOff();\n\n /**\n * Enables the visual cursor\n */\n public void cursorOn();\n\n /**\n * Disables the display\n */\n public void displayOff();\n\n /**\n * Enables the display\n */\n public void displayOn();\n \n}", "public void display() {\n System.out.println(toString());\n }", "public Menu displayMenu() {\n return new CMDDisplayMenu(agg).execute();\n }", "public int getTermIndex() {return termIndex;}", "public void executeView()\n\t{\n\t\tString cmd = \"\";\n\t\tString opar = Deducer.getUniqueName(\"opar\");\n\t\tcmd += (opar + \" <- par()\"); //save the original margin parameters\n\t\tcmd += (\"\\npar(mar=c(8, 4, 4, 0.5))\"); //give the plot more space at the bottom for long words.\n\t\tcmd += (\n\t\t\t\t\"\\nbarplot(\" \n\t\t\t\t+ \n\t\t\t\ttfDialog.getTermFreqCall(this.getExtraTermFreqArgs()) + \",\" \n\t\t\t\t+\n\t\t\t\t\"cex.names=0.8,\" //make the terms a bit smaller\n\t\t\t\t+\n\t\t\" las=2);\");\n\t\tcmd += (\"\\npar(\"+ opar +\")\");\n\t\tDeducer.execute(cmd);\n\t\tDeducer.execute(\"dev.set()\", false); //give the plot focus\n\t\t\n\t\t\n\t}", "public JPanel buildConsole()\n\t{\n\t\tJPanel output = new JPanel(new BorderLayout());\n\t\tString hold = \"\";\n\t\t\n output.setBorder (new TitledBorder(new EtchedBorder(),\"Console\")); //Create the border\n output.setPreferredSize(new Dimension(50,150)); //Set the size of the JPanel\n console.insert(hold,0);\n console.setLineWrap(true);\n console.setWrapStyleWord(true);\n console.setEditable(false); //Does not allow the user to edit the output\n JScrollPane Cscroll = new JScrollPane (console); //Create a JScrollPane object\n Cscroll.setVerticalScrollBarPolicy ( ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED ); //Set the scroll bars to appear when necessary\n output.add(Cscroll); //Add the scroll to the JPanel\n textField = new JTextField();\n output.add(BorderLayout.PAGE_END, textField);\n \n\t\treturn output;\n\t}", "public Term getContent() {\n return content;\n }", "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "public ClockDisplay()\r\n\t{\t\t\r\n\t\t\r\n\t\tthis.numberDisplay1 = new NumberDisplay();\r\n\t}", "public Display()\n {\n setSize(W, H);\n setBackground(Color.BLACK);\n }", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "default String display() { //just wanted to try out default methods we learned in class here-- abstract format below\r\n\t\treturn \"Nothing to show here\";\r\n\t}", "@Override\n\tpublic void display() {\n\n\t}", "@Override\n\tpublic void display() {\n\n\t}", "@Override\n\tpublic void display() {\n\n\t}" ]
[ "0.6307475", "0.6167432", "0.60646784", "0.6019628", "0.59768116", "0.59768075", "0.5816257", "0.5806959", "0.5763572", "0.57441014", "0.5648876", "0.56038946", "0.55772114", "0.55393445", "0.55050975", "0.54547393", "0.5444184", "0.5431673", "0.5392892", "0.5366448", "0.5356923", "0.53489107", "0.53388286", "0.5332341", "0.5308922", "0.5307328", "0.52935606", "0.5284477", "0.5232116", "0.5228912", "0.51892704", "0.51670444", "0.5165993", "0.5157512", "0.51557785", "0.5149934", "0.5148668", "0.5146505", "0.5135142", "0.5116902", "0.51121825", "0.5105478", "0.5101466", "0.5096692", "0.5085612", "0.50649214", "0.50630033", "0.50611204", "0.50529104", "0.50477713", "0.5043092", "0.5038825", "0.5030929", "0.50284195", "0.50249755", "0.5022562", "0.5007636", "0.5007636", "0.49998522", "0.4999628", "0.4976274", "0.49571526", "0.4937433", "0.49337468", "0.4931371", "0.49281943", "0.49267364", "0.4924692", "0.49245912", "0.4920844", "0.49124825", "0.49124825", "0.49071267", "0.49071267", "0.49052316", "0.49044597", "0.49022058", "0.49006805", "0.48979747", "0.48975798", "0.48949614", "0.48836118", "0.48833075", "0.4880216", "0.4879167", "0.4875121", "0.48652956", "0.48630995", "0.48547786", "0.4846375", "0.48458728", "0.48417696", "0.48417696", "0.48378277", "0.4837795", "0.4836032", "0.48347047", "0.4823292", "0.4823292", "0.4823292" ]
0.79128414
0
Returns a new object of class 'Key List Term'.
QKeyListTerm createKeyListTerm();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VocabularyTerms() {}", "public Terms() {}", "public int getTermIndex() {return termIndex;}", "public WordList() {\t\t//Default constructor\n\t}", "@Override Iterator<K> newKeyIterator() {\n return new KeyIterator();\n }", "QuoteTerm createQuoteTerm();", "public KeyedEntry() { }", "Term getTerm();", "private static interface T {@Symbolic Term.List t();}", "Set<Keyword> listKeywords();", "private PSKeyword createKeyword(String index)\n {\n PSKeyword keyword = new PSKeyword(\"label_\" + index, \n \"description_\" + index, index);\n keyword.setGUID(new PSGuid(PSTypeEnum.KEYWORD_DEF, 1001));\n List<PSKeywordChoice> choices = new ArrayList<PSKeywordChoice>();\n for (int i=0; i<3; i++)\n {\n PSKeywordChoice choice = new PSKeywordChoice();\n choice.setLabel(\"choice_\" + index + \".\" + i);\n choice.setDescription(\"description_\" + index + \".\" + i);\n choice.setValue(\"1.\" + i);\n choice.setSequence(i);\n \n choices.add(choice);\n }\n keyword.setChoices(choices);\n \n return keyword;\n }", "public Object clone() {\n \t\treturn new Term(this);\n \t}", "public List getTermList() {\n\t\tif (termList == null) {\n\t\t\ttermList = new ArrayList();\n\t\t\tSet termSet = getTermMap().keySet();\n\t\t\tfor (Iterator i = termSet.iterator(); i.hasNext();) {\n\t\t\t\ttermList.add((String) i.next());\n\t\t\t}\n\t\t\tCollections.sort(termList);\n\t\t}\n\t\treturn termList;\n\t}", "@Id\n @Column(name=\"term_key\")\n public int getTermKey() {\n\treturn termKey;\n }", "TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }", "Lista<K> keySet();", "@Override\r\n\tprotected Keywords getNewObject() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Iterator getKeyIterator() {\n\t\treturn new KeyIterator();\n\t}", "private void setupKeywordHashTable() {\n \tthis.keywordHashTable = new Hashtable<>();\n\n this.keywordHashTable.put(\"begin\", \"BeginKwTK\");\n this.keywordHashTable.put(\"end\", \"EndKwTK\");\n this.keywordHashTable.put(\"loop\", \"LoopKwTK\");\n this.keywordHashTable.put(\"void\", \"VoidKwTK\");\n this.keywordHashTable.put(\"var\", \"VarKwTK\");\n this.keywordHashTable.put(\"return\", \"ReturnKwTK\");\n this.keywordHashTable.put(\"in\", \"InKwTK\");\n this.keywordHashTable.put(\"out\", \"OutKwTK\");\n this.keywordHashTable.put(\"program\", \"ProgramKwTK\");\n this.keywordHashTable.put(\"iffy\", \"IffyKwTK\");\n this.keywordHashTable.put(\"then\", \"ThenKwTK\");\n this.keywordHashTable.put(\"let\", \"LetKwTK\");\n this.keywordHashTable.put(\"data\", \"DataKwTK\");\n }", "public static /*! #if ($TemplateOptions.KTypeGeneric) !*/ <KType> /*! #end !*/\n ChainedKTypeList<KType> newInstance()\n {\n return new ChainedKTypeList<KType>();\n }", "GeneralTerm createGeneralTerm();", "public TermsList getTermsList() {\n\t\treturn termsList;\n\t}", "public KeyGenerator(SinglyLinkedList wList) {\n generateKey(wList);\n }", "WordList(){\r\n\t\tm_words = new HashMap();\r\n\t}", "ArrayList<Term> getTerms() {\n ArrayList<Term> terms = new ArrayList<>();\n String[] columns = {\"id\", \"name\", \"start_date\", \"end_date\"};\n Cursor cursor = db.query(\"term\", columns, null, null, null, null, null);\n while (cursor.moveToNext()) {\n Term term = new Term();\n term.setId(cursor.getInt(0));\n term.setName(cursor.getString(1));\n term.setStartDate(cursor.getString(2));\n term.setEndDate(cursor.getString(3));\n terms.add(term);\n }\n return terms;\n }", "public Term[] getTerms() { return terms; }", "public WordList() {\n\t\twordList = new ArrayList<>();\n\t\t// TODO Add your code here\n\t}", "public Iterator<K> getKeyIterator() \n { \n Iterator<K> myIterator = new KeyIterator(this);\n return myIterator; \n }", "private void createTokenIndex(){\n\t\tLinkedList<String> tokens = new LinkedList<>(tokenDict.keySet());\n\t\tArrayList<ArrayList<Integer>> vals = new ArrayList<>(tokenDict.values());\n\t\tint k = 8;\n\n\t\tKFront kf = new KFront(true);\n\t\tkf.createKFront(k, tokens);\n\n\t\tTokensIndex tIdx = new TokensIndex(k, this.dir);\n\t\ttIdx.insertData(kf.getTable(), vals, kf.getConcatString());\n\n\t\tsaveToDir(TOKEN_INDEX_FILE, tIdx);\n\t}", "@Override\n\tpublic Set<K> keySet() {\n\t\t// TODO\n\t\treturn new KeyView();\n\t}", "public MultiKey() {}", "protected Term createTermFrom(String tag) {\n\t\tTerm tmp = terms.getOrDefault(tag, new Term(tag, this, terms.size()));\n\t\tterms.put(tag, tmp);\n\t\t// termCounts.put(tmp, termCounts.getOrDefault(tmp,0)+1);\n\t\ttermsInCorpus += 1;\n\t\treturn tmp;\n\t}", "public KeypointNode()\r\n {\r\n keys = new LinkedList();\r\n }", "QuoteTermAttribute createQuoteTermAttribute();", "protected SafeHashMap.KeySet instantiateKeySet()\n {\n return new KeySet();\n }", "public Object create(String key_letters) throws XtumlException;", "public void makeQueryTermList() {\n for (int i = 0; i < this.stemmed_query.size(); i++) {\n boolean added = false;\n String curTerm = this.stemmed_query.get(i);\n for (int j = 0; j < this.query_terms_list.size(); j++) {\n if (this.query_terms_list.get(j).strTerm.compareTo(curTerm) == 0) {\n this.query_terms_list.get(j).timeOccur++;\n added = true;\n break;\n }\n }\n if (added == false) {\n this.query_terms_list.add(new QueryTerm(curTerm));\n }\n }\n }", "public SymbolTable(){\r\n\t\tthis(INIT_CAPACITY);\r\n\t}", "public WordDictionary() {\n root = new TreeNode();\n }", "public Term nameToListedTerm(String name) {\r\n Concept concept = concepts.get(name);\r\n if (concept != null)\r\n return concept.getTerm(); // Concept associated Term\r\n return operators.get(name);\r\n }", "@Override\n\t\tpublic int hashCode() {\n\t\t\treturn mTerm.hashCode();\n\t\t}", "void createKeyword(String name);", "public NodeKey createNodeKey();", "public KeyedEntry(String label)\n\t{\n\t\tthis.label = label;\n\t}", "public Dictionary () {\n\t\tsuper();\n\t\t//words = new ArrayList < String > () ;\n\t}", "@Override\n\t\tpublic Text createKey() {\n\t\t\treturn null;\n\t\t}", "public WordDictionary() {\n root = new TrieNode('#');\n }", "public WordDictionary() {\n \troot=new TrieNode(); \n \n }", "public List<RIOntoTerm> getRIontoTermsForKeyWord (String keyWord) throws PreferencesException;", "ImmutableList<SchemaOrgType> getKeywordsList();", "public WordDictionary() {\n root = new TrieNode();\n }", "public WordDictionary() {\n root = new TrieNode();\n }", "public WordDictionary() {\n root = new TrieNode();\n }", "public String getTerm(){\n return this.term;\n }", "public WordDictionary() {\n root=new TrieNode();\n }", "SingleTerm(Term t)\n {\n term = t;\n }", "public synchronized static ComputeTermFrequencies createComputeAndPrintTermFrequency() \n\t{\n\t\treturn new ComputeTermFrequencies();\n\t}", "@Override\r\n\tpublic Iterator<Key> iterator() {\n\t\treturn new ListIterator();\r\n\t}", "public java.util.List<KEY> childKeyList()\n\t{\n\t\tjava.util.List<KEY> childKeyList = new java.util.ArrayList<KEY>();\n\n\t\treturn ChildKeyList (\n\t\t\tthis,\n\t\t\tchildKeyList\n\t\t) ? childKeyList : null;\n\t}", "public ABLKeys Keys() {\r\n\t\treturn new ABLKeys(BrickFinder.getDefault().getKeys());\r\n\t}", "QDisplayTerm createDisplayTerm();", "public LocalTermDictionary getLocalTermDictionary()\n {\n return AceDictionary.getInstance();\n }", "abstract public TermDocs termDocs(Term t) throws IOException;", "private LowercaseWordList() {\n\n }", "List<String> getKeywords() {\n return newKeywords;\n }", "public Dictionary ( ArrayList < String > listOfWords ) {\n\t\tsuper(listOfWords.get((listOfWords.size()-1)/2));\n\t\t\n\t\t//store words list as binary tree\n\t\t//starts with left side then with right\n\t\tint start = 0;\n\t\tint end = listOfWords.size()-1;\n\t\tint mid = (start+end)/2;\n\t\tmakeTree(listOfWords, start, mid-1);\n\t\tmakeTree(listOfWords, mid+1, end);\n\t\t\n\t\t\n\t\t/**old code written by Professor below\n\t\t * \n\t\t */\n\t\t//words = listOfWords;\n\t\t//if (null == words) {\n\t\t//\twords = new ArrayList <String> ();\n\t\t//}\n\t\t\n\n\t\t\n\t}", "public TextInputList() {\n\n\t}", "QDataSetTerm createDataSetTerm();", "public Set<K> keySet() {\n\t\treturn new KeySet();\n\t}", "private JPanel createScrollPaneKeyWords() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Keywords List \", TitledBorder.LEFT, TitledBorder.TOP));\n\n this.keywordList = demonstrationApplicationController.getKeywordsList();\n this.jListKeyword = new JList(new ModelListSelectable(keywordList));\n\n JScrollPane scrollPane = new JScrollPane(jListKeyword);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }", "public AcademicHistory() {\n listOfTerms = new ArrayList<Term>();\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 String getTerm() {\n return term;\n }", "public Keyword() {\n\t}", "public Key()\n {\n name = \"\";\n fields = new Vector<String>();\n options = new Vector<String>();\n isPrimary = false;\n isUnique = false;\n }", "public AcademicTerm(int termIndex, Term term) {\n this.termIndex = termIndex;\n this.term = term;\n }", "public List<K> keys();", "eList()\r\n {\r\n head = null;\r\n keyword = new String();\r\n }", "public TreeItem(Symbol term) {\n\t\tsuper(term);\n\t\tdecideNorm = true;\n\t\tisNorm = true;\n\t}", "public Dictionary()\n\t{\n\t\tfor(Character i = 97; i<=122;i++)\n\t\t\tthis.put(i,new ArrayList<DictionaryElement>());\n\t\t\t\n\t}", "@Override\n\t\tpublic Iterator<Word> iterator() {\n\t\t\treturn new HashTableIterator();\n\t\t}", "private Terms(){\n\t\t //this prevents even the native class from calling this ctor as well :\n\t\t throw new AssertionError();\n\t\t }", "@Override\n\tpublic Iterator<Key> iterator() {\n\t\treturn new ListIterator<Key>() {\n\t\t\tNode temp = getFirstNode();\n\t\t\t@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn temp.next != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Key next() {\n\t\t\t\tKey k = temp.next.key;\n\t\t\t\ttemp = temp.next;\n\t\t\t\treturn k;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean hasPrevious() {\n\t\t\t\treturn !temp.equals(getFirstNode());\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Key previous() {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int nextIndex() {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int previousIndex() {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void remove() {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void set(Key key) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void add(Key key) {\n\n\t\t\t}\n\t\t};\n\t}", "public MyHashTable( )\r\n\t{\r\n\t\tthis(DEFAULTTABLESIZE);\r\n\t\t\r\n\t\t\t\r\n\t}", "public MyList() {\n this(\"List\");\n }", "public WordDictionary() {\n \n \n }", "public ArrayList<K> keySet() {\n\t\t\treturn claves;\n\t\t}", "public interface Key<T> {\n String getName();\n Class<T> getType();\n\n static <T> Key<T> of(Class<T> type) {\n return of(type.getName(), type);\n }\n\n static <T> Key<T> of(String name, Class<T> type) {\n return new Key<T>() {\n @Override\n public String getName() {\n return name;\n }\n\n @Override\n public Class<T> getType() {\n return type;\n }\n };\n }\n }", "public List<TermListItem> getAllTermListItems(String table) {\n List<TermListItem> termListItems = new ArrayList<TermListItem>();\n\n // Select All Query\n String selectQuery = \"SELECT \" + KEY_ID + \", \" + KEY_TERM + \" FROM \" + table + \" ORDER BY \" + KEY_TERM;\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 if (!cursor.getString(1).isEmpty()) {\n TermListItem termListItem = new TermListItem(Integer.parseInt(cursor.getString(0)), cursor.getString(1));\n // Adding term to list\n termListItems.add(termListItem);\n }\n } while (cursor.moveToNext());\n }\n\n // return term list\n return termListItems;\n }", "public WordDictionary()\n {\n root = new TrieNode1();\n\n }", "public Term clone() {\n\t\treturn new Term(this.coefficient, this.exponent);\n\t}", "public SymbolTable()\r\n {\r\n // Create the tables stack and add the top level\r\n tables = new ArrayDeque<HashMap<String,T>>();\r\n tables.add( new HashMap<String,T>() );\r\n \r\n // Ditto with the counts\r\n counts = new ArrayDeque<Integer>();\r\n counts.add( 0 );\r\n }", "Term getNodeTerm();", "public TreeDictionary() {\n\t\t\n\t}", "public WordDictionary() {\n root = new TrieNode(' ');\n maxLength = Integer.MIN_VALUE;\n }", "public MyHashTable( )\n {\n this( DEFAULT_TABLE_SIZE );\n }", "public List<Term> getAllTerms() {\n\t\tsession.beginTransaction();\n\t\tList<Term> lis = session.createQuery(\"from Term\").list();\n\n\t\tfor (Term tm : lis) {\n\t\t\tSystem.out.println(tm.getId() + \" \" + tm.getTermName());\n\t\t}\n\t\treturn lis;\n\t}", "static AttributeSet createKeySet(Hashtable hashtable) {\n\n Hashtable newElements = new Hashtable();\n\n Enumeration e = hashtable.keys();\n while (e.hasMoreElements()) {\n Object next = e.nextElement();\n newElements.put(next, next);\n }\n\n return new AttributeSet(newElements);\n }", "public HashTable( int size )\n\t{\n\t\ttheLists = new WordList[ size ];\n\t\tfor (int i = 0; i < theLists.length; i++)\n\t\t\ttheLists[i] = new WordList();\n\t}", "Term getTermFromIndex(int index) {\n return terms.get(index);\n }" ]
[ "0.59051466", "0.5727152", "0.5713038", "0.57067657", "0.5690142", "0.5681613", "0.5625833", "0.5588207", "0.5568956", "0.5552557", "0.55290663", "0.55125004", "0.551024", "0.5498221", "0.54941046", "0.5485333", "0.5442302", "0.5437882", "0.5426523", "0.5404651", "0.5386869", "0.5382242", "0.53802806", "0.53630054", "0.53195316", "0.53084856", "0.5304386", "0.5285251", "0.5282784", "0.5275878", "0.52694535", "0.5266425", "0.5254825", "0.5246943", "0.5243581", "0.52399236", "0.52252483", "0.5201621", "0.5189553", "0.51845264", "0.5181691", "0.51555353", "0.51312566", "0.5131093", "0.5129095", "0.5124717", "0.51162237", "0.51058835", "0.5092071", "0.5088441", "0.50705266", "0.50705266", "0.50705266", "0.5066423", "0.50635976", "0.5058442", "0.5056861", "0.50557375", "0.5045056", "0.50421584", "0.50396234", "0.5032642", "0.50297624", "0.5027551", "0.5020097", "0.50158244", "0.5013422", "0.5011519", "0.5004124", "0.5003315", "0.50029194", "0.4999301", "0.49883294", "0.49838364", "0.49681196", "0.49643135", "0.4961938", "0.49587885", "0.495849", "0.49539617", "0.49534097", "0.49513888", "0.49469018", "0.4938289", "0.49320352", "0.4930325", "0.49283382", "0.49283317", "0.49275866", "0.49243185", "0.4918191", "0.4917515", "0.49156544", "0.49071681", "0.49062574", "0.49040562", "0.4901062", "0.48992708", "0.48961473", "0.4894626" ]
0.81259733
0
Returns a new object of class 'Print Term'.
QPrintTerm createPrintTerm();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Term getTerm();", "public void printTerm(){\n\n // print fac node\n this.fac.printFac();\n\n // check selection\n if (this.selection == 2) {\n\n // print \"*\"\n System.out.print(\" * \");\n\n // print term node\n this.term.printTerm();\n\n }\n\n }", "TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }", "QDisplayTerm createDisplayTerm();", "public Printer(){ }", "GeneralTerm createGeneralTerm();", "public Object clone() {\n \t\treturn new Term(this);\n \t}", "QuoteTerm createQuoteTerm();", "public synchronized static ComputeTermFrequencies createComputeAndPrintTermFrequency() \n\t{\n\t\treturn new ComputeTermFrequencies();\n\t}", "void compileTerm() {\n tagBracketPrinter(TERM_TAG, OPEN_TAG_BRACKET);\n try {\n compileTermBasicHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(TERM_TAG, CLOSE_TAG_BRACKET);\n }", "public Term(String t) {\n this.t = t;\n \n RepCheck();\n }", "public String getTerm() {\n return term;\n }", "SingleTerm(Term t)\n {\n term = t;\n }", "Term getCurrentTerm() {\n return currentTerm;\n }", "public Element compileTerm() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tString varName;\n\n\t\tElement termParent = document.createElement(\"term\");\n\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\ttokenType = jTokenizer.tokenType();\n\n\t\t// Case 1: ( expression )\n\n\t\tif (token.equals(\"(\")) {\n\t\t\t// (\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t\t// exp\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t// )\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\n\t\t}\n\n\t\t// Case 2: unaryOp term\n\t\telse if (token.matches(\"\\\\-|~\")) {\n\n\t\t\t// unary op\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tString op = jTokenizer.returnTokenVal();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t\n\t\t\t//Since it is postfix, the term comes first\n\t\t\t\n\t\t\t// term\n\t\t\tjTokenizer.advance();\n\t\t\ttermParent.appendChild(compileTerm());\n\n\t\t\t// appending the op\n\t\t\tif (op.equals(\"~\")) {\n\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t} else {\n\t\t\t\twriter.writeArithmetic(\"neg\");\n\t\t\t}\n\n\t\t}\n\t\t\n\t\t// Any constant or keyword\n\t\telse if (tokenType.matches(\"keyword|integerConstant|stringConstant\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\t\n\t\t\t//pushing an integer constant\n\t\t\tif (tokenType.equals(\"integerConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", Integer.parseInt(token));\t\n\t\t\t}\n\t\t\t//For string, have to iterate along the length of the string and call string.append\n\t\t\telse if (tokenType.equals(\"stringConstant\")) {\n\t\t\t\twriter.writePush(\"constant\", token.length());\n\t\t\t\twriter.writeCall(\"String.new\", 1);\n\n\t\t\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\t\t\twriter.writePush(\"constant\", (int) token.charAt(i));\n\t\t\t\t\twriter.writeCall(\"String.appendChar\", 2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t//Pushing the keyword onto the stack, depending on what it is\n\t\t\telse if (tokenType.equals(\"keyword\")) {\n\t\t\t\tif (token.equals(\"true\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t\twriter.writeArithmetic(\"not\");\n\t\t\t\t} else if (token.equals(\"this\")) {\n\t\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\t} else if (token.equals(\"false\") || token.equals(\"null\")) {\n\t\t\t\t\twriter.writePush(\"constant\", 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Variable, Variable[expression] or subroutineCall\n\t\telse if (tokenType.equals(\"identifier\")) {\n\t\t\tele = createXMLnode(tokenType);\n\t\t\ttermParent.appendChild(ele);\n\t\t\tvarName = jTokenizer.returnTokenVal();\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.returnTokenVal();\n\n\t\t\t// Case 1: Array dereferencing\n\t\t\tif (token.equals(\"[\")) {\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// push base id\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\n\t\t\t\t// Exp\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttermParent.appendChild(compileExpression());\n\n\t\t\t\t// ]\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// base + offset\n\t\t\t\twriter.writeArithmetic(\"add\");\n\n\t\t\t\t// pop into that\n\t\t\t\twriter.writePop(\"pointer\", 1);\n\t\t\t\t// push value into stack\n\t\t\t\twriter.writePush(\"that\", 0);\n\t\t\t}\n\n\t\t\t// Case 2: variable/class.subroutine call\n\t\t\telse if (token.equals(\".\")) {\n\n\t\t\t\tboolean method = false;\n\n\t\t\t\t// .\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// subroutine name\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tString subName = jTokenizer.returnTokenVal();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\tString firstName = varName;\n\t\t\t\t//Similar to the compileDo method, have to distinguish between\n\t\t\t\t//method and function\n\t\t\t\tif (symTable.lookup(firstName) != null) {\n\t\t\t\t\tmethod = true;\n\t\t\t\t\twriter.writePush(symTable.lookup(firstName).kind, symTable.lookup(firstName).index);\n\t\t\t\t\tvarName = symTable.lookup(firstName).type;\n\t\t\t\t}\n\t\t\t\t// expressionList\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement compileExpression = compileExpressionList();\n\t\t\t\tint nArgs = compileExpression.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(compileExpression);\n\n\t\t\t\t// Checking if method or function\n\t\t\t\tif (method) {\n\t\t\t\t\tnArgs++;\n\t\t\t\t}\n\t\t\t\twriter.writeCall(varName + \".\" + subName, nArgs);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\t\t\t}\n\n\t\t\t// Case 3: function call\n\t\t\telse if (token.equals(\"(\")) {\n\t\t\t\t// (\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// expression list\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tElement node = compileExpressionList();\n\t\t\t\tint nArgs = node.getChildNodes().getLength();\n\t\t\t\ttermParent.appendChild(node);\n\n\t\t\t\t// )\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\ttermParent.appendChild(ele);\n\n\t\t\t\t// Writing the VML for a method call\n\t\t\t\twriter.writePush(\"pointer\", 0);\n\t\t\t\twriter.writeCall(className + \".\" + varName, ++nArgs);\n\t\t\t}\n\t\t\t// Case 4: Variable name.\n\t\t\telse {\n\t\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\t\t\t}\n\t\t}\n\t\treturn termParent;\n\t}", "public EnlightenedJavaPrinter() {\n\n }", "Term getP();", "abstract public TermDocs termDocs(Term t) throws IOException;", "public String getTerm(){\n return this.term;\n }", "TermType getTermType();", "PrintStatement createPrintStatement();", "public JPanel_Terminal() {\n // initialize components\n initComponents();\n\n // initialize JTerm\n JTermInputProcessor termProcessor = (String command, JTerm console) -> {\n if (jShellTransport == null) {\n updateShellTransport();\n }\n if (jShellTransport != null) {\n try {\n console.remove(command.length());\n jShellTransport.write(command);\n } catch (IOException ex) {\n jShellTransport = null;\n Log.log(Level.SEVERE, \"ShellTransportWrite\", ex);\n }\n }\n };\n\n jTerm = new JTerm(jTextPane_Jterm, termProcessor, Color.BLACK, Color.GREEN, new Font(Font.MONOSPACED, Font.BOLD, 12));\n }", "public Expression getTerm() {\n return term;\n }", "public StreamTerm term() {\n return term;\n }", "abstract public void print(String text) throws TerminalException;", "public TextFilePrinter getPrinter();", "public Term clone() {\n\t\treturn new Term(this.coefficient, this.exponent);\n\t}", "public Object getPrinter(PageFormat pf);", "Astro namedTerm(String tagName, AstroArg args);", "public String getTermText() {\n return termText;\n }", "private AbstractTerminal()\n\t{\n\t\tio = new SwingTextTerminal();\n\t}", "public boolean isTerm() {\n\t\treturn isTerm;\n\t}", "public void print();", "public void print();", "public void print();", "public void print();", "@Override\n public String toString() {\n return \"ModelTerm{\" +\n \"termTitle='\" + termTitle + '\\'' +\n \", termStartDate=\" + termStartDate +\n \", termEndDate=\" + termEndDate +\n '}';\n }", "@Override\n\tpublic void print() {\n\t\t\n\t}", "Term getNodeTerm();", "public void print () {\n }", "@Override\n\t\t\tpublic void print() {\n\t\t\t\t\n\t\t\t}", "void print() {\r\n\t\tOperations.print(lexemes, tokens);\r\n\t}", "public Terms() {}", "public VocabularyTerms() {}", "public String print();", "@Override\n\tpublic void print() {\n\n\t}", "public TerminalSymbolFact(String name, ITokenizer tkz) {\r\n\t\tsuper(name, tkz);\r\n\t}", "@Override\n\t\tpublic void print() {\n\n\t\t}", "@Override\r\n\tpublic void print() {\n\t}", "@Override\r\n\t\t\tpublic void print() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tprotected void print() {\n\t\tSystem.out.println(\"-----------\"+this.getName()+\"\");\n\t}", "public TermPrime(ArithmeticOperator operator, Term term) {\r\n\t\tsuper();\r\n\t\tthis.operator = operator;\r\n\t\tthis.term = term;\r\n\t}", "public static Factory factory() {\n return Document_print::new;\n }", "public String getPrint_optr(){\r\n\t\treturn this.print_optr ;\r\n\t}", "private static interface T {@Symbolic Term.List t();}", "public void print() {\r\n\t\t System.out.println(toString());\r\n\t }", "public Inatnum print() {\n return this;}", "protected Term createTermFrom(String tag) {\n\t\tTerm tmp = terms.getOrDefault(tag, new Term(tag, this, terms.size()));\n\t\tterms.put(tag, tmp);\n\t\t// termCounts.put(tmp, termCounts.getOrDefault(tmp,0)+1);\n\t\ttermsInCorpus += 1;\n\t\treturn tmp;\n\t}", "@Override\r\n\tpublic void Print() {\r\n\t\tSystem.out.print(this.tav+\" \");\r\n\t\t\r\n\t}", "public MyPrinter() {\r\n this.message = \"\";\r\n }", "public java.lang.Integer getTerm() {\n return term;\n }", "@Override\n public void print() {\n }", "@Override\n\tpublic void print() {\n\t\tdecoratedPrinter.print();\n\t}", "Term getBody();", "public String getTerm() {\r\n return (String) getAttributeInternal(TERM);\r\n }", "public TermParser(){\n\t\tvar_map = new HashMap <String, Double>();\n\t\tvar_map.put(\"pi\", Math.PI);\n\t\tvar_map.put(\"e\", Math.E);\n\t\tclear();\n\t}", "public AcademicTerm(int termIndex, Term term) {\n this.termIndex = termIndex;\n this.term = term;\n }", "public void print() {\n\t\tPrinter.print(doPrint());\n\t}", "public java.lang.Integer getTerm() {\n return term;\n }", "public WordPrinter(String Word1, int NumTimes1) \r\n {\r\n \t//Assigning the values sent over to the \"Word\" and \"NumTimes\" variables.\r\n \tWord = Word1;\r\n \tNumTimes = NumTimes1;\r\n }", "@VisibleForTesting\n void print();", "public Terminal() {\n initComponents();\n }", "private void parseTerm() throws IOException {\r\n\t\tString line;\r\n\t\tTerm newTerm = new Term();\r\n\t\twhile((line=next(0))!=null) {\r\n\t\t\tif(line.startsWith(\"[\"))\r\n\t\t\t\t{\r\n\t\t\t\tthis.buffer=line;\r\n\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tint colon=line.indexOf(':');\r\n\t\t\tif(colon==-1) continue;\r\n\t\t\tif(line.startsWith(\"id:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.id = line.substring(colon+1).trim();\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"name:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.name=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"namespace:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.namespace=nocomment(line.substring(colon+1));\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\telse if(line.startsWith(\"def:\"))\r\n\t\t\t\t{\r\n\t\t\t\tnewTerm.def=nocomment(line.substring(colon+1));\r\n\t\t\t\tterms.addTerm(newTerm);\r\n\t\t\t\tif (newTerm.namespace.equals(\"molecular_function\")){\r\n\t\t\t\t\tdagMF.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"biological_process\")){\r\n\t\t\t\t\tdagBP.addVertex(newTerm);\t\r\n\t\t\t\t}\r\n\t\t\t\telse if (newTerm.namespace.equals(\"cellular_component\")){\r\n\t\t\t\t\tdagCC.addVertex(newTerm);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"TERM WAS NOT ADDED, NO NAMESPACE!\");\r\n\t\t\t\t}\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "public static final Printer getInstance()\n {\n return INSTANCE;\n }", "public abstract void print();", "public void print() {\n System.out.println(this.toString());\n }", "public String print() {\n return print(new StringBuffer()).toString();\n }", "public VT10xEmulator(ICharacterTerminal term, InputStream in, OutputStream out) {\n super(term, in, out);\n }", "public void print() {\n\t\tSystem.out.println(toString());\n\t}", "public int getTermIndex() {return termIndex;}", "QuoteTermAttribute createQuoteTermAttribute();", "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 }", "abstract public TermEnum terms() throws IOException;", "public void print(){\r\n System.out.println(toString());\r\n }", "void print();", "void print();", "void print();", "void print();", "void print();", "abstract void print();", "public EventPrinter() {\n this(System.out);\n }", "private void actionPrint() {\n // get PrinterJob\n PrinterJob job = PrinterJob.getPrinterJob();\n MyPrintable printable = new MyPrintable(job.defaultPage(), layoutPanel);\n\n // setup Printable, Pageable\n job.setPrintable(printable);\n job.setPageable(printable);\n\n // display print dialog and print\n if (job.printDialog()) {\n try {\n job.print();\n } catch (PrinterException e) {\n e.printStackTrace();\n }\n }\n }", "public void print()\n {\n \tSystem.out.println(\"MOTO\");\n super.print();\n System.out.println(\"Tipo da partida: \" + tipoPartida);\n System.out.println(\"Cilindradas: \" + cilindradas);\n System.out.println();\n }", "public void print() {\n System.out.println(toString());\n }", "@Override\n\tpublic String print(CliPrinter printer) {\n\t\treturn printer.printTProductCards(this);\n\t}", "public interface Term {\n\t\n\t/**\n\t * Get the coefficient of a term\n\t * @return the coefficient \n\t */\n\tpublic double getCoefficient();\n\t\n\t/**\n\t * Get the exponent of a term\n\t * @return the exponent\n\t */\n\tpublic int getExponent();\n\t\n\t/**\n\t * Evaluate a term by a given value. c = constant, a(c)^n \n\t * @param x The value to be evaluated \n\t * @return The result of the evaluated term \n\t */\n\tpublic double evaluate(double x);\n\t\n}", "QKeyListTerm createKeyListTerm();", "TypePrinter print(char c);", "public Action getPrintAction() {\n return new AbstractAction(\"Print\") {\n private static final long serialVersionUID = 3366443762504745619L;\n\n public void actionPerformed(ActionEvent e) {\n mGraphPrinter.getGraphicsRenderer().setRendererConfig(mGraphicsRenderer);\n if (mPlainSave) {\n // Explicitly remove the background gradient / shadow to save \"plain\" images.\n mGraphPrinter.getGraphicsRenderer().setGraphBGColor(null, null);\n mGraphPrinter.getGraphicsRenderer().setGraphShadowWidth(0);\n }\n mGraphPrinter.printGraph(getGraph());\n }\n };\n }", "public ComputeTermFrequencies() { super(); }" ]
[ "0.6874568", "0.6743621", "0.6604915", "0.658665", "0.63538057", "0.6345391", "0.6246886", "0.62424", "0.6004902", "0.59785444", "0.59393764", "0.59250736", "0.59091973", "0.5860749", "0.57582", "0.5731601", "0.5704494", "0.5701745", "0.5663127", "0.56046844", "0.55760247", "0.5565198", "0.55537754", "0.5526226", "0.55039567", "0.54450005", "0.5427615", "0.54274225", "0.54142886", "0.5404638", "0.5397072", "0.53173894", "0.531262", "0.531262", "0.531262", "0.531262", "0.5307676", "0.53071016", "0.5301705", "0.5295754", "0.5294543", "0.52892345", "0.5288053", "0.52808845", "0.52668345", "0.524106", "0.5221873", "0.52201784", "0.5216938", "0.5206343", "0.51914895", "0.518922", "0.5181957", "0.517925", "0.517744", "0.5174148", "0.515658", "0.51446664", "0.5143603", "0.51335645", "0.512445", "0.51199543", "0.51186216", "0.5115079", "0.51094615", "0.51067895", "0.5105329", "0.50992835", "0.5095822", "0.50895816", "0.5083118", "0.5071788", "0.5070412", "0.50703114", "0.5065841", "0.50620884", "0.505376", "0.5048427", "0.50456655", "0.50443566", "0.5025614", "0.5020967", "0.5020379", "0.5019259", "0.50164217", "0.50164217", "0.50164217", "0.50164217", "0.50164217", "0.5011352", "0.500964", "0.50020087", "0.49992532", "0.49785423", "0.49700582", "0.49641082", "0.49598026", "0.4946429", "0.49455646", "0.49386597" ]
0.8066319
0
Returns the package supported by this factory.
QIntegratedLanguageEsamPackage getIntegratedLanguageEsamPackage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PackageType getRequiredPackage();", "public PackageNode getPackage();", "java.lang.String getPackage();", "public String getPackageName();", "public String getPackageName() {\n return pkg;\n }", "String getPackageName();", "public DsByteString getPackage() {\n return m_strPackage;\n }", "java.lang.String getPackageName();", "public String getPackageName() {\n\t\treturn pkgField.getText();\n\t}", "private static String getPackage() {\n\t\tPackage pkg = EnergyNet.class.getPackage();\n\n\t\tif (pkg != null) {\n\t\t\tString packageName = pkg.getName();\n\n\t\t\treturn packageName.substring(0, packageName.length() - \".api.energy\".length());\n\t\t}\n\n\t\treturn \"ic2\";\n\t}", "io.deniffel.dsl.useCase.useCase.Package getPackage();", "public String getPackageInfomartion() {\n\t\treturn packageInfomartion;\n\t}", "protected abstract String getPackageName();", "default String getPackageName() {\n return declaringType().getPackageName();\n }", "public String getPackageName() {\n return packageName.get();\n }", "String getPackager();", "public Short getPackageType() {\n\t\treturn packageType;\n\t}", "public static String getPackageName() {\n return CELibHelper.sPackageName;\n }", "String getPackage() {\n return mPackage;\n }", "public String getBasePackage() {\n\t\treturn this.basePackage;\n\t}", "String pkg();", "public static String getPackageName() {\n return mPackageName;\n }", "public String getAppPackage() {\n\t\treturn fnh.getOutputAppPackage();\n\t}", "public abstract String getTargetPackage();", "public abstract String getTargetPackage();", "public java.lang.Boolean getServicePackageInfoSupported() {\r\n return servicePackageInfoSupported;\r\n }", "EisPackage getEisPackage();", "private String getPkgName () {\n return context.getPackageName();\n }", "@NonNull\n RepoPackage getPackage();", "public UMLPackageBean getPackage() {\n return umlPkg;\n }", "public String getPackagedJava();", "public String getPackageName() {\n return packageName;\n }", "public String getPackageName() {\n return packageName;\n }", "PiviPackage getPiviPackage();", "public Package.Builder getBuilder() {\n return pkgBuilder;\n }", "public String getPackageName() {\n\t\treturn this.PackageName;\n\t}", "public String getPackaging();", "public String getPackageName() {\n\t\treturn packageName;\n\t}", "public String getPackage() {\n return carrierPackage;\n }", "public abstract String packageName();", "PackageConfiguration getPackageConfiguration();", "protected final Product getProduct() {\n Product.Builder product = new Product.Builder()\n .implementationTitle(getClass())\n .implementationVersion(getClass());\n Optional.ofNullable(getClass().getPackage())\n .flatMap(p -> Optional.ofNullable(p.getSpecificationVersion()))\n .map(specVersion -> \"(specification \" + specVersion + \")\")\n .ifPresent(product::comment);\n return product.build();\n }", "public String getPackageName() {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n if (fq != null) {\n return fq.getPackageName();\n }\n String typeName = getTypeName();\n int lastDot = typeName.lastIndexOf('.');\n return lastDot < 0 ? \"\" : typeName.substring(0, lastDot);\n }", "public PersistedBmmPackage getPackage(String packageName) {\n return packages.get(packageName.toUpperCase());\n }", "public abstract String getAndroidPackage();", "NfrPackage getNfrPackage();", "@NonNull\n public String getPackageName() {\n return mPackageName;\n }", "public String getBasePackage() {\n\t\treturn DataStore.getInstance().getBasePackage();\n\t}", "public static String getBukkitPackage() {\n return Bukkit.getServer().getClass().getPackage().getName().split(\"\\\\.\")[3];\n }", "boolean hasPackageName();", "public String getPackageName() {\n Object ref = packageName_;\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 packageName_ = s;\n }\n return s;\n }\n }", "ApiPackage getApiPackage();", "public String getPackageName() {\n final var lastDotIdx = name.lastIndexOf('.');\n\n if (lastDotIdx > 0) {\n return name.substring(0, lastDotIdx);\n } else {\n throw new CodeGenException(String.format(\"Couldn't determine package name of '%s'\", name));\n }\n }", "public String getPackageName() {\n if (mPackageName == null) {\n try {\n mPackageName = mSessionBinder.getPackageName();\n } catch (RemoteException e) {\n Log.d(TAG, \"Dead object in getPackageName.\", e);\n }\n }\n return mPackageName;\n }", "public String getPackageName() {\n Object ref = packageName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n packageName_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "IrSpecificPackage getIrSpecificPackage();", "public String getPackages() {\n\t\treturn this.packages;\n\t}", "public String getPackageName() {\n return mAppEntry.info.packageName;\n }", "com.google.protobuf.ByteString\n getPackageBytes();", "public static String getCraftBukkitPackage() {\n \t\t// Ensure it has been initialized\n \t\tgetMinecraftPackage();\n \t\treturn CRAFTBUKKIT_PACKAGE;\n \t}", "NgtPackage getNgtPackage();", "public String getProductPack() {\n return (String)getAttributeInternal(PRODUCTPACK);\n }", "public String getModelPackageStr() {\n\t\tString thepackage = getModelXMLTagValue(\"package\");\n\t\treturn thepackage != null ? thepackage + \".\" : \"\";\n\t}", "VmPackage getVmPackage();", "String packageName() {\n return name;\n }", "private PackageService getPackageService() {\n\t\treturn packageService;\n\t}", "private Package_c getPackage(final String name) {\n\t\tPackage_c communication = Package_c.PackageInstance(modelRoot,\n\t\t\t\tnew ClassQueryInterface_c() {\n\n\t\t\t\t\tpublic boolean evaluate(Object candidate) {\n\t\t\t\t\t\tPackage_c selected = (Package_c) candidate;\n\t\t\t\t\t\treturn selected.getName().equals(name);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\treturn communication;\n\t}", "ParkingPackage getParkingPackage();", "public int getWMCPackaged(){\r\n\t\t \r\n\t\treturn mccabe.getWMCPackage();\t\t\r\n\t}", "private BasePackage getPackageModel()\r\n {\r\n return packageCartService.getBasePackage();\r\n }", "PackageClause getPackageClause();", "NassishneidermanPackage getNassishneidermanPackage();", "public String getPackageDesc() {\n\t\treturn packageDesc;\n\t}", "public String getPkgId() {\n return pkgId;\n }", "public String getVersionsSupported();", "public static String getMinecraftPackage() {\n \t\t// Speed things up\n \t\tif (MINECRAFT_FULL_PACKAGE != null) {\n \t\t\treturn MINECRAFT_FULL_PACKAGE;\n \t\t}\n \n \t\tfinal Server craftServer = Bukkit.getServer();\n \n \t\t// This server should have a \"getHandle\" method that we can use\n \t\tif (craftServer != null) {\n \t\t\ttry {\n \t\t\t\tfinal Class<?> craftClass = craftServer.getClass();\n \t\t\t\tfinal Method getHandle = craftClass.getMethod(\"getHandle\");\n \n \t\t\t\tfinal Class<?> returnType = getHandle.getReturnType();\n \t\t\t\tfinal String returnName = returnType.getCanonicalName();\n \n \t\t\t\t// The return type will tell us the full package, regardless of\n \t\t\t\t// formating\n \t\t\t\tCRAFTBUKKIT_PACKAGE = getPackage(craftClass.getCanonicalName());\n \t\t\t\tMINECRAFT_FULL_PACKAGE = getPackage(returnName);\n \t\t\t\treturn MINECRAFT_FULL_PACKAGE;\n \n \t\t\t} catch (final SecurityException e) {\n \t\t\t\tthrow new RuntimeException(\n \t\t\t\t\t\t\"Security violation. Cannot get handle method.\", e);\n \t\t\t} catch (final NoSuchMethodException e) {\n \t\t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\t\"Cannot find getHandle() method on server. Is this a modified CraftBukkit version?\",\n \t\t\t\t\t\te);\n \t\t\t}\n \n \t\t} else {\n \t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\"Could not find Bukkit. Is it running?\");\n \t\t}\n \t}", "protected EPackage getEPackage() {\r\n return Wps10Package.eINSTANCE;\r\n }", "CommunicationsprogramsPackage getCommunicationsprogramsPackage();", "Shipment_Package getShipment_Package();", "TggPackage getTggPackage();", "List<String> getSystemPackages();", "public boolean isPackage()\n {\n ensureLoaded();\n return m_flags.isPackage();\n }", "public String getSupportedVersion() {\n return supportedVersion;\n }", "ICpPackInfo getPackInfo();", "TypePackage getTypePackage();", "public String getPackingType() {\n return (String)getAttributeInternal(PACKINGTYPE);\n }", "GramaticaPackage getGramaticaPackage();", "default String getPackageId() {\n return getIdentifier().getPackageId();\n }", "Quality_requirements_metamodelPackage getQuality_requirements_metamodelPackage();", "MatchModelPackage getMatchModelPackage();", "public String getProjectPackageName() {\n\t\treturn projectPackageName;\n\t}", "ICpPack getPack();", "public PackageName getRootPackageName() {\n return rootPackageName;\n }", "public GeoPackage getGeoPackage() {\n\t\treturn this.geoPackage;\n\t}", "ReactNativePackage getReactNativePackage();", "HiphopsPackage getHiphopsPackage();", "protected UMLPackage getUMLPackage() {\r\n return currentPackage;\r\n }", "MystPackage getMystPackage();", "public Short getPackageSeries() {\n\t\treturn packageSeries;\n\t}", "public String getPackageId()\n {\n return packageId;\n }", "ThingMLPackage getThingMLPackage();" ]
[ "0.7031596", "0.6824025", "0.6818806", "0.6752645", "0.67181015", "0.6704875", "0.6698022", "0.6678774", "0.6635858", "0.6556546", "0.65183675", "0.6501405", "0.6496429", "0.6481852", "0.6376274", "0.63505894", "0.6338929", "0.63388515", "0.6327788", "0.6314242", "0.63126606", "0.6282504", "0.6273947", "0.625018", "0.625018", "0.6246106", "0.6218379", "0.62113875", "0.61974704", "0.6187816", "0.6176801", "0.6166096", "0.6166096", "0.61538076", "0.61370236", "0.61311126", "0.6119505", "0.6110087", "0.6095738", "0.60568917", "0.60403836", "0.6006883", "0.5988912", "0.59846574", "0.5971428", "0.596663", "0.59435695", "0.59422004", "0.5939782", "0.5931478", "0.59234554", "0.59193766", "0.5917696", "0.5896124", "0.58916557", "0.5884717", "0.5883739", "0.5870814", "0.58519596", "0.584893", "0.58416474", "0.584001", "0.5839548", "0.5827061", "0.5818055", "0.58170223", "0.5803712", "0.5787864", "0.5782273", "0.5762003", "0.57582545", "0.575813", "0.5757836", "0.5753817", "0.5746635", "0.57362497", "0.57329035", "0.57273763", "0.57260066", "0.57190484", "0.57188034", "0.57182175", "0.57047856", "0.57030493", "0.5689773", "0.56865156", "0.56835216", "0.5674978", "0.56738055", "0.56653726", "0.56578237", "0.5646589", "0.56433535", "0.5642557", "0.563893", "0.5638249", "0.56340986", "0.563228", "0.56135017", "0.5610743", "0.5606374" ]
0.0
-1
/ private final RobotDrive leftDrive; private final RobotDrive rightDrive;
public DriveTrain(SpeedController left, SpeedController right){ this.left = left; this.right = right; this.drive = new RobotDrive(left,right); /* this.leftDrive=new RobotDrive(left,right); this.rightDrive=new RobotDrive(right); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Drive(double left, double right) {\n requires(Robot.drivetrain);\n this.left = left;\n this.right = right;\n }", "public void operatorDrive() {\n\n changeMode();\n checkForGearShift();\n\n if (Robot.rightJoystick.getRawButton(1)) {\n currentMode = DriveMode.AUTO;\n\n } else if (Robot.rightJoystick.getRawButton(2)) {\n currentMode = DriveMode.CLIMB;\n } else {\n currentMode = DEFAULT_MODE;\n }\n\n isDeploying = false;\n\n if (currentMode == DriveMode.AUTO) {\n currentMode_s = \"Auto\";\n } else if (currentMode == DriveMode.ARCADE) {\n currentMode_s = \"Arcade\";\n } else {\n currentMode_s = \"Tank\";\n }\n\n double leftY = 0;\n double rightY = 0;\n\n switch (currentMode) {\n\n case AUTO:\n rotateCam(4, Robot.visionTargetInfo.visionPixelX);\n\n // driveFwd(4, .25);\n\n break;\n\n case CLIMB:\n\n climb();\n\n break;\n\n case ARCADE:\n resetAuto();\n double linear = 0;\n double turn = 0;\n\n if (Math.abs(Robot.rightJoystick.getY()) > deadband) {\n linear = -Robot.rightJoystick.getY();\n }\n if (Math.abs(Robot.leftJoystick.getX()) > deadband) {\n turn = Math.pow(Robot.leftJoystick.getX(), 3);\n }\n\n leftY = -linear - turn;\n rightY = linear - turn;\n if (!isShifting) {\n assignMotorPower(rightY, leftY);\n } else {\n\n assignMotorPower(0, 0);\n }\n\n break;\n\n case TANK:\n\n resetAuto();\n if (Math.abs(Robot.rightJoystick.getY()) > deadband) {\n rightY = -Math.pow(Robot.rightJoystick.getY(), 3 / 2);\n }\n if (Math.abs(Robot.leftJoystick.getY()) > deadband) {\n leftY = Math.pow(Robot.leftJoystick.getY(), 3 / 2);\n }\n if (!isShifting) {\n assignMotorPower(rightY, leftY);\n } else {\n\n assignMotorPower(0, 0);\n }\n break;\n\n default:\n break;\n }\n\n updateTelemetry();\n }", "public void encoderDrive(double speed,\r\n double leftInches, \r\n double rightInches,\r\n String name) \r\n {\n int newLeftTarget = robot.leftDrive.getCurrentPosition() + (int)(leftInches * COUNTS_PER_INCH);\r\n int newRightTarget = robot.rightDrive.getCurrentPosition() + (int)(rightInches * COUNTS_PER_INCH);\r\n robot.leftDrive.setTargetPosition(newLeftTarget);\r\n robot.rightDrive.setTargetPosition(newRightTarget);\r\n\r\n // Turn On RUN_TO_POSITION\r\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\r\n\r\n // reset the timeout time and start motion.\r\n ElapsedTime localTimer = new ElapsedTime();\r\n localTimer.reset();\r\n robot.leftDrive.setPower(Math.abs(speed));\r\n robot.rightDrive.setPower(Math.abs(speed));\r\n\r\n // keep looping while we are still active, and there is time left, and both motors are running.\r\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\r\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\r\n // always end the motion as soon as possible.\r\n // However, if you require that BOTH motors have finished their moves before the robot continues\r\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\r\n while (localTimer.seconds() < EncoderDrive_Timeout_Second \r\n && (robot.leftDrive.isBusy() || robot.rightDrive.isBusy())) {\r\n\r\n // Display it for the driver.\r\n telemetry.addData(\"\", \"%s @ %s\", name, localTimer.toString());\r\n telemetry.addData(\"To\", \"%7d :%7d\", newLeftTarget, newRightTarget);\r\n telemetry.addData(\"At\", \"%7d :%7d\",\r\n robot.leftDrive.getCurrentPosition(),\r\n robot.rightDrive.getCurrentPosition());\r\n telemetry.update();\r\n idle();\r\n }\r\n\r\n // Stop all motion;\r\n robot.leftDrive.setPower(0);\r\n robot.rightDrive.setPower(0);\r\n\r\n // Turn off RUN_TO_POSITION\r\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\r\n }", "public DriveTrain (int motorChannelL1,int motorChannelL2,int motorChannelR1,int motorChannelR2 ){\n leftMotor1 = new Victor(motorChannelL1);\n leftMotor2 = new Victor(motorChannelL2);\n rightMotor1 = new Victor(motorChannelR1);\n rightMotor2 = new Victor(motorChannelR2);\n highDrive = new RobotDrive(motorChannelL1, motorChannelR1);\n lowDrive = new RobotDrive(motorChannelL2, motorChannelR2);\n \n }", "public DriveSubsystem() {\n leftDrive = new Spark(0);\n rightDrive = new Spark(1);\n\n leftEncoder = new Encoder(0, 1);\n rightEncoder = new Encoder(2, 3);\n\n leftEncoder.setDistancePerPulse((Math.PI * WHEEL_DIAMETER) / PPR);\n rightEncoder.setDistancePerPulse((Math.PI * WHEEL_DIAMETER) / PPR);\n \n drive = new DifferentialDrive(leftDrive, rightDrive);\n\n }", "public DriveTrain(side left, side right){\n this.left = left;\n this.right = right;\n this.gear = new twoSpeed();\n }", "@Override\n public void robotInit() {\n myRobot = new DifferentialDrive(leftfrontmotor, rightfrontmotor);\n leftrearmotor.follow(leftfrontmotor);\n rightrearmotor.follow(rightfrontmotor);\n leftfrontmotor.setInverted(true); // <<<<<< Adjust this until robot drives forward when stick is forward\n\t\trightfrontmotor.setInverted(true); // <<<<<< Adjust this until robot drives forward when stick is forward\n\t\tleftrearmotor.setInverted(InvertType.FollowMaster);\n rightrearmotor.setInverted(InvertType.FollowMaster);\n \n CameraServer.getInstance().startAutomaticCapture();\n\n \n\n comp.setClosedLoopControl(true);\n \n\n /* Set up Dashboard widgets */\n SmartDashboard.putNumber(\"L Stick\", gamepad.getRawAxis(1));\n\t\tSmartDashboard.putNumber(\"R Stick\", gamepad.getRawAxis(5));\n\t\tSmartDashboard.putBoolean(\"Back Button\", gamepad.getRawButton(5));\n\t\tSmartDashboard.putBoolean(\"Fwd Button\", gamepad.getRawButton(6));\n\t\t\n SmartDashboard.putNumber(\"LF\", pdp.getCurrent(leftfrontmotorid));\n\t\tSmartDashboard.putNumber(\"LR\", pdp.getCurrent(leftrearmotorid));\n\t\tSmartDashboard.putNumber(\"RF\", pdp.getCurrent(rightfrontmotorid));\n\t\tSmartDashboard.putNumber(\"RR\", pdp.getCurrent(rightrearmotorid));\n SmartDashboard.putNumber(\"Total\", pdp.getCurrent(0) + pdp.getCurrent(1) + pdp.getCurrent(2) + pdp.getCurrent(3) + pdp.getCurrent(4) + pdp.getCurrent(5) + pdp.getCurrent(6) + pdp.getCurrent(7) + pdp.getCurrent(8) + pdp.getCurrent(9) + pdp.getCurrent(10) + pdp.getCurrent(11) + pdp.getCurrent(12) + pdp.getCurrent(13) + pdp.getCurrent(14) + pdp.getCurrent(15));\n }", "void drive(double power, double leftInches, double rightInches, double seconds) {\n\n //Make new integer to set left and right motor targets\n int leftTarget;\n int rightTarget;\n\n if (opModeIsActive()) {\n\n //Determine left and right target to move to\n leftTarget = robot.leftMotor.getCurrentPosition() + (int) (leftInches * COUNTS_PER_INCH);\n rightTarget = robot.rightMotor.getCurrentPosition() + (int) (rightInches * COUNTS_PER_INCH);\n\n //Set target and move to position\n robot.leftMotor.setTargetPosition(leftTarget);\n robot.rightMotor.setTargetPosition(rightTarget);\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n //Reset runtime and start motion\n robot.leftMotor.setPower(Math.abs(power));\n robot.rightMotor.setPower(Math.abs(power));\n\n //Test if motors are busy, runtime is less than timeout and motors are busy and then run code\n while (opModeIsActive() && (runtime.seconds() < seconds) && (robot.leftMotor.isBusy() && robot.rightMotor.isBusy())) {\n\n //Tell path to driver\n telemetry.addData(\"Path1\", \"Running to: \", leftTarget, rightTarget);\n telemetry.addData(\"Path2\", \"Running at: \", robot.leftMotor.getCurrentPosition(), robot.rightMotor.getCurrentPosition());\n telemetry.update();\n }\n\n //Stop motors after moved to position\n robot.leftMotor.setPower(0);\n robot.rightMotor.setPower(0);\n\n //Set motors back to using run using encoder\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }", "public void teleopArcadeDrive(){\r\n\t\tmyRobot.arcadeDrive(-m_controls.driver_Y_Axis(), -m_controls.driver_X_Axis());\r\n\t}", "@Override\n protected void execute()\n {\n Robot.driveBase.drive(OI.pilot.leftStick.getY(), OI.pilot.rightStick.getX());\n }", "public void encoderDrive(double speed,\n double leftInches, double rightInches,\n double timeoutS) {\n int newLeftTarget;\n int newRightTarget;\n\n // Ensure that the opmode is still active\n if (opModeIsActive()) {\n\n // Determine new target position, and pass to motor controller\n newLeftTarget = robot.leftDrive.getCurrentPosition() + (int)(leftInches * COUNTS_PER_INCH);\n newRightTarget = robot.rightDrive.getCurrentPosition() + (int)(rightInches * COUNTS_PER_INCH);\n robot.leftDrive.setTargetPosition(newLeftTarget);\n robot.rightDrive.setTargetPosition(newRightTarget);\n\n // Turn On RUN_TO_POSITION\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // reset the timeout time and start motion.\n runtime.reset();\n robot.leftDrive.setPower(Math.abs(speed));\n robot.rightDrive.setPower(Math.abs(speed));\n\n // keep looping while we are still active, and there is time left, and both motors are running.\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\n // always end the motion as soon as possible.\n // However, if you require that BOTH motors have finished their moves before the robot continues\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\n while (opModeIsActive() &&\n (runtime.seconds() < timeoutS) &&\n (robot.leftDrive.isBusy() && robot.rightDrive.isBusy())) {\n\n // Display it for the driver.\n telemetry.addData(\"Path1\", \"Running to %7d :%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Path2\", \"Running at %7d :%7d\",\n robot.leftDrive.getCurrentPosition(),\n robot.rightDrive.getCurrentPosition());\n telemetry.update();\n }\n\n // Stop all motion;\n robot.leftDrive.setPower(0);\n robot.rightDrive.setPower(0);\n\n // Turn off RUN_TO_POSITION\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }", "public void tankDrive(double left, double right) {\r\n if(!turningPID.isEnable()){\r\n robotDrive.tankDrive(left, right, false);\r\n }\r\n }", "public DriveTrain(){\r\n super(\"Drive Train\");\r\n Log = new MetaCommandLog(\"DriveTrain\", \"Gyro\" , \"Left Jaguars,Right Jaguars\");\r\n gyro1 = new Gyro(RobotMap.AnalogSideCar , RobotMap.DriveTrainGyroInput);\r\n lfJag = new Jaguar(RobotMap.frontLeftMotor);\r\n lfRearJag = new Jaguar(RobotMap.rearLeftMotor);\r\n rtJag = new Jaguar(RobotMap.frontRightMotor);\r\n rtRearJag = new Jaguar(RobotMap.rearRightMotor);\r\n drive = new RobotDrive(lfJag, lfRearJag, rtJag, rtRearJag);\r\n \r\n //lfFrontJag = new Jaguar (3);\r\n //rtFrontJag = new Jaguar (4);\r\n \r\n //joystick2 = new Joystick(2);\r\n //sensor1 = new DigitalInput(1);\r\n //sensor2 = new DigitalInput (2);\r\n\r\n }", "public DriveSubsystem() {\n leftFrontMotor = new TalonSRX(RobotMap.leftFrontMotor);\n rightFrontMotor = new TalonSRX(RobotMap.rightFrontMotor);\n leftBackMotor = new TalonSRX(RobotMap.leftBackMotor);\n rightBackMotor = new TalonSRX(RobotMap.rightBackMotor);\n // rightMotor.setInverted(true); \n direction = 0.75;\n SmartDashboard.putString(\"Direction\", \"Shooter side\");\n }", "public void driveRaw (double left, double right) {\n leftBackMotor.set(left);\n leftMiddleMotor.set(left);\n leftFrontMotor.set(left);\n rightBackMotor.set(right);\n rightMiddleMotor.set(right);\n rightFrontMotor.set(right);\n }", "@Override\n\tpublic void robotInit() {\n\t\tdt = new DriveTrain();\n\t\t//Initialize drive Talons\n\t\tRobotMap.vspLeft = new WPI_TalonSRX(RobotMap.dtLeft);\n\t\tRobotMap.vspRight = new WPI_TalonSRX(RobotMap.dtRight);\n\t\t//Initialize drive slave Victors\n\t\t//RobotMap.slaveLeft = new WPI_VictorSPX(RobotMap.slaveDriveLeft);\n\t\t//RobotMap.slaveRight = new WPI_VictorSPX(RobotMap.slaveDriveRight);\n\t\t//Set drive slaves to follower mode\n\t\t//RobotMap.slaveLeft.follow(RobotMap.vspLeft);\n\t\t//RobotMap.slaveRight.follow(RobotMap.vspRight);\n\t\t//Initialize drive train\n\t\tRobotMap.rd = new DifferentialDrive(RobotMap.vspLeft, RobotMap.vspRight);\n\t\t//Initialize drive joystick\n\t\tRobotMap.stick = new Joystick(RobotMap.joystickPort);\n\t\t//Disabled drive safety\n\t\tRobotMap.vspLeft.setSafetyEnabled(false);\n\t\tRobotMap.vspRight.setSafetyEnabled(false);\n\t\tRobotMap.rd.setSafetyEnabled(false);\n\t\t//Initialize lift Talon\n\t\tRobotMap.liftTalon = new WPI_TalonSRX(5);\n\t\t//Initialize operator controller\n\t\tRobotMap.controller = new Joystick(RobotMap.controllerPort);\n\t\t//Initialize intake Victors\n\t\tRobotMap.intakeVictorLeft = new WPI_VictorSPX(RobotMap.intakeMaster);\n\t\tRobotMap.intakeVictorRight = new WPI_VictorSPX(RobotMap.intakeSlave);\n\t\t//Set right intake Victor to follow left intake Victor\n\t\tRobotMap.intakeVictorRight.follow(RobotMap.intakeVictorLeft);\n\t\t\n\t\tRobotMap.climberVictorLeft = new WPI_VictorSPX(RobotMap.climberLeftAddress);\n\t\tRobotMap.climberVictorRight = new WPI_VictorSPX(RobotMap.climberRightAddress);\n\t\t\n\t\tRobotMap.climberVictorRight.follow(RobotMap.climberVictorLeft);\n\t\t\n\t\tRobotMap.piston = new DoubleSolenoid(RobotMap.inChannel, RobotMap.outChannel);\n\t\t\n\t\tRobotMap.intakeLifter = new WPI_VictorSPX(2);\n\t\t\n\t\tRobotMap.liftTalon = new WPI_TalonSRX(RobotMap.liftTalonAddress);\n\t\t\n\t\tautoChooser = new SendableChooser();\n\t\tautoChooser.addDefault(\"Drive to baseline\" , new DriveToBaseline());\n\t\tautoChooser.addObject(\"Null auto\", new NullAuto());\n\t\tautoChooser.addObject(\"Switch from right\", new SwitchFromRight());\n\t\tautoChooser.addObject(\"Switch from left\", new SwitchFromLeft());\n\t\tautoChooser.addObject(\"PID from left\", new PIDfromLeft());\n\t\tautoChooser.addObject(\"PID from right\", new PIDfromRight());\n\t\tautoChooser.addObject(\"Scale from right\", new ScaleAutoRight());\n\t\tautoChooser.addObject(\"Scale from left\", new ScaleAutoLeft());\n\t\tautoChooser.addObject(\"PID tester\", new PIDTESTER());\n\t\tautoChooser.addObject(\"Joe use this one\", new leftOnly());\n\t\tSmartDashboard.putData(\"Autonomous mode chooser\", autoChooser);\n\t\t\n\t\t//RobotMap.liftVictor.follow(RobotMap.climberTalon);\n\t\t\n\t\tRobotMap.vspLeft.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 0);\n\t\tRobotMap.vspRight.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 0);\n\t\t\n\t\tRobotMap.intakeLifted = new DigitalInput(1);\n\t\tRobotMap.isAtTop = new DigitalInput(2);\n\t\tRobotMap.isAtBottom = new DigitalInput(0);\n\t\t\n\t\tRobotMap.vspLeft.configVelocityMeasurementPeriod(VelocityMeasPeriod.Period_100Ms, 1);\n\t\tRobotMap.vspRight.configVelocityMeasurementWindow(64, 1); \n\t\t\n\t\toi = new OI();\n\t}", "public static void init() {\n driveLeft = new VictorSP(1);\r\n LiveWindow.addActuator(\"Drive\", \"Left\", (VictorSP) driveLeft);\r\n \r\n driveRight = new VictorSP(0);\r\n LiveWindow.addActuator(\"Drive\", \"Right\", (VictorSP) driveRight);\r\n \r\n driveMotors = new RobotDrive(driveLeft, driveRight);\r\n \r\n driveMotors.setSafetyEnabled(false);\r\n driveMotors.setExpiration(0.1);\r\n driveMotors.setSensitivity(0.5);\r\n driveMotors.setMaxOutput(1.0);\r\n\r\n driveEncoderLeft = new Encoder(0, 1, true, EncodingType.k1X);\r\n LiveWindow.addSensor(\"Drive\", \"EncoderLeft\", driveEncoderLeft);\r\n driveEncoderLeft.setDistancePerPulse(0.053855829);\r\n driveEncoderLeft.setPIDSourceType(PIDSourceType.kRate);\r\n driveEncoderRight = new Encoder(2, 3, false, EncodingType.k1X);\r\n LiveWindow.addSensor(\"Drive\", \"EncoderRight\", driveEncoderRight);\r\n driveEncoderRight.setDistancePerPulse(0.053855829);\r\n driveEncoderRight.setPIDSourceType(PIDSourceType.kRate);\r\n driveFrontSonar = new Ultrasonic(4, 5);\r\n LiveWindow.addSensor(\"Drive\", \"FrontSonar\", driveFrontSonar);\r\n \r\n shooterMotor = new VictorSP(3);\r\n LiveWindow.addActuator(\"Shooter\", \"Motor\", (VictorSP) shooterMotor);\r\n \r\n climberMotor = new Spark(2);\r\n LiveWindow.addActuator(\"Climber\", \"Motor\", (Spark) climberMotor);\r\n \r\n gearGrabReleaseSolonoid = new DoubleSolenoid(0, 0, 1);\r\n LiveWindow.addActuator(\"Gear\", \"GrabReleaseSolonoid\", gearGrabReleaseSolonoid);\r\n \r\n powerPanel = new PowerDistributionPanel(0);\r\n LiveWindow.addSensor(\"Power\", \"Panel\", powerPanel);\r\n \r\n cameraMountpan = new Servo(4);\r\n LiveWindow.addActuator(\"CameraMount\", \"pan\", cameraMountpan);\r\n \r\n cameraMounttilt = new Servo(5);\r\n LiveWindow.addActuator(\"CameraMount\", \"tilt\", cameraMounttilt);\r\n \r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n\t\tdriveSonarFront = new SonarMB1010(0);\r\n\t\tLiveWindow.addSensor(\"Drive\", \"SonarFront\", driveSonarFront);\r\n\r\n\t\t//driveGyro = new GyroADXRS453();\r\n\t\tdriveGyro = new ADXRS450_Gyro();\r\n\t\tLiveWindow.addSensor(\"Drive\", \"Gyro\", driveGyro);\r\n\t\tdriveGyro.calibrate();\r\n\t}", "public void driveWithJoysticks(double left, double right) {\r\n \tdrivetrain.tankDrive(left, right);\r\n }", "public Drivetrain(){\r\n LeftSlave.follow(LeftMaster);\r\n RightSlave.follow(RightMaster);\r\n\r\n RightMaster.setInverted(true);\r\n LeftMaster.setInverted(true);\r\n\r\n gyro.reset();\r\n}", "public void tankDrive(double left, double right) {\n\t\tdrive.tankDrive(left, right);\n\t}", "public DriveTrain() {\n for(int i = 0; i < 2; i++) {\n leftMotors[i] = new CANSparkMax(Constants.LEFT_DRIVE_CANS[i], MotorType.kBrushless);\n rightMotors[i] = new CANSparkMax(Constants.RIGHT_DRIVE_CANS[i], MotorType.kBrushless);\n rightMotors[i].setInverted(true);\n }\n }", "public void drive(double speedLeft, double speedRight){\n \t\tsetRight(speedRight);\n \t\tsetLeft(speedLeft);\n \t}", "public abstract void drive(double leftSpeed, double rightSpeed);", "public void tankDrive(double left, double right) {\n leftMaster.set(left * 12.0);\n rightMaster.set(right * -12.0);\n }", "private SWDrive() {\n super();\n leftMaster = new TalonSRX(Constants.LEFT_MASTER_PORT);\n leftMaster.setNeutralMode(NeutralMode.Brake);\n leftMaster.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 0);\n leftMaster.setSelectedSensorPosition(0, 0, 0);\n leftMaster.config_kP(0, Constants.LINEAR_GAINS[0], 0);\n leftMaster.config_kI(0, Constants.LINEAR_GAINS[1], 0);\n leftMaster.config_kD(0, Constants.LINEAR_GAINS[2], 0);\n leftMaster.configMotionAcceleration(1000, 0);\n\t\tleftMaster.configMotionCruiseVelocity(5000, 0);\n\t\tleftMaster.config_IntegralZone(0, 200, 0);\n\t\tleftMaster.configClosedloopRamp(0, 256);\n\t\tleftMaster.configOpenloopRamp(0, 256);\n\t\tleftMaster.configAllowableClosedloopError(0, Constants.LINEAR_EPSILON, 0);\n\n rightMaster = new TalonSRX(Constants.RIGHT_MASTER_PORT);\n rightMaster.setNeutralMode(NeutralMode.Brake);\n rightMaster.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 0);\n rightMaster.setSelectedSensorPosition(0, 0, 0);\n rightMaster.setInverted(true);\n rightMaster.config_kP(0, Constants.LINEAR_GAINS[0], 0);\n rightMaster.config_kI(0, Constants.LINEAR_GAINS[1], 0);\n rightMaster.config_kD(0, Constants.LINEAR_GAINS[2], 0);\n rightMaster.configMotionAcceleration(1000, 0);\n\t\trightMaster.configMotionCruiseVelocity(5000, 0);\n\t\trightMaster.config_IntegralZone(0, 200, 0);\n\t\trightMaster.configClosedloopRamp(0, 256);\n\t\trightMaster.configOpenloopRamp(0, 256);\n rightMaster.configAllowableClosedloopError(0, Constants.LINEAR_EPSILON, 0); \n\n leftSlave = new VictorSPX(Constants.LEFT_SLAVE_PORT);\n leftSlave.setNeutralMode(NeutralMode.Brake);\n leftSlave.follow(leftMaster);\n\n rightSlave = new VictorSPX(Constants.RIGHT_SLAVE_PORT);\n rightSlave.setNeutralMode(NeutralMode.Brake);\n //rightSlave.setInverted(true);\n rightSlave.follow(rightMaster);\n\n gearSolenoid = new DoubleSolenoid(Constants.DRIVE_SOLENOID_FORWARD, Constants.DRIVE_SOLENOID_REVERSE);\n\n navx = new AHRS(Port.kMXP);\n controller = new XboxController(Constants.PRIMARY_DRIVER_PORT);\n pid = new PIDController();\n\n try {\n //piComm = new DatagramSocket();\n //host = InetAddress.getByName(\"10.2.63.25\");\n } catch(Exception e) {\n System.out.println(\"Exception caught when initializing socket: \" + e.getMessage());\n }\n \n //tXBuffer = new CircularBuffer(10);\n\n tankEnabled = false;\n setpointReached = true;\n rotateSet = false;\n antiTiltEnabled = true;\n cargoSearch = false;\n piCamera = false;\n leftTarget = 0;\n rightTarget = 0;\n lacc = 0;\n racc = 0;\n }", "private void updateLinearDrive() {\n// double rotations = (getLeftRotations() + getRightRotations()) / 2;\n// linearDriveDistance = Conversion.rotationsToInches(rotations, Constants.driveWheelDiameter);\n// double angleController = turnControl.getOutput(linearDriveMultiplier * (navX.getAngle() - linearDriveTargetAngle));\n// double driveController = driveControl.getOutput(linearDriveTargetDistance - linearDriveDistance);\n// setOutput(driveController + angleController, driveController - angleController);\n }", "public void DriveForwardSimple() {\n \ttheRobot.drive(-0.5, 0.0);\n }", "private void handleDriveInput() throws EnhancedIOException {\n\n boolean[] driveButtons = joysticks.getLeftButtons();\n\n //double[] instructions=joysticks.getMovementInstructions();\n\n //comment this out if not using xbox and uncomment above inorder to get correct movement instructions\n //sets overDrive to correspond to the trigger\n\n //changed from using xBox to test encoders and line code\n double[] instructions = joysticks.getMovementInstructions();\n\n\n //Comment one or the other out to set how to control overdrive\n boolean overDrive = driveButtons[0];\n //boolean overDrive = xboxController.getButton(6);\n\n //testing linetracking and encoder\n /*if(driveButtons[2] || xboxController.getButton(7));\n {\n int channel2= 12;\n int channel3 = 13;\n int channel4 = 14;\n driveTask = new LineTrackThread(channel2, channel3, channel4,true,false);\n driveTask.start();\n }\n */\n\n //gets raw speeds\n SpeedSet speedsNew = getRobotDrive().getSpeeds(instructions);\n\n //reduces speeds to correct range;\n speedsNew.reduce();\n\n //handles overDrive\n speedsNew.square();\n\n speedsNew = getRobotDrive().handleOverDrive(speedsNew, overDrive);\n\n //limits acceleration\n speedsNew = getRobotDrive().accelerationLimit(speedsNew);\n\n //sets the processed motor speeds, casted to be a pair\n getRobotDrive().setSpeeds((SpeedPair) speedsNew);\n\n //if button 5 is pressed on the joystick, start line tracking\n\n /*commented out, we don't want line track during teleop\n if (driveButtons[4]) {\n //first create the thread\n driveTask = new WaltLineTrack(false, false);\n\n //then start it WITH THE BEGIN method so that it is immediately set to running = true\n //(begin is IMPORTANT!)\n driveTask.begin();\n\n //tell the driveTrain it is under in automatic control\n driveState = AUTO;\n }\n */\n }", "public DriveCommand(double leftValue, double rightValue, double timeout) {\n\t\trequires(Robot.driveTrain);\n\t\tthis.leftValue = leftValue;\n\t\tthis.rightValue = rightValue;\n\t\tthis.timeout = timeout;\n\t}", "public RobotDrive_3C2S(CANTalon leftFrontMotor, CANTalon leftRearMotor, CANTalon leftTopMotor,\r\n\t\t\tCANTalon rightFrontMotor, CANTalon rightRearMotor, CANTalon rightTopMotor) {\r\n\t\tm_leftCIMMotor1 = requireNonNull(leftFrontMotor, \"leftFrontMotor cannot be null\");\r\n\t\tm_leftCIMMotor2 = requireNonNull(leftRearMotor, \"leftRearMotor cannot be null\");\r\n\t\tm_leftMiniCIMMotor1 = requireNonNull(leftTopMotor, \"leftTopMotor cannot be null\"); // TODO: insure brake is off\r\n\t\tm_rightCIMMotor1 = requireNonNull(rightFrontMotor, \"rightFrontMotor cannot be null\");\r\n\t\tm_rightCIMMotor2 = requireNonNull(rightRearMotor, \"rightRearMotor cannot be null\");\r\n\t\tm_rightMiniCIMMotor1 = requireNonNull(rightTopMotor, \"rightTopMotor cannot be null\"); // TODO: insure brake is off\r\n\t\tm_rightGearSolenoid = new DoubleSolenoid(15,0,1);\r\n\t\tm_leftGearSolenoid = new DoubleSolenoid(15,2,3);\r\n\t\tm_leftMiniCIMMotor1.enableBrakeMode(false);\r\n\t\tm_rightMiniCIMMotor1.enableBrakeMode(false);\r\n\t\tm_sensitivity = kDefaultSensitivity;\r\n\t\tm_maxOutput = kDefaultMaxOutput;\r\n\t\tsetupMotorSafety();\r\n\t\tdrive(0, 0);\r\n\t}", "@Override\npublic void teleopPeriodic() {\nm_robotDrive.arcadeDrive(m_stick.getRawAxis(5)* (-0.5), m_stick.getRawAxis(4)*0.5);\n}", "public DriveSubsystem() {\n\t\tJaguar frontLeftCIM = new Jaguar(RobotMap.D_FRONT_LEFT_CIM);\n\t\tJaguar rearLeftCIM = new Jaguar(RobotMap.D_REAR_LEFT_CIM);\n\t\tJaguar frontRightCIM = new Jaguar(RobotMap.D_FRONT_RIGHT_CIM);\n\t\tJaguar rearRightCIM = new Jaguar(RobotMap.D_REAR_RIGHT_CIM);\n\t\t\n\t\tdrive = new RobotDrive(frontLeftCIM, rearLeftCIM, frontRightCIM, rearRightCIM);\n\t}", "@Override\n protected void execute() {\n\n int leftMultiplier = -1;\n if (IsLeft) {\n leftMultiplier = 1;\n }\n Robot.m_drivetrain.drive(leftMultiplier * .5, -leftMultiplier * .5);\n\n }", "public SwerveDrive(SwerveModule FrontLeft, SwerveModule FrontRight, SwerveModule BackLeft, SwerveModule BackRight) {\n super(\"SwerveDrive\");\n modules.add(FrontLeft);\n modules.add(FrontRight);\n modules.add(BackLeft);\n modules.add(BackRight);\n setMode(SwerveMode.FrontDriveBackLock); // Default mode\n}", "public DriveSubsystem() {\n m_leftSpark1 = new CANSparkMax(DriveConstants.kLeftMotor1Port, MotorType.kBrushless);\n m_leftSpark2 = new CANSparkMax(DriveConstants.kLeftMotor2Port, MotorType.kBrushless);\n m_rightSpark1 = new CANSparkMax(DriveConstants.kRightMotor1Port, MotorType.kBrushless);\n m_rightSpark2 = new CANSparkMax(DriveConstants.kRightMotor2Port, MotorType.kBrushless);\n\n initSparkMax(m_leftSpark1);\n initSparkMax(m_leftSpark2);\n initSparkMax(m_rightSpark1);\n initSparkMax(m_rightSpark2);\n\n m_leftSpark2.follow(m_leftSpark1);\n m_rightSpark2.follow(m_rightSpark2);\n\n m_leftEncoder = m_leftSpark1.getEncoder();\n m_rightEncoder = m_rightSpark1.getEncoder();\n\n m_drive = new DifferentialDrive(m_leftSpark1, m_rightSpark1);\n }", "public void outputToDrive(double rightVoltage, double leftVoltage){\n\t\tif (Constants.Drive.headingInvert) {\n\t\t\tConstants.Drive.left1.setVoltage(leftVoltage);\n\t\t\tConstants.Drive.left2.setVoltage(leftVoltage);\n\t\t\tConstants.Drive.right1.setVoltage(-rightVoltage);\n\t\t\tConstants.Drive.right2.setVoltage(-rightVoltage);\n\t\t} else {\n\t\t\tConstants.Drive.left1.setVoltage(-leftVoltage);\n\t\t\tConstants.Drive.left2.setVoltage(-leftVoltage);\n\t\t\tConstants.Drive.right1.setVoltage(rightVoltage);\n\t\t\tConstants.Drive.right2.setVoltage(rightVoltage);\n\t\t}\n }", "public void drive(XboxController xb, double left, double right){\n this.left.drive(xb.getY(Hand.kLeft),left);\n this.right.drive(xb.getY(Hand.kRight),right);\n }", "public DriveTrain() {\n\n\t\tleft1 = new CANTalon(RobotMap.DMTOPleft);\n\t\tleft2 = new CANTalon(RobotMap.DMMIDDLEleft);\n\t\tleft3 = new CANTalon(RobotMap.DMBOTTOMleft);\n\t\tright1 = new CANTalon(RobotMap.DMTOPright);\n\t\tright2 = new CANTalon(RobotMap.DMMIDDLEright);\n\t\tright3 = new CANTalon(RobotMap.DMBOTTOMright);\n\t\tright = new Encoder(RobotMap.DRIVEencoderRA, RobotMap.DRIVEencoderRB, false, Encoder.EncodingType.k4X);\n\t\tleft = new Encoder(RobotMap.DRIVEencoderLA, RobotMap.DRIVEencoderLB, true, Encoder.EncodingType.k4X);\n\t\tspeedShifter = new DoubleSolenoid(RobotMap.PCM, RobotMap.SHIFTLOW, RobotMap.SHIFTHI);\n\t\tultrasonic = new AnalogInput(RobotMap.ULTRASONICDT);\n\t\tservo = new Servo(RobotMap.SERVO_drivetrain);\n\n\t\t// TODO: set left and right encoder distance per pulse here! :)\n\n\t\tspeedShifter.set(DoubleSolenoid.Value.kReverse);\n\t\tdouble dpp = 3 * ((6 * Math.PI) / 1024); // distance per pulse\n\t\t\t\t\t\t\t\t\t\t\t\t\t// (circumference/counts per\n\t\t\t\t\t\t\t\t\t\t\t\t\t// revolution)\n\t\tright.setDistancePerPulse(dpp); // must be changed for both right and\n\t\t\t\t\t\t\t\t\t\t// left\n\t\tleft.setDistancePerPulse(dpp);\n\n\t}", "public Drive() {\r\n leftFrontDrive = new Talon(Constants.DRIVE_LEFT_FRONT);\r\n leftRearDrive = new Talon(Constants.DRIVE_LEFT_REAR);\r\n rightFrontDrive = new Talon(Constants.DRIVE_RIGHT_FRONT);\r\n rightRearDrive = new Talon(Constants.DRIVE_RIGHT_REAR);\r\n \r\n robotDrive = new RobotDrive(\r\n leftFrontDrive,\r\n leftRearDrive, \r\n rightFrontDrive, \r\n rightRearDrive);\r\n \r\n driveDirection = 1.0;\r\n \r\n arcadeYRamp = new CarbonRamp();\r\n arcadeXRamp = new CarbonRamp();\r\n tankLeftRamp = new CarbonRamp();\r\n tankRightRamp = new CarbonRamp();\r\n \r\n ui = CarbonUI.getUI();\r\n }", "private void encoderDrive(double speed,\n double leftInches, double rightInches,\n double timeoutS) {\n int newLeftFrontTarget;\n int newLeftBackTarget;\n int newRightFrontTarget;\n int newRightBackTarget;\n\n // Ensure that the opmode is still active\n if (opModeIsActive()) {\n\n robot.resetWheelEncoders();\n\n // Determine new target position, and pass to motor controller\n newLeftFrontTarget = robot.leftFront.getCurrentPosition() + (int) (leftInches * TICKS_PER_INCH);\n newLeftBackTarget = robot.leftBack.getCurrentPosition() + (int) (leftInches * TICKS_PER_INCH);\n newRightFrontTarget = robot.rightFront.getCurrentPosition() + (int) (rightInches * TICKS_PER_INCH);\n newRightBackTarget = robot.rightBack.getCurrentPosition() + (int) (rightInches * TICKS_PER_INCH);\n robot.leftFront.setTargetPosition(newLeftFrontTarget);\n robot.leftBack.setTargetPosition(newLeftBackTarget);\n robot.rightFront.setTargetPosition(newRightFrontTarget);\n robot.rightBack.setTargetPosition(newRightBackTarget);\n\n // Turn On RUN_TO_POSITION\n robot.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n\n // reset the timeout time and start motion.\n encoderTime.reset();\n robot.driveForward(Math.abs(speed));\n\n // wait for motors to not be busy\n while (opModeIsActive() &&\n (encoderTime.seconds() < timeoutS) &&\n (robot.leftFront.isBusy() && robot.leftBack.isBusy() && robot.rightFront.isBusy() && robot.rightBack.isBusy())) {\n\n // Display it for the driver.\n telemetry.addData(\"Goal Position\", \"%7d :%7d :%7d :%7d\", newLeftFrontTarget, newLeftBackTarget, newRightFrontTarget, newRightBackTarget);\n telemetry.addData(\"Current Position\", \"%7d :%7d :%7d :%7d\",\n robot.leftFront.getCurrentPosition(),\n robot.leftBack.getCurrentPosition(),\n robot.rightFront.getCurrentPosition(),\n robot.rightBack.getCurrentPosition());\n telemetry.update();\n }\n\n // Stop all motion;\n robot.stopDriving();\n\n // Turn off RUN_TO_POSITION\n robot.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n sleep(100); // optional pause after each move\n }\n }", "private void driveRight() {\n setSpeed(MAX_SPEED, MIN_SPEED);\n }", "public void tankDrive(Joystick leftStick, Joystick rightStick) {\r\n if(!turningPID.isEnable()){\r\n robotDrive.tankDrive(leftStick, rightStick);\r\n } \r\n }", "public void drive(double leftPower, double rightPower) {\n\t\t// Send calculated power (Motors)\n\t\tleft_drive.setPower(leftPower);\n\t\tright_drive.setPower(rightPower);\n\t\t\n\t\t//sendTelemetry(leftPower, rightPower);\n\t}", "protected void encoderDrive(double leftInches, double rightInches, double speed, double desiredAngle) {\n if (!doMotors)\n return;\n\n if (desiredAngle >= 0.0f) {\n motorPid.reset();\n motorPid.setSetpoint(0);\n motorPid.setOutputRange(0, speed);\n motorPid.setInputRange(-90, 90);\n motorPid.enable();\n }\n\n float startAngle = getGyroscopeAngle();\n double countsPerInch = COUNTS_PER_MOTOR / (WHEEL_DIAMETER * Math.PI);\n int softStartDuration = 2000; // in milliseconds\n int brakeOffsetOne = (int) (18.0f * countsPerInch);\n int brakeOffsetTwo = (int) (8.0f * countsPerInch);\n\n // Get the starting position of the encoders.\n isDriving = true;\n driveLeftStart = leftDrive.getCurrentPosition();\n driveRightStart = rightDrive.getCurrentPosition();\n\n int leftNew = (int) (leftInches * countsPerInch * RAT_FUDGE);\n int rightNew = (int) (rightInches * countsPerInch * RAT_FUDGE);\n driveLeftTarget = driveLeftStart + leftNew;\n driveRightTarget = driveRightStart + rightNew;\n leftDrive.setTargetPosition(driveLeftTarget);\n rightDrive.setTargetPosition(driveRightTarget);\n\n // Turn On RUN_TO_POSITION\n leftDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // Compute the braking zones.\n int leftBrakeOne = driveLeftStart + brakeOffsetOne; // how many remaining will trigger it\n int rightBrakeOne = driveRightStart + brakeOffsetOne;\n int leftBrakeTwo = driveLeftStart + brakeOffsetTwo;\n int rightBrakeTwo = driveRightStart + brakeOffsetTwo;\n\n\n // keep looping while we are still active, and there is time left, and both motors are running.\n // Note: We use (isBusy() && isBusy()) in the loop test, which means that when EITHER motor hits\n // its target position, the motion will stop. This is \"safer\" in the event that the robot will\n // always end the motion as soon as possible.\n // However, if you require that BOTH motors have finished their moves before the robot continues\n // onto the next step, use (isBusy() || isBusy()) in the loop test.\n ElapsedTime motorOnTime = new ElapsedTime();\n boolean keepGoing = true;\n while (opModeIsActive() && keepGoing && (motorOnTime.seconds() < 30)) {\n printStatus();\n\n int leftPos = leftDrive.getCurrentPosition();\n int rightPos = rightDrive.getCurrentPosition();\n\n // soft start\n double currSpeed = speed;\n double elapsed = motorOnTime.milliseconds();\n if (elapsed < softStartDuration) {\n double ratio = elapsed / softStartDuration;\n currSpeed *= ratio;\n }\n\n // Throttle speed down as we approach our target\n int remainingLeft = driveLeftTarget - leftPos;\n int remainingRight = driveRightTarget - rightPos;\n if ((Math.abs(remainingLeft) < brakeOffsetTwo) || (Math.abs(remainingRight) < brakeOffsetTwo)) {\n currSpeed *= 0.25;\n } else if ((Math.abs(remainingLeft) < brakeOffsetOne) || (Math.abs(remainingRight) < brakeOffsetOne)) {\n currSpeed *= 0.5;\n }\n\n // Calculate PID correction = straighten out the line!\n if (desiredAngle >= 0.0f) {\n float currentAngle = getGyroscopeAngle();\n driveAngleOffset = getAngleDifference(currentAngle, (float)desiredAngle);\n driveAngleCorrection = (float) motorPid.performPID(driveAngleOffset);\n if ((leftInches < 0) && (rightInches < 0)) {\n driveAngleCorrection = -driveAngleCorrection;\n }\n }\n\n // Record and apply the desired power level.\n driveLeftSpeed = currSpeed - driveAngleCorrection;\n driveRightSpeed = currSpeed + driveAngleCorrection;\n leftDrive.setPower(Math.abs(driveLeftSpeed));\n rightDrive.setPower(Math.abs(driveRightSpeed));\n\n keepGoing = rightDrive.isBusy() && leftDrive.isBusy();\n }\n\n // Turn off RUN_TO_POSITION\n printStatus();\n leftDrive.setPower(0);\n rightDrive.setPower(0);\n leftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n driveLeftStart = 0;\n driveRightStart = 0;\n driveLeftTarget = 0;\n driveRightTarget = 0;\n driveLeftSpeed = 0.0f;\n driveRightSpeed = 0.0f;\n driveAngleOffset = 0.0f;\n driveAngleCorrection = 0.0f;\n isDriving = false;\n }", "private void LeftRightRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n\t\t\n\t}", "public void userDriveTank() {\n\t\tdouble leftValue = Robot.OI.getLeftJoystick().getAxis(Joystick.AxisType.kY);\n\t\tdouble rightValue = Robot.OI.getRightJoystick().getAxis(Joystick.AxisType.kY);\n\t\t\n\t\tdrive.tankDrive(leftValue, rightValue);\n\t}", "@Override\n\tpublic void robotInit() {\n\t\tfr = new Spark(HardwareMap.PWM.DRIVE_FR);\n\t\tfl = new Spark(HardwareMap.PWM.DRIVE_FL);\n\t\tbr = new Spark(HardwareMap.PWM.DRIVE_BR);\n\t\tbl = new Spark(HardwareMap.PWM.DRIVE_BL);\n\t\t\n\t\t// Create the side modules\n\t\tleftGroup = new SpeedControllerGroup(bl, fl);\n\t\trightGroup = new SpeedControllerGroup(br, fr);\n\n\t\t// Init the the drive train\n\t\tdrive = new DifferentialDrive(leftGroup, rightGroup);\n\t\t\n\t\t//Init the gyro\n\t\tgyro.calibrate();\n\t\tSmartDashboard.putData(\"Gyro\", gyro);\n\t\t\n\t\tdrive.setSafetyEnabled(false);\n\t\tthis.setName(Subsystems.DRIVE);\n\t}", "public void run() {\r\n if (stateRegistry.getDriveDirection() == REVERSE) {\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontRight, true);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearLeft, true);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearRight, true);\r\n robotDrive.tankDrive(rightDriveJoystick, leftDriveJoystick);\r\n }\r\n else {\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, false);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontRight, false);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearLeft, false);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearRight, false);\r\n robotDrive.tankDrive(leftDriveJoystick, rightDriveJoystick);\r\n }\r\n }", "@Override\n protected void initialize() {\n Robot.leftDriveEncoder.reset();\n Robot.rightDriveEncoder.reset();\n tempTargetDirection = Robot.targetDirection + Robot.navX.getYaw();\n\n\n }", "public Direction getCorrectRobotDirection();", "public void updateDrive () {\n leftCurrSpeed = scale (leftCurrSpeed, leftTargetSpeed, Constants.Drivetrain.ACCELERATION_SCALING, Constants.Drivetrain.ACCELERATION_THRESHOLD);\n rightCurrSpeed = scale (rightCurrSpeed, rightTargetSpeed, Constants.Drivetrain.ACCELERATION_SCALING, Constants.Drivetrain.ACCELERATION_THRESHOLD);\n driveRaw (leftCurrSpeed, rightCurrSpeed);\n }", "public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n int newLeftTarget;\n int newRightTarget;\n int moveCounts;\n double max;\n double error;\n double steer;\n double leftSpeed;\n double rightSpeed;\n\n // Ensure that the opmode is still active\n if (opModeIsActive()) {\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = robot.leftDrive.getCurrentPosition() + moveCounts;\n newRightTarget = robot.rightDrive.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n robot.leftDrive.setTargetPosition(newLeftTarget);\n robot.rightDrive.setTargetPosition(newRightTarget);\n\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n robot.leftDrive.setPower(speed);\n robot.rightDrive.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while (opModeIsActive() &&\n (robot.leftDrive.isBusy() && robot.rightDrive.isBusy())) {\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if either one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n robot.leftDrive.setPower(leftSpeed);\n robot.rightDrive.setPower(rightSpeed);\n\n // Display drive status for the driver.\n telemetry.addData(\"Err/St\", \"%5.1f/%5.1f\", error, steer);\n telemetry.addData(\"Target\", \"%7d:%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Actual\", \"%7d:%7d\", robot.leftDrive.getCurrentPosition(),\n robot.rightDrive.getCurrentPosition());\n telemetry.addData(\"Speed\", \"%5.2f:%5.2f\", leftSpeed, rightSpeed);\n telemetry.update();\n }\n\n // Stop all motion;\n robot.leftDrive.setPower(0);\n robot.rightDrive.setPower(0);\n\n // Turn off RUN_TO_POSITION\n robot.leftDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n robot.rightDrive.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }\n }", "@Override\n public void execute() {\n Robot.driveBase.arcadeDrive(Robot.oi.driver.getLeftY() * m_powerScale, Robot.oi.driver.getRightX() * m_powerScale, false);\n }", "public void drive(double leftMotors, double rightMotors) {\n\t\tleft1.set(leftMotors);\n\t\tleft2.set(leftMotors);\n\t\tleft3.set(leftMotors);\n\t\tright1.set(rightMotors);\n\t\tright2.set(rightMotors);\n\t\tright3.set(rightMotors);\n\t}", "public void tankDrive(double leftPower, double rightPower){\n motorFrontLeft.setPower(leftPower);\n motorFrontRight.setPower(rightPower);\n motorBackLeft.setPower(leftPower*.5);\n motorBackRight.setPower(rightPower*.5);\n }", "public void setDrivePower(double leftWheel, double rightWheel) {\n // Output the values to the motor drives.\n leftDrive.setPower(leftWheel);\n rightDrive.setPower(rightWheel);\n }", "public void gearDrive(XboxController xb){ \n this.left.drive(xb.getY(Hand.kLeft), gear.getScaler());\n this.right.drive(xb.getY(Hand.kRight), gear.getScaler());\n }", "public void driveTank(double leftValue, double rightValue) {\n\t\tdrive.tankDrive(-leftValue, -rightValue);\n\t}", "public DriveTrain()\n\t{\n\t\tleftMotor1 = new VictorSPX(DriveTrainConstants.leftFrontMotorChannel);\n\t\tleftMotor2 = new VictorSPX(DriveTrainConstants.leftRearMotorChannel);\n\t\trightMotor1 = new VictorSPX(DriveTrainConstants.rightFrontMotorChannel);\n\t\trightMotor2 = new VictorSPX(DriveTrainConstants.rightRearMotorChannel);\n\n\t\tleftMotor1.setInverted(DriveTrainConstants.leftMotorInverted);\n\t\trightMotor1.setInverted(DriveTrainConstants.rightMotorInverted);\n\n\t\tleftMotor2.setInverted(InvertType.FollowMaster);\n\t\trightMotor2.setInverted(InvertType.FollowMaster);\n\n\t\tleftMotor2.set(ControlMode.Follower, leftMotor1.getDeviceID());\n\t\trightMotor2.set(ControlMode.Follower, rightMotor1.getDeviceID());\n\t}", "Robot getRobot(Position pos);", "private void robotMovement()\n {\n\n /* If it will be rotating, don't drive */\n if (!joystick.rightShouldMove()) {\n\n if (joystick.leftShouldMove()) {\n\n /* Derive movement values from gamepad */\n Joystick.Direction direction = joystick.getLeftDirection();\n double power = joystick.getLeftPower();\n\n int[] modifier;\n\n if (direction == Joystick.Direction.UP) {\n modifier = modUP;\n } else if (direction == Joystick.Direction.DOWN) {\n modifier = modDOWN;\n } else if (direction == Joystick.Direction.RIGHT) {\n modifier = modRIGHT;\n } else {\n modifier = modLEFT;\n }\n\n motorLeftFront.setPower(modifier[0] * ((power * 0.8) + (0.01 * frontInc)));\n motorRightFront.setPower(modifier[1] * ((power * 0.8) + (0.01 * frontInc)));\n motorLeftBack.setPower(modifier[2] * ((power * 0.8) + (0.01 * backInc)));\n motorRightBack.setPower(modifier[3] * ((power * 0.8) + (0.01 * backInc)));\n\n } else {\n setMotorPowerToZero();\n }\n\n } else {\n\n /* Rotation modifiers for sides of bot */\n Joystick.Direction d = joystick.getRightDirection();\n double power = joystick.getRightPower();\n boolean left = d == Joystick.Direction.LEFT;\n double sideMod = left ? 1 : -1;\n\n /* Set motor power */\n motorLeftFront.setPower(sideMod * power);\n motorLeftBack.setPower(sideMod * power);\n motorRightFront.setPower(sideMod * power);\n motorRightBack.setPower(sideMod * power);\n\n }\n\n }", "public ArcadeDrive() {\n\t\tthis.drivetrain = Robot.DRIVETRAIN;\n\t\trequires(drivetrain);\n\t}", "@Override\n public void runOpMode() {\n leftDrive = hardwareMap.get(DcMotor.class, \"left_drive\");\n rightDrive = hardwareMap.get(DcMotor.class, \"right_drive\");\n intake = hardwareMap.get (DcMotor.class, \"intake\");\n dropServo = hardwareMap.get(Servo.class, \"drop_Servo\");\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n rightDrive.setDirection(DcMotor.Direction.FORWARD);\n\n dropServo.setPosition(1.0);\n waitForStart();\n dropServo.setPosition(0.6);\n sleep(500);\n VuforiaOrientator();\n encoderSequence(\"dumbDrive\");\n\n\n }", "public void RotateRight(double speed, int distance) {\n // Reset Encoders\n robot2.DriveRightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveRightRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n sleep(500);\n\n robot2.DriveRightFront.setTargetPosition(0);\n robot2.DriveRightRear.setTargetPosition(0);\n robot2.DriveLeftFront.setTargetPosition(0);\n robot2.DriveLeftRear.setTargetPosition(0);\n\n // Set RUN_TO_POSITION\n\n robot2.DriveRightFront.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot2.DriveLeftFront.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot2.DriveRightRear.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot2.DriveLeftRear.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // Set Motor Power to 0\n robot2.DriveRightFront.setPower(0);\n robot2.DriveRightRear.setPower(0);\n robot2.DriveLeftFront.setPower(0);\n robot2.DriveLeftRear.setPower(0);\n\n\n double InchesMoving = (distance * COUNTS_PER_INCH);\n\n // Set Target to RotateRight\n robot2.DriveRightFront.setTargetPosition((int) -InchesMoving);\n robot2.DriveRightRear.setTargetPosition((int) -InchesMoving);\n robot2.DriveLeftRear.setTargetPosition((int) InchesMoving);\n robot2.DriveLeftFront.setTargetPosition((int) InchesMoving);\n\n while (robot2.DriveRightFront.isBusy() && robot2.DriveRightRear.isBusy() && robot2.DriveLeftRear.isBusy() && robot2.DriveLeftFront.isBusy()) {\n\n // wait for robot to move to RUN_TO_POSITION setting\n\n double MoveSpeed = speed;\n\n // Set Motor Power\n robot2.DriveRightFront.setPower(MoveSpeed);\n robot2.DriveRightRear.setPower(MoveSpeed);\n robot2.DriveLeftFront.setPower(MoveSpeed);\n robot2.DriveLeftRear.setPower(MoveSpeed);\n\n } // THis brace close out the while Loop\n\n //Reset Encoders\n robot2.DriveRightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveRightRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot2.DriveLeftRear.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n\n robot2.DriveRightFront.setPower(0);\n robot2.DriveRightRear.setPower(0);\n robot2.DriveLeftFront.setPower(0);\n robot2.DriveLeftRear.setPower(0);\n }", "public MixedDrive(WPI_TalonSRX frontLeft, WPI_TalonSRX rearLeft, WPI_TalonSRX frontRight, WPI_TalonSRX rearRight){\n this(frontLeft,rearLeft,frontRight,rearRight,0);\n }", "public SubsystemDrive(){\n \t\n \t//Master Talons\n \tleft1 = new CANTalon(Constants.LEFT_MOTOR);\n \tright1 = new CANTalon(Constants.RIGHT_MOTOR);\n \t\n \t//Slave Talons\n \tleft2 = new CANTalon(Constants.OTHER_LEFT_MOTOR);\n \tright2 = new CANTalon(Constants.OTHER_RIGHT_MOTOR);\n \t\n \t//VOLTAGE\n \tvoltage(left1); \t\n \tvoltage(left2); \t\n \tvoltage(right1); \t\n \tvoltage(right2); \t\n\n \t//Train the Masters\n \tleft1.setFeedbackDevice(CANTalon.FeedbackDevice.CtreMagEncoder_Relative);\n \tright1.setFeedbackDevice(CANTalon.FeedbackDevice.CtreMagEncoder_Relative);\n \tleft1.setEncPosition(0);\n \tright1.setEncPosition(0);\n \tleft1.reverseSensor(false);\n \tright1.reverseSensor(false);\n \t\n \t//Train the Slaves\n \tleft2.changeControlMode(CANTalon.TalonControlMode.Follower);\n \tright2.changeControlMode(CANTalon.TalonControlMode.Follower);\n \tleft2.set(left1.getDeviceID());\n \tright2.set(right1.getDeviceID());\n \t\n \tpid = new TalonPID(new CANTalon[]{left1, right1}, \"MOTORS\");\n }", "@Override\n\tpublic void drive() {\n\n\t}", "public DriveTrain(int lf, int lr, int rf, int rr){\n this.left = new side(lf, lr);\n this.right = new side(rf, rr);\n }", "public void tankDrive(double leftSpeed, double rightSpeed) {\n leftSpeed = clipRange(leftSpeed);\n rightSpeed = clipRange(rightSpeed);\n\n double[] wheelSpeeds = new double[2];\n wheelSpeeds[MotorType.kLeft.value] = leftSpeed;\n wheelSpeeds[MotorType.kRight.value] = rightSpeed;\n\n normalize(wheelSpeeds);\n\n motors[MotorType.kLeft.value].set(wheelSpeeds[0] * maxOutput);\n motors[MotorType.kRight.value].set(wheelSpeeds[1] * -maxOutput);\n }", "public Robot() {\t\n\t\tthis.step = myclass.STD_STEP ; \n\t\tthis.speed = myclass.STD_SPEED ; \n\t\tthis.rightM = new EV3LargeRegulatedMotor(myclass.rightP) ; \n\t\tthis.leftM = new EV3LargeRegulatedMotor(myclass.leftP) ; \n\t}", "public void tankDriveRaw(double leftSpeed, double rightSpeed) {\n\t\tdifferentialDrive.tankDrive(leftSpeed, rightSpeed, false);\n\t}", "public void omniDrive() {\r\n \r\n }", "@Override\n\tpublic void robotInit() {\n\t\toi = new OI();\n\t\tdrivebase.calibrateGyro();\n\t\tSmartDashboard.putData(\"Zero Gyro\", new ZeroGyro());\n\t\tSmartDashboard.putData(\"Calibrate Gyro - WHILE ROBOT NOT MOVING\", new CalibrateGyro());\n\t\tchooser.addDefault(\"Default Prepare Gear Auto\", new PrepareGearManipulator());\n\t\t//shooterModeChooser.addDefault(\"Shooter at Nominal Preset when Pressed\", object);\n\t\t/*chooser.addObject(\"Left Gear Auto\", new LeftGearGroup());\n\t\tchooser.addObject(\"Center Gear Auto\", new CenterGearGroup());*/\n\t//\tchooser.addObject(\"Test Vision Auto\", new TurnTillPerpVision(true));\n\t//\tchooser.addObject(\"Testing turn gyro\", new RotateToGyroAngle(90,4));\n\t\t//chooser.addObject(\"DriveStraightTest\", new GoAndReturn());\n\t\t //UNNECESSARY AUTOS FOR TESTING ^\n\t\tchooser.addObject(\"Center Gear Encoder Auto (place)\", new DriveStraightCenter());\n\t\tchooser.addObject(\"Vision center TESTING!!!\", new TurnTillPerpVision());\n\t\tchooser.addObject(\"Boiler Auto RED\", new BoilerAuto(true));\n\t\tchooser.addObject(\"Boiler Auto BLUE\", new BoilerAuto(false));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t//\tchooser.addObject(\"Center Gear Encoder Auto (do not place )\", new DriveToFace(false, false, false));\n\t\tchooser.addObject(\"Baseline\", new DriveToLeftRightFace(false,false,false,false));\n\t\tchooser.addObject(\"TEST DRIVETANK AUTO\", new DriveTimedTank(0.7,0.7,5));\n\t\tchooser.addObject(\"Side Gear Auto RIGHT (manual straight lineup)(place)(TURN AFTER AND START CYCLE)\", new DriveStraightSide(true,false));\n\n\t\tchooser.addObject(\"Side Gear Auto LEFT (manual straight lineup)(place)(TURN AFTER AND START CYCLE)\", new DriveStraightSide(true,true));\n\t\t//chooser.addObject(\"Side Gear Auto (place)\", new DriveToLeftRightFace(true,false,false,false));\n\t\t//chooser.addObject(\"Test DriveStraight Auto\", new DriveStraightPosition(10,5));\n\t\t//chooser.addObject(\"Center Gear Encoder Auto (place)\", new DriveStraightCenter());\n\t\t/*InterpreterGroup interp = new InterpreterGroup();\n\t\t(interp.init()){\n\t\t\tchooser.addObject(\"Interpreter\",interp);\n\t\t}*/\n\t\t// chooser.addObject(\"My Auto\", new MyAutoCommand());\n\t\tSmartDashboard.putData(\"Auto Chooser\", chooser);\n\n\t\tRobot.drivebase.leftDrive1.setPosition(0);\n \tRobot.drivebase.rightDrive1.setPosition(0);\n \t\n\t\t\n \tRobot.leds.initializei2cBus();\n \tbyte mode = 0;\n \tRobot.leds.setMode(mode);\n \tgearcamera = CameraServer.getInstance();\n\t\t\n \tUsbCamera gearUsb = gearcamera.startAutomaticCapture();\n \tgearUsb.setFPS(25);\n \tgearUsb.setResolution(256, 144);\n\n\t\t//NetworkTable.setClientMode();\n \t//NetworkTable.setIPAddress(\"raspberrypi.local\");\n\t\t\n\t\t\n\t\t/*\n\t\t * new Thread(() -> { UsbCamera goalcamera =\n\t\t * CameraServer.getInstance().startAutomaticCapture();\n\t\t * goalcamera.setResolution(320, 240); goalcamera.setFPS(30);\n\t\t * goalcamera.setBrightness(1); goalcamera.setExposureManual(1);\n\t\t * \n\t\t * CvSink goalCvSink = CameraServer.getInstance().getVideo();\n\t\t * \n\t\t * Mat source = new Mat();\n\t\t * \n\t\t * while(!Thread.interrupted()) { goalCvSink.grabFrame(source);\n\t\t * goaloutputmat = source; } }).start();\n\t\t * goalPipeline.process(goaloutputmat);\n\t\t * \n\t\t * new Thread(() -> { UsbCamera gearcamera =\n\t\t * CameraServer.getInstance().startAutomaticCapture();\n\t\t * gearcamera.setResolution(320, 240); gearcamera.setFPS(30);\n\t\t * gearcamera.setBrightness(1); gearcamera.setExposureManual(1);\n\t\t * \n\t\t * CvSink gearCvSink = CameraServer.getInstance().getVideo();\n\t\t * \n\t\t * Mat source = new Mat();\n\t\t * \n\t\t * while(!Thread.interrupted()) { gearCvSink.grabFrame(source);\n\t\t * gearoutputmat = source; } }).start();\n\t\t * gearPipeline.process(gearoutputmat);\n\t\t */\n\t}", "protected void execute() {\n \t\n \tdouble rightJoystickXAxis, leftJoystickYAxis, leftMotorOutput, rightMotorOutput;\n \t\n \trightJoystickXAxis = JoystickAxisScaling.getY(Robot.oi.joystickDriver.getRawAxis(Constants.RIGHT_JOYSTICK_X),\n \t\t\t0.0, 0.0, 1.0, 1.0);\n \tif(Robot.driveTrain.isRightSideOutputInverted()) {\n \t\tleftJoystickYAxis = -JoystickAxisScaling.getY(Robot.oi.joystickDriver.getRawAxis(Constants.LEFT_JOYSTICK_Y),\n \t\t\t0.0, 0.0, 1.0, -1.0);\n \t}\n \telse\n \t{\n \t\tleftJoystickYAxis = JoystickAxisScaling.getY(Robot.oi.joystickDriver.getRawAxis(Constants.LEFT_JOYSTICK_Y),\n \t\t\t0.0, 0.0, 1.0, -1.0);\n \t}\n \t\n \t\n \tif ( rightJoystickXAxis == 0.0 && leftJoystickYAxis != 0.0 )\t//straight forward or reverse with the x axis in deadband\n \t{\n \t\tleftMotorOutput = leftJoystickYAxis;\n \t\trightMotorOutput = leftJoystickYAxis;\n \t}\n \t\n \telse if ( rightJoystickXAxis > 0.0 && leftJoystickYAxis != 0.0 )\t//quadrant I or IV\n \t{\n \t\tleftMotorOutput = leftJoystickYAxis;\n \t\trightMotorOutput = leftJoystickYAxis - rightJoystickXAxis;\n \t}\n \t\n \telse if ( rightJoystickXAxis < 0.0 && leftJoystickYAxis != 0.0 )\t//quadrant II or III\n \t{\n \t\trightMotorOutput = leftJoystickYAxis;\n \t\tleftMotorOutput = leftJoystickYAxis + rightJoystickXAxis;\n \t}\n \t\n \telse if ( leftJoystickYAxis == 0.0 && rightJoystickXAxis != 0.0 )\t//rotate left or right with the y axis in deadband\n \t{\n \t\tleftMotorOutput = rightJoystickXAxis;\n \t\trightMotorOutput = -rightJoystickXAxis;\n \t}\n \t\n \telse\t//x axis in deadband and y axis in deadband\n \t{\n \t\tleftMotorOutput = 0.0;\n \t\trightMotorOutput = 0.0;\n \t}\n \t\n \tbrakeFactor = JoystickAxisScaling.getY(Robot.oi.joystickDriver.getRawAxis(Constants.LEFT_TRIGGER),\n \t\t\t0.0, 0.0, 1.0, 0.8);\n \t\n \tRobot.driveTrain.updateDriveSpeeds(leftMotorOutput * (1-brakeFactor), rightMotorOutput * (1-brakeFactor));\n \t\n }", "Lift(final Robot ROBOT)\n {\n _robot = ROBOT;\n }", "public RobotContainer() {\n\nleftJoystick = new Joystick(0);\nrightJoystick = new Joystick(1);\n\ndriveBase = new DriveBase();\ndriveWithJoystick = new DriveWithJoystick();\nCommandScheduler.getInstance().setDefaultCommand(driveBase, driveWithJoystick);\n\n\n // Configure the button bindings\n configureButtonBindings();\n }", "@Override\r\n public int run() {\n if (robot.rightDrive.isBusy() && robot.leftDrive.isBusy()) {\r\n robot.leftDrive.setPower(leftSpeed);\r\n robot.rightDrive.setPower(rightSpeed);\r\n\r\n /*telemetry.addData(\"MoveByEncoder To\", \"Left: (%2f), Right (%2f)\",\r\n leftTarget, rightTarget);\r\n telemetry.addData(\"MoveByEncoder At\", \"Left: (%2f), Right (%2f)\",\r\n robot.leftDrive.getCurrentPosition(), robot.rightDrive.getCurrentPosition());\r\n telemetry.update();*/\r\n\r\n telemetry.addData(\"Left Pos\", robot.leftDrive.getCurrentPosition());\r\n telemetry.addData(\"Right Pos\", robot.rightDrive.getCurrentPosition());\r\n telemetry.update();\r\n\r\n return 0;\r\n\r\n }\r\n\r\n return nextPos;\r\n }", "public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n int newLeftTarget;\n int newRightTarget;\n int moveCounts;\n double max;\n double error;\n double steer;\n double leftSpeed;\n double rightSpeed;\n\n // Ensure that the opmode is still active\n if (opModeIsActive()) {\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = leftMotor.getCurrentPosition() + moveCounts;\n newRightTarget = rightMotor.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n leftMotor.setTargetPosition(newLeftTarget);\n rightMotor.setTargetPosition(newRightTarget);\n\n leftMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n leftMotor.setPower(speed);\n rightMotor.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while (opModeIsActive() &&\n (leftMotor.isBusy() && rightMotor.isBusy())) {\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if any one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n leftMotor.setPower(leftSpeed);\n rightMotor.setPower(rightSpeed);\n\n // Display drive status for the driver.\n telemetry.addData(\"Err/St\", \"%5.1f/%5.1f\", error, steer);\n telemetry.addData(\"Target\", \"%7d:%7d\", newLeftTarget, newRightTarget);\n telemetry.addData(\"Actual\", \"%7d:%7d\", leftMotor.getCurrentPosition(),\n rightMotor.getCurrentPosition());\n telemetry.addData(\"Speed\", \"%5.2f:%5.2f\", leftSpeed, rightSpeed);\n telemetry.update();\n }\n\n // Stop all motion;\n\n rightMotor.setPower(0);\n leftMotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }", "@Override\n public void teleopPeriodic() {\n double triggerVal = \n (m_driverController.getTriggerAxis(Hand.kRight)\n - m_driverController.getTriggerAxis(Hand.kLeft))\n * RobotMap.DRIVING_SPEED;\n\n double stick = \n (m_driverController.getX(Hand.kLeft))\n * RobotMap.TURNING_RATE;\n \n m_driveTrain.tankDrive(triggerVal + stick, triggerVal - stick);\n\n if(m_driverController.getAButton()){\n m_shooter.arcadeDrive(RobotMap.SHOOTER_SPEED, 0.0);\n }\n \n else{\n m_shooter.arcadeDrive(0.0, 0.0);\n }\n \n }", "public void driveTank(double leftPower, double rightPower) {\r\n if(leftPower > 1.0) {\r\n leftPower = 1.0;\r\n } else if(leftPower < -1.0) {\r\n leftPower = -1.0;\r\n }\r\n \r\n if(rightPower > 1.0) {\r\n rightPower = 1.0;\r\n } else if(rightPower < -1.0) {\r\n rightPower = -1.0;\r\n }\r\n \r\n tankLeftRamp.setTarget(leftPower);\r\n tankRightRamp.setTarget(rightPower);\r\n \r\n tankLeftRamp.tick();\r\n tankRightRamp.tick();\r\n \r\n robotDrive.tankDrive(getDirection() * tankLeftRamp.getOutput(),\r\n getDirection() * tankRightRamp.getOutput());\r\n //TODO set motor speeds in console\r\n }", "public MixedDrive(WPI_TalonSRX frontLeft, WPI_TalonSRX rearLeft, WPI_TalonSRX frontRight, WPI_TalonSRX rearRight, int pidIDSlot){\n super(frontLeft, rearLeft, frontRight, rearRight);\n PID_IDX = pidIDSlot;\n kFrontLeft = frontLeft;\n kFrontRight = frontRight;\n kRearLeft = rearLeft;\n kRearRight = rearRight;\n setName(\"Mecanum Differential Drive\");\n }", "@Override\n\tpublic void robotInit() {\n\t\tleftDriveBack = new VictorSP(0); // PWM Port, madke sure this is set correctly.\n\t\tleftDriveFront = new VictorSP(1);\n\t\t\n\t\trightDriveFront = new VictorSP(2);\n\t\trightDriveBack = new VictorSP(3);\n\t\t\n\t\tleftIntake = new Spark(5);\n\t\trightIntake = new Spark(6);\n\t\t\n\t\tarmMotor = new TalonSRX(10);\n\t\tarmMotor.setNeutralMode(NeutralMode.Brake);\n\t\tarmMotor.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Absolute, 0, 0);\n\t\tarmMotor.configPeakCurrentLimit(30, 0);\n\t\tarmMotor.configPeakCurrentDuration(250, 0);\n\t\tarmMotor.configContinuousCurrentLimit(20, 0);\n\t\tarmMotor.configClosedloopRamp(0.25, 0);\n\t\tarmMotor.configOpenloopRamp(0.375, 0);\n\t\tarmMotor.enableCurrentLimit(true);\n\t\t\n\t\tarmMotor.configPeakOutputForward(1.0, 0);\n\t\tarmMotor.configPeakOutputReverse(-1.0, 0);\n\t\t\n\t\tarmMotor.config_kP(0, 0.0, 0);\n\t\t\n\t\tarmSetpoint = armMotor.getSelectedSensorPosition(0);\n\t\t\n\t\tstick = new Joystick(0);\n\t\tstickReversed = false;\n\t\txbox = new XboxController(1); // USB port, set in driverstation.\n\t\t\n\t\tdriveCamera = CameraServer.getInstance().startAutomaticCapture(0);\n\t}", "public DriveTrain() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n leftFrontTalon = new WPI_TalonSRX(11);\n leftRearTalon = new WPI_TalonSRX(12);\n rightFrontTalon = new WPI_TalonSRX(13);\n rightRearTalon = new WPI_TalonSRX(14);\n victorTestController = new WPI_VictorSPX(4);\n robotDrive41 = new RobotDrive(leftRearTalon, leftFrontTalon,rightFrontTalon, rightRearTalon);\n \n robotDrive41.setSafetyEnabled(false);\n robotDrive41.setExpiration(0.1);\n robotDrive41.setSensitivity(0.5);\n robotDrive41.setMaxOutput(1.0);\n\n \n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "public abstract void drive();", "public boolean encoderDrive(int encoderDelta, driveStyle drive, double motorPower, double timeout, DcMotor[] motors)\n {\n\n\n switch(drive)\n {\n case FORWARD:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, -motorPower, 0)[0]);\n motors[1].setPower(setPower(0, -motorPower, 0)[1]);\n motors[2].setPower(setPower(0, -motorPower, 0)[2]);\n motors[3].setPower(setPower(0, -motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n\n\n }\n\n case BACKWARD:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, motorPower, 0)[0]);\n motors[1].setPower(setPower(0, motorPower, 0)[1]);\n motors[2].setPower(setPower(0, motorPower, 0)[2]);\n motors[3].setPower(setPower(0, motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case STRAFE_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (encoderReadingLB - encoderDelta))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case STRAFE_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(motorPower, 0, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case FORWARD_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, -motorPower, 0)[0]);\n motors[1].setPower(setPower(-motorPower, -motorPower, 0)[1]);\n motors[2].setPower(setPower(-motorPower, -motorPower, 0)[2]);\n motors[3].setPower(setPower(-motorPower, -motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case FORWARD_RIGHT:\n {\n double encoderReadingRB = motors[1].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, -motorPower, 0)[0]);\n motors[1].setPower(setPower(motorPower, -motorPower, 0)[1]);\n motors[2].setPower(setPower(motorPower, -motorPower, 0)[2]);\n motors[3].setPower(setPower(motorPower, -motorPower, 0)[3]);\n\n while (motors[1].getCurrentPosition() >= (-encoderDelta + encoderReadingRB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case BACKWARD_LEFT:\n {\n double encoderReadingRB = motors[1].getCurrentPosition();\n motors[0].setPower(setPower(-motorPower, motorPower, 0)[0]);\n motors[1].setPower(setPower(-motorPower, motorPower, 0)[1]);\n motors[2].setPower(setPower(-motorPower, motorPower, 0)[2]);\n motors[3].setPower(setPower(-motorPower, motorPower, 0)[3]);\n\n while (motors[1].getCurrentPosition() <= (encoderDelta + encoderReadingRB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case BACKWARD_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(motorPower, motorPower, 0)[0]);\n motors[1].setPower(setPower(motorPower, motorPower, 0)[1]);\n motors[2].setPower(setPower(motorPower, motorPower, 0)[2]);\n motors[3].setPower(setPower(motorPower, motorPower, 0)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case PIVOT_LEFT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, 0, -motorPower)[0]);\n motors[1].setPower(setPower(0, 0, -motorPower)[1]);\n motors[2].setPower(setPower(0, 0, -motorPower)[2]);\n motors[3].setPower(setPower(0, 0, -motorPower)[3]);\n\n while (motors[2].getCurrentPosition() >= (-encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n case PIVOT_RIGHT:\n {\n double encoderReadingLB = motors[2].getCurrentPosition();\n motors[0].setPower(setPower(0, 0, motorPower)[0]);\n motors[1].setPower(setPower(0, 0, motorPower)[1]);\n motors[2].setPower(setPower(0, 0, motorPower)[2]);\n motors[3].setPower(setPower(0, 0, motorPower)[3]);\n\n while (motors[2].getCurrentPosition() <= (encoderDelta + encoderReadingLB))\n {\n\n }\n\n\n motors[0].setPower(setPower(-motorPower, 0, 0)[0]);\n motors[1].setPower(setPower(-motorPower, 0, 0)[1]);\n motors[2].setPower(setPower(-motorPower, 0, 0)[2]);\n motors[3].setPower(setPower(-motorPower, 0, 0)[3]);\n\n break;\n }\n\n\n }\n\n return true;\n }", "@Override\n public void giveCommands(Robot robot) {\n super.giveCommands(robot);\n\n arcadeDrive(robot.getDrivetrain());\n\n }", "private RightMotor() {\n\t\t// Instantiate left motor class\n\t\tmotor = new Talon(RobotMap.M_RIGHT);\n\t\tencoder = new Encoder(RobotMap.M_RIGHT_ENCODER_CW, RobotMap.M_RIGHT_ENCODER_CCW);\n\t}", "public void robotInit() \n {\n RobotMap.init();\n\n driveTrain = new DriveTrain();\n gripper = new Gripper();\n verticalLift = new VerticalLift();\n\n // OI must be constructed after subsystems. If the OI creates Commands \n //(which it very likely will), subsystems are not guaranteed to be \n // constructed yet. Thus, their requires() statements may grab null \n // pointers. Bad news. Don't move it.\n\n oi = new OI();\n\n autonomousChooser = new SendableChooser();\n autonomousChooser.addDefault( \"Auto: Do Nothing\" , new DoNothing () );\n autonomousChooser.addObject ( \"Auto: Drive To Auto Zone\" , new DriveToAutoZone () );\n autonomousChooser.addObject ( \"Auto: Drive To Auto Zone (Bump)\" , new DriveToAutoZoneBump () );\n //autonomousChooser.addObject ( \"Auto: Get One (Long)\" , new GetOneLong () );\n //autonomousChooser.addObject ( \"Auto: Get One (Short)\" , new GetOneShort () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Bump)\" , new GetOneRecycleBin () );\n autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Side)\" , new GetRecycleBinSide () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Backwards)\" , new GetOneRecycleBinBackwards () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Backwards, Bump)\", new GetOneRecycleBinBackwardsBump() );\n //autonomousChooser.addObject ( \"Auto: Get Two (Short)\" , new GetTwoShort () );\n //autonomousChooser.addObject ( \"Auto: Get Two Short (Special)\" , new GetTwoShortSpecial () );\n //autonomousChooser.addObject ( \"Auto: Get Two (Long, From left)\" , new TwoLongFromLeft () );\n //autonomousChooser.addObject ( \"Auto: Get Two (Long, From right)\" , new TwoLongFromRight () );\n autonomousChooser.addObject ( \"Auto: Get One Tote and Recycle Bin\" , new OneRecycleBinAndTote () );\n autonomousChooser.addObject ( \"Auto: Get One Tote and Recycle Bin (Bump)\" , new OneRecycleBinAndToteBump () );\n SmartDashboard.putData( \"Autonomous\", autonomousChooser );\n\n // instantiate the command used for the autonomous period\n //autonomousCommand = new RunAutonomousCommand();\n\n m_USBVCommand = new UpdateSBValuesCommand();\n m_USBVCommand.start();\n \n frame = NIVision.imaqCreateImage(NIVision.ImageType.IMAGE_RGB, 0);\n /*\n // the camera name (ex \"cam0\") can be found through the roborio web interface\n session = NIVision.IMAQdxOpenCamera(\"cam1\",\n NIVision.IMAQdxCameraControlMode.CameraControlModeController);\n NIVision.IMAQdxConfigureGrab(session);\n \n NIVision.IMAQdxStartAcquisition(session);\n */\n /*\n camServer = CameraServer.getInstance();//.startAutomaticCapture(\"cam1\");\n camServer.setQuality(30);\n \n cam = new USBCamera(\"cam1\");\n cam.openCamera();\n cam.setFPS(60);\n \n cam.setSize(320, 240);\n cam.updateSettings();\n */\n }", "public DriveTrainSubsystem() {\n this.leftEncoder.setDistancePerPulse(DISTANCE_PER_PULSE);\n this.rightEncoder.setDistancePerPulse(DISTANCE_PER_PULSE);\n }", "@Override\n public void loop() { //Starts this loop after you press the START Button\n /**\n * Functional control of up down lift with no limit switches Meet 0 ready\n */\n double liftposition = robot.liftUpDown.getCurrentPosition();\n double liftrotposition = robot.liftRotate.getCurrentPosition();\n telemetry.addData(\"Lift Position\",\"%5.2f\",liftposition);\n telemetry.addData(\"LiftRot Position\", \"%5.2f\", liftrotposition);\n // telemetry.addData(\"Block Stack\", BlockStack);\n telemetry.update();\n\n/**Main drive controls\n * Driver 1\n */\n\n/**\n * Drag servos\n */\n if (gamepad1.a){ //release\n robot.drag1.setPosition(0);\n robot.drag2.setPosition(1);\n } else if (gamepad1.b){//grab\n robot.drag1.setPosition(1);\n robot.drag2.setPosition(0);\n }\n\n/**Mast and Lift controls\n *\n *\n * Driver Two\n *\n *\n*/\n\n/**\n * Need controls to\n * Maybe predetermined locations based on number of pushes of a button.\n */\n\n /**\n * Functional arm rotation with limit switches and encoder limits. Meet 2 ready\n */\n\n //Twists lift up after verifying that rotate up limit switch is not engaged and that step count is less than 5400\n if ( gamepad2.dpad_up && robot.rotateup.getState() == true){\n robot.liftRotate.setPower(1.0);\n }\n else if (gamepad2.dpad_down && robot.rotatedown.getState() == true){ //Twists lift down\n robot.liftRotate.setPower(-1.0);\n }\n //required or lift rotate motor continues to run in last direction (breaks the motor shaft)\n else robot.liftRotate.setPower(0);\n\n /**\n * claw controls a= open b= close\n * FUNCTIONAL Meet 2 ready\n */\n if (gamepad2.a){\n robot.claw1.setPosition(0);\n robot.claw2.setPosition(1);\n } else if (gamepad2.b){\n robot.claw1.setPosition(1);\n robot.claw2.setPosition(0);\n }\n\n /**\n * Lift controls with limit switches and encoder position Meet 2 ready\n * right_trigger = lift\n * left_trigger = down\n */\n\n if ( gamepad2.right_trigger>= 0.2 && robot.liftup.getState()) {\n triggerpress=true;\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.liftUpDown.setPower(.9);\n robot.liftRotate.setPower(.15);\n }\n if (gamepad2.left_trigger>=0.2){\n triggerpress=true;\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.liftUpDown.setPower(-0.9);\n robot.liftRotate.setPower(-0.15);\n }\n if (gamepad2.left_trigger<.2 && gamepad2.right_trigger<.2 && triggerpress ){\n robot.liftUpDown.setPower(0);\n robot.liftRotate.setPower(0);\n triggerpress=false;\n }\n\n int x;\n int y;\n double motorDelayTime;\n //Necessary Debounce to keep bumper from being seen as multiple touches\n/* motorDelayTime=.1;\n if (robot.liftUpDown.getCurrentPosition()<50){\n BlockStack =0;\n }\n //skips servos unless runtime is greater than 20 ms.\n if( runtime.time() > motorDelayTime ) {\n //Need to move 5.5 inches on position 2, subsequent blocks will only need to move up 4 inches.\n x = robot.liftUpDown.getCurrentPosition();\n y= robot.liftRotate.getCurrentPosition();\n if (gamepad2.right_bumper ) {\n\n BlockStack= BlockStack + 1;\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.liftUpDown.setTargetPosition(x + robot.floorheight);\n robot.liftUpDown.setPower(.9);\n robot.liftRotate.setTargetPosition(y + robot.floorheightrotate);\n robot.liftRotate.setPower(.1);\n bumperpress=true;\n\n //don't want to drive the cable too far loose checks that we can move a full block down\n } else if (gamepad2.left_bumper && x >= robot.floorheight ) {\n BlockStack= BlockStack - 1;\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.liftUpDown.setTargetPosition(x - robot.floorheight);\n robot.liftUpDown.setPower(-.5);\n}\n\n runtime.reset();\n robot.liftUpDown.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }*/\n\n /**\n * Limit switch tests that reset the encoders Meet 1 ready\n * * liftdown also allows the X button to work\n * * rotatedown also allows the Y button to work\n */\n\n if (robot.rotatedown.getState() == false) {\n robot.liftRotate.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.liftRotate.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }", "public void robotInit() {\n\t\tmyRobot = new RobotDrive(0,1);\n\t\tteleop = new Teleop(myRobot);\n\t\tauto = new AutonomousDrive(myRobot);\n\t}", "private void LeftLeftRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}", "public static void driveMode(){\n\n\t\tSmartDashboard.putBoolean(\"Is Climbing:\", TalonDio.climbEncodDio(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Driving:\", TalonDio.driveEncodDio(Actuators.getLeftDriveMotor(), Actuators.getRightDriveMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Intake Disabled:\", Intake.intakeDisabled);\n\t\tSmartDashboard.putNumber(\"motorSpeed\", Intake.intakeMotorSpeed);\n\t\tSmartDashboard.putNumber(\"conveyorMotorSpeed\", Score.conveyorMotorSpeed);\n\t\tSmartDashboard.putBoolean(\"Intake Motor Inverted?:\", Actuators.getFuelIntakeMotor().getInverted());\n\t\tSmartDashboard.putBoolean(\"Is Climbing Motor Stalling:\", TalonDio.CIMStall(Actuators.getClimbMotor()));\n\n\t\t\n\n\t\tSmartDashboard.putBoolean(\"Is Climbing:\", TalonDio.climbEncodDio(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Driving:\", TalonDio.driveEncodDio(Actuators.getLeftDriveMotor(), Actuators.getRightDriveMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Climbing Motor Stalling:\", TalonDio.CIMStall(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putNumber(\"Total Current Draw:\", SensorsDio.PDPCurrent(Sensors.getPowerDistro()));\n\n\t\n\t//TODO: Add Gear Vibrations for both controllers\n\t//Vibration Feedback\n\t\t//Sets the Secondary to vibrate if climbing motor is going to stall\n\t\tVibrations.climbStallVibrate(Constants.MAX_RUMBLE);\t\n\t\t//If within the second of TIME_RUMBLE then both controllers are set to HALF_RUMBLE\n\t\tVibrations.timeLeftVibrate(Constants.HALF_RUMBLE, Constants.TIME_RUMBLE);\t\n\t\t\n\t}", "Robot (DcMotor leftWheel,\n DcMotor rightWheel,\n Servo rightCollectServo,\n Servo leftCollectServo,\n DcMotor collectMotor,\n DcMotor landerMotor,\n float wheelDiameter,\n float gearRatio,\n float distanceBetweenWheels) {\n\n this.wheels = new Wheels(leftWheel,\n rightWheel,\n wheelDiameter,\n gearRatio,\n distanceBetweenWheels);\n\n this.arms = new Arms(rightCollectServo,\n leftCollectServo,\n collectMotor,\n landerMotor);\n }", "@Override\n public void runOpMode() {\n hw = new RobotHardware(robotName, hardwareMap);\n rd = new RobotDrive(hw);\n rs=new RobotSense(hw, telemetry);\n /*rd.moveDist(RobotDrive.Direction.FORWARD, .5, .3);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, .3);\n rd.moveDist(RobotDrive.Direction.FORWARD, .5, 1);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, 1);*/\n telemetry.addData(\"Ready! \", \"Go Flamangos!\"); \n telemetry.update();\n\n //Starting the servos in the correct starting position\n /*hw.armRight.setPosition(1-.3);\n hw.armLeft.setPosition(.3);\n hw.level.setPosition(.3+.05);*/\n hw.f_servoLeft.setPosition(1);\n hw.f_servoRight.setPosition(0.5);\n \n rd.moveArm(hw.startPos());\n waitForStart();\n while (opModeIsActive()) {\n \n /*Starting close to the bridge on the building side\n Move under the bridge and push into the wall*/\n rd.moveDist(RobotDrive.Direction.LEFT,2,.5);\n rd.moveDist(RobotDrive.Direction.FORWARD, 10, .5);\n break;\n }\n }", "public void driveArcade(double drive, double turn) { //Takes a drive and turn value and converts it to motor values.\n leftMotor.setPower(Range.clip((drive + turn), -DRIVE_FULL_SPEED, DRIVE_FULL_SPEED));\n rightMotor.setPower(Range.clip((drive - turn), -DRIVE_FULL_SPEED, DRIVE_FULL_SPEED));\n }", "private void driveLeft() {\n setSpeed(MIN_SPEED, MAX_SPEED);\n }", "public void driveRobot(double Drive, double Turn) {\n // Combine drive and turn for blended motion.\n double left = Drive + Turn;\n double right = Drive - Turn;\n\n // Scale the values so neither exceed +/- 1.0\n double max = Math.max(Math.abs(left), Math.abs(right));\n if (max > 1.0)\n {\n left /= max;\n right /= max;\n }\n\n // Use existing function to drive both wheels.\n setDrivePower(left, right);\n }", "public void gyroDrive ( double speed,\n double distance,\n double angle) {\n\n\n // Ensure that the opmode is still activ\n\n // Determine new target position, and pass to motor controller\n moveCounts = (int)(distance * COUNTS_PER_INCH);\n newLeftTarget = leftmotor.getCurrentPosition() + moveCounts;\n newRightTarget = rightmotor.getCurrentPosition() + moveCounts;\n\n // Set Target and Turn On RUN_TO_POSITION\n leftmotor.setTargetPosition(newLeftTarget);\n rightmotor.setTargetPosition(newRightTarget);\n\n leftmotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n rightmotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n // start motion.\n speed = Range.clip(Math.abs(speed), 0.0, 1.0);\n\n maxSpeed = speed;\n speed = INCREMENT;\n rampUp = true;\n\n leftmotor.setPower(speed);\n rightmotor.setPower(speed);\n\n // keep looping while we are still active, and BOTH motors are running.\n while ((leftmotor.isBusy() && rightmotor.isBusy())) {\n if (rampUp){\n speed += INCREMENT ;\n if (speed >= maxSpeed ) {\n speed = maxSpeed;\n }\n }\n\n // adjust relative speed based on heading error.\n error = getError(angle);\n steer = getSteer(error, P_DRIVE_COEFF);\n\n // if driving in reverse, the motor correction also needs to be reversed\n if (distance < 0)\n steer *= -1.0;\n\n leftSpeed = speed - steer;\n rightSpeed = speed + steer;\n\n // Normalize speeds if either one exceeds +/- 1.0;\n max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));\n if (max > 1.0)\n {\n leftSpeed /= max;\n rightSpeed /= max;\n }\n\n leftmotor.setPower(leftSpeed);\n rightmotor.setPower(rightSpeed);\n }\n\n // Stop all motion;\n leftmotor.setPower(0);\n rightmotor.setPower(0);\n\n // Turn off RUN_TO_POSITION\n leftmotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n rightmotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n gyroHold(TURN_SPEED,angle,0.166);\n\n }", "protected void execute() {\n\n\t\tdouble left = Robot.oi.driver.getRawAxis(Robot.dp.joystick1);\n\t\tdouble right = -Robot.oi.driver.getRawAxis(Robot.dp.joystick2);\n\t\t\n\t\tif (Robot.dp.dc == DriveControl.TANK) {\n\t\t\tRobot.Drivetrain.drive(left, -right);\n\t\t} else {\n\t\t\tif (Robot.dp == DriverConfig.RORY) {\n\t\t\t\tRobot.Drivetrain.drive(left, right * 0.75);\n\t\t\t} else {\n\t\t\t\tRobot.Drivetrain.drive(left, right);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}" ]
[ "0.7451082", "0.7276013", "0.71321523", "0.70950025", "0.7070991", "0.6972703", "0.68442947", "0.68406403", "0.68351734", "0.68062013", "0.6799169", "0.6778865", "0.6778325", "0.67452973", "0.67306894", "0.672972", "0.6644037", "0.66419655", "0.66211975", "0.65890104", "0.65482664", "0.6509579", "0.6502134", "0.64971083", "0.648978", "0.6488929", "0.6481412", "0.64590526", "0.64548177", "0.6451764", "0.6427508", "0.6418253", "0.64134127", "0.64076436", "0.63901246", "0.63885534", "0.6364127", "0.6358277", "0.634424", "0.6331516", "0.63056237", "0.6276829", "0.6275046", "0.62679446", "0.6254036", "0.6253746", "0.62508905", "0.6250414", "0.6237823", "0.62374043", "0.6235118", "0.62341475", "0.62257624", "0.6220507", "0.6210097", "0.61958236", "0.61802536", "0.6162719", "0.6159214", "0.6151501", "0.61506265", "0.6135694", "0.6129935", "0.6128791", "0.6126343", "0.61243707", "0.61236143", "0.6122026", "0.6117218", "0.61169696", "0.6100483", "0.60827875", "0.60577", "0.605326", "0.6052711", "0.6051187", "0.60373914", "0.603494", "0.6031714", "0.60279375", "0.6025687", "0.60255086", "0.6024135", "0.6020094", "0.60194993", "0.6015599", "0.601121", "0.6011152", "0.6010567", "0.60047245", "0.60012794", "0.5997529", "0.5990657", "0.59895205", "0.5988854", "0.5982289", "0.5981174", "0.5980681", "0.59778804", "0.5970986" ]
0.7374339
1
Guarda a lista de tags de uma Question
public void setTags(ArrayList<String> tags){ for(String s : tags){ this.tags.add(s); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void answerQuestion(){\n for (int i = 0; i < questionList.size(); i++){\r\n if (questionList.get(i).question.startsWith(\"How\")){\r\n howQuestions.add(new Question(questionList.get(i).id, questionList.get(i).question, questionList.get(i).answer));\r\n }\r\n }\r\n\r\n // Print All When Questions\r\n System.out.println(\"How Questions\");\r\n for (int i = 0; i < howQuestions.size(); i++){\r\n System.out.println(howQuestions.get(i).question);\r\n }\r\n\r\n //==== Question Entities ====\r\n // Split All When Question to only questions that have the entities\r\n if (!howQuestions.isEmpty()){\r\n if (!questionEntities.isEmpty()){\r\n for (int c = 0; c < questionEntities.size(); c++){\r\n for (int i = 0; i < howQuestions.size(); i++){\r\n if (howQuestions.get(i).question.contains(questionEntities.get(c))){\r\n answers.add(new Question(howQuestions.get(i).id, howQuestions.get(i).question, howQuestions.get(i).answer));\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n if (!questionTags.isEmpty()){\r\n for (int c = 0; c < questionTags.size(); c++){\r\n for (int i = 0; i < howQuestions.size(); i++){\r\n if (howQuestions.get(i).question.contains(questionTags.get(c))){\r\n answers.add(new Question(howQuestions.get(i).id, howQuestions.get(i).question, howQuestions.get(i).answer));\r\n }\r\n }\r\n }\r\n }\r\n else{\r\n System.out.println(\"There no answer for your question !\");\r\n System.exit(0);\r\n }\r\n }\r\n }\r\n\r\n // Print All Entities Questions\r\n System.out.println(\"Questions of 'How' that have entities and tags :\");\r\n for (int i = 0; i < answers.size(); i++){\r\n for (int j = 1; j < answers.size(); j++){\r\n if (answers.get(i).id == answers.get(j).id){\r\n answers.remove(j);\r\n }\r\n }\r\n }\r\n \r\n for (int i = 0; i < answers.size(); i++){\r\n System.out.println(answers.get(i).question);\r\n }\r\n\r\n\r\n //==== Question Tags ====\r\n for (int i = 0; i < questionTags.size(); i++){\r\n for (int k = 0; k < answers.size(); k++){\r\n if (answers.get(k).question.contains(questionTags.get(i))){\r\n continue;\r\n }\r\n else{\r\n answers.remove(k);\r\n }\r\n }\r\n }\r\n }", "List<Tag> saveTags(String tags);", "UniqueTagList getTags();", "List<Question> getQuestionsUsed();", "public List<TagPregunta> findMatchingTags(String parcial);", "private void assembleTags(Question question, String userTags) {\n\t\tif (userTags != null && !userTags.isEmpty()) {\n\t\t\tString[] tagNames = userTags.split(Constants.COMMA_DELIMITER);\n\t\t\tif (tagNames.length > 0) {\n\t\t\t\tList<Tag> tags = new ArrayList<Tag>();\n\t\t\t\tfor (String tagName : tagNames) {\n\t\t\t\t\tTag tag = new Tag();\n\t\t\t\t\ttag.setName(tagName);\n\t\t\t\t\ttags.add(tag);\n\t\t\t\t}\n\t\t\t\tquestion.setTags(tags);\n\t\t\t}\n\t\t}\n\t}", "public List<Pregunta> getPreguntasConTag(TagPregunta tag);", "public void setTags(List<Tag> tags) {\n this.tags = tags;\n }", "public void setQuestionList(ArrayList<String> questionList){\n this.questionList = questionList;\n }", "public List<Pregunta> getPreguntasConTags(Set<TagPregunta> tags);", "Set<String> tags();", "private List<String> getAllTagsOfUser(Integer userId){\n \t List<String> openTags = new ArrayList<String>();\n \t DataLayerFactory factory = new DataLayerFactory(db);\n \t PostDataLayer postDataLayer = factory.createPostDataLayer();\n \t List<Question> userQuestions = postDataLayer.getQuestionsOfUser(userId, OrderCriteria.CREATION_DATE);\n \t for (Question question : userQuestions) \n \t\t for (String tag : question.getTags()) {\n\t\t\t\tif (!openTags.contains(tag)) {\n\t\t\t\t\topenTags.add(tag);\n\t\t\t\t}\n\t\t\t}\n \t\t\t\n \t return openTags;\n \t\t}", "void addQuestions(String surveyId, List<Question> questions);", "public Set<String> getTags(){return tags;}", "public List<Pregunta> getPreguntasConTag(String tag);", "List<SurveyQuestion> getSurveyQuestionsByQuestions(List<Question> questions);", "List<Tag> getTagList();", "List<Tag> getTagList();", "public void setTags(String tags) {\n this.tags = tags;\n }", "public List getTags();", "@Nullable\n public abstract List<String> tags();", "public void setQuestion(final List<Question> question) {\n\t\tthis.question = question;\n\t}", "private synchronized void tags(ViewHolder holder, int position){\n holder.tagsLL.removeAllViews();\n\n int count = 0;\n while (count < 3) {\n String tagName = \"\";\n switch (count) {\n case 0:\n tagName = tag1ArrList.get(position);\n break;\n case 1:\n tagName = tag2ArrList.get(position);\n break;\n case 2:\n tagName = tag3ArrList.get(position);\n break;\n }\n if (! tagName.equals(\"\")) {\n final TextView tagTV = Tags.newTagView(context, userUIPreferences.textSize, userUIPreferences.tagsTextColor, userUIPreferences.tagsTVParams, userUIPreferences.tagsBackgroundDrawable,\n userUIPreferences.fontStyle, userUIPreferences.userSelectedFontTF);\n tagTV.setText(tagName.replaceAll(\"_\", \" \"));\n holder.tagsLL.addView(tagTV);\n }\n else{\n break;\n }\n count ++;\n }\n }", "public List<Tag> getTagList();", "public QuestionModal(String Question, List<String> Tags) {\n String Time = String.valueOf(System.currentTimeMillis());\n this.QuestionID = FirebaseAuth.getInstance().getCurrentUser().getUid() + Time;\n this.WhoAskedItID = FirebaseAuth.getInstance().getCurrentUser().getUid();\n this.QuestionTime = Time;\n this.Question = Question;\n this.Tags = Tags;\n this.Upvotes = null;\n this.Downvotes = null;\n this.AnswersIDs = null;\n }", "private void insertToSentList(Question question) {\r\n\t\tdListOfQuestions.append(new QuestionWithAns(question));\r\n\t\tbTreeOfQuestions.addNode(question.getQnNum(), question);\r\n\t}", "public Set<Tag> persistTagList(Set<Tag> tags) {\n\n if (null == tags) {\n return null;\n }\n\n Set<Tag> persistTags = new HashSet<>();\n\n for (Tag tag : tags) {\n Tag savedTag = tagRepository.findAllByValue(tag.getValue());\n\n if (null == savedTag) {\n savedTag = tagRepository.save(tag);\n }\n\n persistTags.add(savedTag);\n }\n\n return persistTags;\n }", "@Test\n public void testGetVerifiedAssociatedTags() {\n String insertedTagList = \" #awesome, #dry, #newTag \";\n List<Tag> verifiedTags = tagServ.getVerifiedAssociatedTags(insertedTagList);\n List<Tag> allTags = tagServ.getAllTags();\n Assert.assertEquals(5, allTags.size());\n Assert.assertEquals(3, verifiedTags.size());\n }", "List<Question> getQuestions();", "public void setTag(List<Tag> tag)\n\t{\n\t\t this.addKeyValue(\"Tag\", tag);\n\n\t}", "@DialogField(fieldLabel = \"Tags\", fieldDescription = \"List of tags to filter on.\")\n @TagInputField\n public List<Tag> getTags() {\n if (tags == null) {\n tags = getAsList(PARAM_TAGS, String.class)\n .stream()\n .map(tagId -> tagManager.resolve(tagId))\n .filter(Objects:: nonNull)\n .collect(Collectors.toList());\n }\n\n return tags;\n }", "void addTag(String tag){tags.add(tag);}", "public void setQuestions(Vector<Question> q){\n\t\t\tquestions = q;\n\t\t}", "public void addTag(String tag, Pregunta p);", "public void setTags(String tags) {\n\t\tthis.tags = tags;\n\t}", "void setTagCollection(Collection<Tag> tagCollection);", "String[] getAvailableTags();", "List<QuestionPlugin> getQuestionPlugins();", "public ArrayList<ContentTag> getContentTagByAllTags(ContentTagRequest contentTagRequest){\n\n Integer[] tagArray = contentTagRequest.getTagIdArray();\n Set<Integer> usedIDs = new HashSet<>();\n ArrayList<ContentTag> contentTags = new ArrayList<>();\n\n for(Integer tag : tagArray){\n\n Iterable<ContentTag> contentTags1 = contentTagRepository.findByTagID(tag);\n\n for(ContentTag contentTag : contentTags1){\n\n if(usedIDs.contains(contentTag.getContentID())) {\n //Do Nothing\n }\n else{\n usedIDs.add(contentTag.getContentID());\n contentTags.add(contentTag);\n }\n }\n }\n contentTags.sort(Comparator.comparing(a -> a.getContentID()));\n Collections.reverse(contentTags);\n return contentTags;\n }", "public void saveQuestionnaire(Questionnaire questionnaire) {\n List<Question> filteredQuestions = new ArrayList<>();\n for (Question question : questionnaire) {\n if (question.isDummyTutorial()) {\n continue;\n }\n filteredQuestions.add(question);\n }\n db.saveUserQuestionnaire(new Questionnaire(questionnaire.getId(), filteredQuestions));\n }", "public void startTextQuestionSet() {\n this.textQuestionSet = new HashSet<>();//creates a new textQuestionSet\n for (Question q : this.getForm().getQuestionList()) {//for every question in the question list of the current form\n if (q.getType().getId() == 3) {//if the question is type Text Question\n Quest newQuest = new Quest();//creates a new Quest\n newQuest.setqQuestion(q);//adds the current question to the new Quest\n this.textQuestionSet.add(newQuest);//adds the new Quest to the new textQuestionSet\n }\n }\n }", "public ArrayList<String> loadPostedQuestions() {\n\n\t\tSAVE_FILE = POSTED_QUESTIONS_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "public void setQuestions(){\r\n question.setTestname(test.getText().toString());\r\n question.setQuestion(ques.getText().toString());\r\n question.setOption1(opt1.getText().toString());\r\n question.setOption2(opt2.getText().toString());\r\n question.setOption3(opt3.getText().toString());\r\n int num = Integer.parseInt(correct.getText().toString());\r\n question.setAnswerNumber(num);\r\n long check = db.addToDb(question);\r\n if(check == -1){\r\n Toast.makeText(getBaseContext(), \"Question already exists\", Toast.LENGTH_LONG).show();\r\n }else{\r\n Toast.makeText(getBaseContext(), \"Question added\", Toast.LENGTH_LONG).show();\r\n }\r\n }", "private void addQuestion() {\n Question q = new Question(\n \"¿Quien propuso la prueba del camino básico ?\", \"Tom McCabe\", \"Tom Robert\", \"Tom Charlie\", \"Tom McCabe\");\n this.addQuestion(q);\n\n\n Question q1 = new Question(\"¿Qué es una prueba de Caja negra y que errores desean encontrar en las categorías?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \" determina la funcionalidad del sistema\", \" determina la funcionalidad del sistema\");\n this.addQuestion(q1);\n Question q2 = new Question(\"¿Qué es la complejidad ciclomática es una métrica de calidad software?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \"basada en el cálculo del número\", \"basada en el cálculo del número\");\n this.addQuestion(q2);\n //preguntas del quiz II\n Question q3=new Question(\"Las pruebas de caja blanca buscan revisar los caminos, condiciones, \" +\n \"particiones de control y datos, de las funciones o módulos del sistema; \" +\n \"para lo cual el grupo de diseño de pruebas debe:\",\n \"Conformar un grupo de personas para que use el sistema nuevo\",\n \"Ejecutar sistema nuevo con los datos usados en el sistema actual\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\");\n this.addQuestion(q3);\n Question q4=new Question(\"¿Las pruebas unitarias son llamadas?\",\n \"Pruebas del camino\", \"Pruebas modulares\",\n \"Pruebas de complejidad\", \"Pruebas modulares\");\n this.addQuestion(q4);\n Question q5=new Question(\"¿Qué es una prueba de camino básico?\",\n \"Hace una cobertura de declaraciones del código\",\n \"Permite determinar si un modulo esta listo\",\n \"Técnica de pueba de caja blanca\",\n \"Técnica de pueba de caja blanca\" );\n this.addQuestion(q5);\n Question q6=new Question(\"Prueba de camino es propuesta:\", \"Tom McCabe\", \"McCall \", \"Pressman\",\n \"Tom McCabe\");\n this.addQuestion(q6);\n Question q7=new Question(\"¿Qué es complejidad ciclomatica?\",\"Grafo de flujo\",\"Programming\",\n \"Metrica\",\"Metrica\");\n this.addQuestion(q7);\n //preguntas del quiz III\n Question q8 = new Question(\n \"¿Se le llama prueba de regresión?\", \"Se tienen que hacer nuevas pruebas donde se han probado antes\",\n \"Manten informes detallados de las pruebas\", \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\");\n this.addQuestion(q8);\n Question q9 = new Question(\"¿Cómo se realizan las pruebas de regresión?\",\n \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\", \"A través de herramientas de automatización de pruebas\", \"A través de herramientas de automatización de pruebas\");\n this.addQuestion(q9);\n Question q10 = new Question(\"¿Cuándo ya hay falta de tiempo para ejecutar casos de prueba ya ejecutadas se dejan?\",\n \"En primer plano\", \"En segundo plano\", \"En tercer plano\", \"En segundo plano\");\n this.addQuestion(q10);\n //preguntas del quiz IV\n Question q11 = new Question(\n \"¿En qué se enfocan las pruebas funcionales?\",\n \"Enfocarse en los requisitos funcionales\", \"Enfocarse en los requisitos no funcionales\",\n \"Verificar la apropiada aceptación de datos\", \"Enfocarse en los requisitos funcionales\");\n this.addQuestion(q11);\n Question q12 = new Question(\"Las metas de estas pruebas son:\", \"Verificar la apropiada aceptación de datos\",\n \"Verificar el procesamiento\", \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\",\n \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\");\n this.addQuestion(q12);\n Question q13 = new Question(\"¿En qué estan basadas este tipo de pruebas?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Técnicas de cajas negra\", \"Técnicas de cajas negra\");\n this.addQuestion(q13);\n //preguntas del quiz V\n Question q14 = new Question(\n \"¿Cúal es el objetivo de esta técnica?\", \"Identificar errores introducidos por la combinación de programas probados unitariamente\",\n \"Decide qué acciones tomar cuando se descubren problemas\",\n \"Verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Identificar errores introducidos por la combinación de programas probados unitariamente\");\n this.addQuestion(q14);\n Question q15 = new Question(\"¿Cúal es la descripción de la Prueba?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\");\n this.addQuestion(q15);\n Question q16 = new Question(\"Por cada caso de prueba ejecutado:\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Comparar el resultado esperado con el resultado obtenido\", \"Comparar el resultado esperado con el resultado obtenido\");\n this.addQuestion(q16);\n //preguntas del quiz VI\n Question q17 = new Question(\n \"Este tipo de pruebas sirven para garantizar que la calidad del código es realmente óptima:\",\n \"Pruebas Unitarias\", \"Pruebas de Calidad de Código\",\n \"Pruebas de Regresión\", \"Pruebas de Calidad de Código\");\n this.addQuestion(q17);\n Question q18 = new Question(\"Pruebas de Calidad de código sirven para: \",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Verificar que las especificaciones de diseño sean alcanzadas\",\n \"Garantizar la probabilidad de tener errores o bugs en la codificación\", \"Garantizar la probabilidad de tener errores o bugs en la codificación\");\n this.addQuestion(q18);\n Question q19 = new Question(\"Este análisis nos indica el porcentaje que nuestro código desarrollado ha sido probado por las pruebas unitarias\",\n \"Cobertura\", \"Focalización\", \"Regresión\", \"Cobertura\");\n this.addQuestion(q19);\n\n Question q20 = new Question( \"¿Qué significa V(G)?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Regiones\");\n this.addQuestion(q20);\n\n Question q21 = new Question( \"¿Qué significa A?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Aristas\");\n this.addQuestion(q21);\n\n Question q22 = new Question( \"¿Qué significa N?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Nodos\");\n this.addQuestion(q22);\n\n Question q23 = new Question( \"¿Qué significa P?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos Predicado\", \"Número de Nodos Predicado\");\n this.addQuestion(q23);\n Question q24 = new Question( \"De cuantás formas se puede calcular la complejidad ciclomatica V(G):\",\n \"3\", \"1\", \"2\", \"3\");\n this.addQuestion(q24);\n\n // END\n }", "public MultipleAnswerQuestion(String question ,boolean isSingleAnswered)\r\n {\r\n super(question,isSingleAnswered);\r\n this.answers = new ArrayList<>(); //Initializing the HashSet\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Questions> getTenQuestion(String tag){\n\t\tResponsesDao rdao = new ResponsesDao();\n\t\tTagsDao tdao = new TagsDao();\n\t\tTags tags = tdao.getTagByString(tag);\n\t\tList<Questions> quest = new ArrayList<>();\n\t\tList<Questions> retquest = new ArrayList<>();\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\tquest =\tsession.\tcreateQuery(\"from Questions where tid = :namevar\").\n\t\t\t\tsetInteger(\"namevar\", tags.getTagId()).list();\n\t\tif(quest.size() != 0) {\n\t\tfor(int i = 0; i <10; i++) {\n\t\t\tint rand = (int) (Math.random() * quest.size());\n\t\t\tretquest.add(rdao.getResponses(quest.get(rand)));\n\t\t}\n\t\t}\n\t\tsession.close();\n\t\treturn retquest;\n\t}", "List<Tag> load();", "public void testGetTagList() throws IOException {\n\n part.setBasedata(\"http://localhost/~luisdanielibanesgonzalez/datasets/MiniBase.nt\");\n part.reload();\n\n List<TrioMonoid> tags = part.getTagList();\n assertEquals(16,tags.size());\n for(TrioMonoid tm : tags){\n assertEquals(1,tm.getTokens().size());\n assertEquals(1,tm.getCoeffs().size());\n assertEquals(new Long(1),tm.getCoeffs().get(0));\n System.out.println(tm.toString());\n }\n\n \n }", "void deleteUnusedTags();", "public String getTags() {\n return tags;\n }", "public String getTags() {\n return tags;\n }", "public List<ITag> getTags ();", "@NotNull\n @Generated\n @Selector(\"tags\")\n public native NSSet<String> tags();", "public MultipleQuestion(String question, ArrayList<String> choices){\n\t\tthis.question = question;\n\t\tthis.choices = choices;\n\t}", "public void setTags(List<Tag> tags) {\n this.tags.clear();\n if (tags != null) {\n this.tags.addAll(tags);\n }\n }", "public String [] getTags() {\n\t\treturn null;\n\t}", "private void parseQuestions()\n\t{\n\t\tlog.info(\"Parsing questions\");\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Element> questions_list = doc.selectNodes(\"//document/questions/rows/row\");\n\t\tq_l10ns_node = doc.selectSingleNode(\"//document/question_l10ns/rows\");\n\t\tsq_node = doc.selectSingleNode(\"//document/subquestions/rows\");\n\t\tq_node = doc.selectSingleNode(\"//document/questions/rows\");\n\t\ta_node = doc.selectSingleNode(\"//document/answers/rows\");\n\n\t\tfor (Element question : questions_list) {\n\t\t\tString qid = question.element(\"qid\").getText();\n\t\t\tlog.debug(\"Working on question: \" + qid);\n\t\t\tQuestion q = new Question(qid,\n\t\t\t\t\t\t\t\t\t Integer.parseInt(question.element(\"gid\").getText()),\n\t\t\t\t\t\t\t\t\t question.element(\"type\").getText(),\n\t\t\t\t\t\t\t\t\t q_l10ns_node.selectSingleNode(\"row[qid=\" + qid + \"]/question\").getText(),\n\t\t\t\t\t\t\t\t\t question.element(\"title\").getText(),\n\t\t\t\t\t\t\t\t\t question.element(\"mandatory\").getText().equals(\"N\") ? \"No\" : \"Yes\",\n\t\t\t\t\t\t\t\t\t q_l10ns_node.selectSingleNode(\"row[qid=\" + qid + \"]/language\").getText());\n\n\t\t\t// Add a description, if there is one\n\t\t\tNode desc = q_l10ns_node.selectSingleNode(\"row[qid=\" + q.getQid() + \"]/help\");\n\t\t\tif (desc != null) {\n\t\t\t\tq.setDescription(desc.getText());\n\t\t\t}\n\n\t\t\taddCondition(q);\n\n\t\t\tswitch (q.type) {\n\t\t\t\t// Normal Text Fields\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"T\":\n\t\t\t\tcase \"U\":\n\t\t\t\t\tq.setType(\"T\");\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Date/Time\n\t\t\t\tcase \"D\":\n\t\t\t\t\tdate_time_qids.add(q.getQid());\n\t\t\t\t\tbreak;\n\t\t\t\t// Numeric Input\n\t\t\t\tcase \"N\":\n\t\t\t\t\tif (check_int_only(q)) {\n\t\t\t\t\t\tq.setType(\"I\");\n\t\t\t\t\t}\n\t\t\t\t\tadd_range(q);\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Single 5-Point Choice\n\t\t\t\tcase \"5\":\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(\"5pt.cl\", ClGenerator.getIntCl(5), \"string\", true));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Yes/No\n\t\t\t\tcase \"Y\":\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(\"YN.cl\", ClGenerator.getYNCl(), \"string\", false));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Gender\n\t\t\t\tcase \"G\":\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(\"Gender.cl\", ClGenerator.getGenderCl(), \"string\", false));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// List with comment\n\t\t\t\tcase \"O\":\n\t\t\t\t\taddComment(q);\n\t\t\t\t// Radio List\n\t\t\t\tcase \"L\":\n\t\t\t\t// Dropdown List\n\t\t\t\tcase \"!\":\n\t\t\t\t\tboolean oth = question.elementText(\"other\").equals(\"Y\");\n\t\t\t\t\tif(oth) {\n\t\t\t\t\t\taddOtherQuestion(q);\n\t\t\t\t\t}\n\t\t\t\t\tq.setType(\"A\");\n\t\t\t\t\tq.setAnswers(new AnswersList(q.getQid() + \".cl\", getAnswerCodesByID(q.getQid(), oth), \"string\", false));\n\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Multiple Texts\n\t\t\t\t// Input On Demand\n\t\t\t\tcase \"Q\":\n\t\t\t\t\taddSubquestions(q, \"T\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Multiple Numeric Inputs\n\t\t\t\tcase \"K\":\n\t\t\t\t\tadd_range(q);\n\t\t\t\t\tif (check_int_only(q)){\n\t\t\t\t\t\taddSubquestions(q, \"I\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\taddSubquestions(q, \"N\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Dual scale array\n\t\t\t\tcase \"1\":\n\t\t\t\t\tHashMap<String, String>[] code_lists = ClGenerator.getDualScaleCls(q.getQid(), getAnswerIdsByID(q.getQid()), a_node);\n\t\t\t\t\taddSubquestionsWithCL(q, q.getQid() + \".0\", code_lists[0], \"string\", false, \"-0\");\n\t\t\t\t\taddSubquestionsWithCL(q, q.getQid() + \".1\", code_lists[1], \"string\", false, \"-1\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Array by column\n\t\t\t\tcase \"H\":\n\t\t\t\t// Flexible Array\n\t\t\t\tcase \"F\":\n\t\t\t\t\taddSubquestionsWithCL(q, q.getQid().concat(\".cl\"), getAnswerCodesByID(q.getQid(), false), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// 5pt Array\n\t\t\t\tcase \"A\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"5pt.cl\", ClGenerator.getIntCl(5), \"integer\", true, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// 10pt Array\n\t\t\t\tcase \"B\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"10pt.cl\", ClGenerator.getIntCl(10), \"integer\", true, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Increase/Same/Decrease Array\n\t\t\t\tcase \"E\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"ISD.cl\", ClGenerator.getISDCL(), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// 10pt Array\n\t\t\t\tcase \"C\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"YNU.cl\", ClGenerator.getYNUCL(), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\t// Matrix with numerical input\n\t\t\t\tcase \":\":\n\t\t\t\t\tq.setType(\"N\");\n\t\t\t\t\taddQuestionMatrix(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Matrix with text input\n\t\t\t\tcase \";\":\n\t\t\t\t\tq.setType(\"T\");\n\t\t\t\t\taddQuestionMatrix(q);\n\t\t\t\t\tbreak;\n\t\t\t\t// Multiple Choice (Normal, Bootstrap, Image select)\n\t\t\t\tcase \"M\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"MC.cl\", ClGenerator.getMCCL(), \"string\", false, \"\");\n\t\t\t\t\tif (question.elementTextTrim(\"other\").equals(\"Y\")) {\n\t\t\t\t\t\tq.setQid(q.getQid().concat(\"other\"));\n\t\t\t\t\t\tq.setType(\"T\");\n\t\t\t\t\t\tsurvey.addQuestion(q);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// MC with comments\n\t\t\t\tcase \"P\":\n\t\t\t\t\taddSubquestionsWithCL(q, \"MC.cl\", ClGenerator.getMCCL(), \"string\", false, \"\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tlog.error(\"Question type not supported: \" + q.type);\n\t\t\t}\n\t\t}\n\t}", "public static synchronized void insertQuestions(Context context,\n\t\t\tList<ParseObject> questionsList, String tableName)\n\t\t\tthrows SQLException, NullPointerException {\n\t\tQADatabaseHelper dbHelper = QADatabaseHelper.getInstance(context);\n\t\tSQLiteDatabase db = dbHelper.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\n\t\tfor (ParseObject question : questionsList) {\n\t\t\tvalues.put(COLUMN_NAME_PRIMARY_KEY,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_PRIMARY_KEY));\n\t\t\tvalues.put(COLUMN_NAME_QUESTION,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_QUESTION));\n\t\t\tvalues.put(COLUMN_NAME_OPTION1,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_OPTION1));\n\t\t\tvalues.put(COLUMN_NAME_OPTION2,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_OPTION2));\n\t\t\tvalues.put(COLUMN_NAME_OPTION3,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_OPTION3));\n\t\t\tvalues.put(COLUMN_NAME_OPTION4,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_OPTION4));\n\t\t\tvalues.put(COLUMN_NAME_ANSWER,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_ANSWER));\n\t\t\tvalues.put(COLUMN_NAME_IS_FETCHED, 0);\n\t\t\tvalues.put(COLUMN_NAME_DIFFICULTY_LEVEL,\n\t\t\t\t\tquestion.getString(COLUMN_NAME_DIFFICULTY_LEVEL));\n\t\t\tFormatter formatter = new Formatter();\n\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\tformatter.format(\"%tc\", calendar);\n\t\t\tformatter.close();\n\n\t\t\tDate originalDate = calendar.getTime();\n\n\t\t\tvalues.put(COLUMN_NAME_UPDATED_AT, originalDate.toString());\n\n\t\t\ttry {\n\t\t\t\tdb.replace(tableName, null, values);\n\t\t\t} catch (Exception exception) {\n\t\t\t\texception.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tdb.close();\n\t}", "public String getTags() {\n return this.tags;\n }", "public Set<String> getCurrentTags() {\n\t\tSet<String> tags = new HashSet<String>();\n\t\t\n\t\tfor (int i=0;i<this.sentenceTable.size();i++) {\n\t\t\tSentenceStructure sentence = this.sentenceTable.get(i);\n\t\t\tString tag = sentence.getTag();\n\t\t\tif ((!StringUtils.equals(tag, \"ignore\"))){\n\t\t\t\ttags.add(tag);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn tags;\n\t}", "boolean hasTags();", "List<String> getTags() {\r\n return tags;\r\n }", "private SortedSet<String> FillTagList(String tags) {\n \tSortedSet<String> tagset = new TreeSet<String>();\n \tString[] tag_arr = tags.split(\" \");\n \tfor (int i = 0; i < tag_arr.length; i++) {\n \t\ttagset.add(tag_arr[i]);\n \t}\n \ttag_arr = new String[]{};\n \ttag_arr = tagset.toArray(tag_arr);\n\n\t\tm_taglist = new ArrayList < Map<String,String> >();\n\t\tm_taglistmap = new HashMap <String, Integer>();\n\t\tMap<String, String> m;\n\t\tfor (int i = 0; i < tag_arr.length; i++) {\n\t\t\tm = new HashMap<String, String>();\n\t\t\tm.put(\"tag_name\", tag_arr[i]);\n\t\t\tm.put(\"extra_info\", \"\");\n\t\t\tm_taglist.add(m);\n\t\t\tm_taglistmap.put(tag_arr[i],i);\n\t\t}\n\t\t\n\t\tListView lv = ((ListView)findViewById(R.id.ImageTagsList));\n lv.setAdapter(new SimpleAdapter(\n\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\tm_taglist,\n\t\t\t\t\t\t\tR.layout.tags_list_item,\n\t\t\t\t\t\t\tnew String[]{\"tag_name\",\"extra_info\"},\n\t\t\t\t\t\t\tnew int[]{R.id.TagName, R.id.ExtraInfo}));\n \tlv.setTextFilterEnabled(true);\n \tlv.setOnItemClickListener(this);\n \t\n \treturn tagset;\n }", "public void saveTaglist(ArrayList<TagCategory> tags) throws IOException {\n\t\tassert (tags != null);\n\t\tFile dest = new File(directory, FILENAME_TAGS);\n\t\tstorageWriter.saveTaglist(tags, dest);\n\t}", "private List<QuestionDef> getQuestions(List<IFormElement> elements)\n\t{\n\t\t//define the return value\n\t\tArrayList<QuestionDef> questions = new ArrayList<QuestionDef>();\n\t\t//loop over elements\n\t\tif(elements == null)\n\t\t{\n\t\t\treturn questions;\n\t\t}\n\t\tfor(IFormElement element: elements)\n\t\t{\n\t\t\t//is it a question\n\t\t\tif(element instanceof QuestionDef)\n\t\t\t{\n\t\t\t\tquestions.add((QuestionDef)element);\n\t\t\t}\n\t\t\t//recurse\n\t\t\tquestions.addAll(getQuestions(element.getChildren()));\n\t\t}\n\t\t\n\t\treturn questions;\n\t}", "public void multipleAnswerSpecialCheck(){\n for (String q : qA.keySet()){\n List answerList = qA.get(q);\n if (answerList.size()>2 && answerList.contains(\"\")){\n answerList.remove(\"\");\n }\n }\n\n }", "public void setTags(Set<Preference> preferenceTags) {\n requireAllNonNull(preferenceTags);\n internalList.setAll(preferenceTags);\n assert CollectionUtil.elementsAreUnique(internalList);\n }", "public void startMultQuestionSet() {\n this.multQuestionSet = new HashSet<>();//creates a new multQuestionSet\n for (Question q : this.getForm().getQuestionList()) {//for every question in the question list of the current form\n if (q.getType().getId() == 1) {//if the question is type Multiple Question\n Quest newQuest = new Quest();//creates a new Quest\n newQuest.setqQuestion(q);//adds the current question to the new Quest\n this.multQuestionSet.add(newQuest);//adds the new Quest to the new multQuestionSet\n }\n }\n }", "void updateTags();", "ObservableList<Tag> getTagList();", "ObservableList<Tag> getTagList();", "@Override\n public boolean isTagged() {\n for (List<String> t : tags.values()) {\n if(!t.isEmpty()) return true;\n }\n return false;\n }", "@Test\n\tpublic void ensureBug77IsSolved() {\n\t\tTag a = new Tag(A);\n\t\ttagService.create(a);\n\t\tTag b = tagService.create(new Tag(B));\n\t\tTag c = tagService.create(new Tag(C));\n\t\tIterable<Tag> values = tagService.find().matching(\n\t\t\t\tnew QueryBuilder<TagInformer>() {\n\n\t\t\t\t\tpublic QueryExpression createMatchingExpression(\n\t\t\t\t\t\t\tTagInformer object) {\n\t\t\t\t\t\treturn object.getText().equalsToIgnoreCase(\"a\");\n\t\t\t\t\t}\n\t\t\t\t}).getAll();\n\t\tassertThat(values, IsCollectionContaining.hasItems(a));\n\t\tassertThat(values, IsNot.not(IsCollectionContaining.hasItems(b, c)));\n\t}", "public static List<Question> getQuestions() {\n if (QUESTION == null) {\n QUESTION = new ArrayList<>();\n List<Option> options = new ArrayList<Option>();\n options.add(new Option(1, \"Radio Waves\"));\n options.add(new Option(2, \"Sound Waves\"));\n options.add(new Option(3, \"Gravity Waves\"));\n options.add(new Option(4, \"Light Waves\"));\n QUESTION.add(new Question(1, \"Which kind of waves are used to make and receive cellphone calls?\", getCategory(4), options, options.get(0)));\n\n List<Option> options2 = new ArrayList<Option>();\n options2.add(new Option(1, \"8\"));\n options2.add(new Option(2, \"6\"));\n options2.add(new Option(3, \"3\"));\n options2.add(new Option(4, \"1\"));\n QUESTION.add(new Question(2, \"How many hearts does an octopus have?\", getCategory(4), options2, options2.get(2)));\n\n List<Option> options3 = new ArrayList<Option>();\n options3.add(new Option(1, \"Newton's Law\"));\n options3.add(new Option(2, \"Hooke's law\"));\n options3.add(new Option(3, \"Darwin's Law\"));\n options3.add(new Option(4, \"Archimedes' principle\"));\n QUESTION.add(new Question(3, \"Whose law states that the force needed to extend a spring by some distance is proportional to that distance?\", getCategory(4), options3, options3.get(1)));\n\n List<Option> options4 = new ArrayList<Option>();\n options4.add(new Option(1, \"M\"));\n options4.add(new Option(2, \"$\"));\n options4.add(new Option(3, \"W\"));\n options4.add(new Option(4, \"#\"));\n QUESTION.add(new Question(4, \"What is the chemical symbol for tungsten?\", getCategory(4), options4, options4.get(2)));\n\n List<Option> options5 = new ArrayList<Option>();\n options5.add(new Option(1, \"Pulsar\"));\n options5.add(new Option(2, \"Draconis\"));\n options5.add(new Option(3, \"Aludra\"));\n options5.add(new Option(4, \"Alwaid\"));\n QUESTION.add(new Question(5, \"What is a highly magnetized, rotating neutron star that emits a beam of electromagnetic radiation?\", getCategory(4), options5, options5.get(0)));\n\n List<Option> options6 = new ArrayList<Option>();\n options6.add(new Option(1, \"2\"));\n options6.add(new Option(2, \"4\"));\n options6.add(new Option(3, \"7\"));\n options6.add(new Option(4, \"10\"));\n QUESTION.add(new Question(6, \"At what temperature is Centigrade equal to Fahrenheit?\", getCategory(4), options6, options6.get(2)));\n\n List<Option> options7 = new ArrayList<Option>();\n options7.add(new Option(1, \"Temperature\"));\n options7.add(new Option(2, \"Distance\"));\n options7.add(new Option(3, \"Light Intensity\"));\n options7.add(new Option(4, \"Noise\"));\n QUESTION.add(new Question(7, \"Kelvin is a unit to measure what?\", getCategory(4), options7, options7.get(2)));\n\n List<Option> options8 = new ArrayList<Option>();\n options8.add(new Option(1, \"Mars\"));\n options8.add(new Option(2, \"Jupiter\"));\n options8.add(new Option(3, \"Saturn\"));\n options8.add(new Option(4, \"Neptune\"));\n QUESTION.add(new Question(8, \"Triton is the largest moon of what planet?\", getCategory(4), options8, options8.get(3)));\n\n List<Option> options9 = new ArrayList<Option>();\n options9.add(new Option(1, \"Brain\"));\n options9.add(new Option(2, \"Heart\"));\n options9.add(new Option(3, \"Lungs\"));\n options9.add(new Option(4, \"Skin\"));\n QUESTION.add(new Question(9, \"What is the human body’s biggest organ?\", getCategory(4), options9, options9.get(3)));\n\n List<Option> options10 = new ArrayList<Option>();\n options10.add(new Option(1, \"Skull\"));\n options10.add(new Option(2, \"Knee Cap\"));\n options10.add(new Option(3, \"Shoulder Joint\"));\n options10.add(new Option(4, \"Backbone\"));\n QUESTION.add(new Question(10, \"What is the more common name for the patella?\", getCategory(4), options10, options10.get(1)));\n\n List<Option> options11 = new ArrayList<Option>();\n options11.add(new Option(1, \"Mother India\"));\n options11.add(new Option(2, \"The Guide\"));\n options11.add(new Option(3, \"Madhumati\"));\n options11.add(new Option(4, \"Amrapali\"));\n QUESTION.add(new Question(11, \"Which was the 1st Indian movie submitted for Oscar?\", getCategory(1), options11, options11.get(0)));\n\n List<Option> options12 = new ArrayList<Option>();\n options12.add(new Option(1, \"Gunda\"));\n options12.add(new Option(2, \"Sholey\"));\n options12.add(new Option(3, \"Satte pe Satta\"));\n options12.add(new Option(4, \"Angoor\"));\n QUESTION.add(new Question(12, \"Which film is similar to Seven Brides For Seven Brothers?\", getCategory(1), options12, options12.get(2)));\n\n List<Option> options13 = new ArrayList<Option>();\n options13.add(new Option(1, \"Rocky\"));\n options13.add(new Option(2, \"Pancham\"));\n options13.add(new Option(3, \"Chichi\"));\n options13.add(new Option(4, \"Chintu\"));\n QUESTION.add(new Question(13, \"Music Director R.D. Burman is also known as?\", getCategory(1), options13, options13.get(1)));\n\n List<Option> options14 = new ArrayList<Option>();\n options14.add(new Option(1, \"Nagarjuna\"));\n options14.add(new Option(2, \"Chiranjeevi\"));\n options14.add(new Option(3, \"Rajinikanth\"));\n options14.add(new Option(4, \"NTR\"));\n QUESTION.add(new Question(14, \"Shivaji Rao Gaikwad is the real name of which actor?\", getCategory(1), options14, options14.get(2)));\n\n List<Option> options15 = new ArrayList<Option>();\n options15.add(new Option(1, \"Geraftaar\"));\n options15.add(new Option(2, \"Hum\"));\n options15.add(new Option(3, \"Andha kanoon\"));\n options15.add(new Option(4, \"Agneepath\"));\n QUESTION.add(new Question(15, \"Name the film in which Amitabh Bachchan, Rajinikanth and Kamal Hasan worked together.\", getCategory(1), options15, options15.get(0)));\n\n List<Option> options16 = new ArrayList<Option>();\n options16.add(new Option(1, \"AR Rahman\"));\n options16.add(new Option(2, \"Bhanu Athaiya\"));\n options16.add(new Option(3, \"Gulzar\"));\n options16.add(new Option(4, \"Rasul Pookutty\"));\n QUESTION.add(new Question(16, \"First Indian to win Oscar award?\", getCategory(1), options16, options16.get(1)));\n\n List<Option> options17 = new ArrayList<Option>();\n options17.add(new Option(1, \"Jab tak hai jaan\"));\n options17.add(new Option(2, \"Rab ne bana di jodi\"));\n options17.add(new Option(3, \"Veer zara\"));\n options17.add(new Option(4, \"Ek tha tiger\"));\n QUESTION.add(new Question(17, \"Which was the last movie directed by Yash Chopra?\", getCategory(1), options17, options17.get(0)));\n\n\n List<Option> options18 = new ArrayList<Option>();\n options18.add(new Option(1, \"‘Thala’ Ajith\"));\n options18.add(new Option(2, \"Arjun Sarja\"));\n options18.add(new Option(3, \"Ashutosh Gawariker\"));\n options18.add(new Option(4, \"AK Hangal\"));\n QUESTION.add(new Question(18, \"\\\"Itna sannata kyun hai bhai?\\\" Who said this, now legendary words, in 'Sholay'?\", getCategory(1), options18, options18.get(3)));\n\n List<Option> options19 = new ArrayList<Option>();\n options19.add(new Option(1, \"Tommy\"));\n options19.add(new Option(2, \"Tuffy\"));\n options19.add(new Option(3, \"Toffy\"));\n options19.add(new Option(4, \"Timmy\"));\n QUESTION.add(new Question(19, \"What was the name of Madhuri Dixit’s dog in Hum Aapke Hain Koun?\", getCategory(1), options19, options19.get(1)));\n\n List<Option> options20 = new ArrayList<Option>();\n options20.add(new Option(1, \"Premnath\"));\n options20.add(new Option(2, \"Dilip Kumar\"));\n options20.add(new Option(3, \"Raj Kapoor\"));\n options20.add(new Option(4, \"Kishore Kumar\"));\n QUESTION.add(new Question(20, \"Beautiful actress Madhubala was married to?\", getCategory(1), options20, options20.get(3)));\n\n\n List<Option> options21 = new ArrayList<Option>();\n options21.add(new Option(1, \"Sher Khan\"));\n options21.add(new Option(2, \"Mufasa\"));\n options21.add(new Option(3, \"Simba\"));\n options21.add(new Option(4, \"Sarabi\"));\n QUESTION.add(new Question(21, \"What is the name of the young lion whose story is told in the musical 'The Lion King'?\", getCategory(2), options21, options21.get(2)));\n\n List<Option> options22 = new ArrayList<Option>();\n options22.add(new Option(1, \"Scotland\"));\n options22.add(new Option(2, \"England\"));\n options22.add(new Option(3, \"Germany\"));\n options22.add(new Option(4, \"Netherland\"));\n QUESTION.add(new Question(22, \"Which country's freedom struggle is portrayed in the Mel Gibson movie 'Braveheart'?\", getCategory(2), options22, options22.get(0)));\n\n List<Option> options23 = new ArrayList<Option>();\n options23.add(new Option(1, \"Letters to Juliet\"));\n options23.add(new Option(2, \"Saving Private Ryan\"));\n options23.add(new Option(3, \"Forest Gump\"));\n options23.add(new Option(4, \"Gone With The Wind\"));\n QUESTION.add(new Question(23, \"Which movie had this dialogue \\\"My mama always said, life was like a box of chocolates. You never know what you're gonna get.\", getCategory(2), options23, options23.get(2)));\n\n List<Option> options24 = new ArrayList<Option>();\n options24.add(new Option(1, \"Die\"));\n options24.add(new Option(2, \"Golden\"));\n options24.add(new Option(3, \"Casino\"));\n options24.add(new Option(4, \"Never\"));\n QUESTION.add(new Question(24, \"Excluding \\\"the\\\", which word appears most often in Bond movie titles?\", getCategory(2), options24, options24.get(3)));\n\n List<Option> options25 = new ArrayList<Option>();\n options25.add(new Option(1, \"Bishop\"));\n options25.add(new Option(2, \"Ash\"));\n options25.add(new Option(3, \"Call\"));\n options25.add(new Option(4, \"Carlos\"));\n QUESTION.add(new Question(25, \"Name the android in movie Alien \", getCategory(2), options25, options25.get(1)));\n\n List<Option> options26 = new ArrayList<Option>();\n options26.add(new Option(1, \"Gone with the wind\"));\n options26.add(new Option(2, \"Home footage\"));\n options26.add(new Option(3, \"With Our King and Queen Through India\"));\n options26.add(new Option(4, \"Treasure Island\"));\n QUESTION.add(new Question(26, \"Which was the first colour film to win a Best Picture Oscar?\", getCategory(2), options26, options26.get(0)));\n\n List<Option> options27 = new ArrayList<Option>();\n options27.add(new Option(1, \"Robert Redford\"));\n options27.add(new Option(2, \"Michael Douglas\"));\n options27.add(new Option(3, \"Harrison Ford\"));\n options27.add(new Option(4, \"Patrick Swayze\"));\n QUESTION.add(new Question(27, \"Who played the male lead opposite Sharon Stone in the hugely successful movie 'The Basic Instinct'?\", getCategory(2), options27, options27.get(1)));\n\n List<Option> options28 = new ArrayList<Option>();\n options28.add(new Option(1, \"10,000 BC\"));\n options28.add(new Option(2, \"Day after tomorrow\"));\n options28.add(new Option(3, \"2012\"));\n options28.add(new Option(4, \"The Noah's Ark Principle\"));\n QUESTION.add(new Question(28, \"Which Roland Emmerich movie portrays fictional cataclysmic events that were to take place in early 21st century?\", getCategory(2), options28, options28.get(2)));\n\n List<Option> options29 = new ArrayList<Option>();\n options29.add(new Option(1, \"Finding Nemo\"));\n options29.add(new Option(2, \"The Incredibles\"));\n options29.add(new Option(3, \"Monsters, Inc.\"));\n options29.add(new Option(4, \"Toy Story\"));\n QUESTION.add(new Question(29, \"What was the first movie by Pixar to receive a rating higher than G in the United States?\", getCategory(2), options29, options29.get(1)));\n\n List<Option> options30 = new ArrayList<Option>();\n options30.add(new Option(1, \"Draco\"));\n options30.add(new Option(2, \"Harry\"));\n options30.add(new Option(3, \"Hermione\"));\n options30.add(new Option(4, \"Ron\"));\n QUESTION.add(new Question(30, \"In the 'Prisoner of Azkaban', who throws rocks at Hagrid's hut so that Harry, Ron and Hermione can leave?\", getCategory(2), options30, options30.get(2)));\n\n List<Option> options31 = new ArrayList<Option>();\n options31.add(new Option(1, \"Brett Lee\"));\n options31.add(new Option(2, \"Adam Gilchrist\"));\n options31.add(new Option(3, \"Jason Gillespie\"));\n options31.add(new Option(4, \"Glenn McGrath\"));\n QUESTION.add(new Question(31, \"'Dizzy' is the nickname of what Australian player?\", getCategory(3), options31, options31.get(2)));\n\n List<Option> options32 = new ArrayList<Option>();\n options32.add(new Option(1, \"1883 between Australia and Wales\"));\n options32.add(new Option(2, \"1844 between Canada and the USA\"));\n options32.add(new Option(3, \"1869 between England and Australia\"));\n options32.add(new Option(4, \"1892 between England and India\"));\n QUESTION.add(new Question(32, \"In what year was the first international cricket match held?\", getCategory(3), options32, options32.get(1)));\n\n List<Option> options33 = new ArrayList<Option>();\n options33.add(new Option(1, \"Salim Durrani\"));\n options33.add(new Option(2, \"Farooq Engineer\"));\n options33.add(new Option(3, \"Vijay Hazare\"));\n options33.add(new Option(4, \"Mansur Ali Khan Pataudi\"));\n QUESTION.add(new Question(33, \"Which former Indian cricketer was nicknamed 'Tiger'?\", getCategory(3), options33, options33.get(3)));\n\n List<Option> options34 = new ArrayList<Option>();\n options34.add(new Option(1, \"Piyush Chawla\"));\n options34.add(new Option(2, \"Gautam Gambhir\"));\n options34.add(new Option(3, \"Irfan Pathan\"));\n options34.add(new Option(4, \"Suresh Raina\"));\n QUESTION.add(new Question(34, \"Who was named as the ICC Emerging Player of the Year 2004?\", getCategory(3), options34, options34.get(2)));\n\n List<Option> options35 = new ArrayList<Option>();\n options35.add(new Option(1, \"Subhash Gupte\"));\n options35.add(new Option(2, \"M.L.Jaisimha\"));\n options35.add(new Option(3, \"Raman Lamba\"));\n options35.add(new Option(4, \"Lala Amarnath\"));\n QUESTION.add(new Question(35, \"Which cricketer died on the field in Bangladesh while playing for Abahani Club?\", getCategory(3), options35, options35.get(2)));\n\n List<Option> options36 = new ArrayList<Option>();\n options36.add(new Option(1, \"V. Raju\"));\n options36.add(new Option(2, \"Rajesh Chauhan\"));\n options36.add(new Option(3, \"Arshad Ayub\"));\n options36.add(new Option(4, \"Narendra Hirwani\"));\n QUESTION.add(new Question(36, \"In 1987-88, which Indian spinner took 16 wickets on his Test debut?\", getCategory(3), options36, options36.get(3)));\n\n List<Option> options37 = new ArrayList<Option>();\n options37.add(new Option(1, \"Ravi Shastri\"));\n options37.add(new Option(2, \"Dilip Vengsarkar\"));\n options37.add(new Option(3, \"Sachin Tendulkar\"));\n options37.add(new Option(4, \"Sanjay Manjrekar\"));\n QUESTION.add(new Question(37, \"Which former Indian Test cricketer equalled Gary Sobers world record of six sixes in an over in a Ranji Trophy match?\", getCategory(3), options37, options37.get(0)));\n\n List<Option> options38 = new ArrayList<Option>();\n options38.add(new Option(1, \"Mohsin khan\"));\n options38.add(new Option(2, \"Wasim Akram\"));\n options38.add(new Option(3, \"Naveen Nischol\"));\n options38.add(new Option(4, \"None Of The Above\"));\n QUESTION.add(new Question(38, \"Reena Roy the Indian film actress married a cricketer?\", getCategory(3), options38, options38.get(0)));\n\n List<Option> options39 = new ArrayList<Option>();\n options39.add(new Option(1, \"London, England\"));\n options39.add(new Option(2, \"Mumbai, India\"));\n options39.add(new Option(3, \"Lahore, Pakistan\"));\n options39.add(new Option(4, \"Nairobi, Kenya\"));\n QUESTION.add(new Question(39, \"Where did Yuvraj Singh make his ODI debut?\", getCategory(3), options39, options39.get(3)));\n\n List<Option> options40 = new ArrayList<Option>();\n options40.add(new Option(1, \"Arvind De Silva\"));\n options40.add(new Option(2, \"Roshan Mahanama\"));\n options40.add(new Option(3, \"Harshan Tilakaratne\"));\n options40.add(new Option(4, \"None Of The Above\"));\n QUESTION.add(new Question(40, \"Kapil Dev's 432 (world) record breaking victim was?\", getCategory(3), options40, options40.get(2)));\n\n List<Option> options41 = new ArrayList<Option>();\n options41.add(new Option(1, \"Vatican\"));\n options41.add(new Option(2, \"Iceland\"));\n options41.add(new Option(3, \"Netherlands\"));\n options41.add(new Option(4, \"Hungary\"));\n QUESTION.add(new Question(41, \"Which country has the lowest population density of any country in Europe?\", getCategory(5), options41, options41.get(1)));\n\n List<Option> options42 = new ArrayList<Option>();\n options42.add(new Option(1, \"Cambodia\"));\n options42.add(new Option(2, \"Thailand\"));\n options42.add(new Option(3, \"Mynamar\"));\n options42.add(new Option(4, \"Bhutan\"));\n QUESTION.add(new Question(42, \"Angkor Wat, the largest religious monument in the world, is in which country?\", getCategory(5), options42, options42.get(0)));\n\n List<Option> options43 = new ArrayList<Option>();\n options43.add(new Option(1, \"Southern\"));\n options43.add(new Option(2, \"Northern and Southern\"));\n options43.add(new Option(3, \"Northern\"));\n options43.add(new Option(4, \"None of the above\"));\n QUESTION.add(new Question(43, \"Is the Tropic of Cancer in the northern or southern hemisphere?\", getCategory(5), options43, options43.get(2)));\n\n List<Option> options44 = new ArrayList<Option>();\n options44.add(new Option(1, \"Bangladesh\"));\n options44.add(new Option(2, \"Nepal\"));\n options44.add(new Option(3, \"Pakistan\"));\n options44.add(new Option(4, \"China\"));\n QUESTION.add(new Question(44, \"The Ganges flows through India and which other country?\", getCategory(5), options44, options44.get(0)));\n\n List<Option> options45 = new ArrayList<Option>();\n options45.add(new Option(1, \"Indian\"));\n options45.add(new Option(2, \"Pacific\"));\n options45.add(new Option(3, \"Arctic\"));\n options45.add(new Option(4, \"Atlantic\"));\n QUESTION.add(new Question(45, \"Which ocean lies on the east coast of the United States?\", getCategory(5), options45, options45.get(3)));\n\n List<Option> options46 = new ArrayList<Option>();\n options46.add(new Option(1, \"Prime Axis\"));\n options46.add(new Option(2, \"Lambert Line\"));\n options46.add(new Option(3, \"Prime Meridian\"));\n options46.add(new Option(4, \"Greenwich\"));\n QUESTION.add(new Question(46, \"What is the imaginary line called that connects the north and south pole?\", getCategory(5), options46, options46.get(2)));\n\n List<Option> options47 = new ArrayList<Option>();\n options47.add(new Option(1, \"Tropic of Cancer\"));\n options47.add(new Option(2, \"Tropic of Capricorn\"));\n QUESTION.add(new Question(47, \"The most northerly circle of latitude on the Earth at which the Sun may appear directly overhead at its culmination is called?\", getCategory(5), options47, options47.get(0)));\n\n List<Option> options48 = new ArrayList<Option>();\n options48.add(new Option(1, \"Nevada\"));\n options48.add(new Option(2, \"Arizona\"));\n options48.add(new Option(3, \"New Mexico\"));\n options48.add(new Option(4, \"San Fransisco\"));\n QUESTION.add(new Question(48, \"Which U.S. state is the Grand Canyon located in?\", getCategory(5), options48, options48.get(1)));\n\n List<Option> options49 = new ArrayList<Option>();\n options49.add(new Option(1, \"Indian Ocean\"));\n options49.add(new Option(2, \"Atlantic Ocean\"));\n options49.add(new Option(3, \"Pacific Ocean\"));\n options49.add(new Option(4, \"Arctic Ocean\"));\n QUESTION.add(new Question(49, \"Which is the largest body of water?\", getCategory(5), options49, options49.get(2)));\n\n List<Option> options50 = new ArrayList<Option>();\n options50.add(new Option(1, \"Maldives\"));\n options50.add(new Option(2, \"Monaco\"));\n options50.add(new Option(3, \"Tuvalu\"));\n options50.add(new Option(4, \"Vatican City\"));\n QUESTION.add(new Question(50, \"Which is the smallest country, measured by total land area?\", getCategory(5), options50, options50.get(3)));\n\n List<Option> options51 = new ArrayList<Option>();\n options51.add(new Option(1, \"1923\"));\n options51.add(new Option(2, \"1938\"));\n options51.add(new Option(3, \"1917\"));\n options51.add(new Option(4, \"1914\"));\n QUESTION.add(new Question(51, \"World War I began in which year?\", getCategory(6), options51, options51.get(3)));\n\n List<Option> options52 = new ArrayList<Option>();\n options52.add(new Option(1, \"France\"));\n options52.add(new Option(2, \"Germany\"));\n options52.add(new Option(3, \"Austria\"));\n options52.add(new Option(4, \"Hungary\"));\n QUESTION.add(new Question(52, \"Adolf Hitler was born in which country?\", getCategory(6), options52, options52.get(2)));\n\n List<Option> options53 = new ArrayList<Option>();\n options53.add(new Option(1, \"1973\"));\n options53.add(new Option(2, \"Austin\"));\n options53.add(new Option(3, \"Dallas\"));\n options53.add(new Option(4, \"1958\"));\n QUESTION.add(new Question(53, \"John F. Kennedy was assassinated in?\", getCategory(6), options53, options53.get(2)));\n\n List<Option> options54 = new ArrayList<Option>();\n options54.add(new Option(1, \"Johannes Gutenburg\"));\n options54.add(new Option(2, \"Benjamin Franklin\"));\n options54.add(new Option(3, \"Sir Isaac Newton\"));\n options54.add(new Option(4, \"Martin Luther\"));\n QUESTION.add(new Question(54, \"The first successful printing press was developed by this man.\", getCategory(6), options54, options54.get(0)));\n\n List<Option> options55 = new ArrayList<Option>();\n options55.add(new Option(1, \"The White Death\"));\n options55.add(new Option(2, \"The Black Plague\"));\n options55.add(new Option(3, \"Smallpox\"));\n options55.add(new Option(4, \"The Bubonic Plague\"));\n QUESTION.add(new Question(55, \"The disease that ravaged and killed a third of Europe's population in the 14th century is known as\", getCategory(6), options55, options55.get(3)));\n\n List<Option> options56 = new ArrayList<Option>();\n options56.add(new Option(1, \"Panipat\"));\n options56.add(new Option(2, \"Troy\"));\n options56.add(new Option(3, \"Waterloo\"));\n options56.add(new Option(4, \"Monaco\"));\n QUESTION.add(new Question(56, \"Napoleon was finally defeated at the battle known as?\", getCategory(6), options56, options56.get(2)));\n\n List<Option> options57 = new ArrayList<Option>();\n options57.add(new Option(1, \"Magellan\"));\n options57.add(new Option(2, \"Cook\"));\n options57.add(new Option(3, \"Marco\"));\n options57.add(new Option(4, \"Sir Francis Drake\"));\n QUESTION.add(new Question(57, \"Who was the first Western explorer to reach China?\", getCategory(6), options57, options57.get(2)));\n\n List<Option> options58 = new ArrayList<Option>();\n options58.add(new Option(1, \"Shah Jahan\"));\n options58.add(new Option(2, \"Chandragupta Maurya\"));\n options58.add(new Option(3, \"Humayun\"));\n options58.add(new Option(4, \"Sher Shah Suri\"));\n QUESTION.add(new Question(58, \"Who built the Grand Trunk Road?\", getCategory(6), options58, options58.get(3)));\n\n List<Option> options59 = new ArrayList<Option>();\n options59.add(new Option(1, \"Jawaharlal Nehru\"));\n options59.add(new Option(2, \"M. K. Gandhi\"));\n options59.add(new Option(3, \"Dr. Rajendra Prasad\"));\n options59.add(new Option(4, \"Dr. S. Radhakrishnan\"));\n QUESTION.add(new Question(59, \"Who was the first President of India?\", getCategory(6), options59, options59.get(2)));\n\n List<Option> options60 = new ArrayList<Option>();\n options60.add(new Option(1, \"8\"));\n options60.add(new Option(2, \"10\"));\n options60.add(new Option(3, \"5\"));\n options60.add(new Option(4, \"18\"));\n QUESTION.add(new Question(60, \"How many days did the battle of Mahabharata last?\", getCategory(6), options60, options60.get(3)));\n }\n return QUESTION;\n }", "@Override\n\tpublic List<Question> getQuestions() {\n\t\treturn null;\n\t}", "private List<Tag> getTags() {\r\n\r\n\t\treturn getTags(null);\r\n\r\n\t}", "public Tags (String tags) {\n set (tags);\n }", "private Question setUpQuestion(List<Question> questionsList){\n int indexOfQuestion = random.nextInt(questionsList.size());\n questionToBeHandled = questionsList.get(indexOfQuestion);\n questionsList.remove(indexOfQuestion);\n return questionToBeHandled;\n }", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "@Override\n\t@Transactional(readOnly=true)\n\tpublic List<QuestionMultiChoice> findByTags_Id(Long id) {\n\t\tList<QuestionMultiChoice> list = qcmRepository.findByTags_Id(id);\n\t\treturn list;\n\t}", "private List<String> searchForErrors(String title, String body, String[] tags)\n {\n List<String> result = new ArrayList<String>();\n if (title.isEmpty()) result.add(Error.quesTitleEmpty);\n if (title.length() > 96)\n result.add(Error.quesTitleTooLong);\n else\n {\n if (Tools.stringOnlyWhitespace(title))\n result.add(Error.quesTitleOnlyWhitespaces);\n }\n if (body.length() > 65536)\n result.add(Error.quesBodyTooLong);\n if (tags.length > 1024)\n result.add(Error.quesTooManyTags);\n else\n {\n for (String tag : tags)\n {\n if (tag.length() > 12)\n result.add(Error.quesTagTooLong(tag.substring(0, 12)));\n else\n {\n String accepted = Tools.lowerCaseLetters + Tools.numbers + \"_\";\n if (!Tools.stringHasOnlyDeterminedCharacters(tag, accepted))\n result.add(Error.quesTagHasInvalidCharacter(tag, Tools.getInvalidChar(tag, accepted)));\n }\n }\n }\n return result;\n }", "@Override\n\tpublic List<String> getQuestionSpecificsAsList() {\n\t\treturn null;\n\t}", "List<String> getTags() {\n return tags;\n }", "java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Tag> \n getTagList();", "public List<TextQuestion> TextQuestions(int aid);", "public AndroidModel tags(List<String> tags) {\n this.tags = tags;\n return this;\n }", "@Override\r\n\tpublic List<QuestionData> getQuestions(String tags) {\n\t\tlog.info(\"getLoads service with params started\");\r\n\t\tSort s=Sort.by( Sort.Direction.DESC, \"timestamp\");\r\n\r\n\t\tList<QuestionData> list = null;\r\n\r\n\t\tif(tags!=null) {\r\n\t\t\tlist=questionDao.findByTags(tags);\r\n\t\t\treturn list;\r\n\t\t}\r\n\t\t//Pageable currentPage = PageRequest.of( Sort.Direction.DESC, \"timestamp\");\r\n\t\t\r\n\r\n\t\ttry {\r\n\r\n\t\t\tlist = questionDao.findAll(s);\r\n\t\t\tlog.info(\"User Data get all returned\");\r\n\t\t\treturn list;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tlog.error(\"User Data get all not returned -----\" + String.valueOf(ex));\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\r\n\t}", "public void setQuestions() {\n\t\tString question1 = str1 + _QwdQuestionFst;\n\t\tSpannableString sb1 = new SpannableString(question1);\n\t\tsb1.setSpan(new ForegroundColorSpan(Color.BLACK), str1.length() ,\n\t\t\t\tsb1.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);\n\t\t_FPTV_Question_1.setText(sb1);\n\n\t\tString question2 = str2 + _QwdQuestionSec;\n\t\tSpannableString sb2 = new SpannableString(question2);\n\t\tsb2.setSpan(new ForegroundColorSpan(Color.BLACK), str2.length() ,\n\t\t\t\tsb2.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);\n\t\t_FPTV_Question_2.setText(sb2);\n\t}", "public Set<String> getTags()\n {\n return tags;\n }", "public List<TodoTag> getAllTodosTags() {\n List<TodoTag> todoTags = new ArrayList<TodoTag>();\n String vyber = \"SELECT * FROM \" + TABLE_TODO_TAG;\n \n Log.e(LOG, vyber);\n \n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(vyber, null);\n \n if (c.moveToFirst()) {\n do {\n \tTodoTag t = new TodoTag();\n t.setId(c.getInt((c.getColumnIndex(KEY_ID))));\n t.setTodo_id(c.getInt(c.getColumnIndex(KEY_TODO_ID)));\n t.setTag_id(c.getInt(c.getColumnIndex(KEY_TAG_ID)));\n todoTags.add(t);\n } while (c.moveToNext());\n }\n return todoTags;\n }", "public void checkForTag(int i) {\n if (wordsOfInput[i].indexOf('#') == 0) {\n if ((!containsStartDate || !containsStartTime) && index > i) {\n index = i;\n tpsIndex = i;\n }\n String tag = wordsOfInput[i].substring(1);\n tags.add(tag);\n }\n }", "public void setListeQuestions(ArrayList<Question> listeQuestions) {\n\t\tListeQuestions = listeQuestions;\n\t}", "private void loadQuestions() throws IOException, FileNotFoundException {\n \t\tquestions = new ArrayList<>();\n \n \t\tBufferedReader br = new BufferedReader(new FileReader(\"QuestionBank.txt\"));\n \n \t\tString question;\n \t\tString[] choices = new String[4];\n \t\tint correctIndex = 0;\n \n \t\tquestion = br.readLine();\n \t\twhile (question != null) {\n \t\t\tfor (byte i = 0; i < 4; ++i) {\n \t\t\t\tchoices[i] = br.readLine();\n \t\t\t\t// -- marks the right answer\n \t\t\t\tif (choices[i].indexOf(\"--\") != -1) {\n \t\t\t\t\tcorrectIndex = i;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tquestions.add(new Question(question, choices, correctIndex));\n \t\t\tquestion = br.readLine();\n \t\t}\n \t\tbr.close();\n \t}" ]
[ "0.6495538", "0.6424361", "0.6075527", "0.6044052", "0.58758104", "0.5857557", "0.583225", "0.581891", "0.5770864", "0.5770833", "0.57678217", "0.5651143", "0.56441164", "0.56214684", "0.5621341", "0.5576274", "0.5557193", "0.5557193", "0.5540575", "0.5468091", "0.5424398", "0.5410123", "0.54041535", "0.5391491", "0.5366291", "0.5359578", "0.53280944", "0.53228325", "0.5304315", "0.5299359", "0.52882093", "0.5274188", "0.5255768", "0.5240078", "0.52309114", "0.52136534", "0.51886755", "0.518786", "0.5180317", "0.5175895", "0.5161119", "0.5158681", "0.51536644", "0.5152726", "0.5142363", "0.5140127", "0.5140107", "0.5125065", "0.51205546", "0.51192975", "0.51192975", "0.51065314", "0.5088457", "0.5079486", "0.5073372", "0.5060535", "0.5054985", "0.5054788", "0.50325215", "0.5024281", "0.5023371", "0.50158525", "0.50121015", "0.50106174", "0.5003141", "0.5002217", "0.5000132", "0.4999593", "0.49981344", "0.49906123", "0.49906123", "0.49879485", "0.49870825", "0.49865663", "0.49829957", "0.49746746", "0.49669942", "0.49623057", "0.49572524", "0.49572524", "0.49572524", "0.49572524", "0.49572524", "0.49572524", "0.49572524", "0.49572524", "0.49559805", "0.4955966", "0.49524805", "0.49459967", "0.49455568", "0.49397713", "0.4938059", "0.49220178", "0.49209058", "0.4916499", "0.49161872", "0.49130535", "0.49025443", "0.490212" ]
0.5546648
18
when the mouse is dragged
public void mouseDragged( MouseEvent e ){ int xValue, yValue;// comments similar to mousePressed method Coordinate currentMousePosition; xValue = e.getX(); yValue = e.getY(); currentMousePosition = new Coordinate(xValue, yValue); mousePositionOnBoard(currentMousePosition); repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseDragged(MouseEvent e){}", "public void mouseDragged (MouseEvent e) {}", "public void mouseDragged(MouseEvent e) {}", "@Override\n public void mouseDragged(MouseEvent arg0) {\n \n }", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n }", "public void mouseDragged(MouseEvent e) {\n }", "@Override\n\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t\n\t\t}", "public void mouseDragged( MouseEvent event ){}", "@Override\r\n public void mouseDragged(MouseEvent e) {\n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "void mouseDragged(double x, double y, MouseEvent e );", "public void mouseDragged(MouseEvent e) {\n\n }", "public void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t\t\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "public void mouseDragged(MouseEvent event) { }", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\n \tpublic void mouseDragged(MouseEvent e) {\n \t}", "public void mouseDragged(MouseEvent e)\n {}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "public void mouseDragged(MouseEvent e) {\n\t}", "@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t}", "public void mouseDragged( MouseEvent e ) {\n }", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "void onDragged();", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0)\n\t{\n\t\t\n\t}", "boolean onMouseDragged(double mouseX, double mouseY, double prevMouseX, double prevMouseY);", "@Override\n public void mouseDragged(java.awt.event.MouseEvent e) {\n }", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\n\t\t}", "public void mouseDragged(MouseEvent me) {\n\n\t\t\t}", "public void mouseDragged(MouseEvent e) {\n\t \t\t\n\t \t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tl1.setText(\"You dragged the mouse\");\r\n\t}", "@Override\n public void drag(int x, int y)\n {\n }", "public void mouseMoved(MouseEvent e){}", "public void mouseDragged(MouseEvent mouseDrag)\r\n\t{\r\n\t\tmouseDraggedX = mouseDrag.getX();\r\n\t\tmouseDraggedY = mouseDrag.getY();\r\n\t\tmouseDraggedFlag = true;\r\n\t\t//System.out.println(\"mouseDraggedX: \" + mouseDraggedX);\r\n\t\t//System.out.println(\"mouseDraggedY: \" + mouseDraggedY);\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void mouseMoved(MouseEvent e) {\n\n }", "public void mouseMoved(MouseEvent e) {\n ptDragStart = e.getPoint();\r\n\r\n }", "protected abstract boolean dragged();", "@Override\r\n\tpublic void mouseDragged(MouseEvent me) {\r\n\t\tdrag(me.getX(), me.getY());\r\n\t}", "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved(MouseEvent e) {}", "public abstract void mouseDragged(MouseDraggedEvent mp);", "@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseMoved(MouseEvent e) {}", "@Override\n public void mouseMoved(MouseEvent arg0) {\n \n }", "public void mouseMoved(MouseEvent event) {\n }", "public void mouseMoved(MouseEvent evt) { }", "@Override \n\tpublic void mouseMoved(MouseEvent e){\n\t}", "@Override\n public void mouseMoved(MouseEvent e) {\n }", "@Override\n\tpublic void mouseDragged(int arg0, int arg1, int arg2, int arg3) {\n\n\t}", "@Override\r\n public void mouseMoved(MouseEvent e) {\n }", "@Override\n public void mouseMoved(MouseEvent e) {}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\r\n\t\t\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\n\t}", "public void mouseDragged(MouseEvent event)\n\t\t{}", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\n\r\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tco.mouseDragged(e);\n\t}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void mouseDrop()\n {\n }", "public boolean onDragStarted();", "@Override\r\n public void mouseMoved(MouseEvent e) {\r\n\r\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t\tmouseClicked(e);\n\t\t\n\t}", "@Override\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n public void mouseMoved(MouseEvent e){\n \n }", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}" ]
[ "0.85525215", "0.85316926", "0.84909916", "0.8364913", "0.83335316", "0.83335316", "0.83335316", "0.8322351", "0.83208096", "0.83141875", "0.8297913", "0.828961", "0.82835186", "0.82835186", "0.8273485", "0.82516426", "0.82436067", "0.82348144", "0.8230377", "0.8230377", "0.8228215", "0.8228215", "0.8228206", "0.8226071", "0.8226071", "0.82210565", "0.8219364", "0.8216545", "0.82068306", "0.82068306", "0.82068306", "0.82068306", "0.82068306", "0.82016444", "0.82015145", "0.8194199", "0.81896305", "0.81764776", "0.817522", "0.817522", "0.817522", "0.817522", "0.817522", "0.817522", "0.817522", "0.81604576", "0.81571555", "0.81550014", "0.81550014", "0.8135134", "0.8109127", "0.80971783", "0.80757195", "0.8061278", "0.8041557", "0.7931045", "0.7906606", "0.78585505", "0.78486633", "0.78438115", "0.7823009", "0.7818927", "0.78036046", "0.7800002", "0.7800002", "0.779819", "0.77850324", "0.77850324", "0.7777785", "0.7774197", "0.7764453", "0.77590585", "0.77579427", "0.7755992", "0.7747903", "0.7747716", "0.7745652", "0.77411747", "0.77401453", "0.77401453", "0.7736468", "0.773484", "0.77294594", "0.77283084", "0.77272", "0.7723412", "0.77178127", "0.7711151", "0.7710235", "0.7710235", "0.7710235", "0.770873", "0.7696208", "0.7696208", "0.7696208", "0.7696208", "0.7696208", "0.7696208", "0.7696208", "0.7696208", "0.7696208" ]
0.0
-1
List of ServerThread objects
public synchronized List<ServerThread> getConnectionArray() { return connectionArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<? extends AbstractSctlThreadEntry> getThreads();", "protected final List<NulsThread> getThreadList(){\n return ModuleManager.getInstance().getThreadsByModule(this.moduleName);\n }", "public Collection getThreads();", "public void listThreads() {\n\t\tthis.toSlave.println(MasterProcessInterface.LIST_THREADS_COMMAND);\n\t}", "public List<ClientThread> getClients(){\n return clients;\n }", "private IThreadInfo[] getThreadList() {\n List<IThreadInfo> list = new ArrayList<IThreadInfo>((_objectProcessor != null ? _objectProcessor : _processor).getThreads().values());\n Collections.sort(list, new Comparator<IThreadInfo>() {\n\n public int compare(IThreadInfo o1, IThreadInfo o2) {\n return (int) (o1.getThreadID() - o2.getThreadID());\n }\n });\n return list.toArray(new IThreadInfo[0]);\n }", "@SuppressWarnings(\"unchecked\")\n public synchronized ObjectSet<BoardThreadLink> getThreads() {\n \tfinal Query q = mDB.query();\n \tq.constrain(BoardThreadLink.class);\n \tq.descend(\"mBoard\").constrain(SubscribedBoard.this).identity(); // TODO: Benchmark whether switching the order of those two constrains makes it faster.\n \tq.descend(\"mLastReplyDate\").orderDescending();\n \treturn new Persistent.InitializingObjectSet<BoardThreadLink>(mFreetalk, q.execute());\n }", "public List<Server> getServerList() {\n return serverList;\n }", "public List<Server> getServerList() {\n return new ArrayList<Server>(serversList);\n }", "public EchoServerMultiThreaded(){\n\t\tclients = new LinkedList<>();\n\t\thistory = new ArrayList<>();\n\n\t\t//History Log\n\t\tBufferedReader logIn = null;\n\t\tFile historyLog = new File(\"Code-Socket/lib/historyLog.txt\");\n\t\ttry {\n\t\t\tif(historyLog.createNewFile()){\n\t\t\t\tSystem.out.println(\"History log file not found, creation...\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"History log file found, loading...\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"An error occured with the history log file\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry{\n\t\t\tlogIn = new BufferedReader(new FileReader(historyLog));\n\t\t\tString line = logIn.readLine();\n\t\t\tlockHistory.writeLock().lock();\n\t\t\twhile(line!=null){\n\t\t\t\thistory.add(line);\n\t\t\t\tline=logIn.readLine();\n\t\t\t}\n\t\t\tlockHistory.writeLock().unlock();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"An error occured with the history log reader\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tlogIn.close();\n\t\t\t\tlogOut = new BufferedWriter(new FileWriter(historyLog,true));\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static Server [] getServers(){\r\n Enumeration serversEnum = servers.elements();\r\n Server [] arr = new Server[servers.size()];\r\n for (int i = 0; i < arr.length; i++)\r\n arr[i] = (Server)serversEnum.nextElement();\r\n\r\n return arr;\r\n }", "List<Server> servers() {\n return servers;\n }", "public List<ServerWorker> getWorkerList()\n {\n return workerList;\n }", "public long getThreads() { return threads; }", "List<HttpServletServer> getHttpServers();", "public List<ServerHardware> getServers();", "public void listThreadGroups() {\n\t\tthis.toSlave.println(MasterProcessInterface.LIST_THREAD_GROUPS_COMMAND);\n\t}", "private void refreshServerList() {\n\t\tcurrentRequestId++;\n\t\tserverNames.clear();\n\t\tserverTable.clear();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\taddresses = client.discoverHosts(WifiHelper.UDP_PORT, 1000);\n\t\t\t\tint removed = 0;\n\t\t\t\tfor(int i = 0; i + removed < addresses.size(); i++) {\n\t\t\t\t\tsynchronized(client) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tclient.connect(1000, addresses.get(i - removed), WifiHelper.TCP_PORT, WifiHelper.UDP_PORT);\n\t\t\t\t\t\t\tclient.sendTCP(new NameRequest(currentRequestId, addresses.size()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tclient.wait(5000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\taddresses.remove(i);\n\t\t\t\t\t\t\tremoved++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\t}", "public ArrayList<Server> getServers(){\n return this.serversList;\n }", "List<Long> getServers();", "public List<Server> getAllServers(){\n\t\tlogger.info(\"Getting the all server details\");\n\t\treturn new ArrayList<Server>(servers.values());\n\t}", "@Override\n public Object visitThreadDeclaratorList(LitmusX86Parser.ThreadDeclaratorListContext ctx) {\n for(LitmusX86Parser.ThreadContext threadCtx : ctx.thread()){\n String thread = threadId(threadCtx.ThreadIdentifier().getText());\n mapThreadEvents.put(thread, new ArrayList<Thread>());\n mapRegisters.put(thread, new HashMap<String, Register>());\n mapRegistersLocations.put(thread, new HashMap<String, Location>());\n threadCount++;\n }\n return null;\n }", "private static Set<Thread> threadsSnapshot() {\n final Thread current = Thread.currentThread();\n final ThreadGroup tg = current.getThreadGroup();\n \n Thread [] list;\n do {\n list = new Thread [tg.activeCount() + /* padding to detect overflow */ 5];\n tg.enumerate(list);\n } while (list[list.length - 1] != null);\n \n final HashSet<Thread> result = new HashSet<Thread>();\n for (Thread t : list) {\n if (t != null && t != current) \n result.add(t);\n }\n \n return result;\n }", "public synchronized int getThreads()\n/* */ {\n/* 181 */ return this.threads;\n/* */ }", "public synchronized void add(ServerThread st){\r\n connectionArray.removeAll(Collections.singleton(null));\r\n connectionArray.add(st);\r\n }", "public ServerPlayers() {\n sockets = new ArrayList<Socket>();\n }", "public NetworkInstance[] getServers();", "private void startThreads() {\n Listener listener = new Listener();\n Thread listenerThread = new Thread(listener);\n\n listenerThread.start();\n }", "public ServerList getServers() {\r\n return this.servers;\r\n }", "private void getLIWCToneThreadList(final List<PageExtract> pl) {\n\t\tfinal Gson g = new Gson();\n\t\ttry {\n\t\t\tfinal DbConnector db = new DbConnector();\n\n\t\t\tnew Thread() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tfor (PageExtract p : pl) {\n\t\t\t\t\t\tString content = p.getContent();\n\t\t\t\t\t\tif (!content.equals(\"\")) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tReceptivitiAnalysis a = ReceptivitiUtil.getInstance()\n\t\t\t\t\t\t\t\t\t\t.analyseContent(new Content(content));\n\t\t\t\t\t\t\t\tdb.executeUpdate(SqlConstants.PAGE_LIWC_TONE_UPDATE,\n\t\t\t\t\t\t\t\t\t\tArrays.asList(g.toJson(a), String.valueOf(p.getPageId())));\n\t\t\t\t\t\t\t} catch (UnirestException | JSONException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}.start();\n\t\t} catch (ClassNotFoundException | SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public List<Monitor> retrieveMonitorsForServer(ServerDetail serverDetail) {\n List<Monitor> monitors = new ArrayList<Monitor>();\n ArrayList<Class> monitorClasses = (ArrayList<Class>) availableMonitors.getMonitorList();\n try{\n for (Class klass: monitorClasses){\n Monitor obj = (Monitor) klass.newInstance();\n // Set default variables for Monitors\n obj.serverDetail = serverDetail;\n obj.realtimeThoth = realTimeThoth;\n obj.shrankThoth = historicalDataThoth;\n obj.mailer = mailer;\n monitors.add(obj);\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n return monitors;\n }", "public void addThread(ServerBase pServerBase)\n {\n mThreadList.add(pServerBase);\n }", "public void setup_servers()\n {\n // get ServerInfo\n ServerInfo t = new ServerInfo();\n // all 3 servers\n for(int i=0;i<3;i++)\n {\n // get the server IP and port info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n public void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl true and rx_hdl false as this is the socket initiator\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,true,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n }\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Server\"+i);\n x.start(); \t\t\t// start the thread\n }\n }", "public void joinAll() {\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif (this.get(i).getClient() != null) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.get(i).join();\n\t\t\t\t\tSystem.out.println(\"Thread \" + i + \" wurde beendet!\");\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tthis.get(i).interrupt();\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static List<SkungeeServer> getServers() {\n\t\treturn ServerManager.getServers();\n\t}", "public Server(){\n this.tasks = new LinkedBlockingQueue<Task>();\n this.waitingPeriod = new AtomicInteger();\n }", "@Override\n public ArrayList<RunnerThread> getRunners() {\n \tArrayList<RunnerThread> runners = new ArrayList<RunnerThread>();\n \ttry {\n \t\tString line = data.readLine();\n \t\twhile(line != null) {\n \t\t\tRunnerThread runner = getData(line);\n \t\t\trunners.add(runner); \n \t\t\tline = data.readLine();\n \t\t}\n \t}\n \tcatch (IOException e) {\n \t\tSystem.out.println(\"The following error occured while reading the file.\");\n \t\te.printStackTrace();\n \t\tSystem.exit(3);\n \t}\n\t\treturn runners;\n \t}", "private void addThread(SSLSocket socket)\n {\n if(pop < clist.length)\n {\n for(ServerThread srv : clist)\n {\n if(srv == null)\n {\n //make a new thread to run data through to new client\n srv = new ServerThread(this, socket);\n \n try\n {\n //start up the thread\n srv.open();\n start();\n \n //set everything up here (increment pop count, keep track of thread)\n clist[pop] = srv;\n pop++;\n break;\n }\n catch(IOException e)\n {\n System.out.println(\"Cannot open new thread\");\n }\n \n \n }\n \n }\n System.out.println(\"New Connection: \" + socket);\n\n }\n else\n {\n System.out.println(\"Sorry, server full at \" + pop);\n }\n }", "public List<Map.Entry<String, L>> entries() {\n rwLock.readLock().lock();\n try {\n return new ArrayList<Map.Entry<String, L>>(serversToLoad.entrySet());\n } finally {\n rwLock.readLock().unlock();\n }\n }", "private List<Server> getRemoteServers() {\n if (!isDas())\n throw new RuntimeException(\"Internal Error\"); // todo?\n\n List<Server> notdas = new ArrayList<Server>(targets.size());\n String dasName = serverEnv.getInstanceName();\n\n for (Server server : targets) {\n if (!dasName.equals(server.getName()))\n notdas.add(server);\n }\n\n return notdas;\n }", "public static void spawnThreads(String type) {\n\t\tThread[] threads = new Thread[threadCount];\n\n\t\tfor (int i = 0; i < threadCount; i++) {\n\t\t\tthreads[i] = new Thread(new TestCoarseList(i, type));\n\t\t\tthreads[i].start();\n\t\t}\n\n\t\tfor (Thread t : threads) {\n\t\t\ttry {\n\t\t\t\tt.join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "long[] getAllServerSocketIds();", "private ExecutorService getDroneThreads() {\n\t\treturn droneThreads;\n\t}", "public Server()\n {\n clientSessions = new ArrayList();\n }", "public Thread[] getReaders(String monitoredNickname, ClientGUI clientGUI, Client client) {\n\t\tRunnable rMessages = new ThreadPrivateConnection(scMessages, monitoredNickname, clientGUI,\n\t\t\t\tclient, true);\n\t\tRunnable rFiles = new ThreadPrivateConnection(scFiles, monitoredNickname, clientGUI, client,\n\t\t\t\tfalse);\n\t\tThread[] readers = { new Thread(rMessages), new Thread(rFiles) };\n\t\treturn readers;\n\t}", "public static void main(String[] args) {\r\n Restoran resto = new Restoran();\r\n int i = 0;\r\n for ( i = 0; i < 6; i++) {\r\n new Thread(new Cliente(resto,\"Cliente \" + i), \"Cliente \" + i).start();\r\n }\r\n new Thread(new Mozo(resto)).start();\r\n new Thread(new Cocinero(resto)).start();\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n listClients = new javax.swing.JList();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n txtAreaOutput = new javax.swing.JTextArea();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n btnInitServer = new javax.swing.JButton();\n lblStatus = new javax.swing.JLabel();\n btnStopServer = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Servidor com MultiThreads\");\n\n jScrollPane1.setViewportView(listClients);\n\n jLabel1.setText(\"Clientes\");\n\n txtAreaOutput.setEditable(false);\n txtAreaOutput.setColumns(20);\n txtAreaOutput.setRows(5);\n jScrollPane2.setViewportView(txtAreaOutput);\n\n jLabel2.setText(\"Mensagens de log\");\n\n jLabel3.setText(\"Status:\");\n\n btnInitServer.setText(\"Iniciar servidor\");\n btnInitServer.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnInitServerActionPerformed(evt);\n }\n });\n\n lblStatus.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n lblStatus.setForeground(new java.awt.Color(255, 0, 51));\n lblStatus.setText(\"Servidor não inicializado\");\n\n btnStopServer.setText(\"Parar servidor\");\n btnStopServer.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnStopServerActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane2)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnInitServer)\n .addGap(18, 18, 18)\n .addComponent(btnStopServer))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(lblStatus)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 191, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(22, 22, 22))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnInitServer)\n .addComponent(btnStopServer))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(lblStatus))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2)))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n setBounds((screenSize.width-692)/2, (screenSize.height-377)/2, 692, 377);\n }", "public void runServer() {\n\t\tint i = 0;\n\n\t\tclientList = new ArrayList<>();\n\t\ttry {\n\t\t\tServerSocket listener = new ServerSocket(port);\n\n\t\t\tSocket server;\n\n\t\t\tprintDetails();\n\n\t\t\twhile ((i++ < maxConnections) || (maxConnections == 0)) {\n\n\t\t\t\tserver = listener.accept();\n\t\t\t\tSession session = new Session(server, this.storageLocation );\n\n\t\t\t\tnew Thread(session).start();\n\n\t\t\t\tString name = session.getName();\n\t\t\t\tSystem.out.printf(\"%s STARTED\\r\\n\", name );\n\t\t\t\tclientList.add( session );\n\t\t\t\tdoGC();\n\n\t\t\t}\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"IOException on socket listen: \" + ioe);\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}", "public void startThreads() {\n\n //Start a new sender thread\n new Thread(new ClientSenderThread(sequenceNumber, eventQueue, socketsForBroadcast, incomingQueue, curTimeStamp, waitToResendQueue)).start();\n //Start a new listener thread\n //new Thread(new ClientListenerThread(socketsForBroadcast, clientTable,receivedQueue,displayQueue, incomingQueue,actionHoldingCount)).start();\n new ConfirmationBroadcast(sequenceNumber, confirmationQueue, socketsForBroadcast, waitToResendQueue, (BlockingQueue) incomingQueue).start();\n new ResendThread(150, timeout, waitToResendQueue, socketsForBroadcast).start();\n\n new IncomingMessageHandleThread(incomingQueue, receivedQueue, waitToResendQueue, confirmationQueue,\n actionHoldingCount, socketsForBroadcast, curTimeStamp, avoidRepeatenceHelper, numberOfPlayers, playerName, sequenceNumber, this).start();\n new ReceivedThread(receivedQueue, displayQueue, waitToResendQueue, incomingQueue, curTimeStamp, socketsForBroadcast,\n localPlayers, actionHoldingCount, playerName, sequenceNumber, numberOfPlayers).start();\n new DisplayThread(displayQueue, clientTable).start();\n new BulletSender(eventQueue).start();\n\n\n }", "private void getIBMToneThreadList(final List<PageExtract> pl) {\n\t\ttry {\n\t\t\tfinal DbConnector db = new DbConnector();\n\n\t\t\tnew Thread() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tfor (PageExtract p : pl) {\n\t\t\t\t\t\tString content = p.getContent();\n\t\t\t\t\t\tif (!content.equals(\"\")) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tToneAnalysis a = ToneAnalyzerUtil.getInstance().getTone(content);\n\n\t\t\t\t\t\t\t\tdb.executeUpdate(SqlConstants.PAGE_IBM_TONE_UPDATE,\n\t\t\t\t\t\t\t\t\t\tArrays.asList(a.toString(), String.valueOf(p.getPageId())));\n\t\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}.start();\n\t\t} catch (ClassNotFoundException | SQLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public List<ServerServices> listServerServices();", "public TCPSocketServer(){\n this.port=DEFAULT_SERVER_PORT;\n socketList = Collections.synchronizedList(new ArrayList<>());// Maintain a list of socket list. This uses synchronized list since\n // the terminate does not\n this.logWriter = new LogWriter(fileWriterQueue);\n log.info(\"Starting log writer..\");\n logWriter.start();\n this.periodicReportingService = new PeriodicReportingService();\n this.periodicReportingService.start();\n this.orderShutdown = new AtomicBoolean(false);\n Thread shutdownThread = new Thread(new ShutdownTask());\n log.info(\"Starting shutdown threads..\");\n shutdownThread.start();\n\n }", "public static void main(String... args) throws InterruptedException {\n\n\t\tint counter = 0;\n\n\t\tArrayList<MyThread> myThread = new ArrayList<MyThread>();\n\n\t\twhile (counter < 10) {\n\t\t\tmyThread.add(new MyThread());\n\t\t\tcounter++;\n\t\t}\n\n\t\tIterator<MyThread> iterator = myThread.iterator();\n\n\t\twhile (iterator.hasNext()) {\n\t\t\tMyThread myThread2 = (MyThread) iterator.next();\n\t\t\tmyThread2.start();\n\n\t\t}\n\n\t}", "public int getWorkerThreads() {\n return workerThreads;\n }", "public Server(){\r\n \r\n this.m_Clients = new TeilnehmerListe();\r\n this.m_Port = 7575;\r\n }", "public static void main(String args[]) {\n int portNumber = 2228;\r\n if (args.length < 1) {\r\n System.out.println(\"Usage: java MultiThreadChatServerSync <portNumber>\\n\"\r\n + \"Now using port number=\" + portNumber);\r\n } else {\r\n portNumber = Integer.valueOf(args[0]);\r\n }\r\n\r\n try {\r\n serverSocket = new ServerSocket(portNumber);\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n\r\n /*\r\n * Create a client socket for each connection and pass it to a new client\r\n * thread.\r\n */\r\n while (true) {\r\n try {\r\n clientSocket = serverSocket.accept();\r\n int i = 0;\r\n for (i = 0; i < maxClientsCount; i++) {\r\n if (threads[i] == null) {\r\n (threads[i] = new clientThread(clientSocket, threads, history, userList)).start();\r\n break;\r\n }\r\n }\r\n if (i == maxClientsCount) {\r\n PrintStream os = new PrintStream(clientSocket.getOutputStream());\r\n os.println(\"Server too busy. Try later.\");\r\n os.close();\r\n clientSocket.close();\r\n }\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n }\r\n }", "public IMThread(String threadName, Integer urlid, ArrayList<String> keys){\n this.name = threadName;\n this.selectedUrlId = urlid;\n this.keyArrayList = keys;\n /*t = new Thread(this,name);\n t.start();*/\n}", "public static void main(String[] args) {\n\t\tConcurrentLinkedList<Integer> l = new ConcurrentLinkedList<Integer>();\n\t\tRunnable r = new AddToList(l);\n\t\tfor(int i=0;i<20;i++) {\n\t\t\tThread t = new Thread(r);\n\t\t\tt.start();\n\t\t\ttry {\n\t\t\t\tt.join(2000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(l.size());\n\t}", "private Task[][] getTasks() {\n\t\tList<Server> servers = this.scheduler.getServers();\n\t\tTask[][] tasks = new Task[servers.size()][];\n\t\tfor (int i = 0; i < servers.size(); i++) {\n\t\t\ttasks[i] = servers.get(i).getTasks();\n\t\t}\n\t\treturn tasks;\n\t}", "private void filterJreDaemonThreads(Set<Thread> now) {\n Iterator<Thread> i = now.iterator();\n while (i.hasNext()) {\n if (isJreDaemonThread(i.next()))\n i.remove();\n }\n }", "public static void getThreadInfo(){\r\n ThreadMeasurement currentThreadState = new ThreadMeasurement();\r\n threadList.add(currentThreadState);\r\n //ThreadMeasurement.printThreadState(currentThreadState);\r\n }", "private void makeThreads(String registerName, String instanceID) {\n\t\tServerSender serverSender = new ServerSender(clientTable.getQueue(registerName, instanceID), toClient);\r\n\t\tServerReceiver serverReceiver = new ServerReceiver(registerName, instanceID, fromClient, clientTable, serverSender);\r\n\t\t\r\n\t\t//starts the threads\r\n\t\tserverSender.start();\r\n\t\tserverReceiver.start();\r\n\t\t\r\n\t\t//waits for the threads to end\r\n\t\ttry {\r\n\t\t\tserverSender.join();\r\n\t\t\tserverReceiver.join();\r\n\t\t}\r\n\t\tcatch(InterruptedException e) {\r\n\t\t\tReport.errorAndGiveUp(\"Fatal error: unexpected interruption has occurred\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n try {\r\n ServerSocket server=new ServerSocket(port);\r\n System.out.println(\"Waiting for a client...\");\r\n\r\n connections=new ArrayList<>();\r\n ExecutorService es = Executors.newFixedThreadPool(max_clients);\r\n\r\n Connection tmp;\r\n while(true) {\r\n\r\n\r\n Socket socket = server.accept();\r\n if(max_clients<=clients){\r\n OutputStream out = socket.getOutputStream();\r\n BufferedWriter rout= new BufferedWriter(new OutputStreamWriter(out));\r\n rout.write(\"Chat is full(\"+max_clients+\" users). You can't join. Try again later.\");\r\n rout.write(\"\\n\");\r\n rout.flush();\r\n socket.close();\r\n out.close();\r\n continue;\r\n }\r\n\r\n tmp=new Connection(socket);\r\n es.submit(tmp);\r\n clients++;\r\n System.out.println(\"New user has joined. Number of users - \"+clients);\r\n connections.add(tmp);\r\n }\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public ArrayList<ServerSocket> getConnectedClients() {\n return connectedClients;\n }", "private Thread[] newThreadArray() { \r\n\t int n_cpus = Runtime.getRuntime().availableProcessors(); \r\n\t return new Thread[n_cpus]; \r\n\t }", "public List<GetThreadsResponse.Thread> getThreadsDataByRequest(GetThreadsRequest request) {\n Map<Integer, GetThreadsResponse.Thread.Builder> threads = new TreeMap<>();\n try {\n long sessionId = request.getSession().getSessionId();\n\n List<Integer> threadIds = new ArrayList<>();\n if (!mySessionThreadIdsCache.containsKey(sessionId)) {\n Set<Integer> tidSet = getThreadIdCacheForSession(sessionId);\n\n ResultSet threadResults = executeQuery(CpuStatements.QUERY_ALL_DISTINCT_THREADS, sessionId);\n while (threadResults.next()) {\n // Don't add directly to tidSet, since it's synchronized and would be slow to add each element individually.\n threadIds.add(threadResults.getInt(1));\n }\n tidSet.addAll(threadIds);\n }\n else {\n // Add all ids to a list so we release the implicit lock in threadIds ASAP.\n //noinspection UseBulkOperation\n mySessionThreadIdsCache.get(sessionId).forEach(tid -> threadIds.add(tid));\n }\n\n long startTimestamp = request.getStartTimestamp();\n long endTimestamp = request.getEndTimestamp();\n for (int tid : threadIds) {\n ResultSet activities = executeQuery(\n CpuStatements.QUERY_THREAD_ACTIVITIES,\n // Used as the timestamp of the states that happened before the request\n startTimestamp,\n // Used to get the last activity just prior to the request range\n sessionId, tid, startTimestamp,\n // Used for the JOIN\n sessionId, tid,\n // The start and end timestamps below are used to get the activities that\n // happened in the interval (start, end]\n sessionId, tid, startTimestamp, endTimestamp);\n\n CpuProfiler.GetThreadsResponse.Thread.Builder builder = null;\n while (activities.next()) {\n if (builder == null) {\n // Please refer QUERY_THREAD_ACTIVITIES statement for the ResultSet's column to type/value mapping.\n builder = createThreadBuilder(tid, activities.getString(1));\n threads.put(tid, builder);\n }\n\n Cpu.CpuThreadData.State state = Cpu.CpuThreadData.State.valueOf(activities.getString(2));\n GetThreadsResponse.ThreadActivity.Builder activity =\n GetThreadsResponse.ThreadActivity.newBuilder().setNewState(state).setTimestamp(activities.getLong(3));\n builder.addActivities(activity.build());\n }\n }\n }\n catch (SQLException ex) {\n onError(ex);\n }\n\n // Add all threads that should be included in the response.\n List<GetThreadsResponse.Thread> cpuData = new ArrayList<>();\n for (GetThreadsResponse.Thread.Builder thread : threads.values()) {\n cpuData.add(thread.build());\n }\n return cpuData;\n }", "public List<List<IThreadInfo>> getCycles() {\n return (_objectProcessor != null ? _objectProcessor : _processor).getCycles();\n }", "public void startServers()\n {\n ExecutorService threads = Executors.newCachedThreadPool();\n threads.submit(new StartServer(host, port));\n threads.submit(new StartServer(host, port + 1));\n threads.shutdown();\n }", "public ServerNMS() {\n\t\tclients = new LinkedList<PrintWriter>();\n\t}", "public synchronized void setThreads(int threads)\n/* */ {\n/* 122 */ if (threads <= 0) {\n/* 123 */ return;\n/* */ }\n/* */ \n/* 126 */ this.threads = threads;\n/* */ \n/* */ \n/* 129 */ if (this.helpers == null) {\n/* 130 */ this.helpers = new NeighborhoodHelper[threads];\n/* 131 */ for (int i = 0; i < threads; i++)\n/* */ {\n/* 133 */ this.helpers[i] = new NeighborhoodHelper(null);\n/* 134 */ this.helpers[i].start();\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 140 */ if (this.helpers.length < threads)\n/* */ {\n/* */ \n/* 143 */ NeighborhoodHelper[] temp = new NeighborhoodHelper[threads];\n/* */ \n/* */ \n/* 146 */ for (int i = 0; i < threads; i++) {\n/* 147 */ temp[i] = (i < this.helpers.length ? this.helpers[i] : new NeighborhoodHelper(null));\n/* */ }\n/* */ \n/* 150 */ this.helpers = temp;\n/* */ \n/* */ \n/* */ \n/* */ }\n/* 155 */ else if (this.helpers.length > threads)\n/* */ {\n/* */ \n/* 158 */ NeighborhoodHelper[] temp = new NeighborhoodHelper[threads];\n/* */ \n/* */ \n/* 161 */ for (int i = 0; i < threads; i++) {\n/* 162 */ if (i < threads) {\n/* 163 */ temp[i] = this.helpers[i];\n/* */ } else {\n/* 165 */ this.helpers[i].dispose();\n/* */ }\n/* */ }\n/* 168 */ this.helpers = temp;\n/* */ }\n/* 170 */ notifyAll();\n/* */ }", "private static void test() {\n\t\tVector<Object> list = new Vector<Object>();\n\t\tint threadNum = 1000;\n\t\tCountDownLatch countDownLatch = new CountDownLatch(threadNum);\n\t\t\n\t\t//启动threadNum个子线程\n\t\tfor(int i=0;i<threadNum;i++){\n\t\t\tThread thread = new Thread(new MyThread(list,countDownLatch));\n\t\t\tthread.start();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\t//主线程等待所有子线程执行完成,再向下执行\n\t\t\tcountDownLatch.await();;\n\t\t}catch(InterruptedException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(list.size());\n\t}", "static void doThread() throws InterruptedException {\r\n\t\tthreadMessage(\"Starting MessageLoop thread\");\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\t// int nthreads=2;\r\n\t\tint nthreads = numnodes;\r\n\t\tThread[] tList;\r\n\r\n\t\ttList = new Thread[nthreads];\r\n\t\tString driver = null;\r\n\t\tString host = null;\r\n\t\tString user = null;\r\n\t\tString pass = null;\r\n\r\n\t\t// for (int i = 0; i < nthreads; i++) {\r\n\t\tfor (int i = 0; (i < nthreads) && (i < nodeAL.size()); i++) {\r\n\t\t\tdriver = (nodeAL.get(i)).getDriver();\r\n\t\t\thost = (nodeAL.get(i)).getHostName();\r\n\t\t\tuser = (nodeAL.get(i)).getUserName();\r\n\t\t\tpass = (nodeAL.get(i)).getPassword();\r\n\t\t\t// tList[i]= new Thread( new MessageLoop() );\r\n\t\t\t// System.out.println(\"HN is: \" + host + i);\r\n\t\t\ttList[i] = new Thread(new MessageLoop(driver, host, user, pass));\r\n\t\t\ttList[i].start();\r\n\t\t}\r\n\r\n\t\tthreadMessage(\"Waiting for all MessageLoop threads to finish\");\r\n\r\n\t\t// for (int i = 0; i < nthreads; i++) {\r\n\t\tfor (int i = 0; (i < nthreads) && (i < nodeAL.size()); i++) {\r\n\t\t\ttList[i].join();\r\n\t\t}\r\n\r\n\t\tthreadMessage(\"Finally all done!\");\r\n\r\n\t}", "private Set<Session> getOpenServerSessions(){\n ClientContainer jettySocketServer = getWebSocketsContainer();\n return jettySocketServer.getOpenSessions();\n }", "public void run() {\n\n // Start threadPool\n for (int i = 0; i < nbThreads; i++) {\n ThreadClient threadClient = new ThreadClient(listSocketDevice, String.valueOf(i), handler);\n arrayThreadClients.add(threadClient);\n threadClient.start();\n }\n\n while (true) {\n try {\n if (v) Log.d(TAG, \"Server is waiting on accept...\");\n ISocket isocket = acceptISocket();\n\n if (v) Log.d(TAG, isocket.getRemoteSocketAddress() + \" accepted\");\n listSocketDevice.addSocketClient(isocket);\n\n // Notify handler\n handler.obtainMessage(Service.CONNECTION_PERFORMED,\n isocket.getRemoteSocketAddress()).sendToTarget();\n\n } catch (SocketException e) {\n handler.obtainMessage(Service.LOG_EXCEPTION, e).sendToTarget();\n break;\n } catch (IOException e) {\n handler.obtainMessage(Service.LOG_EXCEPTION, e).sendToTarget();\n break;\n }\n }\n }", "public static void viewConnections(){\n\t\tfor(int i=0; i<Server.clients.size();i++){\n\t\t\tServerThread cliente = Server.clients.get(i);\n\t\t\tlogger.logdate(cliente.getConnection().getInetAddress().getHostName());\n\t\t}\n\t}", "public void threadManager() {\n /**Retrieve all data stored in \"preference\"*/\n if (mNodeThingUtils.getAllSavedThing() != null) {\n\n Map<String, String> getAllSensor = mNodeThingUtils.getAllSavedThing();\n Set<String> keys = getAllSensor.keySet();\n\n /**It checks to see if he has already been registered*/\n if (!threadControl.containsKey(String.valueOf(keys))) {\n for (Iterator i = keys.iterator(); i.hasNext(); ) {\n String key = (String) i.next();\n /**This control is used to separate the thread type from the sensor type*/\n if (!key.matches(Constant.Regexp.THREAD_CONTROL) && key.length() != 2) {\n\n /**Creates a new thread and registers it as \"nodename: thingname\"\n * of type \"map\" so that it is easy to check later*/\n threadControl.put(key, new ThreadUtils(mContext));\n }\n }\n } else {\n LogUtils.logger(TAG, \"There is a thread named as \" + keys);\n }\n }\n }", "TaskList getList();", "public ServerThread(MyServer server) {\n\t\tthis.server = server;\n\t}", "public AppTThreadedSelectorServer(Args args) {\r\n super(args);\r\n }", "public Object[] getNameServers() {\n\t\treturn _nameservers.toArray();\n\t}", "public static ServerList getCurrentList(Context context) {\n if (sCurrentList != null)\n return sCurrentList;\n\n try {\n sCurrentList = parseCachedList(context);\n }\n catch (IOException e) {\n try {\n sCurrentList = parseBuiltinList(context);\n }\n catch (IOException be) {\n Log.w(TAG, \"unable to load builtin server list\", be);\n }\n }\n\n return sCurrentList;\n }", "public static void main(String[] args) throws IOException {\n\t\tServerSocket ss= new ServerSocket(5000); \r\n\t\tSocket s = null; \r\n\t\twhile(true) {\r\n\t\t\ts = ss.accept();\r\n\t\t\t\r\n\t\t\tDataOutputStream out = new DataOutputStream(s.getOutputStream());\r\n\t\t\tDataInputStream in = new DataInputStream(s.getInputStream());\r\n\t\t\t\r\n\t\t\tserverHelper c = new serverHelper(s,\"client\"+clientCount,in,out);\r\n\t\t\t\r\n\t\t\tThread t = new Thread(c);\r\n\t\t\t//System.out.println(\"client\"+clientCount+\"is online\");\r\n\t\t\tclients.add(c);\r\n\t\t\tt.start();\r\n\t\t\tclientCount++;\r\n\t\t}\r\n\t}", "@Override\n\tpublic String[] GetFileServers() {\n\t\tString fservers[]=new String[list.size()];\n\t\tint i=0;\n\t\tfor(String s:list){\n\t\t\tfservers[i++]=s;\n\t\t}\n\t\treturn fservers;\n\t}", "private void startServer(){\n clients = new ArrayList<ClientThread>();\n ServerSocket ClientSocket = null;\n try {\n ClientSocket = new ServerSocket(ClientPort);\n ClientSocketConnection(ClientSocket);\n } catch (IOException e){\n e.printStackTrace();\n System.exit(1);\n }\n }", "public List<Pair<Long, Long>> getWorkers() {\n List<Pair<Long, Long>> workers = new ArrayList<>(workerSize);\n for (int i = 0; i < workerSize; i++) {\n workers.add(Pair.of(workerBits[i], workerIds[i]));\n }\n return workers;\n }", "java.util.List<Rsp.RequestFromSelf>\n getRequestsList();", "SyncObject(int numThreads)\n {\n this.numThreads = numThreads;\n }", "private void manageClients() {\n manage = new Thread(\"Manage\") {\n public void run() {\n //noinspection StatementWithEmptyBody\n while (running) {\n sendToAll(\"/p/server ping/e/\".getBytes());\n try {\n Thread.sleep(1500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //noinspection ForLoopReplaceableByForEach\n for (int i = 0; i < clients.size(); i++) {\n ServerClient tempClient = clients.get(i);\n if (!clientResponse.contains(tempClient.getID())) {\n if (tempClient.getAttempt() >= MAX_ATTEMPTS)\n disconnect(tempClient.getID(), false);\n else\n tempClient.setAttempt(tempClient.getAttempt() + 1);\n } else {\n clientResponse.remove(new Integer(tempClient.getID()));\n tempClient.setAttempt(0);\n }\n }\n }\n }\n };\n manage.start();\n }", "public int getChildThreads() {\n\t\tfinal String key = ConfigNames.CHILD_THREADS.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn getJson().getInt(key);\n\t}", "public Map<UUID, IExecutorDescriptor> getConnectedExecutors() throws RemoteException;", "protected Runnable listMembers() {\n return () -> {\n while (enableHa) {\n try {\n if (Thread.currentThread().isInterrupted()) {\n break;\n }\n NotificationServiceOuterClass.ListMembersRequest request =\n NotificationServiceOuterClass.ListMembersRequest.newBuilder()\n .setTimeoutSeconds(listMemberIntervalMs / 1000)\n .build();\n NotificationServiceOuterClass.ListMembersResponse response = notificationServiceStub.listMembers(request);\n if (response.getReturnCode() == NotificationServiceOuterClass.ReturnStatus.SUCCESS) {\n livingMembers = new HashSet<>(response.getMembersList());\n } else {\n logger.warn(response.getReturnMsg());\n selectValidServer();\n }\n } catch (Exception e) {\n e.printStackTrace();\n logger.warn(\"Error while listening notification\");\n selectValidServer();\n }\n }\n };\n }", "public static void main(String[] args){ new ThreadPoolBlockingServer().processRequests(); }", "public java.lang.String[] getServerIds() {\r\n return serverIds;\r\n }", "void listWaitingList( String messager ) {\n int i;\n ChildBot bot;\n ListIterator<ChildBot> iterator;\n\n m_botAction.sendSmartPrivateMessage( messager, \"Waiting list:\" );\n\n for( iterator = m_spawnQueue.listIterator(), i = 1; iterator.hasNext(); i++ ) {\n bot = iterator.next();\n m_botAction.sendSmartPrivateMessage( messager, i + \": \" + bot.getBot().getBotName() + \", created by \" + bot.getCreator() + \".\" );\n }\n\n m_botAction.sendSmartPrivateMessage( messager, \"End of list\" );\n }", "NetThread(){}", "public void runServer(){\n\t\tServer.pool = Executors.newFixedThreadPool(Server.user_limit );\n\t\t\n\t\ttry {\n\t server = new ServerSocket(Server.port, Server.user_limit); \n\t logger.logdate(\"Servidor habilitado: Esperando conexiones...\");\n\t \n\t while (Server.active) {\n\t \ttry {\n\t \tSocket serversocket = server.accept();\n\t \tServerThread connection = new ServerThread(serversocket);\n\t \tpool.execute(connection);\n\t \tServer.clients.addLast(connection);\n\t \tString hostname = connection.getConnection().getInetAddress().getHostName();\n\t \tlogger.logdate(hostname+\" entro al servidor\");\n\t \t} catch ( EOFException eofException ) {\n\t \t\tlogger.logdate( \"Error al aceptar la conexión\" );\n\t } catch(SocketException e){\n\t \n\t } \n\t \n\t }\n\t \n\t } catch ( IOException ioException ) {\n\t \tioException.printStackTrace();\n\t } \n\t \n\t}", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Session> \n getSessionsList();", "public void run() {\n\t\t// TODO Auto-generated method stub\n\t\twhile(true){\n\t\t\t\n\t\t\tif (DEBUG){\n\t\t\t\tSystem.out.println(\"Server_thread\");\n\t\t\t}\n\t\t\t\n\t\t\ttry{\t\n\t\t\t\trun_list.add(new ClientHandler(serversocket.accept()));\n\t\t\t\tnew Thread (run_list.get(run_list.size()-1)).start();;\n\t\t\t\n\t\t\t\n\t\t}\t\n\t\tcatch (IOException ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\ttry{\n\t\t\tThread.sleep(10);\n\t\t}\n\t\tcatch (InterruptedException ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t}\n\t}", "public static void runThreads(int threadCount) {\n\n\t\tThread[] t = new Thread[threadCount];\n\t\tSystem.out.println(\"Concurrent Client #\" + threadCount);\n\t\tfor (int i = 0; i < t.length; i++) {\n\t\t\tSystem.out.println(\"Thread #\" + (i + 1));\n\t\t\tt[i] = new Client(hostname, port, menuSelect);\n\t\t\tt[i].run();\n\t\t}\n\t}", "public GridletList getGridletList() {\n return receiveJobs;\n }" ]
[ "0.74566984", "0.7203451", "0.7047548", "0.68805045", "0.66225934", "0.6572681", "0.6229919", "0.61184543", "0.61164623", "0.6090426", "0.60738254", "0.60538566", "0.6008747", "0.5947868", "0.594162", "0.5896701", "0.58616406", "0.5859545", "0.5839476", "0.58077645", "0.58010775", "0.5799721", "0.5789967", "0.572235", "0.5696454", "0.56959444", "0.5693587", "0.5680515", "0.5648589", "0.56453985", "0.56077874", "0.5587886", "0.5566625", "0.5538237", "0.5535919", "0.55119777", "0.5510518", "0.546167", "0.5455917", "0.54494303", "0.54475814", "0.54459095", "0.54350764", "0.54236865", "0.54032385", "0.539481", "0.53927743", "0.5385244", "0.53847134", "0.5384006", "0.5376453", "0.53313226", "0.53262484", "0.529337", "0.52921504", "0.5284721", "0.52819806", "0.52819294", "0.52784866", "0.5267551", "0.52411616", "0.52253354", "0.52242297", "0.52238625", "0.52225816", "0.5222357", "0.5218849", "0.52047056", "0.519093", "0.51856035", "0.518334", "0.5177349", "0.51734406", "0.5173309", "0.51684177", "0.5168249", "0.51652753", "0.5151466", "0.5146771", "0.51423246", "0.5133837", "0.51334614", "0.51248765", "0.51167744", "0.5111936", "0.5111599", "0.51051813", "0.51002127", "0.5098594", "0.5094035", "0.5093996", "0.5091603", "0.509153", "0.5084424", "0.5078536", "0.5071843", "0.5066226", "0.5066012", "0.5064418", "0.5060021" ]
0.6114377
9
Sets the array of ServerThread objects to be handled
public synchronized void setConnectionArray(List<ServerThread> connectionArray) { this.connectionArray = connectionArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void setThreads(int threads)\n/* */ {\n/* 122 */ if (threads <= 0) {\n/* 123 */ return;\n/* */ }\n/* */ \n/* 126 */ this.threads = threads;\n/* */ \n/* */ \n/* 129 */ if (this.helpers == null) {\n/* 130 */ this.helpers = new NeighborhoodHelper[threads];\n/* 131 */ for (int i = 0; i < threads; i++)\n/* */ {\n/* 133 */ this.helpers[i] = new NeighborhoodHelper(null);\n/* 134 */ this.helpers[i].start();\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 140 */ if (this.helpers.length < threads)\n/* */ {\n/* */ \n/* 143 */ NeighborhoodHelper[] temp = new NeighborhoodHelper[threads];\n/* */ \n/* */ \n/* 146 */ for (int i = 0; i < threads; i++) {\n/* 147 */ temp[i] = (i < this.helpers.length ? this.helpers[i] : new NeighborhoodHelper(null));\n/* */ }\n/* */ \n/* 150 */ this.helpers = temp;\n/* */ \n/* */ \n/* */ \n/* */ }\n/* 155 */ else if (this.helpers.length > threads)\n/* */ {\n/* */ \n/* 158 */ NeighborhoodHelper[] temp = new NeighborhoodHelper[threads];\n/* */ \n/* */ \n/* 161 */ for (int i = 0; i < threads; i++) {\n/* 162 */ if (i < threads) {\n/* 163 */ temp[i] = this.helpers[i];\n/* */ } else {\n/* 165 */ this.helpers[i].dispose();\n/* */ }\n/* */ }\n/* 168 */ this.helpers = temp;\n/* */ }\n/* 170 */ notifyAll();\n/* */ }", "public void setup_servers()\n {\n // get ServerInfo\n ServerInfo t = new ServerInfo();\n // all 3 servers\n for(int i=0;i<3;i++)\n {\n // get the server IP and port info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n public void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl true and rx_hdl false as this is the socket initiator\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,true,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n }\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Server\"+i);\n x.start(); \t\t\t// start the thread\n }\n }", "public synchronized void add(ServerThread st){\r\n connectionArray.removeAll(Collections.singleton(null));\r\n connectionArray.add(st);\r\n }", "private static void setupServerContext(){\n\n serverContext.set(new ServerContext());\n serverContext.get().bgThreadIds = new int[GlobalContext.getNumTotalBgThreads()];\n serverContext.get().numShutdownBgs = 0;\n serverContext.get().serverObj = new Server();\n\n }", "private void setUpServerThread() {\n\t\ttry {\n\t\t\tthis.incomingMsgNodes = new TCPServerThread(0, this);\n\t\t\tThread thread = new Thread(incomingMsgNodes);\n\t\t\tthread.start();\n\t\t\tthis.myServerThreadPortNum = incomingMsgNodes.getPort();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble creating Server Socket\");\n\t\t}\n\t}", "private static void initializeServerThreadSocketMapping()\n\t{\n\t\tthreadSocketMap = new HashMap<Thread, InterruptibleRMIServerSideSocket>();\n\t\tsocketThreadMap = new HashMap<InterruptibleRMIServerSideSocket, Thread>();\n\t}", "public void setThread(Thread t);", "public void start(){\n for(MessageHandler h : handlerMap.values()){\n new Thread(h).start();\n }\n }", "public void addServerToServerArray(Server server){\n serverArray[cntServer] = server;\n cntServer++;\n }", "private void setSockets()\n {\n String s = (String) JOptionPane.showInputDialog(null,\n \"Select Number of Sockets:\", \"Sockets\",\n JOptionPane.PLAIN_MESSAGE, null, socketSelect, \"1\");\n\n if ((s != null) && (s.length() > 0))\n {\n totalNumThreads = Integer.parseInt(s);\n }\n else\n {\n totalNumThreads = 1;\n }\n\n recoveryQueue.setMaxSize(totalNumThreads * 10);\n }", "public void threadManager() {\n /**Retrieve all data stored in \"preference\"*/\n if (mNodeThingUtils.getAllSavedThing() != null) {\n\n Map<String, String> getAllSensor = mNodeThingUtils.getAllSavedThing();\n Set<String> keys = getAllSensor.keySet();\n\n /**It checks to see if he has already been registered*/\n if (!threadControl.containsKey(String.valueOf(keys))) {\n for (Iterator i = keys.iterator(); i.hasNext(); ) {\n String key = (String) i.next();\n /**This control is used to separate the thread type from the sensor type*/\n if (!key.matches(Constant.Regexp.THREAD_CONTROL) && key.length() != 2) {\n\n /**Creates a new thread and registers it as \"nodename: thingname\"\n * of type \"map\" so that it is easy to check later*/\n threadControl.put(key, new ThreadUtils(mContext));\n }\n }\n } else {\n LogUtils.logger(TAG, \"There is a thread named as \" + keys);\n }\n }\n }", "public void startThreads() {\n\n //Start a new sender thread\n new Thread(new ClientSenderThread(sequenceNumber, eventQueue, socketsForBroadcast, incomingQueue, curTimeStamp, waitToResendQueue)).start();\n //Start a new listener thread\n //new Thread(new ClientListenerThread(socketsForBroadcast, clientTable,receivedQueue,displayQueue, incomingQueue,actionHoldingCount)).start();\n new ConfirmationBroadcast(sequenceNumber, confirmationQueue, socketsForBroadcast, waitToResendQueue, (BlockingQueue) incomingQueue).start();\n new ResendThread(150, timeout, waitToResendQueue, socketsForBroadcast).start();\n\n new IncomingMessageHandleThread(incomingQueue, receivedQueue, waitToResendQueue, confirmationQueue,\n actionHoldingCount, socketsForBroadcast, curTimeStamp, avoidRepeatenceHelper, numberOfPlayers, playerName, sequenceNumber, this).start();\n new ReceivedThread(receivedQueue, displayQueue, waitToResendQueue, incomingQueue, curTimeStamp, socketsForBroadcast,\n localPlayers, actionHoldingCount, playerName, sequenceNumber, numberOfPlayers).start();\n new DisplayThread(displayQueue, clientTable).start();\n new BulletSender(eventQueue).start();\n\n\n }", "private static void handleServer(){\n // Main program. It should handle all connections.\n try{\n while(true){\n Socket clientSocket= serverSocket.accept();\n ServerThread thread = new ServerThread(clientSocket, connectedUsers, groups);\n thread.start();\n }\n }catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void startThreads() {\n Listener listener = new Listener();\n Thread listenerThread = new Thread(listener);\n\n listenerThread.start();\n }", "private void setServerList() {\n ArrayList<ServerObjInfo> _serverList =\n ServerConfigurationUtils.getServerListFromFile(mContext, ExoConstants.EXO_SERVER_SETTING_FILE);\n ServerSettingHelper.getInstance().setServerInfoList(_serverList);\n\n int selectedServerIdx = Integer.parseInt(mSharedPreference.getString(ExoConstants.EXO_PRF_DOMAIN_INDEX, \"-1\"));\n mSetting.setDomainIndex(String.valueOf(selectedServerIdx));\n mSetting.setCurrentServer((selectedServerIdx == -1) ? null : _serverList.get(selectedServerIdx));\n }", "public void run() {\n\n // Start threadPool\n for (int i = 0; i < nbThreads; i++) {\n ThreadClient threadClient = new ThreadClient(listSocketDevice, String.valueOf(i), handler);\n arrayThreadClients.add(threadClient);\n threadClient.start();\n }\n\n while (true) {\n try {\n if (v) Log.d(TAG, \"Server is waiting on accept...\");\n ISocket isocket = acceptISocket();\n\n if (v) Log.d(TAG, isocket.getRemoteSocketAddress() + \" accepted\");\n listSocketDevice.addSocketClient(isocket);\n\n // Notify handler\n handler.obtainMessage(Service.CONNECTION_PERFORMED,\n isocket.getRemoteSocketAddress()).sendToTarget();\n\n } catch (SocketException e) {\n handler.obtainMessage(Service.LOG_EXCEPTION, e).sendToTarget();\n break;\n } catch (IOException e) {\n handler.obtainMessage(Service.LOG_EXCEPTION, e).sendToTarget();\n break;\n }\n }\n }", "public void set(String serverId,T object)\r\n\t{\r\n\t\tinstances.put(serverId, object);\r\n\t}", "public static void startAll(Thread[] objects) {\n\t\tfor (Thread thread : objects)\n\t\t\tthread.start();\n\t}", "protected synchronized void startServers() throws Exception {\r\n if (this.servers != null) {\r\n for (Server server : this.servers) {\r\n server.start();\r\n }\r\n }\r\n }", "public void startPopulateWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\tthreads.add(new Thread(pts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setChunkServers(HostID[] chunkServers)\n {\n this.chunkServers = chunkServers;\n }", "private void addThread(SSLSocket socket)\n {\n if(pop < clist.length)\n {\n for(ServerThread srv : clist)\n {\n if(srv == null)\n {\n //make a new thread to run data through to new client\n srv = new ServerThread(this, socket);\n \n try\n {\n //start up the thread\n srv.open();\n start();\n \n //set everything up here (increment pop count, keep track of thread)\n clist[pop] = srv;\n pop++;\n break;\n }\n catch(IOException e)\n {\n System.out.println(\"Cannot open new thread\");\n }\n \n \n }\n \n }\n System.out.println(\"New Connection: \" + socket);\n\n }\n else\n {\n System.out.println(\"Sorry, server full at \" + pop);\n }\n }", "public void startServers()\n {\n ExecutorService threads = Executors.newCachedThreadPool();\n threads.submit(new StartServer(host, port));\n threads.submit(new StartServer(host, port + 1));\n threads.shutdown();\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\t\t\twelcomeSocket= new ServerSocket(50501);\n\t\t\t \twhile (true){\n\t\t\t\t \tSystem.out.println(\"Waiting for a client....\");\n\t\t\t\t\tSocket clientConnect = welcomeSocket.accept(); // connect client to socket\n\t\t\t\t\tSystem.out.println(\"A connection has been made.\");\n\t\t\t\t\tfor (int i=0;i<iter;i++){\n\t\t\t\t\t\tString [][] myFileListtemp=arr[i].GetFileList();\n\t\t\t\t\t\tint tempit=myFileListtemp[0].length-myFileList[0].length;\n\t\t\t\t\t\titerator=iterator+tempit;\n\t\t\t\t\t\tif (tempit!=0){\n\t\t\t\t\t\t\tfor (int i1=myFileList[0].length;i1<myFileListtemp[0].length;i1++){\n\t\t\t\t\t\t\t\tif (iterator >= myFileList[0].length) {\n\t\t\t\t\t\t\t\t\tupdateArray();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmyFileList[0][i]=myFileListtemp[0][i];\n\t\t\t\t\t\t\t\tmyFileList[1][i]=myFileListtemp[1][i];\n\t\t\t\t\t\t\t\tmyFileList[2][i]=myFileListtemp[2][i];\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\tclientIp=clientConnect.getInetAddress().getHostAddress();\t\t\t\t\n\t\t\t\t\tBufferedReader inBuf = new BufferedReader(new InputStreamReader(clientConnect.getInputStream()));\n\t\t\t\t\tPrintWriter outBuf= new PrintWriter(new OutputStreamWriter(clientConnect.getOutputStream()),true);\n\t\t\t\t\tString clientport=inBuf.readLine();\n\t\t\t\t\tString name=inBuf.readLine();\n\t\t\t\t\twhile (!(name.equals(\"-\"))){\n\t\t\t\t\t\tmyFileList[0][iterator]=name;\n\t\t\t\t\t\tmyFileList[1][iterator]=clientIp;\n\t\t\t\t\t\tmyFileList[2][iterator]=clientport;\n\t\t\t\t\t\tname=inBuf.readLine();\n\t\t\t\t\t\titerator++;\n\t\t\t\t\t\tif (iterator >= myFileList[0].length) {\n\t\t\t\t\t\t\tupdateArray();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tarr[iter]=new ServerBThread(clientConnect,clientport);\n\t\t\t\t\tfor (int i=0;i<=iter;i++){\n\t\t\t\t\t\tarr[i].PutFileList(myFileList);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"File List Updated\");\n\t\t\t\t\tThread T = new Thread(arr[iter]);\n\t\t\t\t\tT.start();\n\t\t\t\t\titer++;\n\t\t\t\t\tif (iter >= arr.length) {\n\t\t\t\t\t\tupdateArrayth();\n\t\t\t\t\t}\n\t\t\t\t} \t\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t}", "private void manageClients() {\n manage = new Thread(\"Manage\") {\n public void run() {\n //noinspection StatementWithEmptyBody\n while (running) {\n sendToAll(\"/p/server ping/e/\".getBytes());\n try {\n Thread.sleep(1500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //noinspection ForLoopReplaceableByForEach\n for (int i = 0; i < clients.size(); i++) {\n ServerClient tempClient = clients.get(i);\n if (!clientResponse.contains(tempClient.getID())) {\n if (tempClient.getAttempt() >= MAX_ATTEMPTS)\n disconnect(tempClient.getID(), false);\n else\n tempClient.setAttempt(tempClient.getAttempt() + 1);\n } else {\n clientResponse.remove(new Integer(tempClient.getID()));\n tempClient.setAttempt(0);\n }\n }\n }\n }\n };\n manage.start();\n }", "SyncObject(int numThreads)\n {\n this.numThreads = numThreads;\n }", "protected void init(Iterable<String> servers) {}", "public ServerThread(MyServer server) {\n\t\tthis.server = server;\n\t}", "private void refreshServerList() {\n\t\tcurrentRequestId++;\n\t\tserverNames.clear();\n\t\tserverTable.clear();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\taddresses = client.discoverHosts(WifiHelper.UDP_PORT, 1000);\n\t\t\t\tint removed = 0;\n\t\t\t\tfor(int i = 0; i + removed < addresses.size(); i++) {\n\t\t\t\t\tsynchronized(client) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tclient.connect(1000, addresses.get(i - removed), WifiHelper.TCP_PORT, WifiHelper.UDP_PORT);\n\t\t\t\t\t\t\tclient.sendTCP(new NameRequest(currentRequestId, addresses.size()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tclient.wait(5000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\taddresses.remove(i);\n\t\t\t\t\t\t\tremoved++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\t}", "public void set(Object[] objects) {\r\n this.objects = objects;\r\n }", "private void startServiceThreads() {\n // Do after main thread name has been set\n this.metrics = new MasterMetrics();\n try {\n regionManager.start();\n serverManager.start();\n // Put up info server.\n int port = this.conf.getInt(\"hbase.master.info.port\", 60010);\n if (port >= 0) {\n String a = this.conf.get(\"hbase.master.info.bindAddress\", \"0.0.0.0\");\n this.infoServer = new InfoServer(MASTER, a, port, false);\n this.infoServer.setAttribute(MASTER, this);\n this.infoServer.start();\n }\n // Start the server so everything else is running before we start\n // receiving requests.\n this.server.start();\n } catch (IOException e) {\n if (e instanceof RemoteException) {\n try {\n e = RemoteExceptionHandler.decodeRemoteException((RemoteException) e);\n } catch (IOException ex) {\n LOG.warn(\"thread start\", ex);\n }\n }\n // Something happened during startup. Shut things down.\n this.closed.set(true);\n LOG.error(\"Failed startup\", e);\n }\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Started service threads\");\n }\n }", "public static void runThreads(int threadCount) {\n\n\t\tThread[] t = new Thread[threadCount];\n\t\tSystem.out.println(\"Concurrent Client #\" + threadCount);\n\t\tfor (int i = 0; i < t.length; i++) {\n\t\t\tSystem.out.println(\"Thread #\" + (i + 1));\n\t\t\tt[i] = new Client(hostname, port, menuSelect);\n\t\t\tt[i].run();\n\t\t}\n\t}", "public clientThread(Socket clientSocket, clientThread[] threads) {\n\t this.clientSocket = clientSocket;\n\t this.threads = threads;\n\t maxClients = threads.length;\n\t }", "public synchronized void setServers(ServerList servers) {\r\n this.servers.clear();\r\n \r\n if (servers != null) {\r\n this.servers.addAll(servers);\r\n }\r\n }", "public void addThread(ServerBase pServerBase)\n {\n mThreadList.add(pServerBase);\n }", "public EchoServerMultiThreaded(){\n\t\tclients = new LinkedList<>();\n\t\thistory = new ArrayList<>();\n\n\t\t//History Log\n\t\tBufferedReader logIn = null;\n\t\tFile historyLog = new File(\"Code-Socket/lib/historyLog.txt\");\n\t\ttry {\n\t\t\tif(historyLog.createNewFile()){\n\t\t\t\tSystem.out.println(\"History log file not found, creation...\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"History log file found, loading...\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"An error occured with the history log file\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry{\n\t\t\tlogIn = new BufferedReader(new FileReader(historyLog));\n\t\t\tString line = logIn.readLine();\n\t\t\tlockHistory.writeLock().lock();\n\t\t\twhile(line!=null){\n\t\t\t\thistory.add(line);\n\t\t\t\tline=logIn.readLine();\n\t\t\t}\n\t\t\tlockHistory.writeLock().unlock();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"An error occured with the history log reader\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tlogIn.close();\n\t\t\t\tlogOut = new BufferedWriter(new FileWriter(historyLog,true));\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void runServer(){\n\t\tServer.pool = Executors.newFixedThreadPool(Server.user_limit );\n\t\t\n\t\ttry {\n\t server = new ServerSocket(Server.port, Server.user_limit); \n\t logger.logdate(\"Servidor habilitado: Esperando conexiones...\");\n\t \n\t while (Server.active) {\n\t \ttry {\n\t \tSocket serversocket = server.accept();\n\t \tServerThread connection = new ServerThread(serversocket);\n\t \tpool.execute(connection);\n\t \tServer.clients.addLast(connection);\n\t \tString hostname = connection.getConnection().getInetAddress().getHostName();\n\t \tlogger.logdate(hostname+\" entro al servidor\");\n\t \t} catch ( EOFException eofException ) {\n\t \t\tlogger.logdate( \"Error al aceptar la conexión\" );\n\t } catch(SocketException e){\n\t \n\t } \n\t \n\t }\n\t \n\t } catch ( IOException ioException ) {\n\t \tioException.printStackTrace();\n\t } \n\t \n\t}", "public AppTThreadedSelectorServer(Args args) {\r\n super(args);\r\n }", "public void secondaryThreadCalls(){\n secondThread = new secondaryThread(getHolder(), this);\n effect = new ArrayList<>();\n enemy = new ArrayList<>();\n newEnemy = new ArrayList<>();\n thirdEnemy = new ArrayList<>();\n enemyStart = System.nanoTime();\n topborder = new ArrayList<>();\n botborder = new ArrayList<>();\n secondThread = new secondaryThread(getHolder(), this);\n secondThread.setRunning(true);\n secondThread.start();\n }", "public void setup_clients()\n {\n ClientInfo t = new ClientInfo();\n for(int i=0;i<5;i++)\n {\n // for mesh connection between clients\n // initiate connection to clients having ID > current node's ID\n if(i > my_c_id)\n {\n // get client info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n \tpublic void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl false and rx_hdl false as this is the socket initiator\n // and is a connection to another client node\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,false,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n \t}\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Client\"+i);\n x.start(); \t\t\t// start the thread\n }\n }\n\n // another thread to check until all connections are established ( ie. socket list size =4 )\n // then send a message to my_id+1 client to initiate its connection setup phase\n Thread y = new Thread()\n {\n public void run()\n {\n int size = 0;\n // wait till client connections are setup\n while (size != 4)\n {\n synchronized(c_list)\n {\n size = c_list.size();\n }\n }\n // if this is not the last client node (ID =4)\n // send chain init message to trigger connection setup\n // phase on the next client\n if(my_c_id != 4)\n {\n c_list.get(my_c_id+1).send_setup();\n System.out.println(\"chain setup init\");\n }\n // send the setup finish, from Client 4\n // indicating connection setup phase is complete\n else\n {\n c_list.get(0).send_setup_finish();\n }\n }\n };\n \n y.setDaemon(true); \t// terminate when main ends\n y.start(); \t\t\t// start the thread\n }", "public void setServer(Server server) {\n\t\t\r\n\t}", "public void sync(String[] tabTags)\n\t{\n mWorkerThread = new Thread(new WorkerThreadRunnable(mContext, mPrivateHandler, tabTags));\n mWorkerThread.start();\n\t}", "public void setServerIds(java.lang.String[] serverIds) {\r\n this.serverIds = serverIds;\r\n }", "public void init(){\n\t\tmultiplexingClientServer = new MultiplexingClientServer(selectorCreator);\n\t}", "static void doThread() throws InterruptedException {\r\n\t\tthreadMessage(\"Starting MessageLoop thread\");\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\t// int nthreads=2;\r\n\t\tint nthreads = numnodes;\r\n\t\tThread[] tList;\r\n\r\n\t\ttList = new Thread[nthreads];\r\n\t\tString driver = null;\r\n\t\tString host = null;\r\n\t\tString user = null;\r\n\t\tString pass = null;\r\n\r\n\t\t// for (int i = 0; i < nthreads; i++) {\r\n\t\tfor (int i = 0; (i < nthreads) && (i < nodeAL.size()); i++) {\r\n\t\t\tdriver = (nodeAL.get(i)).getDriver();\r\n\t\t\thost = (nodeAL.get(i)).getHostName();\r\n\t\t\tuser = (nodeAL.get(i)).getUserName();\r\n\t\t\tpass = (nodeAL.get(i)).getPassword();\r\n\t\t\t// tList[i]= new Thread( new MessageLoop() );\r\n\t\t\t// System.out.println(\"HN is: \" + host + i);\r\n\t\t\ttList[i] = new Thread(new MessageLoop(driver, host, user, pass));\r\n\t\t\ttList[i].start();\r\n\t\t}\r\n\r\n\t\tthreadMessage(\"Waiting for all MessageLoop threads to finish\");\r\n\r\n\t\t// for (int i = 0; i < nthreads; i++) {\r\n\t\tfor (int i = 0; (i < nthreads) && (i < nodeAL.size()); i++) {\r\n\t\t\ttList[i].join();\r\n\t\t}\r\n\r\n\t\tthreadMessage(\"Finally all done!\");\r\n\r\n\t}", "public void setUpNetworking() throws Exception {\n this.serverSock = new ServerSocket(4242);\n\n groupChats = new HashMap<String, ArrayList<String>>();\n groupMessages = new HashMap<String, ArrayList<String>>();\n groupMessages.put(\"Global\", new ArrayList<String>());\n\n int socketOn = 0;\n\n while (true) {\n\n Socket clientSocket = serverSock.accept();\n System.out.println(\"Received connection \" + clientSocket);\n\n ClientObserver writer = new ClientObserver(clientSocket.getOutputStream());\n\n Thread t = new Thread(new ClientHandler(clientSocket, writer));\n t.start();\n System.out.println(\"Connection Established\");\n socketOn = 1;\n }\n }", "public QueueProcessor(Server srv) {\n server=srv;\n\n mHandlers=new HashMap();\n hDefault=null;\n\n queue=server.getPacketQueue();\n }", "@Override\n public Object visitThreadDeclaratorList(LitmusX86Parser.ThreadDeclaratorListContext ctx) {\n for(LitmusX86Parser.ThreadContext threadCtx : ctx.thread()){\n String thread = threadId(threadCtx.ThreadIdentifier().getText());\n mapThreadEvents.put(thread, new ArrayList<Thread>());\n mapRegisters.put(thread, new HashMap<String, Register>());\n mapRegistersLocations.put(thread, new HashMap<String, Location>());\n threadCount++;\n }\n return null;\n }", "private void initSelectorLoops() {\n ServerConfiguration configuration = getContext().getServerConfiguration();\n String eventLoopName = \"nio-process(tcp-\" + configuration.getSERVER_PORT() + \")\";\n int core_size = configuration.getSERVER_CORE_SIZE();\n this.selectorEventLoopGroup = new SocketSelectorEventLoopGroup(getContext(), eventLoopName,\n core_size);\n LifeCycleUtil.start(selectorEventLoopGroup);\n }", "@Override\n protected void setServerAccessCreditsSubClass ()\n {\n getEncapsulatedQueue ().setServerAccessCredits (getLastUpdateTime (), getServerAccessCredits ());\n }", "public void runDeal() {\n\t\ttry {\n\t\t\t// allocate array for up to 10 server threads\n\t\t\tsockServer = new SockServer[100];\n\t\t\texecutor = Executors.newFixedThreadPool(100); // create thread pool\n\t\t\tserver = new ServerSocket(23555, 100); // create ServerSocket\n\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\t// create a new runnable object to serve the next client to\n\t\t\t\t\t// call in\n\t\t\t\t\tsockServer[counter] = new SockServer(counter);\n\t\t\t\t\t// make that new object wait for a connection on that new\n\t\t\t\t\t// server object\n\t\t\t\t\tsockServer[counter].waitForConnection();\n\t\t\t\t\t// launch that server object into its own new thread\n\t\t\t\t\texecutor.execute(sockServer[counter]);\n\t\t\t\t\t// then, continue to create another object and wait (loop)\n\n\t\t\t\t} // end try\n\t\t\t\tcatch (EOFException eofException) {\n\t\t\t\t\tSystem.out.println(\"\\nServer terminated connection\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\t++counter;\n\t\t\t\t} // end finally\n\t\t\t} // end while\n\t\t} catch (IOException ioException) {\n\t\t\tSystem.out.println(\"\\nServer terminated connection\");\n\t\t}\n\t}", "private void startServer(){\n clients = new ArrayList<ClientThread>();\n ServerSocket ClientSocket = null;\n try {\n ClientSocket = new ServerSocket(ClientPort);\n ClientSocketConnection(ClientSocket);\n } catch (IOException e){\n e.printStackTrace();\n System.exit(1);\n }\n }", "public void setReservedThreads(int reservedThreads)\n {\n if (isRunning())\n throw new IllegalStateException(getState());\n _reservedThreads = reservedThreads;\n }", "public void startThread() {\n\t\tif (this.serverConnectorUsed <= Byte.MAX_VALUE) {\n\t\t\tthis.serverConnectorUsed++;\n\t\t\tLOG.info(\"Running new thread. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}", "public void setThread(LoadThread thread) {\r\n this.thread = thread;\r\n }", "private Thread[] newThreadArray() { \r\n\t int n_cpus = Runtime.getRuntime().availableProcessors(); \r\n\t return new Thread[n_cpus]; \r\n\t }", "private void setServerAddressList(){\n\n if (mCallBack != null){\n mCallBack.onGetServerAddressListCompleted(mServerAddressList);\n }\n }", "public synchronized List<ServerThread> getConnectionArray() {\r\n return connectionArray;\r\n }", "public void setUnmanagedThreads(int nbThreads) {\r\n\t\tif (Threading.isInitialized()) throw new IllegalStateException(ERROR_ALREADY_INITIALIZED);\r\n\t\tnbUnmanagedThreads = nbThreads;\r\n\t}", "public static void main(String args[]) {\n int portNumber = 2228;\r\n if (args.length < 1) {\r\n System.out.println(\"Usage: java MultiThreadChatServerSync <portNumber>\\n\"\r\n + \"Now using port number=\" + portNumber);\r\n } else {\r\n portNumber = Integer.valueOf(args[0]);\r\n }\r\n\r\n try {\r\n serverSocket = new ServerSocket(portNumber);\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n\r\n /*\r\n * Create a client socket for each connection and pass it to a new client\r\n * thread.\r\n */\r\n while (true) {\r\n try {\r\n clientSocket = serverSocket.accept();\r\n int i = 0;\r\n for (i = 0; i < maxClientsCount; i++) {\r\n if (threads[i] == null) {\r\n (threads[i] = new clientThread(clientSocket, threads, history, userList)).start();\r\n break;\r\n }\r\n }\r\n if (i == maxClientsCount) {\r\n PrintStream os = new PrintStream(clientSocket.getOutputStream());\r\n os.println(\"Server too busy. Try later.\");\r\n os.close();\r\n clientSocket.close();\r\n }\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n }\r\n }", "public void setInitialThreadCount(int threads)\n { _threadPool.setInitialSize(threads);\n }", "public ServerPlayers() {\n sockets = new ArrayList<Socket>();\n }", "public TestHttpServer (HttpCallback cb, int threads, int cperthread, int port)\n throws IOException {\n schan = ServerSocketChannel.open ();\n InetSocketAddress addr = new InetSocketAddress (port);\n schan.socket().bind (addr);\n this.threads = threads;\n this.cb = cb;\n this.cperthread = cperthread;\n servers = new Server [threads];\n for (int i=0; i<threads; i++) {\n servers[i] = new Server (cb, schan, cperthread);\n servers[i].start();\n }\n }", "public static void main(String[] args) {\r\n Restoran resto = new Restoran();\r\n int i = 0;\r\n for ( i = 0; i < 6; i++) {\r\n new Thread(new Cliente(resto,\"Cliente \" + i), \"Cliente \" + i).start();\r\n }\r\n new Thread(new Mozo(resto)).start();\r\n new Thread(new Cocinero(resto)).start();\r\n }", "private void defineSignalSet() {\n\t\tevents = new ArrayList<OutputEventPort>();\t\t\n\n\t\tfor (ThreadImplementation tw : allThreads) {\n\t\t\tevents.addAll(tw.getOutputEventPortList());\n\t\t\tevents.addAll(tw.getOutputEventDataPortList());\n\t\t}\n\t}", "@Override\r\n \tpublic void initialize() {\n \t\tThreadRenamingRunnable.setThreadNameDeterminer(ThreadNameDeterminer.CURRENT);\r\n \r\n \t\tInetSocketAddress address;\r\n \r\n \t\tif (m_host == null) {\r\n \t\t\taddress = new InetSocketAddress(m_port);\r\n \t\t} else {\r\n \t\t\taddress = new InetSocketAddress(m_host, m_port);\r\n \t\t}\r\n \r\n \t\tm_queue = new LinkedBlockingQueue<ChannelBuffer>(m_queueSize);\r\n \r\n \t\tExecutorService bossExecutor = Threads.forPool().getCachedThreadPool(\"Cat-TcpSocketReceiver-Boss-\" + address);\r\n \t\tExecutorService workerExecutor = Threads.forPool().getCachedThreadPool(\"Cat-TcpSocketReceiver-Worker\");\r\n \t\tChannelFactory factory = new NioServerSocketChannelFactory(bossExecutor, workerExecutor);\r\n \t\tServerBootstrap bootstrap = new ServerBootstrap(factory);\r\n \r\n \t\tbootstrap.setPipelineFactory(new ChannelPipelineFactory() {\r\n \t\t\tpublic ChannelPipeline getPipeline() {\r\n \t\t\t\treturn Channels.pipeline(new MyDecoder(), new MyHandler());\r\n \t\t\t}\r\n \t\t});\r\n \r\n \t\tbootstrap.setOption(\"child.tcpNoDelay\", true);\r\n \t\tbootstrap.setOption(\"child.keepAlive\", true);\r\n \t\tbootstrap.bind(address);\r\n \r\n \t\tm_logger.info(\"CAT server started at \" + address);\r\n \t\tm_factory = factory;\r\n \t}", "private void sendSetRequest() {\r\n\t\tnumOfSets++;\r\n\t\ttype = \"0\";\r\n\t\tnumOfRecipients = servers.size();\r\n\t\tfor(ServerHandler s : servers) {\r\n\t\t\ts.send(this, input);\r\n\t\t}\r\n\t\tsendTime = System.nanoTime();\r\n\r\n\t\tworkerTime = sendTime - pollTime;\r\n\t\t\r\n\t\tfor(ServerHandler s : servers) {\r\n\t\t\tString ricevuto = s.receive();\r\n\t\t\treplies.add(ricevuto);\r\n\t\t}\r\n\t\treceiveTime = System.nanoTime();\r\n\t\tprocessingTime = receiveTime - sendTime;\r\n\t\t\r\n\t\t\r\n\t\tfor(String reply : replies) {\r\n\t\t\tif(!(\"STORED\".equals(reply))) {\r\n\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\treplies.clear();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tsendBack(currentJob.getClient(), \"STORED\");\r\n\t\treplies.clear();\r\n\t\t\r\n\t}", "public void terminate () {\n for (int i=0; i<threads; i++) {\n servers[i].terminate ();\n }\n }", "public TCPSocketServer(){\n this.port=DEFAULT_SERVER_PORT;\n socketList = Collections.synchronizedList(new ArrayList<>());// Maintain a list of socket list. This uses synchronized list since\n // the terminate does not\n this.logWriter = new LogWriter(fileWriterQueue);\n log.info(\"Starting log writer..\");\n logWriter.start();\n this.periodicReportingService = new PeriodicReportingService();\n this.periodicReportingService.start();\n this.orderShutdown = new AtomicBoolean(false);\n Thread shutdownThread = new Thread(new ShutdownTask());\n log.info(\"Starting shutdown threads..\");\n shutdownThread.start();\n\n }", "public Server(){\n this.tasks = new LinkedBlockingQueue<Task>();\n this.waitingPeriod = new AtomicInteger();\n }", "public userThread(Socket userSocket, userThread[] threads) {\n\t\tthis.userSocket = userSocket;\n\t\tthis.threads = threads;\n\t\tthis.friends = new ArrayList<userThread>();\n\t\tthis.groups = new ArrayList<String>();\n\t\tthis.myGroups = new ArrayList<String>();\n\t\tmaxUsersCount = threads.length;\n\t\tmaxGroupsCount = 5;\n\t}", "public ThreadControl(Socket actionSocket, String ServerThreadName, SharedState numOfSpaces) {\r\n\t\r\n\t super(ServerThreadName);\r\n\t this.actionSocket = actionSocket;\r\n\t mySharedStateObject = numOfSpaces;\r\n\t myServerThreadName = ServerThreadName;\r\n\t \r\n\t}", "public void initialize() {\n\n\t\t// Initialize taskList\n\t\tthis.taskList = new LinkedList<Task>();\n\n\t\t// create a new thread for total size of pool\n\t\tfor (int i = 0; i < this.poolSize; ++i) {\n\t\t\tthreadPool.add(new WorkerThread(this));\n\t\t}\n\n\t\t// Start each thread in thread pool\n\t\tfor (WorkerThread t : threadPool) {\n\t\t\tnew Thread(t).start();\n\t\t}\n\n\t}", "protected void startAll() throws Throwable {\n\t\tthis.udpServer = new UDPServer(this.agent);\n\t\tthis.connectionServer = new TCPServer(this.agent);\n\t}", "@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tReflections reflections = new Reflections(\"net.yourhome.server\");\r\n\t\t\t\tSet<Class<? extends IController>> controllerClasses = reflections.getSubTypesOf(IController.class);\r\n\r\n\t\t\t\tfor (final Class<? extends IController> controllerClass : controllerClasses) {\r\n\t\t\t\t\tif (!Modifier.isAbstract(controllerClass.getModifiers())) {\r\n\t\t\t\t\t\tnew Thread() {\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\tMethod factoryMethod;\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tfactoryMethod = controllerClass.getDeclaredMethod(\"getInstance\");\r\n\t\t\t\t\t\t\t\t\tIController controllerObject = (IController) factoryMethod.invoke(null, null);\r\n\t\t\t\t\t\t\t\t\tServer.this.controllers.put(controllerObject.getIdentifier(), controllerObject);\r\n\t\t\t\t\t\t\t\t\tSettingsManager.readSettings(controllerObject);\r\n\t\t\t\t\t\t\t\t\tcontrollerObject.init();\r\n\t\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\tServer.log.error(\"Could not instantiate \" + controllerClass.getName() + \" because getInstance is missing\", e);\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}.start();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "public static void main(String[] args){ new ThreadPoolBlockingServer().processRequests(); }", "public Server(List<WhiteboardServerInfo> whiteBoards) {\n\t\tthis.whiteBoards = whiteBoards;\n\t}", "private void init(int threadCount, Type type) {\r\n //The backend starts to polling threads.\r\n mPoolThread=new Thread(){\r\n @Override\r\n public void run() {\r\n Looper.prepare();\r\n mPoolThreadHandler=new Handler(){\r\n @Override\r\n public void handleMessage(Message msg) {\r\n //take a thread from the thread pool and execute it.\r\n mThreadPool.execute(getTask());\r\n try {\r\n mSemaphoreThreadPool.acquire();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n };\r\n //if this thread is finished, release a signal to the handler.\r\n mSemaphorePoolThreadHandler.release();\r\n Looper.loop();\r\n }\r\n };\r\n mPoolThread.start();\r\n //Get the maximum available memory for our service.\r\n int maxMemory= (int) Runtime.getRuntime().maxMemory();\r\n int cacheMemory = maxMemory / 8;//8\r\n mLruCache=new LruCache<String, Bitmap>(cacheMemory){\r\n @Override\r\n protected int sizeOf(String key, Bitmap value) {\r\n return value.getRowBytes()*value.getHeight();\r\n }\r\n };\r\n mThreadPool= Executors.newFixedThreadPool(threadCount);\r\n mTaskQueue=new LinkedList<>();\r\n mType=type==null? Type.LIFO:type;\r\n mSemaphoreThreadPool=new Semaphore(threadCount);\r\n\r\n }", "public void setServer(Server server) {\n this.server = server;\n }", "public abstract List<? extends AbstractSctlThreadEntry> getThreads();", "@Override\n public void run() {\n //start the threads\n t1.start();\n t2.start();\n\n LOGGER.log(Level.FINE, \"Starting Server...\");\n\n //wait for the threads to exit.\n try {\n t1.join();\n t2.join();\n } catch (InterruptedException ex) {\n }\n\n //halt (clean up resources).\n halt();\n }", "public void run() {\n\t\t// TODO Auto-generated method stub\n\t\twhile(true){\n\t\t\t\n\t\t\tif (DEBUG){\n\t\t\t\tSystem.out.println(\"Server_thread\");\n\t\t\t}\n\t\t\t\n\t\t\ttry{\t\n\t\t\t\trun_list.add(new ClientHandler(serversocket.accept()));\n\t\t\t\tnew Thread (run_list.get(run_list.size()-1)).start();;\n\t\t\t\n\t\t\t\n\t\t}\t\n\t\tcatch (IOException ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\ttry{\n\t\t\tThread.sleep(10);\n\t\t}\n\t\tcatch (InterruptedException ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t}\n\t}", "public Server(int port, mainViewController viewController, LogViewController consoleViewController){\n isRunningOnCLI = false;\n this.viewController = viewController;\n this.port = port;\n this.consoleViewController = consoleViewController;\n viewController.serverStarting();\n log = new LoggingSystem(this.getClass().getCanonicalName(),consoleViewController);\n log.infoMessage(\"New server instance.\");\n try{\n this.serverSocket = new ServerSocket(port);\n //this.http = new PersonServlet();\n log.infoMessage(\"main.Server successfully initialised.\");\n clients = Collections.synchronizedList(new ArrayList<>());\n ServerOn = true;\n log.infoMessage(\"Connecting to datastore...\");\n //mainStore = new DataStore();\n jettyServer = new org.eclipse.jetty.server.Server(8080);\n jettyContextHandler = new ServletContextHandler(jettyServer, \"/\");\n jettyContextHandler.addServlet(servlets.PersonServlet.class, \"/person/*\");\n jettyContextHandler.addServlet(servlets.LoginServlet.class, \"/login/*\");\n jettyContextHandler.addServlet(servlets.HomeServlet.class, \"/home/*\");\n jettyContextHandler.addServlet(servlets.DashboardServlet.class, \"/dashboard/*\");\n jettyContextHandler.addServlet(servlets.UserServlet.class, \"/user/*\");\n jettyContextHandler.addServlet(servlets.JobServlet.class, \"/job/*\");\n jettyContextHandler.addServlet(servlets.AssetServlet.class, \"/assets/*\");\n jettyContextHandler.addServlet(servlets.UtilityServlet.class, \"/utilities/*\");\n jettyContextHandler.addServlet(servlets.EventServlet.class, \"/events/*\");\n //this.run();\n } catch (IOException e) {\n viewController.showAlert(\"Error initialising server\", e.getMessage());\n viewController.serverStopped();\n log.errorMessage(e.getMessage());\n }\n }", "public void initMultiPlayer() {\r\n\t\tnew ConnectThread().start();\r\n\t}", "public void setDestroyThread() {\n \tSystem.out.println(\"Kill the threads\");\n \t\n \tfor (int i = 0; i < listAnimals.size(); i++) \n\t\t{\n\t\t\tlistAnimals.get(i).setDirty(false);\n\t\t\tlistAnimals.get(i).killAmimalThread();\n\t\t\trepaint();\n\t\t}\n \t\n \ttry \n\t\t{\n\t\t\tThread.sleep((long)100);\n\t\t} catch (InterruptedException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n \t\n \tisAlive = false;\n \ttry \n\t\t{\n\t\t\tThread.sleep((long)150);\n\t\t} catch (InterruptedException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n \tlistAnimals.clear();\n }", "public void joinAll() {\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif (this.get(i).getClient() != null) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.get(i).join();\n\t\t\t\t\tSystem.out.println(\"Thread \" + i + \" wurde beendet!\");\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tthis.get(i).interrupt();\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setThreadClass(Class threadClass, int totalPoolSize) throws IllegalClassException, IllegalAccessException, InstantiationException{\n\n\tthis.setPoolLocked(true);\n\tthis.initializePools(threadClass, totalPoolSize);\n\tthis.setPoolLocked(false);\n\n }", "public void setServer(int server) {\n this.server = server;\n }", "public abstract void setThreadNumber(int threadIdx);", "public static Server [] getServers(){\r\n Enumeration serversEnum = servers.elements();\r\n Server [] arr = new Server[servers.size()];\r\n for (int i = 0; i < arr.length; i++)\r\n arr[i] = (Server)serversEnum.nextElement();\r\n\r\n return arr;\r\n }", "ListenerThreads(Process chimera, Chimera chimeraObject, CyLogger logger) {\n\t\tthis.chimera = chimera;\n\t\tthis.chimeraObject = chimeraObject;\n\t\tthis.logger = logger;\n\t\treplyLog = new HashMap<String, List<String>>();\n \t \t// Get a line-oriented reader\n \treadChan = chimera.getInputStream();\n\t\tlineReader = new BufferedReader(new InputStreamReader(readChan));\n\t}", "public void setServer(Server server) {\n this.server = server;\n server.setScreen(this);\n }", "void setChildren(MergeHandler[] children);", "protected void initJvmThreading(MBeanServer paramMBeanServer) throws Exception {\n/* 423 */ String str = getGroupOid(\"JvmThreading\", \"1.3.6.1.4.1.42.2.145.3.163.1.1.3\");\n/* 424 */ ObjectName objectName = null;\n/* 425 */ if (paramMBeanServer != null) {\n/* 426 */ objectName = getGroupObjectName(\"JvmThreading\", str, this.mibName + \":name=sun.management.snmp.jvmmib.JvmThreading\");\n/* */ }\n/* 428 */ JvmThreadingMeta jvmThreadingMeta = createJvmThreadingMetaNode(\"JvmThreading\", str, objectName, paramMBeanServer);\n/* 429 */ if (jvmThreadingMeta != null) {\n/* 430 */ jvmThreadingMeta.registerTableNodes(this, paramMBeanServer);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 436 */ JvmThreadingMBean jvmThreadingMBean = (JvmThreadingMBean)createJvmThreadingMBean(\"JvmThreading\", str, objectName, paramMBeanServer);\n/* 437 */ jvmThreadingMeta.setInstance(jvmThreadingMBean);\n/* 438 */ registerGroupNode(\"JvmThreading\", str, objectName, jvmThreadingMeta, jvmThreadingMBean, paramMBeanServer);\n/* */ } \n/* */ }", "@Override\n public void startAgents(IOfflineMessageServer messageServer) {\n \n for (IAgentConfig agentConfig : this.agentConfigs) {\n OfflineAgentRunnable agentRunnable = new OfflineAgentRunnable(\n agentConfig.getAgentClass(), agentConfig.getAgentName(), messageServer);\n \n this.agentRunnables.add(agentRunnable); \n }\n \n for (OfflineAgentRunnable agentRunnable : this.agentRunnables) {\n agentRunnable.run(); \n }\n }", "private void setEventThread() {\n setEventThread(Thread.currentThread());\n }", "public void setSelectorThread(SelectorThread selectorThread){\n this.selectorThread = selectorThread;\n }", "public static void main(String[] args) {\n\t\tprocess Processes[] = new process[6];\r\n\t\tfor (int i = 0; i < 6; i++)\r\n\t\t{\r\n\t\t\tProcesses[i] = new process(i, r1, r2); //creates new thread\r\n\t\t\tProcesses[i].start(); //executes the thread\r\n\t\t\tSystem.out.println(\"===== Thread for process_\" + i + \" created\");\r\n\r\n\t\t}\r\n\t}", "private void sendCTToAll(ControlToken ct) {\r\n for(ClientHandler ch: clientThreads){\r\n try{\r\n //Get the client's ObjectOutputStream\r\n ObjectOutputStream oos = ch.getOOS();\r\n //Write the ControlToken to the client\r\n oos.writeObject(new DataWrapper(DataWrapper.CTCODE, ct));\r\n } catch(IOException ioe) {\r\n System.out.println(\"IOException occurred: \" + ioe.getMessage());\r\n ioe.printStackTrace();\r\n }\r\n }\r\n }", "public IMThread(String threadName, Integer urlid, ArrayList<String> keys){\n this.name = threadName;\n this.selectedUrlId = urlid;\n this.keyArrayList = keys;\n /*t = new Thread(this,name);\n t.start();*/\n}" ]
[ "0.6264929", "0.6189126", "0.592824", "0.5880434", "0.5818563", "0.5805441", "0.56502306", "0.5586225", "0.55836385", "0.5576299", "0.5569041", "0.5504575", "0.5451068", "0.5449122", "0.543981", "0.5430214", "0.542634", "0.54156876", "0.53792524", "0.53779733", "0.5363673", "0.5348796", "0.53404105", "0.5333166", "0.53114504", "0.5304167", "0.5292275", "0.5292254", "0.5265464", "0.5253017", "0.52447194", "0.52432364", "0.5219325", "0.5211335", "0.5200115", "0.51728344", "0.51576954", "0.5151784", "0.5147255", "0.51444745", "0.51441157", "0.5144108", "0.5133379", "0.5132875", "0.5130134", "0.511979", "0.51015055", "0.5090689", "0.5075648", "0.50681543", "0.50680804", "0.5063428", "0.5063417", "0.5022748", "0.5017238", "0.501077", "0.5008511", "0.50002426", "0.49983442", "0.49662423", "0.49614072", "0.49565884", "0.49538875", "0.49456152", "0.49369815", "0.49332315", "0.49320138", "0.4930434", "0.4929609", "0.49243227", "0.49084845", "0.48837578", "0.48782316", "0.48780227", "0.486819", "0.48647618", "0.4860366", "0.4857867", "0.48537025", "0.48384365", "0.48336637", "0.48317322", "0.48236474", "0.48186117", "0.4811197", "0.48092166", "0.48018658", "0.479277", "0.47887826", "0.47887588", "0.47874767", "0.47848666", "0.47838512", "0.4783463", "0.47809884", "0.47802505", "0.47792214", "0.47748294", "0.47713104", "0.47706038" ]
0.66787064
0
Adds a ServerThread to the ConnectionArray and removes null
public synchronized void add(ServerThread st){ connectionArray.removeAll(Collections.singleton(null)); connectionArray.add(st); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addServerToServerArray(Server server){\n serverArray[cntServer] = server;\n cntServer++;\n }", "public synchronized void setConnectionArray(List<ServerThread> connectionArray) {\r\n this.connectionArray = connectionArray;\r\n }", "private void addThread(SSLSocket socket)\n {\n if(pop < clist.length)\n {\n for(ServerThread srv : clist)\n {\n if(srv == null)\n {\n //make a new thread to run data through to new client\n srv = new ServerThread(this, socket);\n \n try\n {\n //start up the thread\n srv.open();\n start();\n \n //set everything up here (increment pop count, keep track of thread)\n clist[pop] = srv;\n pop++;\n break;\n }\n catch(IOException e)\n {\n System.out.println(\"Cannot open new thread\");\n }\n \n \n }\n \n }\n System.out.println(\"New Connection: \" + socket);\n\n }\n else\n {\n System.out.println(\"Sorry, server full at \" + pop);\n }\n }", "public void addThread(ServerBase pServerBase)\n {\n mThreadList.add(pServerBase);\n }", "public synchronized List<ServerThread> getConnectionArray() {\r\n return connectionArray;\r\n }", "public ServerThread(MyServer server) {\n\t\tthis.server = server;\n\t}", "public abstract AbstractSctlThreadEntry addThread();", "public void addServerChannel(ServerSocketChannel serverChannel) {\n addServerChannel(serverChannel, null);\n }", "public void startThread() {\n\t\tif (this.serverConnectorUsed <= Byte.MAX_VALUE) {\n\t\t\tthis.serverConnectorUsed++;\n\t\t\tLOG.info(\"Running new thread. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}", "void threadAdded(String threadId);", "public void addServer(String nameServer) { \n Server server = new Server(nameServer);\n serversList.add(server);\n }", "@EventHandler\n public void onServerConnected(ServerConnectedEvent event) {\n if (event.getServer().getInfo().getName().equals(Config.queue)) {\n if (!playersQueue.contains(event.getPlayer())) {\n // Add Player to queue\n try {\n mutex.acquire();\n playersQueue.add(event.getPlayer());\n Main.log(\"onServerConnected\", \"§3§b\" + event.getPlayer().toString() + \"§3 was added to §b\" + Config.queue + \"§3. Queue count is \" + playersQueue.size() + \".\");\n } catch (InterruptedException e1) {\n e1.printStackTrace();\n } finally {\n mutex.release();\n }\n }\n }\n }", "private void setUpServerThread() {\n\t\ttry {\n\t\t\tthis.incomingMsgNodes = new TCPServerThread(0, this);\n\t\t\tThread thread = new Thread(incomingMsgNodes);\n\t\t\tthread.start();\n\t\t\tthis.myServerThreadPortNum = incomingMsgNodes.getPort();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble creating Server Socket\");\n\t\t}\n\t}", "public ServerPlayers() {\n sockets = new ArrayList<Socket>();\n }", "public synchronized void addBlockingThread(RubyThread thread) {\n if (blockingThreads == null) {\n blockingThreads = new ArrayList<RubyThread>(1);\n }\n blockingThreads.add(thread);\n }", "private void refreshServerList() {\n\t\tcurrentRequestId++;\n\t\tserverNames.clear();\n\t\tserverTable.clear();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\taddresses = client.discoverHosts(WifiHelper.UDP_PORT, 1000);\n\t\t\t\tint removed = 0;\n\t\t\t\tfor(int i = 0; i + removed < addresses.size(); i++) {\n\t\t\t\t\tsynchronized(client) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tclient.connect(1000, addresses.get(i - removed), WifiHelper.TCP_PORT, WifiHelper.UDP_PORT);\n\t\t\t\t\t\t\tclient.sendTCP(new NameRequest(currentRequestId, addresses.size()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tclient.wait(5000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\taddresses.remove(i);\n\t\t\t\t\t\t\tremoved++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\t}", "private static void initializeServerThreadSocketMapping()\n\t{\n\t\tthreadSocketMap = new HashMap<Thread, InterruptibleRMIServerSideSocket>();\n\t\tsocketThreadMap = new HashMap<InterruptibleRMIServerSideSocket, Thread>();\n\t}", "public void add(ConnectionListener connectionListener) throws ServerException;", "void addThreadFilter(ThreadReference thread);", "public QueueProcessor(Server srv) {\n server=srv;\n\n mHandlers=new HashMap();\n hDefault=null;\n\n queue=server.getPacketQueue();\n }", "private static void setupServerContext(){\n\n serverContext.set(new ServerContext());\n serverContext.get().bgThreadIds = new int[GlobalContext.getNumTotalBgThreads()];\n serverContext.get().numShutdownBgs = 0;\n serverContext.get().serverObj = new Server();\n\n }", "public void addThread(Thread t) {\n\t\tt.setPriority(1);\n\t\tqueue.addLast(t);\n\n\t}", "public ServerThread(Socket socket, String UserName){\n this.socket = socket;\n this.UserName = UserName;\n ChatMessage = new LinkedList<String>();\n }", "private void initConnection(Socket cli) {\t\n\tConnection conn = new Connection(this, cli);\n conn.setConnlist(connlist);\n\tThread t = new Thread(conn);\n\tt.start();\n\t\n\tconnlist.add(conn);\n\t\t\n\tsetConnectedStatus(true);\n }", "public void freeThread() {\n\t\tif (this.serverConnectorUsed > 0) {\n\t\t\tthis.serverConnectorUsed--;\n\t\t\tLOG.info(\"Freeing thread in pool. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}", "@Override\n\tpublic void removeServer(String arg0) {\n\n\t}", "public TCPServer(int serverPort, int maxThreads) {\n this.serverPort = serverPort;\n this.clientThreadsSem = new Semaphore(maxThreads);\n clients = new ArrayList<>();\n nicknamesToClients = new HashMap<>();\n this.listener = new Thread(this);\n }", "public Server()\n {\n clientSessions = new ArrayList();\n }", "public FastAgiConnectionMonitor(FastAgiServerSocket server, int threads) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(AppLocale.getI18n(\"messageStartingConnectionMonitor\"));\n }\n \n this.server = server;\n manager = new FastAgiConnectionManager();\n \n int corePoolSize = threads;\n int maxPoolSize = threads;\n // TODO: This should be a parameter\n long keepAliveTime = 0L;\n \n BlockingQueue<Runnable> threadPool = new LinkedBlockingQueue <Runnable>();\n \n threadPoolExecutor = new ThreadPoolExecutor(corePoolSize, maxPoolSize,\n keepAliveTime, TimeUnit.MILLISECONDS,\n threadPool);\n \n //threadPoolExecutor.prestartAllCoreThreads();\n if (LOG.isDebugEnabled()) {\n LOG.debug(AppLocale.getI18n(\"messageDone\"));\n }\n }", "public Server(){\n this.tasks = new LinkedBlockingQueue<Task>();\n this.waitingPeriod = new AtomicInteger();\n }", "public void runServer(){\n\t\tServer.pool = Executors.newFixedThreadPool(Server.user_limit );\n\t\t\n\t\ttry {\n\t server = new ServerSocket(Server.port, Server.user_limit); \n\t logger.logdate(\"Servidor habilitado: Esperando conexiones...\");\n\t \n\t while (Server.active) {\n\t \ttry {\n\t \tSocket serversocket = server.accept();\n\t \tServerThread connection = new ServerThread(serversocket);\n\t \tpool.execute(connection);\n\t \tServer.clients.addLast(connection);\n\t \tString hostname = connection.getConnection().getInetAddress().getHostName();\n\t \tlogger.logdate(hostname+\" entro al servidor\");\n\t \t} catch ( EOFException eofException ) {\n\t \t\tlogger.logdate( \"Error al aceptar la conexión\" );\n\t } catch(SocketException e){\n\t \n\t } \n\t \n\t }\n\t \n\t } catch ( IOException ioException ) {\n\t \tioException.printStackTrace();\n\t } \n\t \n\t}", "private void startServer(){\n clients = new ArrayList<ClientThread>();\n ServerSocket ClientSocket = null;\n try {\n ClientSocket = new ServerSocket(ClientPort);\n ClientSocketConnection(ClientSocket);\n } catch (IOException e){\n e.printStackTrace();\n System.exit(1);\n }\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\t\t\twelcomeSocket= new ServerSocket(50501);\n\t\t\t \twhile (true){\n\t\t\t\t \tSystem.out.println(\"Waiting for a client....\");\n\t\t\t\t\tSocket clientConnect = welcomeSocket.accept(); // connect client to socket\n\t\t\t\t\tSystem.out.println(\"A connection has been made.\");\n\t\t\t\t\tfor (int i=0;i<iter;i++){\n\t\t\t\t\t\tString [][] myFileListtemp=arr[i].GetFileList();\n\t\t\t\t\t\tint tempit=myFileListtemp[0].length-myFileList[0].length;\n\t\t\t\t\t\titerator=iterator+tempit;\n\t\t\t\t\t\tif (tempit!=0){\n\t\t\t\t\t\t\tfor (int i1=myFileList[0].length;i1<myFileListtemp[0].length;i1++){\n\t\t\t\t\t\t\t\tif (iterator >= myFileList[0].length) {\n\t\t\t\t\t\t\t\t\tupdateArray();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmyFileList[0][i]=myFileListtemp[0][i];\n\t\t\t\t\t\t\t\tmyFileList[1][i]=myFileListtemp[1][i];\n\t\t\t\t\t\t\t\tmyFileList[2][i]=myFileListtemp[2][i];\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\tclientIp=clientConnect.getInetAddress().getHostAddress();\t\t\t\t\n\t\t\t\t\tBufferedReader inBuf = new BufferedReader(new InputStreamReader(clientConnect.getInputStream()));\n\t\t\t\t\tPrintWriter outBuf= new PrintWriter(new OutputStreamWriter(clientConnect.getOutputStream()),true);\n\t\t\t\t\tString clientport=inBuf.readLine();\n\t\t\t\t\tString name=inBuf.readLine();\n\t\t\t\t\twhile (!(name.equals(\"-\"))){\n\t\t\t\t\t\tmyFileList[0][iterator]=name;\n\t\t\t\t\t\tmyFileList[1][iterator]=clientIp;\n\t\t\t\t\t\tmyFileList[2][iterator]=clientport;\n\t\t\t\t\t\tname=inBuf.readLine();\n\t\t\t\t\t\titerator++;\n\t\t\t\t\t\tif (iterator >= myFileList[0].length) {\n\t\t\t\t\t\t\tupdateArray();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tarr[iter]=new ServerBThread(clientConnect,clientport);\n\t\t\t\t\tfor (int i=0;i<=iter;i++){\n\t\t\t\t\t\tarr[i].PutFileList(myFileList);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"File List Updated\");\n\t\t\t\t\tThread T = new Thread(arr[iter]);\n\t\t\t\t\tT.start();\n\t\t\t\t\titer++;\n\t\t\t\t\tif (iter >= arr.length) {\n\t\t\t\t\t\tupdateArrayth();\n\t\t\t\t\t}\n\t\t\t\t} \t\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t}", "public TCPSocketServer(){\n this.port=DEFAULT_SERVER_PORT;\n socketList = Collections.synchronizedList(new ArrayList<>());// Maintain a list of socket list. This uses synchronized list since\n // the terminate does not\n this.logWriter = new LogWriter(fileWriterQueue);\n log.info(\"Starting log writer..\");\n logWriter.start();\n this.periodicReportingService = new PeriodicReportingService();\n this.periodicReportingService.start();\n this.orderShutdown = new AtomicBoolean(false);\n Thread shutdownThread = new Thread(new ShutdownTask());\n log.info(\"Starting shutdown threads..\");\n shutdownThread.start();\n\n }", "private RRCPConnectionListener() {\n mainThread = new Thread(this);\n }", "public void setThread(Thread t);", "public void addNetworkCopy(String serverId){\n synchronized (networkCopiesLock){\n this.networkCopies.add(serverId);\n }\n }", "private void addClient () {\n ArrayList<String> info = loadOnePlayerInfo();\n Ntotal++;\n Nnow++;\n\n System.out.println(\"Vai ser inicializado o utilizador \" + info.get(0));\n initThread(info.get(0), info.get(1));\n }", "private void ClientSocketConnection(ServerSocket serverSocket){\n while(true){\n try{\n Socket socket = serverSocket.accept();\n ClientThread client = new ClientThread(this, socket);\n Thread thread = new Thread(client);\n thread.start();\n clients.add(client);\n } \n catch (IOException e){\n e.printStackTrace();\n }\n }\n }", "public MemServerListener(ServerSocket serverSocket, ThreadPool pool)\n\t{\n//\t\tsuper(serverSocket, MemConfig.MEMORY_LISTENER_THREAD_POOL_SIZE, MemConfig.MEMORY_LISTENER_THREAD_ALIVE_TIME);\n\t\tsuper(serverSocket, pool);\n\t}", "public ArrayList<ServerBean> queryServerBean(String tableServer){\n\t\t\n\t\tArrayList<ServerBean> serverBeans = new ArrayList<ServerBean>();\n\t\t\n\t\t//if no such table return null\n\t\tif(!isTableExist(tableServer)){\n\t\t\tSystem.out.println(\"table doesn't exist..\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t//Cursor cursor = db.query(distinct, table, columns, selection, selectionArgs, groupBy, having, orderBy, limit, cancellationSignal);\n\t\t//Cursor cursor = db.query(table, columns, selection, selectionArgs, groupBy, having, orderBy, limit);\n\t\t//Cursor cursor = db.query(table, columns, selection, selectionArgs, groupBy, having, orderBy);\n\t\tCursor cursor = dbReadable.query(LicLiteData.TABLE_SERVERS, \n\t\t\t\tnew String[]{LicLiteData.SERVER_NAME,LicLiteData.SERVER_CMD, LicLiteData.SERVER_PORT, \n\t\t\t\tLicLiteData.SERVER_LOC, LicLiteData.SERVER_TIME_ZONE, LicLiteData.SERVER_TIME_OUT, \n\t\t\t\tLicLiteData.SERVER_RETRY_TIMES, LicLiteData.TIME_STAMP}, null, null, null, null, LicLiteData.TIME_STAMP);\n\t\twhile(cursor.moveToNext()){\n\t\t\tString serverName = cursor.getString(cursor.getColumnIndex(LicLiteData.SERVER_NAME));\n\t\t\tString serverCmd = cursor.getString(cursor.getColumnIndex(LicLiteData.SERVER_CMD));\n\t\t\tString serverPort = cursor.getString(cursor.getColumnIndex(LicLiteData.SERVER_PORT));\n\t\t\tString serverLoc = cursor.getString(cursor.getColumnIndex(LicLiteData.SERVER_LOC));\n\t\t\tString serverTimeZone = cursor.getString(cursor.getColumnIndex(LicLiteData.SERVER_TIME_ZONE));\n\t\t\tString timeOut = cursor.getString(cursor.getColumnIndex(LicLiteData.SERVER_TIME_OUT));\n\t\t\tString retryTimes = cursor.getString(cursor.getColumnIndex(LicLiteData.SERVER_RETRY_TIMES));\n\t\t\tString timeStamp = cursor.getString(cursor.getColumnIndex(LicLiteData.TIME_STAMP));\n\n\t\t\tServerBean serverBean = new ServerBean(serverName, serverCmd,\n\t\t\t\t\tserverPort, serverLoc, serverTimeZone, timeOut, retryTimes, timeStamp);\n\t\t\t\n\t\t\tserverBeans.add(serverBean);\n\t\t\t\n\t\t}\n\t\treturn serverBeans;\n\t}", "NetThread(){}", "public ServerTask(Socket sk)\r\n {\r\n this.sk=sk;\r\n }", "private void initialyzeServer(int port) {\n\n try {\n server = new ServerSocket(port);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n while (true) {\n try {\n\n Client c = new Client(server.accept(), \"client \" + clientIterator, this);\n\n sockets.add(c);\n ex.submit(c);\n\n System.out.println(race);\n\n race.getBroker().registerClient(c);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n clientIterator++;\n\n System.out.println(\"Client\" + clientIterator + \" has connected the server\");\n }\n }", "public static void addThread(Thread athread){\n Threads.add(athread);\n }", "public EchoServerMultiThreaded(){\n\t\tclients = new LinkedList<>();\n\t\thistory = new ArrayList<>();\n\n\t\t//History Log\n\t\tBufferedReader logIn = null;\n\t\tFile historyLog = new File(\"Code-Socket/lib/historyLog.txt\");\n\t\ttry {\n\t\t\tif(historyLog.createNewFile()){\n\t\t\t\tSystem.out.println(\"History log file not found, creation...\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"History log file found, loading...\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"An error occured with the history log file\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry{\n\t\t\tlogIn = new BufferedReader(new FileReader(historyLog));\n\t\t\tString line = logIn.readLine();\n\t\t\tlockHistory.writeLock().lock();\n\t\t\twhile(line!=null){\n\t\t\t\thistory.add(line);\n\t\t\t\tline=logIn.readLine();\n\t\t\t}\n\t\t\tlockHistory.writeLock().unlock();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"An error occured with the history log reader\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tlogIn.close();\n\t\t\t\tlogOut = new BufferedWriter(new FileWriter(historyLog,true));\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public ClientThread(Socket clientSocket, CopyOnWriteArrayList<ClientThread> threads, Server frame) {\r\n this.clientSocket = clientSocket;\r\n this.threads = threads;\r\n this.frame = frame;\r\n }", "public static void addedThread(ThreadXML threadXML) {\n }", "private static void handleServer(){\n // Main program. It should handle all connections.\n try{\n while(true){\n Socket clientSocket= serverSocket.accept();\n ServerThread thread = new ServerThread(clientSocket, connectedUsers, groups);\n thread.start();\n }\n }catch (IOException e) {\n e.printStackTrace();\n }\n }", "public ServerThread(Socket client, String name, GomokuBoard board) {\r\n\t\tthis.client = client;\r\n\t\tthis.name = name;\r\n\t\tthis.board = board;\r\n\t\tthis.messages = new LinkedList<>();\r\n\t}", "public void addServerConnection(int playerID, ServerConnection serverConnection) {\n playerConnections.put(playerID, serverConnection);\n }", "private void clearAddFriendAToServer() {\n if (reqCase_ == 1) {\n reqCase_ = 0;\n req_ = null;\n }\n }", "public synchronized Thread getServerThread(Socket client)\n\t{\n\t\tif (activeConnection < maxConnection)\n\t\t{\n\t\t\t//System.out.println(\" connessione permessa\");\n\t\t\tactiveConnection++;\n\t\t\treturn new Connection(client);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//System.out.println(\" connessione negata\");\n\t\t\treturn new ConnectionError(client);\n\t\t}\n\t}", "public synchronized void putThread(HttpThread thread) {\n \t\tif (Http.DEBUG) {\n \t\t\thttp.logDebug(thread.getName() + \": becoming idle\"); //$NON-NLS-1$\n \t\t}\n\t\t\n \t\tactiveThreads.removeElement(thread);\n\t\t\n \t\tif (hitCount > 0) {\n \t\t\thitCount--;\n \t\t\tthread.close();\n \t\t} else {\n \t\t\tif (!idleThreads.contains(thread)) {\n \t\t\t\tidleThreads.addElement(thread);\n \t\t\t\tnotify();\n \t\t\t}\n \t\t}\n \n \t\tadjustThreadCount();\n \t}", "void addAnnouncedServers(ArrayList<ServerAddress> servers);", "static final void rootGroupAdd(Thread thread)\n {\n if (thread.group == null)\n (thread.group = ThreadGroup.root).addThread(thread);\n }", "@EventHandler\n public void onServerDisconnect(ServerDisconnectEvent event) {\n ProxiedPlayer player = event.getPlayer();\n if (playersQueue.contains(player)) {\n Server playerNewServer = player.getServer();\n\n if (playerNewServer == null || !playerNewServer.getInfo().getName().equals(Config.queue)) {\n // Remove Player from queue\n try {\n mutex.acquire();\n playersQueue.remove(player);\n Main.log(\"onServerDisconnect\", \"§3§b\" + player.toString() + \"§3 was removed from §b\" + Config.queue + \"§3. Queue count is \" + playersQueue.size() + \".\");\n } catch (InterruptedException e1) {\n e1.printStackTrace();\n } finally {\n mutex.release();\n }\n }\n }\n }", "public ClientWorker(ServerSocketChannel serverChannel){\n this.serverChannel = serverChannel;\n }", "public static void initCommunicationServerThread(ProjectType project){\r\n try{\r\n serverSocket = new ServerSocket(Attributes.PROFILING_PORT, 2, InetAddress.getLocalHost());\r\n System.out.println(\"Server - ServerSocket created on port: \" + serverSocket.getLocalPort());\r\n }catch (UnknownHostException uhe){\r\n uhe.printStackTrace();\r\n //TODO - log this stuff properly\r\n }catch (IOException ioe){\r\n ioe.printStackTrace();\r\n //TODO - log this stuff properly\r\n }\r\n new CommunicationServerThread(project);\r\n }", "public ThreadControl(Socket actionSocket, String ServerThreadName, SharedState numOfSpaces) {\r\n\t\r\n\t super(ServerThreadName);\r\n\t this.actionSocket = actionSocket;\r\n\t mySharedStateObject = numOfSpaces;\r\n\t myServerThreadName = ServerThreadName;\r\n\t \r\n\t}", "@Override\n\tpublic void addServer(String arg0) throws IOException {\n\n\t}", "public synchronized void clear() {\n ServerDescEntry tab[] = table;\n for (int index = tab.length; --index >= 0; )\n tab[index] = null;\n count = 0;\n }", "public clientThread(Socket clientSocket, clientThread[] threads) {\n\t this.clientSocket = clientSocket;\n\t this.threads = threads;\n\t maxClients = threads.length;\n\t }", "protected Handler addHandler(Handler h) {\n\t\th.setSocket(null);\n\t\t\n\t\tsynchronized (waitingThreads) {\n\t\t\twaitingThreads.add(h);\n\t\t\twaitingThreads.notify(); // notify getHandler()\n\t\t}\n\t\t\n\t\treturn h;\n\t}", "@Override\n public void addConnection(Connection connection) {\n Connection originConn = this.connectionPoolTable.get(connection.getUniqueKey());\n if(originConn == null){\n this.connectionPoolTable.put(connection.getUniqueKey(),connection);\n connectionNumbers.incrementAndGet();\n }else {\n originConn.increaseRef();\n }\n\n }", "public ClientHandle(Socket cs) {\r\n \t\r\n this.threadSocket = cs;\r\n\r\n }", "private void tryToCreateNewConnByAsyn() {\r\n do {\r\n int curAddSize = needAddConnSize.get();\r\n int updAddSize = curAddSize + 1;\r\n if (connArray.length + updAddSize > poolMaxSize) return;\r\n if (needAddConnSize.compareAndSet(curAddSize, updAddSize)) {\r\n if (createConnThreadState.get() == THREAD_WAITING && createConnThreadState.compareAndSet(THREAD_WAITING, THREAD_WORKING))\r\n unpark(this);\r\n return;\r\n }\r\n } while (true);\r\n }", "public void setServerConnection(ServerConnection toConnection)\n {\n m_oServerConnection = toConnection;\n }", "public ServerOnlyReadsThread(Context c,ServerSocket ss,Socket s,Game g,int p,Handler h,Handler h2)\n {\n super();\n context = c;\n serverSocket = ss;\n client = s;\n test_string = \" arxi \";\n game = g;\n priority = p;\n handler = h;\n debugging = h2;\n n=g.numberOfPlayers;\n //Toast.makeText(context,\" Successfull creation!!! Me prior= \"+priority,Toast.LENGTH_LONG).show();\n }", "public IMThread(String threadName, Integer urlid, ArrayList<String> keys){\n this.name = threadName;\n this.selectedUrlId = urlid;\n this.keyArrayList = keys;\n /*t = new Thread(this,name);\n t.start();*/\n}", "void insertSelective(CTelnetServers record);", "@Override\n\tpublic void addServer(InetSocketAddress arg0) throws IOException {\n\n\t}", "public BasicServerMetricsListener() {\n myServerMetrics = new ConcurrentHashMap<String, BasicServerMetrics>();\n }", "void addEmptyCluster(String line) {\n String prefixRemoved = line.substring(line.indexOf(\"://\") + 3);\n String clusterName = prefixRemoved;\n clusterName = handleClusterNameChar(prefixRemoved, clusterName, \"/\");\n clusterName = handleClusterNameChar(prefixRemoved, clusterName, \";\");\n clusterName = handleClusterNameChar(prefixRemoved, clusterName, \"/\");\n if (clusterName.contains(\"$\")) {\n return;\n }\n addUpstreamServer(clusterName);\n }", "public Server(int port, mainViewController viewController, LogViewController consoleViewController){\n isRunningOnCLI = false;\n this.viewController = viewController;\n this.port = port;\n this.consoleViewController = consoleViewController;\n viewController.serverStarting();\n log = new LoggingSystem(this.getClass().getCanonicalName(),consoleViewController);\n log.infoMessage(\"New server instance.\");\n try{\n this.serverSocket = new ServerSocket(port);\n //this.http = new PersonServlet();\n log.infoMessage(\"main.Server successfully initialised.\");\n clients = Collections.synchronizedList(new ArrayList<>());\n ServerOn = true;\n log.infoMessage(\"Connecting to datastore...\");\n //mainStore = new DataStore();\n jettyServer = new org.eclipse.jetty.server.Server(8080);\n jettyContextHandler = new ServletContextHandler(jettyServer, \"/\");\n jettyContextHandler.addServlet(servlets.PersonServlet.class, \"/person/*\");\n jettyContextHandler.addServlet(servlets.LoginServlet.class, \"/login/*\");\n jettyContextHandler.addServlet(servlets.HomeServlet.class, \"/home/*\");\n jettyContextHandler.addServlet(servlets.DashboardServlet.class, \"/dashboard/*\");\n jettyContextHandler.addServlet(servlets.UserServlet.class, \"/user/*\");\n jettyContextHandler.addServlet(servlets.JobServlet.class, \"/job/*\");\n jettyContextHandler.addServlet(servlets.AssetServlet.class, \"/assets/*\");\n jettyContextHandler.addServlet(servlets.UtilityServlet.class, \"/utilities/*\");\n jettyContextHandler.addServlet(servlets.EventServlet.class, \"/events/*\");\n //this.run();\n } catch (IOException e) {\n viewController.showAlert(\"Error initialising server\", e.getMessage());\n viewController.serverStopped();\n log.errorMessage(e.getMessage());\n }\n }", "@Override\n public void run() {\n while(t1!=null){\n server.run(); \n }\n t1=null;\n }", "private void startFedServer(){\r\n \r\n try {\r\n System.out.println(\"Start server to listen for client connection....\");\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", \"Start server to listen for client connection....\", \"info\");\r\n sSocket = new ServerSocket(serverPort);\r\n sSocket.setReuseAddress(true);\r\n //System.out.println(\"FedServer is launching\");\r\n } catch (IOException ex) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", \"Error listening on port \" + serverPort, \"severe\");\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex), \"severe\");\r\n }\r\n List<Thread> proc_list = new ArrayList();\r\n while (FLAG) {\r\n if (proc_list.size() == PROC_MAX) {\r\n boolean full = true;\r\n //check if thread number reach the maximum number, if yes, sleep; \r\n while (full) {\r\n for (int i = proc_list.size() - 1; i >= 0; i--) {\r\n if (!proc_list.get(i).isAlive()) {\r\n proc_list.remove(i);\r\n full = false;\r\n }\r\n }\r\n if (full) {\r\n try {\r\n Thread.sleep(1000);\r\n } catch (InterruptedException ex) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex), \"severe\");\r\n }\r\n }\r\n }\r\n }\r\n //if not full, accpet new client connection\r\n try {\r\n cSocket = sSocket.accept();\r\n //System.out.println(\"[C4C-Notification] Accept connection from client\");\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", \"Accept connection from client\", \"info\");\r\n //create new thread to process client request\r\n // System.out.println(\"Accept connection from client -step 1\");\r\n Thread request = new Thread(new processRequest(cSocket));\r\n request.start();\r\n proc_list.add(request);\r\n } catch (IOException ex) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex), \"severe\");\r\n }\r\n\r\n }\r\n closeFedSockets();\r\n }", "public void newClientConnection (ServerSocket client) {\n this.connectedClients.add(client);\n }", "public void run() {\n\n // Start threadPool\n for (int i = 0; i < nbThreads; i++) {\n ThreadClient threadClient = new ThreadClient(listSocketDevice, String.valueOf(i), handler);\n arrayThreadClients.add(threadClient);\n threadClient.start();\n }\n\n while (true) {\n try {\n if (v) Log.d(TAG, \"Server is waiting on accept...\");\n ISocket isocket = acceptISocket();\n\n if (v) Log.d(TAG, isocket.getRemoteSocketAddress() + \" accepted\");\n listSocketDevice.addSocketClient(isocket);\n\n // Notify handler\n handler.obtainMessage(Service.CONNECTION_PERFORMED,\n isocket.getRemoteSocketAddress()).sendToTarget();\n\n } catch (SocketException e) {\n handler.obtainMessage(Service.LOG_EXCEPTION, e).sendToTarget();\n break;\n } catch (IOException e) {\n handler.obtainMessage(Service.LOG_EXCEPTION, e).sendToTarget();\n break;\n }\n }\n }", "ServerThread(Server srv, Socket s, IProtocolHandler h) throws IOException {\n server = srv;\n fromClient = new BufferedReader(new InputStreamReader(s.getInputStream()));\n toClient = new PrintWriter(s.getOutputStream(), true);\n client = s;\n handler = h;\n id = UUID.randomUUID().toString();\n }", "public IngestServer[] method_205() {\r\n return new IngestServer[0];\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tserveurConnect.add(client.getNomClient() + \" / \" + client.getClientSocket().getRemoteSocketAddress()\n\t\t\t\t\t\t+ \" déconnecté\");\n\n\t\t\t\tCompte c = new Compte(client.getNomClient(), client.getPassClient());\n\t\t\t\tComptes.remove(c);\n\n\t\t\t\tclients.remove(clientThreads.indexOf(client));\n\t\t\t\tSystem.out.println(\"erreur\" + clientThreads.indexOf(client));\n\t\t\t\tclientThreads.remove(clientThreads.indexOf(client));\n\t\t\t}", "public ChatServer(){\r\n\t\tblnKeepRunning = true;\r\n\t\ttry{\r\n\t\t\tss = new ServerSocket(SERVER_PORT);\t\r\n\t\t\tThread t = new Thread(new Listener(), \"Chat Server Main Thread\"); //Run the service in its own thread\r\n\t\t\tt.start(); //The Hollywood Principle - \"Don't Call Us, We'll Call You.\". Threads are based on the Template Pattern\r\n\t\t}catch(Exception e){\t\t\t\r\n\t\t\te.printStackTrace();\t\r\n\t\t}\r\n\t}", "public void queryServer() {\n final String lastTime = \"2020-11-17 00:00:00\";\n final OkHttpClient client = HttpHelper.getOkHttpClient();\n final RequestBody requestBody = new FormBody.Builder()\n .add(Config.STR_TIME, lastTime)\n .build();\n final Request request = new okhttp3.Request.Builder()\n .post(requestBody)\n .url(Config.URL_TALK_QUERY)\n .build();\n client.newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(@NonNull Call call, @NonNull IOException e) {\n uniApiResult.postValue(new UniApiResult.Fail(Config.ERROR_NET, Arrays.toString(e.getStackTrace())));\n Log.e(\"Contacts\", Config.ERROR_NET);\n }\n @Override\n public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException {\n if( !response.isSuccessful() ) {\n uniApiResult.postValue(new UniApiResult.Fail(Config.ERROR_NET, String.valueOf(response.code())));\n return;\n }\n assert response.body() != null;\n String resJson = response.body().string();\n try {\n JSONObject jsonO = new JSONObject(resJson);\n uniApiResult.postValue(new UniApiResult<>(jsonO.getString(Config.STR_STATUS), \"\"));\n\n JSONArray jsonA = (JSONArray) jsonO.get(Config.STR_STATUS_DATA);\n// List<TMessage> newTMessages = new ArrayList<>();\n for (int i = 0; i < jsonA.length(); ++i) {\n TMessage message = TMessage.jsonToTMessage((JSONObject) jsonA.get(i));\n if (!tMessageDao.isMessageExist(message.getAccount1(), message.getAccount2(),message.getSendTime())) {\n tMessageDao.InsertMessage(message);\n// newTMessages.add(message);\n }\n }\n// TMessageList.postValue(newTMessages);\n ThreadPoolHelper.getInstance().execute(TalkViewModel.this::queryLocalMessageList);\n //new Thread(TalkViewModel.this::queryLocalMessageList).start();\n } catch (JSONException e) {\n e.printStackTrace();\n uniApiResult.postValue(new UniApiResult.Fail(Config.ERROR_UNKNOWN, Arrays.toString(e.getStackTrace())));\n }\n }\n });\n }", "public void setup_servers()\n {\n // get ServerInfo\n ServerInfo t = new ServerInfo();\n // all 3 servers\n for(int i=0;i<3;i++)\n {\n // get the server IP and port info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n public void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl true and rx_hdl false as this is the socket initiator\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,true,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n }\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Server\"+i);\n x.start(); \t\t\t// start the thread\n }\n }", "ClientThread(Server server, Socket socket) {\n // a unique id\n id = ++uniqueId;\n this.socket = socket;\n //Creating both Data Stream\n System.out.println(\"Thread trying to create Object Input/Output Streams\");\n try {\n\n sOutput = new DataOutputStream(socket.getOutputStream());\n sInput = new DataInputStream(socket.getInputStream());\n // read the username\n username = sInput.readUTF();\n\n for(ClientThread clientThread : clientThreads){\n if(username.equals(clientThread.getUsername())){\n username = username +\n uniqueId +\n uniqueId / 2 +\n uniqueId * 3;\n }\n }\n\n\n/*\n for(int i = 0 ; i < clientThreads.size() ; i++){\n if(username.equals(clientThreads.get(i).getUsername())){\n writeMsg(\"choose another username: \");\n username = sInput.readUTF();\n i = 0;\n }\n }\n\n */\n\n\n\n server.broadcast(notification + username + \" has joined the chat room.\" + notification, getClientThreads());\n } catch (IOException e) {\n server.display(\"Exception creating new Input/output Streams: \" + e);\n return;\n }\n date = new Date().toString() + \"\\n\";\n }", "public void add() {\n\t\tthis.inferior.addThread(this);\n\t\tthis.manager.addThread(this);\n\t\tstate.addChangeListener((oldState, newState, pair) -> {\n\t\t\tmanager.event(() -> manager.listenersEvent.fire.threadStateChanged(this, newState,\n\t\t\t\tpair.cause, pair.reason), \"threadState\");\n\t\t});\n\t}", "void onConnectionAdded(SocketConnection connection);", "@Override\n public void process() {\n Simulator.allocateServer(c);\n }", "void threadRemoved(String threadId);", "public synchronized void setThreads(int threads)\n/* */ {\n/* 122 */ if (threads <= 0) {\n/* 123 */ return;\n/* */ }\n/* */ \n/* 126 */ this.threads = threads;\n/* */ \n/* */ \n/* 129 */ if (this.helpers == null) {\n/* 130 */ this.helpers = new NeighborhoodHelper[threads];\n/* 131 */ for (int i = 0; i < threads; i++)\n/* */ {\n/* 133 */ this.helpers[i] = new NeighborhoodHelper(null);\n/* 134 */ this.helpers[i].start();\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 140 */ if (this.helpers.length < threads)\n/* */ {\n/* */ \n/* 143 */ NeighborhoodHelper[] temp = new NeighborhoodHelper[threads];\n/* */ \n/* */ \n/* 146 */ for (int i = 0; i < threads; i++) {\n/* 147 */ temp[i] = (i < this.helpers.length ? this.helpers[i] : new NeighborhoodHelper(null));\n/* */ }\n/* */ \n/* 150 */ this.helpers = temp;\n/* */ \n/* */ \n/* */ \n/* */ }\n/* 155 */ else if (this.helpers.length > threads)\n/* */ {\n/* */ \n/* 158 */ NeighborhoodHelper[] temp = new NeighborhoodHelper[threads];\n/* */ \n/* */ \n/* 161 */ for (int i = 0; i < threads; i++) {\n/* 162 */ if (i < threads) {\n/* 163 */ temp[i] = this.helpers[i];\n/* */ } else {\n/* 165 */ this.helpers[i].dispose();\n/* */ }\n/* */ }\n/* 168 */ this.helpers = temp;\n/* */ }\n/* 170 */ notifyAll();\n/* */ }", "public void remove(){\n\t\tqueueArray[1][0] = null;\n\t\tqueueArray[1][1] = null;\n\t}", "public synchronized void remove(int n)\n {\n int pos = getClient(n);\n if(pos >= 0)\n {\n //find the right thread\n ServerThread quitthread = clist[pos];\n System.out.println(\"Removing client \" + n);\n pop--;\n try\n {\n //kill it\n quitthread.close();\n }\n catch(IOException e)\n {\n System.out.println(\"Error on closing...\");\n }\n //stop();\n clist[pos] = null;\n }\n }", "private static void startServer() {\n new Thread() {\n public void run() {\n Server server = new Server();\n server.startUDP();\n }\n }.start();\n }", "public static void main(String[] args) {\n try {\r\n ServerSocket server=new ServerSocket(port);\r\n System.out.println(\"Waiting for a client...\");\r\n\r\n connections=new ArrayList<>();\r\n ExecutorService es = Executors.newFixedThreadPool(max_clients);\r\n\r\n Connection tmp;\r\n while(true) {\r\n\r\n\r\n Socket socket = server.accept();\r\n if(max_clients<=clients){\r\n OutputStream out = socket.getOutputStream();\r\n BufferedWriter rout= new BufferedWriter(new OutputStreamWriter(out));\r\n rout.write(\"Chat is full(\"+max_clients+\" users). You can't join. Try again later.\");\r\n rout.write(\"\\n\");\r\n rout.flush();\r\n socket.close();\r\n out.close();\r\n continue;\r\n }\r\n\r\n tmp=new Connection(socket);\r\n es.submit(tmp);\r\n clients++;\r\n System.out.println(\"New user has joined. Number of users - \"+clients);\r\n connections.add(tmp);\r\n }\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public synchronized void removeBlockingThread(RubyThread thread) {\n if (blockingThreads == null) {\n return;\n }\n for (int i = 0; i < blockingThreads.size(); i++) {\n if (blockingThreads.get(i) == thread) {\n // not using remove(Object) here to avoid the equals() call\n blockingThreads.remove(i);\n }\n }\n }", "private void addConnection(PooledConnection v){\n // If the pool is null, create a new Vector\n if(pool == null)\n pool = new Vector(size);\n //Add the PooledConnection Object to the vector\n pool.addElement(v);\n }", "public void attach(int port) {\n try {\n if (myServerSocket != null) {\n myServerSocket.close();\n }\n myServerSocket = new ServerSocket(port);\n\n final ServerSocket socket = myServerSocket;\n new Thread(() -> {\n while (!socket.isClosed()) {\n try {\n final Socket clientSocket = socket.accept();\n myThreadPool.execute(new MyConnectionHandler(clientSocket));\n } catch (IOException e) {\n LOG.info(\"socket closed\");\n }\n }\n }).start();\n } catch (IOException e) {\n LOG.error(\"Cannot open server socket on port \" + port, e);\n }\n }", "public RequestThread(Socket soc){\r\n this.soc = soc; \r\n }", "String addReceiveQueue();" ]
[ "0.62562084", "0.60296375", "0.5748301", "0.5605969", "0.5323635", "0.5289792", "0.5238109", "0.5192658", "0.51432633", "0.5066901", "0.50233155", "0.49713764", "0.4930695", "0.48880768", "0.485809", "0.48448306", "0.48381636", "0.4792382", "0.47702187", "0.47440287", "0.46916828", "0.4677291", "0.4652949", "0.4644828", "0.46363717", "0.46309826", "0.46220475", "0.4616852", "0.46160462", "0.46057284", "0.45989177", "0.45890436", "0.45792294", "0.45691672", "0.45471743", "0.454129", "0.45281747", "0.45234767", "0.45112193", "0.45091552", "0.45030367", "0.44817775", "0.4471443", "0.4469429", "0.44580302", "0.44507816", "0.44350865", "0.44344708", "0.44262636", "0.43956253", "0.43707287", "0.4361598", "0.43555468", "0.43388435", "0.43334624", "0.43330705", "0.4332176", "0.43320847", "0.43312794", "0.43277535", "0.43244356", "0.43233627", "0.43219557", "0.43202728", "0.43197703", "0.43133476", "0.43100488", "0.43000233", "0.42976472", "0.42974174", "0.42942864", "0.4288264", "0.42874703", "0.4284155", "0.42812598", "0.42772007", "0.42767906", "0.42760593", "0.42634106", "0.42577544", "0.42570612", "0.42509663", "0.42479193", "0.42464122", "0.4244482", "0.42435125", "0.42400464", "0.4231684", "0.42306492", "0.4229606", "0.42290294", "0.42216262", "0.4221571", "0.42163616", "0.42152828", "0.4213066", "0.421301", "0.42071941", "0.42070645", "0.42068207" ]
0.79962754
0
Nombre de colonnes du tableau
public int getColumnCount() { return columns.length ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNombreColonnesPlateau();", "int nbColonnes();", "@Override\n\tpublic int getColumnCount()\n\t{\n\t\treturn nomColonnes.length;\n\t}", "public int obtenirColonne() {\n return this.colonne;\n }", "@Override\n public String toString() {\n return String.format(\"[%d] [%d]\", dameFila(), dameColumna());\n }", "public void displayColonies() {\r\n\t\tchar[][] temp;\r\n\t\tint count;\r\n\r\n\t\tfor (int row = 0; row < slideData.length; row++) {\r\n \t\t\tfor (int col = 0; col < slideData[0].length; col++) {\r\n \t\t\tif (slideData[row][col] == COLONY) {\r\n \t\t \t\tcount = collectCells(row, col);\r\n \t\t\tSystem.out.println(\"Colony at (\" + row + \",\" + col + \") with size \" + count);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public String toString(){\n\t\tString maChaineRetour=\"\";\n\t\t\n\t\tfor(Cristal[] ligne: tabCristaux){\n\t\t\tfor(Cristal colonne: ligne){\n\t\t\t\tif(colonne == null)\n\t\t\t\t\tmaChaineRetour = maChaineRetour + \"0\" ;\n\t\t\t\telse\n\t\t\t\t\tmaChaineRetour = maChaineRetour + colonne.toString();\n\t\t\t}\n\t\t\tmaChaineRetour = maChaineRetour + \"\\n\";\n\t\t}\n\t\treturn maChaineRetour;\n\t}", "public void mostrarTablero(){\n for(int fila = 0; fila < FILAS; fila++){\n for(int columna : tablero[fila]){\n System.out.printf(\"%2d \", columna);\n }\n System.out.println();\n }\n }", "@Override\n public String toString() {\n int numeritosY = 0;\n int numeritosX = 0;\n StringBuilder datos = new StringBuilder(\" \");\n\n //Imprime los numeros de arriba\n for (int x = 0; x < casillas.length; x++) {\n datos.append(\" \").append(numeritosX);\n numeritosX++;\n }\n datos.append(\"\\n \");\n //Imprime la primera linea que corresponde con la parte superior del tablero.\n for (int x = 0; x < casillas.length; x++) {\n datos.append(\"\\033[33m\"+\"+----\"+\"\\033[0m\");\n }\n datos.append(\"\\033[33m\"+\"+\"+\"\\033[0m\");\n datos.append(\"\\n\");\n //Imprime el resto del tablero.\n for (int y = 0; y < casillas.length; y++) {\n datos.append(numeritosY).append(\"\\033[33m\"+\" | \"+\"\\033[0m\");\n for (int x = 0; x < casillas[y].length; x++) {\n datos.append(casillas[y][x].toString());\n }\n datos.append(\"\\n\");\n datos.append(\" \");\n for (int i = 0; i < casillas[y].length; i++) {\n datos.append(\"\\033[33m\"+\"+----\"+\"\\033[0m\");\n }\n datos.append(\"\\033[33m\"+\"+\"+\"\\033[0m\");\n datos.append(\"\\n\");\n numeritosY++;\n }\n return datos.toString();\n }", "public void Mostrar() {\n \n for (int i=0;i<3;i++) {\n System.out.print(\"Torre \"+i+\": \");\n for (Iterator it = columnas[i].iterator(); it.hasNext();) {\n int n = (int) it.next();\n System.out.print(n+\"[\"+\"]\");\n longitud++;\n }\n System.out.println(\"\");\n \n }\n }", "public String getNomTable();", "public static void tablaPuntos(Mano[] jug){\n StringBuilder toret= new StringBuilder();\n for (int i = 0; i < jug.length; i++) {\n toret.append(jug[i].getNombre());\n toret.append(\": \\n\");\n toret.append(jug[i]);\n toret.append(\"\\nPuntos: \");\n toret.append(jug[i].getPuntuacion());\n toret.append(\"\\n\");\n }\n System.out.println(toret.toString());\n }", "@Override\r\n public String toString() {\r\n StringBuilder cad = new StringBuilder(\"\");\r\n cad.append(\"\\nTabla: {\\n\");\r\n for (int i = 0; i < this.table.length; i++) {\r\n if(this.table[i] == null){\r\n cad.append(\"\\t()\\n\");\r\n }else{\r\n cad.append(\"\\t\").append(this.table[i].toString()).append(\"\\n\");\r\n }\r\n }\r\n cad.append(\"}\");\r\n return cad.toString();\r\n }", "@Override\n public String toString() {\n return \"\\tMunicipio: \" + municipio + \"\\t\" + \"Habitantes: \" + habitantes + \".\";\n }", "public String getNombreTabla() {\r\n\t\treturn nombreTabla;\r\n\t}", "public static void MostrarMatriz(){\n int IFila=0;\n System.out.println(\"Nombre\\t\\tNOta\\t\\tGano/Perdio\");\n for(IFila=0;IFila<10;IFila++)\n {\n System.out.println(StrNotas[IFila][0]+\"\\t\\t\"+StrNotas[IFila][1]+\"\\t\\t\"+StrNotas[IFila][2]);\n }\n }", "@Override\n public String toString()\n {\n return String.format(\"%-20s\\t\\t%-30s%-30s\",number, name, party);\n}", "@Override\n\tpublic String getColumnName(int col)\n\t{\n\t\treturn nomColonnes[col];\n\t}", "public void showNewTableaux() {\n System.out.println(\"Nowa tablica simpleksowa: \");\n DecimalFormat df = new DecimalFormat(\"0.00\");\n for (double[] row : tableaux) {\n for (double element : row) {\n System.out.print(df.format(element) + \"\\t\");\n }\n System.out.println();\n }\n double valueObjectiveFunction = tableaux[numberOfVariables][numberOfConstraints + numberOfVariables];\n System.out.println(\"Wartość funkcji celu = \" + df.format(valueObjectiveFunction));\n for (int i = 0; i < numberOfVariables; i++)\n if (basisVariables[i] < numberOfConstraints)\n System.out.println(\"x\"\n + basisVariables[i]\n + \" = \"\n + df.format(tableaux[numberOfVariables][numberOfConstraints + i]));\n }", "@Override\n public String toString(){\n String juego = \"\";\n for (int[] tablero1 : tablero) {\n for (int casilla : tablero1) {\n juego += String.format(\"%2d \", casilla);\n }\n juego += String.format(\"%n\");\n }\n return juego;\n }", "public void tablero(){\r\n System.out.println(\" X \");\r\n System.out.println(\" 1 2 3\");\r\n System.out.println(\" | |\");\r\n //imprimir primera fila\r\n System.out.println(\" 1 \"+gato[0][0]+\" | \"+gato[0][1]+\" | \"+gato[0][2]+\" \");\r\n System.out.println(\" _____|_____|_____\");\r\n System.out.println(\" | |\");\r\n //imprimir segunda fila\r\n System.out.println(\"Y 2 \"+gato[1][0]+\" | \"+gato[1][1]+\" | \"+gato[1][2]+\" \");\r\n System.out.println(\" _____|_____|_____\");\r\n System.out.println(\" | |\");\r\n //imprimir tercera fila\r\n System.out.println(\" 3 \"+gato[2][0]+\" | \"+gato[2][1]+\" | \"+gato[2][2]+\" \");\r\n System.out.println(\" | |\");\r\n }", "@Override\n public String toString() {\n return \"Ultima Manutencao em: \"+this.ultimaManun+\" km's.\";\n }", "String getTabela();", "public void displayTimesTable() {\n if (table >= TABLE_MIN && table <= TABLE_MAX) {\n System.out.println(table + \" times table:\");\n for (int i=1; i <= TABLE_MAX; ++i) {\n System.out.printf(\"%2d X %2d = %3d\\n\",\n i, table, timesTables[table][i]);\n } // close for\n }\n else\n System.out.println(table + \" is not between \" +\n TABLE_MIN + \" and \" + TABLE_MAX);\n }", "public void displayTimesTable(int table) {\n if (table >= TABLE_MIN && table <= TABLE_MAX) {\n System.out.println(table + \" times table:\");\n for (int i=1; i<=TABLE_MAX; ++i) {\n System.out.printf(\"%2d X %2d = %3d\\n\",\n i, table, timesTables[table][i]);\n } // close for\n } else\n System.out.println(table + \" is not between 1 and 12\");\n }", "public String toString( )\n\t{\n\t\treturn marca + \" \" + modelo + \" - \" + placa + \" \" + horaIngreso + \":00\";\n\t}", "public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }", "public void verTablero(){\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" 1 2 3 4 5 6 \\n\");\n\t\tfor(int i = 0; i < tablero.length; i++){\n\t\t\t\n\t\t\tfor(int j = 0; j < tablero[1].length; j++){\n\t\t\t\t\n\t\t\t\tif(tablero[i][j] == 0){\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.print(\" - \");\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.print(\" \" + tablero[i][j] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public String getNombreFicheroAlumno(){\n\t\treturn \"Ev-Intermedia-Arboles-BST-Apellido1Apellido2Nombre-UOxxxx\";\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(tableName).append(System.lineSeparator());\n\n if (columnsDefinedOrder.size() <= 0) {\n columnsDefinedOrder = rows.stream()\n .findFirst()\n .map(x -> new ArrayList<>(x.keySet()))\n .orElse(columnsDefinedOrder);\n }\n\n Map<String, Integer> widthEachColumn = new HashMap<>();\n for (String columnName : columnsDefinedOrder) {\n widthEachColumn.put(columnName, 0);\n }\n\n for (Map<String, String> row : rows) {\n for (String columnName : columnsDefinedOrder) {\n int length = row.get(columnName).length();\n if (length > widthEachColumn.get(columnName)) {\n widthEachColumn.put(columnName, length);\n }\n }\n }\n\n int tableWidth = 0;\n for (String columnName : columnsDefinedOrder) {\n int width = widthEachColumn.get(columnName) + 5;\n widthEachColumn.put(columnName, width);\n tableWidth += width;\n }\n\n for (String columnName : columnsDefinedOrder) {\n sb.append(String.format(\"%-\" + widthEachColumn.get(columnName) + \"s\", columnName));\n }\n sb.append(System.lineSeparator());\n\n for (int i = 0; i < tableWidth; i++) {\n sb.append(\"-\");\n }\n sb.append(System.lineSeparator());\n\n for (Map<String, String> row : rows) {\n for (String columnName : columnsDefinedOrder) {\n sb.append(String.format(\"%-\" + widthEachColumn.get(columnName) + \"s\", row.get(columnName)));\n }\n sb.append(System.lineSeparator());\n }\n\n return sb.toString();\n }", "public String toString() {\n\t\treturn \"(\" + obtenerFila() + \"/\" + obtenerColumna() + \")\";\n\t}", "int getNombreLignesPlateau();", "public String abbreviatedCellText() {\r\n\t\treturn \" \";//returns 10 spaces because the cell has to be empty\r\n\t}", "@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}", "protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }", "public String getTab() {\r\n if(date.length() < 10)\r\n return \"\\t\\t\";\r\n else\r\n return \"\\t\";\r\n }", "public void ukloniHranu() {\n\t\tthis.tabla[iHrana][jHrana] = '.';\t\t\n\t}", "public String datosAlumno() {\n\t\treturn \"alumno: \" + this.getNombre() + \" \" + this.getApellido() + \" genero: \" + this.getGenero()\n\t\t+ \" condicion: \" + this.getCondicion() + \" notaFinal: \" + this.getNotaFinal();\n\t}", "public String[] headerProspect() throws SQLException, ClassNotFoundException{\n colonnesProspect = (String[]) Prospect_Db_Connect.enteteTableau();\n return colonnesProspect;\n }", "public String getAPELLIDONombreDelAlumno() {\r\n\t\tString nombre = \"SUREDA José\";\r\n\t\treturn nombre;\r\n\t}", "public String creerDureeJtable(String chaine){\r\n\t\tif(chaine.length() == 1){\r\n\t\t\treturn chaine+\"h00\";\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn chaine.substring(0, 1)+\"h\"+chaine.substring(1, chaine.length());\r\n\t\t}\r\n\t\t\r\n\t}", "public String abbreviatedCellText() {\r\n\t\treturn \" \";\r\n\t}", "void displayColumnHeaders() {\n\t\tSystem.out.print(\" \");\n\t\tfor (int j = 0; j < 3; j++)\n\t\t\tSystem.out.print(\"|col \" + j);\n\t\tSystem.out.println();\n\t}", "@Override\n public String toString() {\n return name + \"\\t\\t\\t\" + number;\n }", "public void imprimirTabuleiro() { \n\t\t\n\t\tfor(int i = 0; i < this.linhas; i++) {\n\t\t\tfor(int j = 0; j < this.colunas; j++) { \t\t\t\t\n\t\t\t\tSystem.out.print(this.tabuleiro[i][j] + \"\\t\"); \n\t\t\t}\n\t\t\tSystem.out.println(); \t\t\t\n\t\t}\n\t}", "public String getName() {\n return tableName;\n }", "public static void afficherNombreDAnimaux() {\n\t System.out.println(\"**************************\");\n\t System.out.println(\"Il y a \" + totalNumber + \" animaux\");\n\t}", "public void affichageGrille(){ \r\n for (int i = 0; i<N; i++){ \r\n for (int j = 0; j<N; j++) \r\n System.out.print(tab[i][j] + \" \"); \r\n System.out.println(); \r\n } \r\n System.out.println(); \r\n }", "public void ParcoursSuffixe() {\r\n if (getGauche() != null) {\r\n getGauche().ParcoursSuffixe();\r\n }\r\n if (getDroite() != null) {\r\n getDroite().ParcoursSuffixe();\r\n }\r\n System.out.print(getElement() + \",\");\r\n }", "private void tablesice() {\n //Modificamos los tamaños de las columnas.\n tablastock.getColumnModel().getColumn(0).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(1).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(2).setMinWidth(100);\n tablastock.getColumnModel().getColumn(3).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(4).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(5).setMaxWidth(70);\n }", "public String toString() {\n return String.format(\"(%d/%d)\", fila, columna);\n }", "public void mostrarTablero(){\n\t\tIterator<String> itr = getIteradorMinas();\n\t\tString mina = null;\n\t\tint col;\n\t\tint fila;\n\t\tint conta=1;\n\t\tCasilla casilla;\n\t\tif (lMinas.size()>0){\n\t\t\twhile(itr.hasNext()){\n\t\t\t\tconta++;\n\t\t\t\tmina=itr.next(); \n\t\t\t\tcol=this.separarCoordenadasCol(this.separarCoordenadasString(mina));\n\t\t\t\tfila=this.separarCoordenadasFil(this.separarCoordenadasString(mina));\n\t\t\t\tcasilla=buscarCasilla(fila, col);\n\t\t\t\tif(!casilla.estaDesvelada()&&!casilla.tieneBandera()){\n\t\t\t\t\tcasilla.descubrir();\n\t\t\t\t\tsetChanged();\n\t\t\t\t\tnotifyObservers(fila+\",\"+col+\",\"+10);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcomprobarBanderas();\n\t\t\n\t}", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }", "@Override\r\n\tpublic double calcularNominaEmpleado() {\n\t\treturn sueldoPorHora * horas;\r\n\t}", "static void afficherLigneSep(int taille) {\n System.out.print(\" \");\n for (int i = 0; i < taille - 1; i++) {\n System.out.print(\"---+\");\n }\n System.out.println(\"---\");\n }", "@Override\n public String getGenericLabel() {\n return \"Počet sloupců v každé tabulce\";\n }", "@Test\n void mostraTutti() {\n EAMese[] matrice = EAMese.values();\n assertNotNull(matrice);\n assertEquals(12, matrice.length);\n\n System.out.println();\n String sep = \" - \";\n int k=0;\n for (EAMese mese : matrice) {\n System.out.println(++k+sep+mese.getLungo() + sep + mese.getBreve() + sep + mese.getGiorni());\n }// end of for cycle\n\n }", "public String getTableFormat(){\n String tableToPrint = \"\";\n Enumeration keys = this.clientData.keys();\n while(keys.hasMoreElements()){\n String clientName = (String) keys.nextElement();\n tableToPrint += \"\\t\" + clientName + this.clientData.get(clientName) + '\\n';\n }\n return tableToPrint.substring(0,tableToPrint.length() - 1);\n }", "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Apart N°\"+Nombre;\n\t}", "public String toString() {\n return \"mass||\" + iMass + \"\\t\\tintensity||\" + iIntensity;\n\n }", "public String getTable() {\n StringBuilder table = new StringBuilder();\n\n table.append(\" \");\n for (int i = 0; i < matrix.length; i++) {\n table.append(\" \");\n table.append(i + 1);\n }\n table.append(\"\\n\");\n\n for (int i = 0; i < matrix.length; i++) {\n table.append(i + 1);\n table.append(\" \");\n\n for (int j = 0; j < matrix.length; j++) {\n table.append(matrix[i][j] ? 1 : 0);\n table.append(\" \");\n }\n table.append(\"\\n\");\n }\n table.append(\"\\n\");\n\n return table.toString();\n }", "public static void printTimesTable(int tableSize) {\n System.out.format(\" \");\n for(int i = 1; i<=tableSize;i++ ) {\n System.out.format(\"%4d\",i);\n }\n System.out.println();\n System.out.println(\"--------------------------------------------------------\");\n\n for (int row = 1; row<=tableSize; row++){\n \n System.out.format(\"%4d\",row);\n System.out.print(\" |\");\n \n for (int column = 1; column<=tableSize; column++){\n System.out.format(\"%4d\",column*row);\n }\n System.out.print(\"\\n\");\n }\n\n }", "@Override\n\tpublic String toString() {\n\t\tString cad=tractor.getRow() + \" \" + tractor.getColumn() + \" \" + getK() + \" \" + getMax() + \" \" + getRows() + \n\t\t\t\t\" \" + getColumns() + \"\\n\";\n\t\tfor (int i=0;i<cells.length;i++) {\n\t\t\tfor (int j=0;j<cells[0].length;j++) {\n\t\t\t\tcad+=cells[i][j].getSand()+ \" \";\n\t\t\t}\n\t\t\tcad+=\"\\n\";\n\t\t} \n\t\treturn cad;\n\t}", "public String nombreHabitacionMasPopular(){\n return this.habitacionPopular;\n }", "public int getColspan() \n {\n return 1;\n }", "private static void afftabSymb() { \r\n\t\tSystem.out.println(\" code categorie type info\");\r\n\t\tSystem.out.println(\" |--------------|--------------|-------|----\");\r\n\t\tfor (int i = 1; i <= it; i++) {\r\n\t\t\tif (i == bc) {\r\n\t\t\t\tSystem.out.print(\"bc=\");\r\n\t\t\t\tEcriture.ecrireInt(i, 3);\r\n\t\t\t} else if (i == it) {\r\n\t\t\t\tSystem.out.print(\"it=\");\r\n\t\t\t\tEcriture.ecrireInt(i, 3);\r\n\t\t\t} else\r\n\t\t\t\tEcriture.ecrireInt(i, 6);\r\n\t\t\tif (tabSymb[i] == null)\r\n\t\t\t\tSystem.out.println(\" référence NULL\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\" \" + tabSymb[i]);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public String getName(){\n\t\t\treturn tableName;\n\t\t}", "protected String getTableColumn()\n\t\t{\n\t\t\treturn Column ;\n\t\t}", "@Override\n public String toString(){\n return \" Vuelo \"+this.getTipo()+\" \" +this.getIdentificador() +\"\\t \"+ this.getDestino()+ \"\\t salida prevista en \" + timeToHour(this.getTiemposal())+\" y su combustible es de \"+this.getCombustible()+\" litros.( \"+ String.format(\"%.2f\", this.getCombustible()/this.getTankfuel()*100) + \"%).\"; \n }", "private void logTableColumn(List<Set<Mask>> current) {\n\t\tint i = 1;\n\t\tfor (Set<Mask> set : current) {\n\t\t\tfor (Mask mask : set) {\n\t\t\t\tLOG.log(Level.FINER, mask::toString);\n\t\t\t}\n\t\t\tif (i++ != current.size()) {\n\t\t\t\tLOG.log(Level.FINER, () -> \"-------------------------------\");\n\t\t\t}\n\t\t}\n\t\tLOG.log(Level.FINER, () -> \"\");\n\n\t}", "private ArrayList<Integer> columns() {\r\n ArrayList<Integer> header = new ArrayList<>();\r\n for (int ii = 0; ii < totalBeats; ii += 4) {\r\n header.add(ii);\r\n }\r\n return header;\r\n }", "private void displayColumn(BoardMap map){\n System.out.print(\" \");\n for (int i = 0 ; i < map.getWidth() ; i++){\n if(i < 10){\n System.out.print(i + \" \");\n\n } else {\n System.out.print(i + \" \");\n }\n }\n System.out.println();\n }", "public String getNombreCarta(int fila, int col) {\n\t\treturn tablero[fila][col].getText();\n\t}", "public String print() {\n StringBuilder sb = new StringBuilder();\n sb.append(tableName).append(System.lineSeparator());\n\n if (columnsDefinedOrder.size() <= 0) {\n columnsDefinedOrder = rows.stream()\n .findFirst()\n .map(x -> new ArrayList<>(x.keySet()))\n .orElse(columnsDefinedOrder);\n }\n\n Map<String, Integer> widthEachColumn = new HashMap<>();\n for (String columnName : columnsDefinedOrder) {\n widthEachColumn.put(columnName, 0);\n }\n\n for (Map<String, String> row : rows) {\n for (String columnName : columnsDefinedOrder) {\n int length = row.get(columnName).length();\n if (length > widthEachColumn.get(columnName)) {\n widthEachColumn.put(columnName, length);\n }\n }\n }\n\n for (String columnName : columnsDefinedOrder) {\n int width = widthEachColumn.get(columnName) + 5;\n widthEachColumn.put(columnName, width);\n }\n\n for (Map<String, String> row : rows) {\n for (String columnName : columnsDefinedOrder) {\n sb.append(String.format(\"%-\" + widthEachColumn.get(columnName) + \"s\", row.get(columnName)));\n }\n sb.append(System.lineSeparator());\n }\n\n return sb.toString();\n }", "public String[] getTabla() {\r\n\t\treturn tabla;\r\n\t}", "public TableName name();", "public String getSummaryStatisticsHeader() {\n return String.format(\"%-50s \\t %12s \\t %12s \\t %12s %n\", \"Name\", \"Count\", \"Average\", \"Std. Dev.\");\n }", "List<String> headerColumns();", "public int dameColumna() {\n return this.columna;\n }", "public void outDisTable()\n\t{\n\t\tfor(int i = 0; i < sqNum; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < sqNum; j++)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\"%-18s\", \"[\" + i + \",\" + j + \"]:\" + String.format(\" %.8f\", dm[i][j]));\n\t\t\t}\n\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t}\n\t}", "public String getDisplayTables()\n {\n return displayTables;\n }", "public char[][] getTabla() {\n\t\treturn this.tabla;\n\t}", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "public static void displayTableTitle()\r\n {\n }", "int getColumns();", "int getColumns();", "public String getColumnNameFour(){\n return columnNameFourLbl.getText();\n }", "private void printColumn() {\n System.out.println(new SimpleDateFormat(\"MMMM YYYY\").format(calendar.getTime()));\n System.out.println(\" Sun Mon Tue Wed Thu Fri Sat\");\n }", "public String obtenerNombreAtaque(){\n\treturn nombreAtaque;\n }", "public String toString()\n {\n return this.getUntranslatedTableName();\n }", "public static void Affichage(int Tableau[]){\n int i ;\n\n for (i =0; i< Tableau.length;i++){\n System.out.println(Tableau[i]);\n }\n }", "public String toString() {\n\t\tString palabra = \"\";\n\t\tfor (int i = 0; i < obtenerNumeroFilas(); ++i) {\n\t\t\tfor (int j = 0; j < obtenerNumeroColumnas(); ++j) {\n\t\t\t\tif (obtenerCelda(i, j) == null) {\n\t\t\t\t\tpalabra = \"--\\t\";\n\t\t\t\t} else {\n\t\t\t\t\tpalabra = obtenerCelda(i, j).obtenerAtomo().obtenerColor().toChar() + \"\\t\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tpalabra = \"\\n\";\n\t\t}\n\t\treturn palabra;\n\t}", "@Override\r\n\tpublic String getGridText()\r\n\t{\r\n\t\t// TODO Auto-generated method stub\\\r\n\t\tString sheet = \"\";\r\n\t\tfor(int i = 0; i <= 20; i++) { //20 rows\r\n\t\t\tfor(char j = 'A'; j <= 'L';j++) { //A through L\r\n\t\t\t\tif(i == 0) { //Creates row headers\r\n\t\t\t\t\tif(j == 'A') { // Creates letter headers\r\n\t\t\t\t\t\tsheet += \" |\"; //pads for headers\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tsheet += String.format(\"%-10c|\",j);\r\n\t\t\t\t} else{\r\n\t\t\t\t\tif(j == 'A') {\r\n\t\t\t\t\t\tsheet += String.format(\"%-3d|\", i);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsheet += cells[i-1][j-'A'].abbreviatedCellText() + \"|\"; \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//enters new row\r\n\t\t\tsheet += \"\\n\";\r\n\t\t}\r\n\t\t//prints sheet\r\n\t\treturn sheet;\r\n\t}", "public void printTable() {\n System.out.print(\"\\033[H\\033[2J\"); // Clear the text in console\n System.out.println(getCell(0, 0) + \"|\" + getCell(0, 1) + \"|\" + getCell(0, 2));\n System.out.println(\"-+-+-\");\n System.out.println(getCell(1, 0) + \"|\" + getCell(1, 1) + \"|\" + getCell(1, 2));\n System.out.println(\"-+-+-\");\n System.out.println(getCell(2, 0) + \"|\" + getCell(2, 1) + \"|\" + getCell(2, 2));\n }", "public void displayHuffCodesTable() {\n\t\tStringBuffer toPrint = new StringBuffer();\n\t\t\n\t\tfor (int i = 0; i < this.huffCodeVals.length; i++) {\n\t\t\t\n\t\t\tif (this.huffCodeVals[i] != null) {\n\t\t\t\tif (i == 9) {\n\t\t\t\t\ttoPrint.append(\"\\\\t\");\n\t\t\t\t\t\n\t\t\t\t} else if (i == 10) {\n\t\t\t\t\ttoPrint.append(\"\\\\n\");\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\ttoPrint.append((char) i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttoPrint.append(\":\" + this.huffCodeVals[i] + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(toPrint.toString());\n\t}", "public String getName() {\n return ctTableColumn.getName();\n }", "private void drawLeftColoumnText(SettingsClass s){\r\n Font font=new Font(\"SanSerif\",Font.BOLD,40);\r\n g.setColor(Color.black);\r\n g.setFont(font);\r\n\r\n g.drawString(\"Players\",50,40+50*1);\r\n g.drawString(\"Match Point\",50,40+50*2);\r\n g.drawString(\"Time Limit\",50,40+50*3);\r\n g.drawString(\"Sudden Death\",50,40+50*4);\r\n \r\n // draws player numbers\r\n font=new Font(\"SanSerif\",Font.BOLD,30);\r\n g.setColor(Color.black);\r\n g.setFont(font);\r\n for(int i=0;i<s.getNumPlayers();i++){\r\n String text=\"Player \"+(char)(i+1+'0');\r\n g.drawString(text,50,300+40*i); \r\n }\r\n }", "public int getHauteur() {\n\t\treturn DIM_CASE;\n\t}", "@Override\n public String getSubtitle() {\n return \"row: \" + (rowStart + 1) + \" col: \" + (colStart + 1);\n }", "public int getNombreAllumettes() {\n\t\treturn this.nbAllumettes;\n\t\t}" ]
[ "0.77445114", "0.7040732", "0.6728473", "0.67056006", "0.6471482", "0.6469703", "0.6370961", "0.63592225", "0.6301334", "0.6269025", "0.61842984", "0.6168875", "0.6132982", "0.6117579", "0.6115966", "0.6083114", "0.606523", "0.60218585", "0.5986349", "0.5977683", "0.59572285", "0.59439343", "0.59379065", "0.5918058", "0.589905", "0.5895024", "0.58866817", "0.58856", "0.5877225", "0.5870647", "0.5862224", "0.5852076", "0.5837519", "0.5831172", "0.5821996", "0.5803121", "0.5802466", "0.5798279", "0.5792289", "0.57881635", "0.5724237", "0.5708306", "0.5696954", "0.5696735", "0.5685529", "0.5638327", "0.5631799", "0.56248033", "0.5605644", "0.56024504", "0.5601614", "0.5598357", "0.5597123", "0.55916435", "0.55909926", "0.5581122", "0.55797005", "0.55709547", "0.5569396", "0.55636346", "0.5562247", "0.5560837", "0.55606663", "0.55574715", "0.55475634", "0.5546207", "0.554475", "0.5537798", "0.5534576", "0.553308", "0.5532424", "0.5522617", "0.5505852", "0.54850864", "0.548392", "0.54814225", "0.5480678", "0.54796284", "0.54770815", "0.5469726", "0.54546595", "0.5448946", "0.5444851", "0.54429674", "0.54423815", "0.5434955", "0.5434955", "0.5423287", "0.5415082", "0.54139954", "0.5412397", "0.5411751", "0.54107594", "0.5407768", "0.5403601", "0.54024357", "0.539389", "0.5391561", "0.538846", "0.5383029", "0.53781205" ]
0.0
-1
Nombre de lignes du tableau
public int getRowCount() { return noeuds.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString() {\n return String.format(\"[%d] [%d]\", dameFila(), dameColumna());\n }", "public String getNomTable();", "@Override\n\tpublic ArrayList<String> getName() {\n\t\tArrayList<String> l = new ArrayList<String>();\n\t\tl.addAll(leftTable.getName());\n\t\tl.addAll(rightTable.getName());\n\t\treturn l;\n\t}", "int getNombreLignesPlateau();", "int getNombreColonnesPlateau();", "@Override\n public String toString(){\n String juego = \"\";\n for (int[] tablero1 : tablero) {\n for (int casilla : tablero1) {\n juego += String.format(\"%2d \", casilla);\n }\n juego += String.format(\"%n\");\n }\n return juego;\n }", "public int getNombreAllumettes() {\n\t\treturn this.nbAllumettes;\n\t\t}", "long getNombreElements();", "public String getNombreTabla() {\r\n\t\treturn nombreTabla;\r\n\t}", "String getTabela();", "@Override\n public String getGenericLabel() {\n return \"Počet sloupců v každé tabulce\";\n }", "public String toString() {\n\t\treturn \"(\" + obtenerFila() + \"/\" + obtenerColumna() + \")\";\n\t}", "public void showNewTableaux() {\n System.out.println(\"Nowa tablica simpleksowa: \");\n DecimalFormat df = new DecimalFormat(\"0.00\");\n for (double[] row : tableaux) {\n for (double element : row) {\n System.out.print(df.format(element) + \"\\t\");\n }\n System.out.println();\n }\n double valueObjectiveFunction = tableaux[numberOfVariables][numberOfConstraints + numberOfVariables];\n System.out.println(\"Wartość funkcji celu = \" + df.format(valueObjectiveFunction));\n for (int i = 0; i < numberOfVariables; i++)\n if (basisVariables[i] < numberOfConstraints)\n System.out.println(\"x\"\n + basisVariables[i]\n + \" = \"\n + df.format(tableaux[numberOfVariables][numberOfConstraints + i]));\n }", "public String getNombreFicheroAlumno(){\n\t\treturn \"Ev-Intermedia-Arboles-BST-Apellido1Apellido2Nombre-UOxxxx\";\n\t}", "public void ParcoursSuffixe() {\r\n if (getGauche() != null) {\r\n getGauche().ParcoursSuffixe();\r\n }\r\n if (getDroite() != null) {\r\n getDroite().ParcoursSuffixe();\r\n }\r\n System.out.print(getElement() + \",\");\r\n }", "public String getLasagna(){\n return \"ID: \"+this.ID+\"\\nNombre: \"+this.nombre+\"\\nTipo: \"+this.tipo+\"\\nPrecio: \"+this.precio; //Devuelve todos los datos de la lasagna\n }", "@Override\n public String toString(){\n return \"|Lege navn: \"+legeNavn+\" |Kon.ID: \"+konID+\"|\";\n }", "@Override\r\n public String toString() {\r\n StringBuilder cad = new StringBuilder(\"\");\r\n cad.append(\"\\nTabla: {\\n\");\r\n for (int i = 0; i < this.table.length; i++) {\r\n if(this.table[i] == null){\r\n cad.append(\"\\t()\\n\");\r\n }else{\r\n cad.append(\"\\t\").append(this.table[i].toString()).append(\"\\n\");\r\n }\r\n }\r\n cad.append(\"}\");\r\n return cad.toString();\r\n }", "@Override\n public String toString() {\n int numeritosY = 0;\n int numeritosX = 0;\n StringBuilder datos = new StringBuilder(\" \");\n\n //Imprime los numeros de arriba\n for (int x = 0; x < casillas.length; x++) {\n datos.append(\" \").append(numeritosX);\n numeritosX++;\n }\n datos.append(\"\\n \");\n //Imprime la primera linea que corresponde con la parte superior del tablero.\n for (int x = 0; x < casillas.length; x++) {\n datos.append(\"\\033[33m\"+\"+----\"+\"\\033[0m\");\n }\n datos.append(\"\\033[33m\"+\"+\"+\"\\033[0m\");\n datos.append(\"\\n\");\n //Imprime el resto del tablero.\n for (int y = 0; y < casillas.length; y++) {\n datos.append(numeritosY).append(\"\\033[33m\"+\" | \"+\"\\033[0m\");\n for (int x = 0; x < casillas[y].length; x++) {\n datos.append(casillas[y][x].toString());\n }\n datos.append(\"\\n\");\n datos.append(\" \");\n for (int i = 0; i < casillas[y].length; i++) {\n datos.append(\"\\033[33m\"+\"+----\"+\"\\033[0m\");\n }\n datos.append(\"\\033[33m\"+\"+\"+\"\\033[0m\");\n datos.append(\"\\n\");\n numeritosY++;\n }\n return datos.toString();\n }", "public String getAPELLIDONombreDelAlumno() {\r\n\t\tString nombre = \"SUREDA José\";\r\n\t\treturn nombre;\r\n\t}", "@Override\r\n\tpublic final String getNombreRaza() {\r\n\t\treturn \"Orco\";\r\n\t}", "java.lang.String getNume();", "java.lang.String getNume();", "String nameLabel();", "private static void afftabSymb() { \r\n\t\tSystem.out.println(\" code categorie type info\");\r\n\t\tSystem.out.println(\" |--------------|--------------|-------|----\");\r\n\t\tfor (int i = 1; i <= it; i++) {\r\n\t\t\tif (i == bc) {\r\n\t\t\t\tSystem.out.print(\"bc=\");\r\n\t\t\t\tEcriture.ecrireInt(i, 3);\r\n\t\t\t} else if (i == it) {\r\n\t\t\t\tSystem.out.print(\"it=\");\r\n\t\t\t\tEcriture.ecrireInt(i, 3);\r\n\t\t\t} else\r\n\t\t\t\tEcriture.ecrireInt(i, 6);\r\n\t\t\tif (tabSymb[i] == null)\r\n\t\t\t\tSystem.out.println(\" référence NULL\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\" \" + tabSymb[i]);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public void affichageLabyrinthe () {\n\t\t//Affiche le nombre de coups actuel sur la console et sur la fenetre graphique\n\t\tSystem.out.println(\"Nombre de coups : \" + this.laby.getNbCoups() + \"\\n\");\t\t\n\t\tthis.enTete.setText(\"Nombre de coups : \" + this.laby.getNbCoups());\n\n\t\t//Affichage dans la fenêtre et dans la console du labyrinthe case par case, et quand la case est celle ou se trouve le mineur, affiche ce dernier\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tString ligne = new String();\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (i != this.laby.getMineur().getY() || j != this.laby.getMineur().getX()) {\n\t\t\t\t\tligne = ligne + this.laby.getLabyrinthe()[i][j].graphismeCase();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j]=new Case();\n\t\t\t\t\tligne = ligne + this.laby.getMineur().graphismeMineur();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (grille.getComponentCount() < this.laby.getLargeur()*this.laby.getHauteur()) {\n\t\t\t\t\tgrille.add(new JLabel());\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ligne);\n\t\t}\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getMineur().imageCase(themeJeu));\n\t}", "private ArrayList<String> rows() {\r\n ArrayList<String> noteLabels = new ArrayList<>();\r\n\r\n //row labels\r\n for (int ii = this.no.highestNote().getNoteNumber();\r\n ii >= this.no.lowestNote().getNoteNumber();\r\n ii--) {\r\n noteLabels.add((Pitch\r\n .values()[Math.floorMod(ii - 1, 12)]\r\n .toString())\r\n + Integer.toString((ii - 1 - Math.floorMod(ii - 1, 12)) / 12));\r\n }\r\n return noteLabels;\r\n }", "public String toString(){\n\t\tString maChaineRetour=\"\";\n\t\t\n\t\tfor(Cristal[] ligne: tabCristaux){\n\t\t\tfor(Cristal colonne: ligne){\n\t\t\t\tif(colonne == null)\n\t\t\t\t\tmaChaineRetour = maChaineRetour + \"0\" ;\n\t\t\t\telse\n\t\t\t\t\tmaChaineRetour = maChaineRetour + colonne.toString();\n\t\t\t}\n\t\t\tmaChaineRetour = maChaineRetour + \"\\n\";\n\t\t}\n\t\treturn maChaineRetour;\n\t}", "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "@Override\n\tpublic String getListTitle() {\n\t\treturn \"NIVEAU ETUDE\";\n\t}", "public static String getBiblioNombre() {\n\t\treturn \"nombre\";\n\t}", "public void mostrarTablero(){\n for(int fila = 0; fila < FILAS; fila++){\n for(int columna : tablero[fila]){\n System.out.printf(\"%2d \", columna);\n }\n System.out.println();\n }\n }", "public String toString() {\n\t\treturn getClass().getName() + \"[nLattine=\" + nLattine + \", nGettoni=\" + nGettoni +\"]\";\n\t}", "public String getEtiquetas(){\n\t\tString s = \"\";\n\t\tfor(int x=0; x<livre; x++){\n\t\t\tif(x == MAX_ETIQUETAS-1 || x==livre-1)\n\t\t\t\ts = s+etiquetas[x];\n\t\t\telse\n\t\t\t\ts = s+etiquetas[x]+\" - \";\n\t\t}\n\t\treturn s;\n\t}", "public String getRolesNombre(int row) throws DataStoreException {\r\n return getString(row,ROLES_NOMBRE);\r\n }", "public String[] nombres(){\n return partida.nombres();\n }", "@Override\n public String toString() {\n return tla;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Apart N°\"+Nombre;\n\t}", "public String nombreCanciones() {\r\n\t\t\r\n\t\tString titulo=\"\";\r\n\t\tfor(int i=0; i<misCanciones.size();i++) {\r\n\t\t\ttitulo=misCanciones.get(i).getTitulo();\r\n\t\t}\r\n\t\t\r\n\t\treturn titulo;\r\n\t\t\r\n\t}", "public String getNamaKlinik() {\n return namaKlinik;\r\n }", "public void printAnnuaireName() {\n\t\t\n\t}", "public static void tablaPuntos(Mano[] jug){\n StringBuilder toret= new StringBuilder();\n for (int i = 0; i < jug.length; i++) {\n toret.append(jug[i].getNombre());\n toret.append(\": \\n\");\n toret.append(jug[i]);\n toret.append(\"\\nPuntos: \");\n toret.append(jug[i].getPuntuacion());\n toret.append(\"\\n\");\n }\n System.out.println(toret.toString());\n }", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }", "public String getName() {\n return lutName;\n }", "public String toString() {\n return String.format(\"(%d/%d)\", fila, columna);\n }", "@Override\n public String toString() {\n return name + \"\\t\\t\\t\" + number;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tString texto = String.format(\"+ %s - Luta:\\n\", getNome());\r\n\t\ttexto += super.toString();\r\n\t\treturn texto;\r\n\t}", "public String afficherTout()\n\t{\n\t\tString total = \"\";\n\t\tfor(Joueur j : ListJoueur)\n\t\t{\n\t\t\ttotal += \"\\n\" + j.afficherJoueur();\n\t\t}\n\t\treturn total;\n\t}", "public void Mostrar() {\n \n for (int i=0;i<3;i++) {\n System.out.print(\"Torre \"+i+\": \");\n for (Iterator it = columnas[i].iterator(); it.hasNext();) {\n int n = (int) it.next();\n System.out.print(n+\"[\"+\"]\");\n longitud++;\n }\n System.out.println(\"\");\n \n }\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Titre : \"+_titre+\" Auteur: \"+_auteur+\" NbEcoutes : \"+_nbEcoutes;\r\n\t}", "public String toString()\n {\n return this.getUntranslatedTableName();\n }", "public String pantallasToString(){\n\t\tif(null == this.pantallas){\n\t\t\treturn \"\";\n\t\t}else{\n\t\t\tfinal StringBuilder grupos = new StringBuilder();\n\t\t\tfor (int i = 0; i < this.pantallas.size(); i++) {\n\t\t\t\tif(i == (this.pantallas.size()-1)){\n\t\t\t\t\tgrupos.append(this.pantallas.get(i).getNombrePantalla());\n\t\t\t\t}else{\n\t\t\t\t\tgrupos.append(this.pantallas.get(i).getNombrePantalla()).append(\", \");\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn grupos.toString();\n\t\t}\n\t}", "@java.lang.Override\r\n\tpublic java.lang.String toString()\r\n\t{\r\n\t\treturn \"ja_perlin\";\r\n\t}", "public String getNomeAluno( int posicao)\n\t{\n\t\treturn gradeNomes[posicao];\n\t}", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "public String getNom() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic int getColumnCount() {\n\t\treturn NOMICOLONNE.length;\n\t}", "@Override\n\tpublic String verNombreCondicion() {\n\t\treturn getNombre();\n\t}", "public void llenarLogros(){\n DefaultTableModel table = (DefaultTableModel) logrosTabla.getModel();\n ArrayList<Logro> logros = ninno.getLogros();\n \n for(Logro logro: logros){\n table.addRow(new Object[]{logro.getBimestreString(), logro.getTitulo(), logro.getEstado()});\n }\n }", "String levelName();", "public java.lang.CharSequence getNamaHari() {\n return nama_hari;\n }", "public java.lang.CharSequence getNamaHari() {\n return nama_hari;\n }", "public String getName() {\n\t\treturn \"lorann\";\r\n\t}", "public void tablero(){\r\n System.out.println(\" X \");\r\n System.out.println(\" 1 2 3\");\r\n System.out.println(\" | |\");\r\n //imprimir primera fila\r\n System.out.println(\" 1 \"+gato[0][0]+\" | \"+gato[0][1]+\" | \"+gato[0][2]+\" \");\r\n System.out.println(\" _____|_____|_____\");\r\n System.out.println(\" | |\");\r\n //imprimir segunda fila\r\n System.out.println(\"Y 2 \"+gato[1][0]+\" | \"+gato[1][1]+\" | \"+gato[1][2]+\" \");\r\n System.out.println(\" _____|_____|_____\");\r\n System.out.println(\" | |\");\r\n //imprimir tercera fila\r\n System.out.println(\" 3 \"+gato[2][0]+\" | \"+gato[2][1]+\" | \"+gato[2][2]+\" \");\r\n System.out.println(\" | |\");\r\n }", "public String getNom();", "protected DesiredField[] istenenAlanlariOlustur() {\n DFHelper dh = new DFHelper(new LOG_View());\n DesiredField[] df = dh.buFieldleriOlustur(\"username\", \"eventName\", \"tableName\", \"eventDateTARIH\", \"eventDateSAAT\", \"currentdata\", \"olddata\");\n dh.fieldBasliklariSunlarOlsun(\"Kullanıcı Adı\", \"Yapılan İşlem\", \"Tablo Adı\", \"Tarihi\", \"Saati\", \"Yeni Data\", \"Eski Data\");\n df[5].setMaxWidth(350);\n df[6].setMaxWidth(350);\n return df;\n }", "public String getTitreLivre(Object valueAt) {\n\t\t\n\t\tint i = (Integer) valueAt;\n\t\tString s = null;\n\t\t\n\t\ttry{\n\t\t\trequete_tmp = \"SELECT titre FROM livres WHERE id = \" + i;\n\t\t\trequete.execute(requete_tmp);\n\t\t\tResultSet rs = requete.getResultSet();\n\t\t\trs.next();\n\t\t\ts = rs.getString(\"titre\");\n\t\t\tSystem.out.println(\"ID \" + i + \" TITRE : \" + s);\n\t\t} catch(SQLException e) {\n\t\t\tafficherErreur(requete_tmp, e);\n\t\t}\n\t\t\n\t\treturn s;\n\t}", "@Override\n\tpublic String getNombre() {\n\t\treturn model.getNombre();\n\t}", "private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }", "String getPluralisedName();", "@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn nome;\n\t\t\t}", "protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic String toString()\r\n\t{\r\n\t\tString result =\"Table:\\n\";\r\n\t\tfor (int i =0; i< this.tableSize; i++)\r\n\t\t{ \r\n\t\t\tLinkedArrays<T> L = (LinkedArrays<T>) table[i]; \r\n\t\t\tresult+= i+\": \";\r\n\t\t\tresult+= L.toString() ;\r\n\t\t\tif(i<this.tableSize-1)\r\n\t\t\t{ result +=\"\\n\"; }\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\treturn result;\r\n\t}", "String getBaseTable();", "public String getColumnNameFour(){\n return columnNameFourLbl.getText();\n }", "@Override\n public String toString() {\n \treturn \"내 이름은\" + name + \", \" + \"내 학번은\" + number + \", \" + \"나는 \" + gender + \"자야\";\n }", "public String getPantallasToString(){\n\t\tif(null == grupos){\n\t\t\treturn \"\";\n\t\t}else{\n\t\t\tStringBuilder grupos = new StringBuilder();\n\t\t\tfor (int i = 0; i < this.grupos.size(); i++) {\n\t\t\t\tif(i == (this.grupos.size()-1)){\n\t\t\t\t\tgrupos.append(this.grupos.get(i).pantallasToString());\n\t\t\t\t}else{\n\t\t\t\t\tgrupos.append(this.grupos.get(i).pantallasToString()).append(\", \");\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn grupos.toString();\n\t\t}\n\t}", "@Override\r\n\tpublic String falar() {\r\n\t\treturn \"[ \"+getNome()+\" ] Sou Um Professor\";\r\n\t}", "public void verTablero(){\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" 1 2 3 4 5 6 \\n\");\n\t\tfor(int i = 0; i < tablero.length; i++){\n\t\t\t\n\t\t\tfor(int j = 0; j < tablero[1].length; j++){\n\t\t\t\t\n\t\t\t\tif(tablero[i][j] == 0){\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.print(\" - \");\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.print(\" \" + tablero[i][j] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public TableName name();", "@Override\n public String getLabel() {\n return columnInfo.getLabel();\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.getsTenkhoanquy() + \" : \" + this.fSotienconlai\n\t\t\t\t+ this.sLoaitiente;\n\t}", "@Override\n\tpublic String getNom() {\n\t\treturn null;\n\t}", "public String toString() {\n\t\tStringBuilder result = new StringBuilder();\n\t\tresult.append(\"Nome: \" + this.nome + \" Data ult. fogo: \" + \n\t\t\t\tthis.dataUltimoFogo.get(Calendar.YEAR) + \"/\" + \n\t\t\t\tthis.dataUltimoFogo.get(Calendar.MONTH) + \"/\" + \n\t\t\t\tthis.dataUltimoFogo.get(Calendar.DAY_OF_MONTH) + \"\\n\");\n\t\tfor (int i = 0 ; i < this.quadricula.length ; i++) {\n\t\t\tfor (int j = 0 ; j < this.quadricula[0].length ; j++) {\n\t\t\t\tresult.append(SIMBOLOS[this.quadricula[i][j].ordinal()]);\n\t\t\t}\n\t\t\tresult.append(\"\\n\");\n\t\t}\n\t\treturn result.toString();\n\t}", "public String fetchNoteNames() {\n\t\treturn \"NoteNames from SubClass overridden meth.MinorScale\";\n\t}", "public String getColumnNameThree(){\n return columnNameThreeLbl.getText();\n }", "private String stlName(int i)\n\t{\n\t\treturn stlPrefix + i + stlSuffix;\n\t}", "public void afficher() {\n\t\tfor(int i=0;i<this.taille;i++) {\n\t\t\tfor (int j=0;j<this.taille;j++) {\n\t\t\t\tSystem.out.print(grille.get(i).get(j).getTypeOccupation()+\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}\n\t}", "@Override\n public String toString() {\n return \"\\tMunicipio: \" + municipio + \"\\t\" + \"Habitantes: \" + habitantes + \".\";\n }", "public String getName()\r\n {\n return \"tan\";\r\n }", "@Override\n\tpublic String getColumnName(int col) {\n\t\treturn NOMICOLONNE[col];\n\t}", "public String descriere(){\r\n\t\treturn \"Flori\";\r\n\t}", "public String getColumnNameOne(){\n return columnNameOneLbl.getText();\n }", "public String toString() {\n String s = \" 1 2 3 4 5 6 7 8\";\n\n\n s += \"\\n --------------------\\n1 |\";\n\n for(int i=0; i < this.TAILLEX; i++){\n for(int k=0; k < this.TAILLEY; k++){\n s += this.plateau[i][k] + \"|\";\n }\n if(i<7) s += \"\\n --------------------\\n\" + (i+2) + \" |\";\n else s += \"\\n --------------------\\n\";\n }\n\n return s;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Báo: \"+\"\\t\"+\", Số Trang: \"+soTrang+\", Nhà xuất bản: \"+nxb;\n\t}", "private String createLabelTableSQL()\n\t{\n\t\treturn \"LABEL ON TABLE \" + getFullPath() + \" IS '\" + SQLToolbox.cvtToSQLFieldColHdg(function.getLabel()) + \"'\";\n\t}", "private javax.swing.JTable getJTableTitular() {\n\t\tif(jTableTitular == null) {\n\t\t\tjTableTitular = new javax.swing.JTable(tablaDetalleLRTitular);\n\t\t\tjTableTitular.getTableHeader().setReorderingAllowed(false) ;\n\t\t\tjTableTitular.getColumnModel().getColumn(0).setPreferredWidth(65);\n\t\t\tjTableTitular.getColumnModel().getColumn(1).setPreferredWidth(175);\n\t\t\tjTableTitular.getColumnModel().getColumn(2).setPreferredWidth(60);\n\t\t\tjTableTitular.getColumnModel().getColumn(3).setPreferredWidth(30);\n\t\t\tjTableTitular.getColumnModel().getColumn(4).setPreferredWidth(30);\n\t\t\tjTableTitular.getColumnModel().getColumn(5).setPreferredWidth(30);\n\t\t\tjTableTitular.getColumnModel().getColumn(6).setPreferredWidth(60);\n\t\t\tjTableTitular.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\t\tjTableTitular.setBackground(new java.awt.Color(242,242,238));\n\t\t\tjTableTitular.addMouseListener(new MouseAdapter() {\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\tif (e.getClickCount() == 2) {\n\t\t\t\t\t\tint fila = jTableTitular.getSelectedRow();\n\t\t\t\t\t\tString codProd = tablaDetalleLRTitular.getValueAt(fila,0).toString();\n\t\t\t\t\t\tString nombreProd = tablaDetalleLRTitular.getValueAt(fila,1).toString();\n\t\t\t\t\t\tDetalleRegalo dr = new DetalleRegalo(codProd,nombreProd);\n\t\t\t\t\t\tMensajesVentanas.centrarVentanaDialogo(dr);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jTableTitular;\n\t}", "public int NbreObjets(){\n\t\treturn this.nombre_objets;\n\t}", "@Override\n public String toString() {\n return String.format(\"%s: %s\", id.toString(), nameRu);\n }", "@Override\n public String toString()\n {\n return String.format(\"%-20s\\t\\t%-30s%-30s\",number, name, party);\n}", "public String toString() {\r\n\t\treturn \"Student \" + imePrezime + \" studira \" + fakultet + \" fakultet \" + \r\n\t\t\t\t\"i trenutno je na \" + godina + \". godini\";\r\n\t}" ]
[ "0.6808356", "0.67371637", "0.6567807", "0.6557085", "0.65090954", "0.6442827", "0.63282", "0.6271294", "0.6234976", "0.61187124", "0.6115192", "0.6099697", "0.605432", "0.60331655", "0.60279405", "0.601503", "0.6008349", "0.5966617", "0.5957476", "0.59559965", "0.5947982", "0.58931035", "0.58931035", "0.58657587", "0.58251953", "0.5824423", "0.58161753", "0.5802067", "0.57942355", "0.5781692", "0.57702553", "0.57661295", "0.57584655", "0.5747305", "0.57416594", "0.5731802", "0.5730843", "0.57257724", "0.5721809", "0.5718838", "0.5708823", "0.5708269", "0.57021284", "0.56800234", "0.5675961", "0.567168", "0.5665508", "0.5658789", "0.56507754", "0.5650067", "0.56444705", "0.5641895", "0.5638339", "0.56377536", "0.56367296", "0.563628", "0.56290334", "0.561644", "0.56148523", "0.5608685", "0.56022936", "0.5598491", "0.55906063", "0.5587291", "0.5584533", "0.55840063", "0.55833286", "0.55810046", "0.55645335", "0.55541605", "0.55537206", "0.55515736", "0.5549659", "0.55453116", "0.5543313", "0.55382484", "0.5530522", "0.5529948", "0.55290127", "0.5527531", "0.5526549", "0.5496879", "0.54909015", "0.5487636", "0.5483878", "0.5480091", "0.54783905", "0.54770756", "0.5476943", "0.54765266", "0.5475964", "0.54727674", "0.54692936", "0.5468267", "0.54675347", "0.54654974", "0.54638237", "0.5462903", "0.54583025", "0.5456699", "0.5455425" ]
0.0
-1
L'objet qui doit "render" pour chaque cellule
public Object getValueAt(int row, int col) { Noeud noeud = noeuds.get(row); //voici les cellules pour chaque colonne return switch (col) { case 0 -> noeud.getNomDuFichier(); case 1 -> noeud.getMot(); case 2 -> noeud.getFrequence(); default -> null; }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void render(){}", "private void renderObjetos()\n {\n for (int i=0;i<NCONSUMIBLES;i++)\n {\n //EDIT:Ruta de Inventario\n Consumible consumible=(Consumible)VenganzaBelial.atributoGestion.getInv().getItems().get(i);\n if(eleccionJugador==i)\n {\n opcionesJugadorTTF.drawString(10,i*20+400,consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\");\n }\n else{\n opcionesJugadorTTF.drawString(10, i * 20 + 400, consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\", notChosen);\n }\n }\n }", "@Override\r\n\tpublic void render() {\n\t\t\r\n\t}", "public void prenderVehiculo();", "@Override\n\tpublic void render () {\n\n\t}", "@Override\n public void render() { super.render(); }", "@Override\n\tpublic void render() {\n\t\t\n\t}", "@Override\r\n\tpublic void render() {\n\r\n\t}", "public abstract String render (String data, String type, T row);", "@Override\n\tpublic void render(Row row, Object data, int arg2) throws Exception {\n\t\trow.setValue(data);\n\t\trow.addEventListener(Events.ON_CLICK, new RowEventListener(this.br));\n\t\trow.addEventListener(Events.ON_DOUBLE_CLICK, new RowEventListener(\n\t\t\t\tthis.br));\n\n\t\t// en las columnas esta la info de configuración\n\t\tList<ColumnaBrowser> columnas = this.br.getColumnasBrowser();\n\n\t\tObject[] datosCel = (Object[]) data;\n\n\t\t// radiobutton\n\t\tRadio ra = new Radio();\n\t\tra.setRadiogroup(this.rg);\n\t\tra.setChecked(false);\n\t\tra.setParent(row);\n\n\t\tObject va = datosCel[0]; // el ID\n\t\tLabel lbId = new Label(va + \"\");\n\t\tlbId.setParent(row);\n\n\t\tfor (int i = 1; i < datosCel.length; i++) {\n\t\t\tva = datosCel[i];\n\t\t\tColumnaBrowser col = columnas.get(i - 1);\n\n\t\t\tCell cel = new Cell();\n\t\t\tcel.setStyle(col.getEstilo());\n\t\t\tcel.setParent(row);\n\n\t\t\tHtmlBasedComponent comp = null;\n\n\t\t\ttry {\n\n\t\t\t\t// invoca a la operación\n\t\t\t\tMethod m = this.br.getClass().getMethod(col.getComponente(),\n\t\t\t\t\t\tObject.class, Object[].class);\n\n\t\t\t\tcomp = (HtmlBasedComponent) m.invoke(this.br, va, datosCel);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Error metodo componente [\"\n\t\t\t\t\t\t+ col.getComponente() + \"]:\"\n\t\t\t\t\t\t+ e.getCause().getMessage());\n\t\t\t\tcomp = this.br.getLabel(va, datosCel);\n\t\t\t}\n\t\t\tString auxSt = comp.getStyle();\n\t\t\tcomp.setStyle(auxSt + \";\" + col.getEstilo());\n\t\t\tcomp.setWidth(col.getWidthComponente());\n\t\t\tcel.setWidth(col.getWidthComponente());\n\t\t\tcomp.setParent(cel);\n\n\t\t}\n\n\t}", "private void renderObjetos() {\n // Agrego los botones a la barra\n this.rBotones.add(this.btnOK);\n this.rBotones.add(this.btnCancel);\n }", "@Override\n public void render() {\n super.render();\n }", "@Override\n public void render() {\n super.render();\n }", "@Override\r\n public void prenderVehiculo() {\r\n System.out.println(\"___________________________________________________\");\r\n System.out.println(\"prender Jet\");\r\n }", "public void render() {\r\n\r\n }", "@Override\n\tpublic void render () {\n super.render();\n\t}", "public void render()\r\n\t{\n\t}", "public void render() {\n }", "public abstract String visualizar();", "private void renderObjetos() {\n \tcpPrincipal.add(_cPrincipal);\n\n _cPrincipal.add(rPrincipal);\n rPrincipal.add(cLabels);\n rPrincipal.add(cTexts);\n \n //rPrincipal.setBorder(new Border(1, Color.BLUE,Border.STYLE_DASHED));\n \n _cPrincipal.add(rMensaje);\n _cPrincipal.add(rBotones); \n \n cLabels.add(lApellido);\n cLabels.add(lNombres);\n cLabels.add(lDocNum);\n cLabels.add(lTelefono);\n cLabels.add(lCelular);\n //cLabels.add(lRazonSocial);\n \n cTexts.add(tApellido);\n cTexts.add(tNombres); \n cTexts.add(tDoc);\n cTexts.add(tTelefono);\n cTexts.add(tCelular);\n //cTexts.add(tRazonSocial); \n \n rMensaje.add(lMensaje);\n\n ApplicationInstance.getActive().setFocusedComponent(tApellido);\n \n }", "public abstract void render(Cell.Context context, SimInfo data, SafeHtmlBuilder sb);", "private void renderObjetos() {\n\n \t// Ver el boton de borrar\n this.rBotones.add(this.btnCancel);\n this.rBotones.add(this.btnFind);\n \n this.rBotones.setAlignment(Alignment.ALIGN_RIGHT);\n\n }", "public abstract void render(Context context, C value, SafeHtmlBuilder sb, String id);", "public void render(){\n//\t\tsetCards();\n//\t\tsetMurderInfo();\n\t}", "public void render();", "@Override\n\tpublic void forceRender() {\n\n\t}", "public interface Renderable extends Serializable {\r\n\r\n /**\r\n * Render output, normally HTML markup, to the given buffer.\r\n *\r\n * @param buffer the string buffer to render output to\r\n */\r\n public void render(HtmlStringBuffer buffer);\r\n\r\n}", "public abstract void renderInterface();", "@Override\r\n\t\t\tpublic void render(Component component,\r\n\t\t\t\t\tIBeanAbstracto iBeanAbstracto) {\n\r\n\t\t\t\tfinal Listitem fila = getAssemblerStandard()\r\n\t\t\t\t\t\t.crearListitemDinamico(null, iBeanAbstracto.getMD5(),\r\n\t\t\t\t\t\t\t\t(Listitem) component,\r\n\t\t\t\t\t\t\t\tiBeanAbstracto.getCodigo(),\r\n\t\t\t\t\t\t\t\tiBeanAbstracto.getNombre());\r\n\t\t\t\tfinal BandboxFindPaging padre = BandboxFindPaging.this;\r\n\t\t\t\tfinal IBeanAbstracto object = iBeanAbstracto;\r\n\t\t\t\tfila.addEventListener(Events.ON_CLICK,\r\n\t\t\t\t\t\tnew EventListener<Event>() {\r\n\r\n\t\t\t\t\t\t\tpublic void onEvent(Event arg0) throws Exception {\r\n\t\t\t\t\t\t\t\tonSeleccionarMaestro(object, padre);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\tif (interfaz != null) {\r\n\t\t\t\t\tfila.addEventListener(Events.ON_CLICK,\r\n\t\t\t\t\t\t\tnew EventListener<Event>() {\r\n\t\t\t\t\t\t\t\tpublic void onEvent(Event arg0)\r\n\t\t\t\t\t\t\t\t\t\tthrows Exception {\r\n\t\t\t\t\t\t\t\t\tif (ids != null)\r\n\t\t\t\t\t\t\t\t\t\tfila.setAttribute(\"ID\", ids);\r\n\t\t\t\t\t\t\t\t\tinterfaz.onValidateSeleccion(fila, object);\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}\r\n\r\n\t\t\t}", "public interface Renderable {\r\n}", "private void render()\n {\n //Applicazione di un buffer \"davanti\" alla tela grafica. Prima di disegnare \n //sulla tela grafica il programma disegnerà i nostri oggetti grafici sul buffer \n //che, in seguito, andrà a disegnare i nostri oggetti grafici sulla tela\n bufferStrategico = display.getTelaGrafica().getBufferStrategy();\n \n //Se il buffer è vuoto (== null) vengono creati 3 buffer \"strategici\"\n if(bufferStrategico == null)\n {\n display.getTelaGrafica().createBufferStrategy(3);\n return;\n }\n \n //Viene definito l'oggetto \"disegnatore\" di tipo Graphic che disegnerà i\n //nostri oggetti grafici sui nostri buffer. Può disegnare qualsiasi forma\n //geometrica\n disegnatore = bufferStrategico.getDrawGraphics();\n \n //La riga seguente pulisce lo schermo\n disegnatore.clearRect(0, 0, larghezza, altezza);\n \n //Comando per cambiare colore dell'oggetto \"disegnatore\". Qualsiasi cosa\n //disengata dal disegnatore dopo questo comando avrà questo colore.\n \n /*disegnatore.setColor(Color.orange);*/\n \n //Viene disegnato un rettangolo ripieno. Le prime due cifre indicano la posizione \n //da cui il nostro disegnatore dovrà iniziare a disegnare il rettangolo\n //mentre le altre due cifre indicano le dimensioni del rettangolo\n \n /*disegnatore.fillRect(10, 50, 50, 70);*/\n \n //Viene disegnato un rettangolo vuoto. I parametri hanno gli stessi valori\n //del comando \"fillRect()\"\n \n /*disegnatore.setColor(Color.blue);\n disegnatore.drawRect(0,0,10,10);*/\n \n //I comandi seguenti disegnano un cerchio seguendo la stessa logica dei\n //rettangoli, di colore verde\n \n /*disegnatore.setColor(Color.green);\n disegnatore.fillOval(50, 10, 50, 50);*/\n \n /*Utilizziamo il disegnatore per caricare un'immagine. Il primo parametro\n del comando è l'immagine stessa, il secondo e il terzo parametro sono \n le coordinate dell'immagine (x,y) mentre l'ultimo parametro è l'osservatore\n dell'immagine (utilizzo ignoto, verrà impostato a \"null\" in quanto non\n viene usato)*/\n //disegnatore.drawImage(testImmagine,10,10,null);\n \n /*Comando che disegna uno dei nostri sprite attraverso la classe \"FoglioSprite\".*/\n //disegnatore.drawImage(foglio.taglio(32, 0, 32, 32), 10, 10,null);\n \n /*Viene disegnato un albero dalla classe \"Risorse\" attraverso il disegnatore.*/\n //disegnatore.drawImage(Risorse.omino, x, y,null);\n \n /*Se lo stato di gioco esiste eseguiamo la sua renderizzazione.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().renderizzazione(disegnatore);\n }\n \n //Viene mostrato il rettangolo\n bufferStrategico.show();\n disegnatore.dispose();\n }", "@Override\n public int getRenderType()\n {\n return 22;\n }", "@Override\r\n\t\t\t\tpublic void render(TwoDimensionBone object, Appendable appendable) throws IOException {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\tpublic void mostrar() {\n\t\t\r\n\t}", "@Override\n\tpublic void renderSource() {\n\t\t\n\t}", "void dynamicRendering();", "@Override\n\tpublic String getAsString(FacesContext arg0, UIComponent arg1, Object obj) {\n\n if(obj == null){\n \treturn null;\n } \n Funcionario objeto = (Funcionario) obj;\n return objeto.getId().toString();\n}", "public String render()\r\n/* 24: */ {\r\n/* 25:51 */ if (!this.init_flag)\r\n/* 26: */ {\r\n/* 27:52 */ this.init_flag = true;\r\n/* 28:53 */ return \"\";\r\n/* 29: */ }\r\n/* 30: */ try\r\n/* 31: */ {\r\n/* 32:56 */ ConnectorResultSet res = this.sql.get_variants(this.request);\r\n/* 33:57 */ return render_set(res);\r\n/* 34: */ }\r\n/* 35: */ catch (ConnectorOperationException e) {}\r\n/* 36:59 */ return \"\";\r\n/* 37: */ }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "public Estadisticas() {\n initComponents();\n \n llenar_tabla();\n setCellRender(tbResult);\n }", "public interface Renderable<R> {\n\n R getRendered();\n\n void setReadOnly(boolean readOnly);\n}", "@Override\n protected Serializable getContentObject() {\n return result;\n }", "@Override\r\n\tpublic void simpleRender(RenderManager rm) {\n\t}", "public interface Renderable {\n\n\t/**\n\t * Get the type of the stuff to render.\n\t */\n\tString getType();\n\n\t/**\n\t * All renderable items should have a unique id.\n\t */\n\tString getId();\n\n\t/**\n\t * All renderables may have properties, used for rendering.\n\t */\n\tString getProperty(String name, String defaultValue);\n\n\t/**\n\t * All renderables may have properties, used for rendering.\n\t */\n\tString getProperty(String name);\n}", "@Override\r\n\tpublic void accept(iRenderVisitor visitor) {\n\t\tvisitor.render(this);\r\n\t\t\r\n\t}", "public void render(Row row, Object data)\n {\n String pduType = \"Unknown\";\n String timestamp = \"Unknown\";\n String content = \"...\";\n Pdu pdu;\n EntityID eid;\n \n // It needs to be a PDU\n if(!(data instanceof Pdu))\n {\n return;\n }\n \n pdu = (Pdu)data;\n \n // First column: the pdu type. this needs to be handled less verbosely \n // in the dis-xml package\n short pduShortType = pdu.getPduType();\n switch(pduShortType)\n {\n case 1: pduType = \"ESPDU\";\n EntityStatePdu espdu = (EntityStatePdu)pdu;\n content = \"Source ID:\";\n eid = espdu.getEntityID();\n content = content + \"(\" + new Integer(eid.getSite()).toString() + \",\" +\n new Integer(eid.getApplication()).toString() + \",\" +\n new Integer(eid.getEntity()).toString() + \")\";\n\n break;\n \n case 2: pduType = \"Fire\";\n break;\n \n case 3: pduType = \"Detonation\";\n break;\n \n default:\n pduType = pdu.getClass().getName();\n }\n \n \n // Second column: the timestamp\n timestamp = new Long(pdu.getTimestamp()).toString();\n \n \n // Create new Label objects to be placed in the row.\n new Label(pduType).setParent(row);\n new Label(timestamp).setParent(row);\n new Label(content).setParent(row);\n \n return; \n }", "@Override\n public boolean isToBeRendered()\n {\n return true;\n }", "@Override\n public void setRenderer(Object arg0)\n {\n \n }", "public void render() {\n renderHud();\n }", "private void render(Element element) {\n main.clear();\n Widget content = createElementWidget(element);\n main.add(content);\n }", "@Override\n public int getRenderType()\n {\n return 31;\n }", "public void render() {\n\t\t// do nothing... as we should\n\t}", "void render(IViewModel model);", "public void visualizarMensaje(Object pila);", "@Override\n\tpublic void serializeUI() {\n\t\t\n\t}", "private IngenicoDisplay(){\n\n }", "@Override\n public void setToBeRendered(boolean arg0)\n {\n \n }", "@Override\r\n\tpublic void render(Listitem item, Object data) throws Exception {\n final Tirspasca detilMatakuliah = (Tirspasca) data;\r\n\t\tListcell lc = new Listcell(detilMatakuliah.getMtbmtkl().getCkdmtk());\r\n\t\tlc.setParent(item);\r\n lc = new Listcell(detilMatakuliah.getMtbmtkl().getCnamamk());\r\n\t\tlc.setParent(item);\r\n lc = new Listcell(detilMatakuliah.getCkelompok());\r\n\t\tlc.setParent(item);\r\n //lc = new Listcell(\"\");\r\n\t\t//lc.setParent(item);\r\n String sks = \"\";\r\n if(detilMatakuliah.getNsks() != null) {\r\n sks = detilMatakuliah.getNsks().toString();\r\n } /*else {\r\n if(detilMatakuliah.getMtbmtkl().getNsks() != null) {\r\n sks = detilMatakuliah.getMtbmtkl().getNsks().toString();\r\n }\r\n } */\r\n lc = new Listcell(sks);\r\n\t\tlc.setParent(item);\r\n\r\n item.setAttribute(\"data\", data);\r\n\t\tComponentsCtrl.applyForward(item, \"onDoubleClick=onDetilMatakuliahItem\");\r\n\t}", "public Renderiza(Context context) {\n\t\tsuper(context);\n\t\tthis.context = context;\n\t\tthis.setRenderer(this);\n\n\t\t// estas 3 lineas detecta los elementos de la pantalla\n\t\tthis.requestFocus();\n\t\tthis.setFocusableInTouchMode(true);\n\t\tthis.setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY); // modo de\n\t\t// renderizado\n\n\t}", "void setupRender() {\n List<Predmet> predmets = adminService.findAllPredmetsForPredavac(predavac);\n // create a SelectModel from my izlistaj of colors\n predmetSelectModel = selectModelFactory.create(predmets, \"name\");\n years = adminService.getYears();\n// List<Aktivnost> activities = adminService.getActivities(1, 2015);\n }", "private void continuarInicializandoComponentes() {\n javax.swing.table.TableColumn columna1 = tablaDetalle.getColumn(\"Id\");\n columna1.setPreferredWidth(10); \n javax.swing.table.TableColumn columna2 = tablaDetalle.getColumn(\"Tipo\");\n columna2.setPreferredWidth(250); \n javax.swing.table.TableColumn columna3 = tablaDetalle.getColumn(\"Número\");\n columna3.setPreferredWidth(50); \n DefaultTableCellRenderer tcrr = new DefaultTableCellRenderer();\n tcrr.setHorizontalAlignment(SwingConstants.RIGHT);\n DefaultTableCellRenderer tcrc = new DefaultTableCellRenderer();\n tcrc.setHorizontalAlignment(SwingConstants.CENTER);\n tablaDetalle.getColumnModel().getColumn(0).setCellRenderer(tcrc);\n tablaDetalle.getColumnModel().getColumn(2).setCellRenderer(tcrr);\n tablaDetalle.getColumnModel().getColumn(3).setCellRenderer(tcrr);\n tablaDetalle.getColumnModel().getColumn(4).setCellRenderer(tcrr);\n }", "@Override\n\tpublic void doSerializeUI() {\n\t\t\n\t}", "@Override\r\n public String toString() {\r\n \treturn \"{ id : \" + getId() + \", costo : \\\"\" + getCosto() + \", fecha : \\\"\" + getFecha() + \"\\\" }\" ; \r\n }", "@Override\n public void beforeRender()\n {\n\n }", "@Override\r\n\tprotected void onDraw(LRenderSystem rs) {\n\r\n\t}", "public interface RenderTemplate {\n void render(RenderContext ctx, Map<String, Object> map, String mode);\n}", "public void run() {\n\t\t\t\tVerticalPanel panelCompteRendu = new VerticalPanel();\r\n\t\t\t\thtmlCompteRendu = new HTML();\r\n\t\t\t\tpanelCompteRendu.add(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"compteRendu\").add(panelCompteRendu);\r\n\t\t\t\t\r\n\t\t\t\tVerticalPanel panelLegende = new VerticalPanel();\r\n\t\t\t\thtmlLegende = new HTML();\r\n\t\t\t\tpanelLegende.add(htmlLegende);\r\n\t\t\t\tRootPanel.get(\"legende\").add(htmlLegende);\r\n\t\t\t\t\r\n\t\t\t\t// temps d'intˇgration restant\r\n\t\t\t\tLabel tempsDIntegrationRestant = new Label();\r\n\t\t\t\tRootPanel.get(\"tempsDIntegrationRestant\").add(tempsDIntegrationRestant);\r\n\t\t\t\t\r\n\t\t\t\t// ajout de la carte\r\n\t\t\t\twMap = new MapFaWidget2(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"carte\").add(wMap);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// ajout du bouton reset\r\n\t\t\t\tButton boutonReset = new Button(\"Nettoyer la carte\");\r\n\t\t\t\tboutonReset.addClickHandler(actionBoutonReset());\r\n\t\t\t\tRootPanel.get(\"boutonReset\").add(boutonReset);\r\n\r\n\t\t\t\t// ajout du formulaire d'intˇgration\r\n\t\t\t\tnew FileUploadView(wMap,htmlLegende, htmlCompteRendu,tempsDIntegrationRestant);\r\n\r\n\t\t\t}", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n\n TextView name = (TextView) view.findViewById(R.id.label3nazwa);\n TextView date = (TextView) view.findViewById(R.id.label1data);\n TextView type = (TextView) view.findViewById(R.id.label2typ);\n TextView value = (TextView) view.findViewById(R.id.label4wartosc);\n // Extract properties from cursor\n String nazwa = cursor.getString(cursor.getColumnIndexOrThrow(\"nazwa\"));\n String typ_id = cursor.getString(cursor.getColumnIndexOrThrow(\"typ_id\"));\n String data = cursor.getString(cursor.getColumnIndexOrThrow(\"data\"));\n String wartosc = cursor.getString(cursor.getColumnIndexOrThrow(\"wartosc\"));\n // Populate fields with extracted properties\n name.setText(nazwa);\n date.setText(data);\n type.setText(typ_id);\n value.setText(wartosc);\n }", "protected void render() {\n\t\tString accion = Thread.currentThread().getStackTrace()[2].getMethodName();\n\t\trender(accion);\n\t}", "public interface IDetailView {\n public void setImage(String url);\n\n // mètodes per assignar el nom i cognom\n public void setNom(String text);\n public void setDivisio(String text);\n public void setNivell(String text);\n public void setObjPref(String text);\n public void setTipusAtac(String text);\n /*public void setUrlImatge(String text) ;*/\n}", "@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}", "public interface Renderable {\n\n void render();\n}", "@Override\n public void prerender() {\n }", "public interface FenleiView {\n void getFenlei(List<Fenlei.DataBean> data);\n void onFaliure(Call call, IOException e);\n\n}", "public interface MyAcountView extends BaseView{\n void renderBalance(BalanceBean bean);\n}", "protected void viewRow(E rowObject) {\n }", "@Override\n\tpublic String render()\n\t{\n\t\tFreemarkerView view = new FreemarkerView(MolgenisForm.class.getPackage().getName().replace(\".\", \"/\")\n\t\t\t\t+ \"/MolgenisForm.ftl\", getModel());\n\t\tview.addParameter(\"content\", layout.render());\n\t\tString result = view.render();\n\t\treturn result;\n\t}", "public bEvaluacionOrientacionAresultados(int i, int c) {\n this.id_evaluacion = i;\n this.codigo = c;\n initComponents();\n jLabel1.setText(\"<html><b>Define prioridades y orienta a su equipo a lograr los objetivos</b></html>\");\n jLabel2.setText(\"<html><b>Acuerda con sus compañeros la entrega de los resultados en el tiempo\\n\" +\n\"establecido</b></html>\");\n jLabel3.setText(\"<html><b>Promueve con sus compañeros la utilización adecuada de los recursos para,\\n\" +\n\"realizar su trabajo</b></html>\");\n jLabel4.setText(\"<html><b>Investiga y busca conocimiento sobre temas relacionados con su\\n\" +\n\"trabajo</b></html>\");\n jLabel5.setText(\"<html><b>Incorpora mejoras en los procesos bajo su responsabilidad</b></html>\");\n \n jLabel6.setText(\"<html><b>2.Orientación a resultados: realizar las funciones y cumplir los compromisos organizacionales con eficacia y calidad.</b></html>\");\n l1.setText(\"<html><b><center> por debajo de lo esperado <br> 0 - 50 </center></b></html>\");\n l2.setText(\"<html><b><center> A mejorar <br> 51 - 65 </center></b></html>\");\n l3.setText(\"<html><b><center> Aceptable <br> 66 - 84 </center></b></html>\");\n l4.setText(\"<html><b><center> Destacado <br> 85 - 100 </center></b></html>\");\n foto();\n \n }", "@Override\n\tpublic void recreo() {\n\n\t}", "public void render(Listitem item, Object data, int index) throws Exception {\n\r\n\t}", "@Override public Object getComponente(String componente){\n return getBlindaje(componente);\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public CadastroComplemento() {\n initComponents();\n \n }", "@Override\n\tpublic void render(Graphics g)\n\t{\n\t}", "protected abstract Render render(Param param, int pass);", "@Override\n public void render() {\n System.out.println(this.input);\n return;\n }", "private void SetFilas(){\n tblasig.setDefaultRenderer(Object.class, new Render());\n JButton btn1 = new JButton(\"Asignar\");\n btn1.setName(\"Asignar\");\n try {\n String sql = \"select * from usuario\";\n conn = (this.userConn != null) ? this.userConn : Conexion.getConnection();\n stmt = conn.prepareStatement(sql);\n rs = stmt.executeQuery();\n Object datos[] = new Object[4];\n while (rs.next()) {\n for (int i = 0; i < 4; i++) {\n datos[0] = rs.getString(\"idUser\");\n datos[1] = rs.getString(\"nombre\");\n datos[2] = rs.getString(\"depto\");\n datos[3] = btn1; \n }\n modelousuarios.addRow(datos);\n }\n } catch (Exception e) {\n System.out.println(\"\"+e);\n }finally{\n Conexion.close(rs);\n Conexion.close(stmt);\n }\n }", "public abstract void render(Renderer renderer);", "void setupRender() {\n List<Predmet> predmets = adminService.findAllPredmetsForPredavac(predavac);\n\n // create a SelectModel from my izlistaj of colors\n predmetSelectModel = selectModelFactory.create(predmets, \"name\");\n }", "interface View {\n\n void displayError(String error);\n\n String getBarcode();\n \n String getDescription();\n \n BigDecimal getPrice();\n \n \n }", "@Override\n\tpublic String getObjetivo() {\n\t\treturn model.getObjetivo();\n\t}", "@Override\n public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)\n {\n this.renderFish((EntityFish)par1Entity, par2, par4, par6, par8, par9);\n }", "protected void onRender(Writer w_p) throws Exception\r\n {\r\n // === render \r\n w_p.write(m_theFieldManager.renderErrors());\r\n\r\n w_p.write(\"<div style=\\\"clear:both\\\" class=\\\"OwObjectPropertyView\\\">\");\r\n\r\n w_p.write(\"<table class='OwObjectPropertyView'>\");\r\n\r\n w_p.write(\"<tr><td>\");\r\n\r\n renderRegion(w_p, MAIN_REGION);\r\n\r\n w_p.write(\"</td></tr>\");\r\n\r\n w_p.write(\"<tr><td class='OwObjectPropertyView_MENU OwInlineMenu'>\");\r\n\r\n renderRegion(w_p, MENU_REGION);\r\n\r\n w_p.write(\"</td></tr>\");\r\n\r\n w_p.write(\"</table>\");\r\n\r\n w_p.write(\"</div>\");\r\n }", "public void mostrarCompra() {\n }", "public IfrViagem() {\n initComponents();\n v = new Viagem();\n criarViagem();\n\n Formatacao.formatarData(ftfDataSaida);\n Formatacao.formatarHora(ftfHoraSaida);\n Formatacao.formatarData(ftfDataRetorno);\n Formatacao.formatarHora(ftfHoraRetorno);\n Formatacao.formatarReal(ftfValorViagem);\n\n }" ]
[ "0.7029481", "0.6882764", "0.67110205", "0.6581751", "0.6546843", "0.6526427", "0.65091985", "0.6506352", "0.6452597", "0.63733953", "0.6302279", "0.62843275", "0.62843275", "0.6256608", "0.62562925", "0.6238521", "0.61606413", "0.61308473", "0.6100115", "0.60914063", "0.6051162", "0.60171676", "0.599844", "0.59475976", "0.5920679", "0.5857592", "0.5815119", "0.57959753", "0.57879996", "0.57812214", "0.5779449", "0.5744257", "0.5732551", "0.5721338", "0.5711164", "0.5685918", "0.5677653", "0.56362164", "0.5633497", "0.5633497", "0.5633497", "0.5633497", "0.5633497", "0.5633497", "0.56299645", "0.56288785", "0.5625652", "0.56166923", "0.5603094", "0.5594461", "0.558442", "0.55541223", "0.5538761", "0.5532217", "0.5528623", "0.5521356", "0.55055076", "0.5505302", "0.550144", "0.54899615", "0.54769456", "0.54746586", "0.54709417", "0.54599184", "0.54429585", "0.5439385", "0.5414781", "0.5393683", "0.53903687", "0.5390105", "0.5388131", "0.53754", "0.5351397", "0.5349496", "0.5344498", "0.534251", "0.534251", "0.5333674", "0.5322376", "0.5319533", "0.5311426", "0.5310517", "0.5309128", "0.53077835", "0.5302059", "0.52946985", "0.52919054", "0.52822566", "0.5279126", "0.52739936", "0.52726275", "0.52707565", "0.5270522", "0.5259068", "0.52534574", "0.5250118", "0.5239718", "0.52393764", "0.5237884", "0.52354664", "0.52260494" ]
0.0
-1